CN114090533A - Volume capacity information management method, device, equipment and storage medium - Google Patents

Volume capacity information management method, device, equipment and storage medium Download PDF

Info

Publication number
CN114090533A
CN114090533A CN202111414701.6A CN202111414701A CN114090533A CN 114090533 A CN114090533 A CN 114090533A CN 202111414701 A CN202111414701 A CN 202111414701A CN 114090533 A CN114090533 A CN 114090533A
Authority
CN
China
Prior art keywords
volume
processed
capacity
file
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111414701.6A
Other languages
Chinese (zh)
Inventor
杨天波
陈保文
吴佳欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hexin Technology Suzhou Co ltd
Original Assignee
Hexin Technology Suzhou Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hexin Technology Suzhou Co ltd filed Critical Hexin Technology Suzhou Co ltd
Priority to CN202111414701.6A priority Critical patent/CN114090533A/en
Publication of CN114090533A publication Critical patent/CN114090533A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • G06F16/183Provision of network file services by network file servers, e.g. by using NFS, CIFS
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/122File system administration, e.g. details of archiving or snapshots using management policies

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the field of file management, in particular to a volume capacity information management method, a device, equipment and a storage medium, which comprises the following steps: acquiring running information of a volume to be processed, and determining a file management system type adopted by the volume to be processed, wherein the file management system type comprises a network file system and an Andrew file system; acquiring the capacity use condition of the volume to be processed by adopting a corresponding system command according to the type of the file management system adopted by the volume to be processed; and if the ratio of the used capacity of the volume to be processed to the total capacity reaches a first preset value, sending the name of the volume to be processed, the name of the large file and the ratio of the used capacity to the total capacity to a management terminal, wherein the large file is a file of which the memory occupation value is greater than a preset memory value. The double-file management system is adopted to comprehensively manage the files, and the files can be well managed according to different management requirements of the files.

Description

Volume capacity information management method, device, equipment and storage medium
Technical Field
The invention relates to the field of file management, in particular to a volume capacity information management method, a volume capacity information management device, volume capacity information management equipment and a storage medium.
Background
The main file management systems of the Linux operating system include a Network File System (NFS) and an Anderu File System (AFS), and the capacity management mechanisms of the network file system and the anderu file system are different, so that the network file system and the anderu file system have advantages and disadvantages. For example, the network file system is convenient to maintain and good in universality, but the stability is not high; the Andrew file system has high safety, good stability and expansibility, but low universality.
The management requirements for different files may be different and using only one file management system may result in the management requirements for some files being not met. With the advent of the information-oriented era, the amount of data stored in the Linux system is continuously increased, and the situation of insufficient storage capacity frequently occurs, so that the system is broken down, the processing speed is slow, and the like, and therefore the volume capacity in the system needs to be continuously monitored so as to be cleaned in time.
When different file management requirements are met, if a network file system or an Andrew file system is uniformly used, some files cannot be well managed.
Disclosure of Invention
Therefore, the present invention is to solve the technical problem that files cannot be managed well, and provide a volume capacity information management method, including the following steps:
acquiring running information of a volume to be processed, and determining a file management system type adopted by the volume to be processed, wherein the file management system type comprises a network file system and an Andrew file system;
acquiring the capacity use condition of the volume to be processed by adopting a corresponding system command according to the type of the file management system adopted by the volume to be processed;
and if the ratio of the used capacity of the volume to be processed to the total capacity reaches a first preset value, sending the name of the volume to be processed, the name of the large file and the ratio of the used capacity to the total capacity to a management terminal, wherein the large file is a file of which the memory occupation value is greater than a preset memory value.
Preferably, the determining the type of the file management system adopted by the volume to be processed includes:
judging the service type of the volume to be processed started in a system background, wherein the service type comprises RPC service and BOS service;
if the service type started by the system background is RPC service, the file management system type adopted by the volume to be processed is a network file system;
and if the service type started by the system background is BOS service, the file management system type adopted by the volume to be processed is an Andrew file system.
Preferably, the method further comprises:
and if the ratio of the used capacity of the volume to be processed to the total capacity reaches a second preset value, sending the name of the volume to be processed, the name of the large file and the ratio of the used capacity to the total capacity to a management terminal, and simultaneously sending early warning information to the management terminal.
Preferably, the to-be-processed volume includes a plurality of volumes, and the acquiring the running information of the to-be-processed volume includes:
and when the operating system is idle, automatically executing the step of acquiring the running information of the volumes to be processed once for each volume to be processed at intervals of a preset time period.
Preferably, the method further comprises:
creating a log file for each volume to be processed;
and updating the used capacity and the used capacity ratio determined according to the operation information of the to-be-processed volume acquired each time into a log file corresponding to the to-be-processed volume.
Preferably, the method further comprises the following steps:
and drawing a capacity usage chart corresponding to the volume to be processed based on the obtained used capacity.
Preferably, said plotting a capacity usage graph of said volume to be processed based on said obtained used capacity comprises:
and drawing a used capacity chart corresponding to each volume to be processed in a mode of a broken line diagram based on the obtained used capacity.
The present invention also provides a volume capacity information management apparatus, including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring the operation information of a volume to be processed and determining the type of a file management system adopted by the volume to be processed, and the type of the file management system comprises a network file system and an Andrew file system;
the second acquisition module is used for acquiring the capacity use condition of the volume to be processed by adopting a corresponding system command according to the type of the file management system adopted by the volume to be processed;
and the sending module is used for sending the name of the volume to be processed, the name of the large file and the ratio of the used capacity to the total capacity to a management terminal if the ratio of the used capacity to the total capacity of the volume to be processed reaches a first preset value, wherein the large file is a file of which the memory occupation value is greater than a preset memory value.
The invention also provides a computer device, which comprises a memory and a processor, wherein the memory and the processor are mutually connected in a communication way, the memory stores computer instructions, and the processor executes the computer instructions so as to execute the volume capacity information management method.
The present invention also provides a computer-readable storage medium storing computer instructions for causing a computer to execute the above-described volume capacity information management method.
The technical scheme of the invention has the following advantages:
1. the volume capacity information management method provided by the invention adopts the double-file management system to comprehensively manage the files, and can well manage the files according to different management requirements of the files. Determining the type of a file management system adopted by the volume to be processed according to the operation information of the volume to be processed, acquiring the capacity use condition of the volume to be processed according to the type of the file management system by adopting a corresponding system command, reminding an administrator based on the capacity use condition, and sending a large file name and the like to the administrator for reference when the administrator cleans up. The method integrates the advantages of a network file system and an Andrew file system to manage the files, and can perform capacity early warning on the volumes to be processed in time.
2. The volume capacity information management device provided by the invention adopts a double-file management system to comprehensively manage the files, and can well manage the files according to different management requirements of the files. The method comprises the steps that a first obtaining module determines the type of a file management system adopted by a to-be-processed volume according to the operation information of the to-be-processed volume, a second obtaining module obtains the capacity use condition of the to-be-processed volume according to the type of the file management system by adopting a corresponding system command, a sending module reminds an administrator based on the capacity use condition, and sends a large file name and the like to the administrator for reference when the administrator cleans up. The device integrates the advantages of a network file system and an Andrew file system to manage files, and can perform capacity early warning on volumes to be processed in time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a volume capacity information management method in embodiment 1 of the present invention;
fig. 2 is another flowchart of a volume capacity information management method according to embodiment 1 of the present invention;
FIG. 3 is a schematic illustration of a volume and files stored within the volume;
fig. 4 is a block diagram of a volume capacity information management apparatus in embodiment 2 of the present invention;
fig. 5 is a block diagram of an electronic device in embodiment 3 of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "first", "second", and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
Common file management systems of the Linux system include a Network File System (NFS) and an Anderu File System (AFS), which have different advantages and disadvantages, such as convenience in maintenance of the network file system, good universality and low stability; the Andrew file system has high safety, good stability and expansibility, but low universality. Therefore, the range of important applications of both is different.
In the face of different application occasions, a proper file management system needs to be selected according to actual conditions. Often, a large number of files are stored in the same operating system, and the unified use of the network file system or the anderu file system may result in some files not being managed well.
Example 1
Fig. 1 is a flowchart illustrating a method for managing files using a dual file management system according to some embodiments of the present invention, where a file management system type used by a to-be-processed volume is determined according to running information of the to-be-processed volume, and then a corresponding system command is used to obtain a capacity usage of the to-be-processed volume, and further the capacity usage of the to-be-processed volume is sent to a management terminal. Although the processes described below include operations that occur in a particular order, it should be clearly understood that the processes may include more or fewer operations that are performed sequentially or in parallel (e.g., using parallel processors or a multi-threaded environment).
The embodiment provides a volume capacity information management method for volume capacity information processing of a volume adopting a dual file management system, and the method can be operated on electronic equipment through software, including but not limited to desktop computers, notebooks, tablet computers, mobile phones and watches. As shown in fig. 1, the method comprises the following steps:
s101, obtaining operation information of a to-be-processed volume, and determining a file management system type adopted by the to-be-processed volume.
In the foregoing implementation step, one or more volumes may exist in the same operating system, and each volume stores one or more files, and each file occupies a memory space of the volume with a certain size.
As shown in fig. 3, which illustrates volumes and files contained within the volumes, a display 302 is connected to a host (not shown), the display 302 includes, but is not limited to, a CRT display, a 3D display, an LCD display, a plasma display, an LED display, etc., a plurality of volumes 301 are displayed on the display 302, and each volume 301 contains one or more files, including, but not limited to, music files, video files, picture files, document files, audio files, etc.
File management system types include a grid file system (NFS) and an Anderu File System (AFS), and in order to ensure that files can be managed effectively, the file management system type used by each volume may be different, for example, a first volume 3011 may use a grid file system, and a second volume 3012 may use an anderu file system.
And S102, acquiring the capacity use condition of the volume to be processed by adopting a corresponding system command according to the file management system type adopted by the volume to be processed.
In the above implementation steps, since the types of file management systems adopted by the volumes to be processed may be different, the manner of obtaining the capacity usage of the volumes to be processed is also different. When the volume to be processed adopts a Network File System (NFS), the capacity use condition of the volume to be processed can be obtained by using an NFS system command; when the volume to be processed adopts the Andrew File System (AFS), the capacity usage of the volume to be processed can be obtained by adopting an AFS command.
For example, since the first volume 3011 adopts a grid file system and the second volume 3012 adopts an andelu file system, when the capacity usage of the first volume 3011 is obtained, the capacity usage of the first volume 3011 is obtained by using an NFS system command, and the capacity usage of the second volume 3012 is obtained by using an AFS system command.
The capacity usage of the volume to be processed may include the total capacity, used capacity, remaining capacity of the volume to be processed, which is typically a fixed value, but in some embodiments, the total capacity of the volume to be processed may be increased by external means; the used capacity and the remaining capacity are usually a variation value, usually a variation in capacity due to the operation of the system, external deletion or addition of files, etc., and the sum of the used capacity and the remaining capacity is equal to the total capacity of the volumes to be processed.
For example, the first volume 3011 has a total capacity of 1000 megabits, and both used capacity and remaining capacity are 500 megabits.
S103, judging whether the ratio of the used capacity of the volume to be processed to the total capacity reaches a first preset value or not.
In the above implementation step, the first preset value may be selected according to actual situations, for example, 50%, 60%, or 70%, and the ratio of the used capacity to the total capacity of the to-be-processed volume is compared with the first preset value, and if the ratio of the used capacity to the total capacity is smaller than the first preset value, it indicates that the capacity of the to-be-processed volume is in a healthy state, that is, the used capacity of the to-be-processed volume is smaller and sufficient capacity is available; if the ratio of the used capacity to the total capacity is greater than or equal to the first preset value, it indicates that the capacity of the to-be-processed volume is in a normal early warning state, that is, the used capacity of the to-be-processed volume is large, and the available capacity is small, and step S104 needs to be executed.
And S104, sending the name of the volume to be processed, the name of the large file and the ratio of the used capacity to the total capacity to a management terminal.
In the above implementation steps, when the ratio of the used capacity to the total capacity is greater than or equal to the first preset value, all files in the volume to be processed, for example, the files in the storage space 303 in fig. 3, are scanned, and the storage space 303 is all the files contained in the volume to be processed.
A file with a memory usage value larger than a preset memory value is regarded as a large file, and the memory usage value refers to the memory size of the file, for example, the memory size of a video file in a to-be-processed volume is 500M. And acquiring the name of the large file in the volume to be processed, and sending the name of the volume to be processed, the name of the large file and the ratio of the used capacity to the total capacity to the management terminal.
The preset memory value can be reasonably selected by a person skilled in the art according to actual conditions, for example, the preset memory value can be 400 megabytes, 450 megabytes, 470 megabytes, and the like. The management terminal includes, but is not limited to, a computer, a tablet computer, a smart phone, a smart watch, a television, and the like, and the management terminal may be installed with instant messaging software, a mail client, and the like, wherein the management terminal may be a terminal device for which an administrator of the volume is responsible for management. When the ratio of the used capacity of the volume to be processed to the total capacity reaches a first preset value, the administrator of the corresponding volume can be notified in a wired or wireless communication mode.
In the embodiment, the double-file management system is adopted to comprehensively manage the files, so that the files can be well managed according to different management requirements of the files. Determining the type of a file management system adopted by the volume to be processed according to the operation information of the volume to be processed, acquiring the capacity use condition of the volume to be processed according to the type of the file management system by adopting a corresponding system command, reminding an administrator based on the capacity use condition, and sending a large file name and the like to the administrator for reference when the administrator cleans up. The method integrates the advantages of a network file system and an Andrew file system to manage the files, and can perform capacity early warning on the volumes to be processed in time.
In one or more embodiments, as shown in fig. 2, after acquiring the used capacity of the volume to be processed, step S201 may be performed.
S201, judging whether the ratio of the used capacity of the volume to be processed to the total capacity reaches a second preset value.
In the above implementation steps, the skilled person can reasonably select the second preset value according to practical situations, for example, the second preset value can be 75%, 80% or 85%, and the second preset value should be generally larger than the first preset value.
When the ratio of the used capacity of the to-be-processed volume to the total capacity reaches a second preset value, it is indicated that the capacity of the to-be-processed volume is in an emergency early warning state, that is, the used capacity of the to-be-processed volume is large, and the remaining capacity of the to-be-processed volume is small.
If the ratio of the used capacity of the volume to be processed to the total capacity is smaller than the second preset value, whether to execute the step S104 may be determined according to the condition that the ratio of the used capacity of the volume to be processed to the total capacity is smaller; if the ratio of the used capacity of the volume to be processed to the total capacity is greater than or equal to the second preset value, step S202 is executed.
S202, sending the name of the volume to be processed, the name of the large file and the ratio of the used capacity to the total capacity to the management terminal, and meanwhile sending early warning information to the management terminal.
In the above implementation steps, the management terminal may be a terminal device that is responsible for management by an administrator, such as a smart phone, a computer, a tablet computer, or a smart watch; the early warning information can be one or more of character information, voice information and video information.
When the ratio of the used capacity of the volume to be processed to the total capacity is greater than or equal to the second preset value, the early warning information is sent to an administrator, and the administrator can process the volume to be processed in time so as to ensure the normal operation of the system.
In one or more embodiments, when the ratio of the used capacity of the volume to be processed to the total capacity is greater than or equal to the second preset value, the warning message may be sent to the system administrator, that is, the terminal device responsible for management is notified to the system administrator through instant messaging software, a mailbox or a short message, so as to remind the system administrator.
Although the processes described above include operations that occur in a particular order, it should be clearly understood that the processes may include more or fewer operations which may be performed sequentially or in parallel (e.g., using parallel processors or a multi-threaded environment).
In one or more embodiments, the type of file management system employed by the volume to be processed may be determined by the following steps, although the processes described below include operations that occur in a particular order, it should be clearly understood that the processes may include more or less operations that may be performed sequentially or in parallel (e.g., using parallel processors or a multi-threaded environment).
Determining the type of the file management system adopted by the volume to be processed, including:
judging the service type of the volume to be processed started in a system background, wherein the service type comprises RPC service and BOS service;
if the service type started by the system background is RPC service, the file management system type adopted by the volume to be processed is a network file system;
and if the service type started by the system background is BOS service, the file management system type adopted by the volume to be processed is an Andrew file system.
The related services of the volume to be processed during operation can be started in the system background, the types of the adopted file management systems are different, and the related services operated are different.
In one or more embodiments, the number of the volumes to be processed is multiple, and when the operating system is idle, the step of obtaining the running information of the volumes to be processed may be automatically performed once for each volume to be processed after every preset time period, so as to obtain the capacity usage of the volumes to be processed. The preset time period can be reasonably selected according to actual conditions, such as 5 days, 10 days or 15 days.
Because the number of the volumes to be processed is multiple, when the operating system is idle, the step of acquiring the running information of the volumes to be processed is executed once for each volume to be processed, and further the capacity use condition of the volumes to be processed is acquired. According to the acquired capacity use condition of the volume to be processed, a capacity use condition chart corresponding to the volume to be processed can be drawn. Capacity usage graphs include, but are not limited to, line graphs, bar graphs, and bar graphs.
Since the capacity usage includes the remaining capacity and the used capacity, a remaining capacity chart and a used capacity chart of the volume to be processed can be drawn. And drawing a capacity use condition chart of the volumes to be processed, so that the trend of each volume to be processed can be clearly displayed and can be referred by an administrator.
For example, as shown in fig. 3, the used capacities of the first volume 3011 and the second volume 3012 are obtained, and the used capacity chart of the first volume 3011 and the used capacity chart of the second volume 3012 are drawn in a manner of a broken line diagram.
In one or more embodiments, each to-be-processed volume is provided with a log file. And after the capacity use condition of the volume to be processed is obtained, the used capacity, the residual capacity and the ratio of the used capacity to the total capacity of the volume to be processed can be updated into the corresponding log file. In order to ensure the monitoring flexibility, the log file of each volume can be respectively saved into a corresponding data file.
For example, every 10 days, when the operating system is idle, the capacity usage of the first volume 3011 and the second volume 3012 is automatically acquired, the capacity usage of the first volume 3011 is stored in the first log file, and the capacity usage of the second volume 3012 is stored in the second log file.
Example 2
The present embodiment provides a volume capacity information management apparatus, as shown in fig. 4, including:
the first obtaining module 401 is configured to obtain operation information of a to-be-processed volume, and determine a file management system type adopted by the to-be-processed volume, where the file management system type includes a network file system and an anderu file system. For details, please refer to the related description of step S101 in embodiment 1, which is not repeated herein.
A second obtaining module 402, configured to obtain, according to the file management system type adopted by the to-be-processed volume, a capacity usage of the to-be-processed volume by using a corresponding system command. For details, please refer to the related description of step S102 in embodiment 1, which is not repeated herein.
A sending module 403, configured to send, to a management terminal, a name of the to-be-processed volume, a name of a large file, and a ratio of the used capacity to the total capacity if the ratio of the used capacity of the to-be-processed volume to the total capacity reaches a first preset value, where the large file is a file whose memory usage value is greater than a preset memory value. For details, refer to the related description of step S103 and step S104 in embodiment 1, and are not repeated here.
In the embodiment, the double-file management system is adopted to comprehensively manage the files, so that the files can be well managed according to different management requirements of the files. The first obtaining module 401 determines a file management system type used by the volume to be processed according to the operation information of the volume to be processed, the second obtaining module 402 obtains a capacity use condition of the volume to be processed according to the file management system type by using a corresponding system command, the sending module 403 reminds an administrator based on the capacity use condition, and sends a large file name and the like to the administrator for reference when the administrator cleans up. The device integrates the advantages of a network file system and an Andrew file system to manage files, and can perform capacity early warning on volumes to be processed in time.
Example 3
The present embodiment provides a computer device, as shown in fig. 5, the device includes a processor 501 and a memory 502, where the processor 501 and the memory 502 may be connected by a bus or other means, and fig. 5 takes the example of connection by a bus as an example.
Processor 501 may be a Central Processing Unit (CPU). The Processor 501 may also be other general purpose processors, Digital Signal Processors (DSPs), Graphics Processing Units (GPUs), embedded Neural Network Processors (NPUs), or other dedicated deep learning coprocessors, Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or any combination thereof.
The memory 502, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules (e.g., the first acquiring module 401, the second acquiring module 402, and the sending module 403 shown in fig. 4) corresponding to the volume capacity information management method in the embodiment of the present invention. The processor 501 executes various functional applications and data processing of the processor by running non-transitory software programs, instructions, and modules stored in the memory 502, that is, implements the volume capacity information management method in the above-described method embodiment 1.
The memory 502 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 501, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 502 optionally includes memory located remotely from processor 501, which may be connected to processor 501 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 502 and, when executed by the processor 501, perform a volume capacity information management method as in the embodiment shown in fig. 1.
In this embodiment, the memory 502 stores program instructions or modules of the volume capacity information management method, and when the processor 501 executes the program instructions or modules stored in the memory 502, the file is comprehensively managed by using the dual file management system, so that the file can be well managed according to different management requirements of the file. Determining the type of a file management system adopted by the volume to be processed according to the operation information of the volume to be processed, acquiring the capacity use condition of the volume to be processed according to the type of the file management system by adopting a corresponding system command, reminding an administrator based on the capacity use condition, and sending a large file name and the like to the administrator for reference when the administrator cleans up. The method integrates the advantages of a network file system and an Andrew file system to manage the files, and can perform capacity early warning on the volumes to be processed in time.
An embodiment of the present invention further provides a non-transitory computer storage medium, where the computer storage medium stores computer-executable instructions, and the computer-executable instructions may execute the volume capacity information management method in any of the above method embodiments. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.

Claims (10)

1. A volume capacity information management method is characterized by comprising the following steps:
acquiring running information of a volume to be processed, and determining a file management system type adopted by the volume to be processed, wherein the file management system type comprises a network file system and an Andrew file system;
acquiring the capacity use condition of the volume to be processed by adopting a corresponding system command according to the type of the file management system adopted by the volume to be processed;
and if the ratio of the used capacity of the volume to be processed to the total capacity reaches a first preset value, sending the name of the volume to be processed, the name of the large file and the ratio of the used capacity to the total capacity to a management terminal, wherein the large file is a file of which the memory occupation value is greater than a preset memory value.
2. The volume capacity information management method according to claim 1, wherein the determining a file management system type adopted by the volume to be processed includes:
judging the service type of the volume to be processed started in a system background, wherein the service type comprises RPC service and BOS service;
if the service type started by the system background is RPC service, the file management system type adopted by the volume to be processed is a network file system;
and if the service type started by the system background is BOS service, the file management system type adopted by the volume to be processed is an Andrew file system.
3. The volume capacity information management method according to claim 1 or 2, characterized by further comprising:
and if the ratio of the used capacity of the volume to be processed to the total capacity reaches a second preset value, sending the name of the volume to be processed, the name of the large file and the ratio of the used capacity to the total capacity to a management terminal, and simultaneously sending early warning information to the management terminal.
4. The volume capacity information management method according to claim 1, wherein the pending volume includes a plurality of volumes, and the acquiring the operation information of the pending volume includes:
and when the operating system is idle, automatically executing the step of acquiring the running information of the volumes to be processed once for each volume to be processed at intervals of a preset time period.
5. The volume capacity information management method according to claim 4, wherein the method further comprises:
creating a log file for each volume to be processed;
and updating the used capacity and the used capacity ratio determined according to the operation information of the to-be-processed volume acquired each time into a log file corresponding to the to-be-processed volume.
6. The volume capacity information management method according to claim 4, further comprising:
and drawing a capacity usage chart corresponding to the volume to be processed based on the obtained used capacity.
7. The volume capacity information management method according to claim 6, wherein said plotting a capacity usage graph of the volume to be processed based on the obtained used capacity comprises:
and drawing a used capacity chart corresponding to each volume to be processed in a mode of a broken line diagram based on the obtained used capacity.
8. A volume capacity information management device, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring the operation information of a volume to be processed and determining the type of a file management system adopted by the volume to be processed, and the type of the file management system comprises a network file system and an Andrew file system;
the second acquisition module is used for acquiring the capacity use condition of the volume to be processed by adopting a corresponding system command according to the type of the file management system adopted by the volume to be processed;
and the sending module is used for sending the name of the volume to be processed, the name of the large file and the ratio of the used capacity to the total capacity to a management terminal if the ratio of the used capacity to the total capacity of the volume to be processed reaches a first preset value, wherein the large file is a file of which the memory occupation value is greater than a preset memory value.
9. A computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the volume capacity information management method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing computer instructions for causing a computer to execute the volume capacity information management method according to any one of claims 1 to 7.
CN202111414701.6A 2021-11-25 2021-11-25 Volume capacity information management method, device, equipment and storage medium Pending CN114090533A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111414701.6A CN114090533A (en) 2021-11-25 2021-11-25 Volume capacity information management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111414701.6A CN114090533A (en) 2021-11-25 2021-11-25 Volume capacity information management method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114090533A true CN114090533A (en) 2022-02-25

Family

ID=80304619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111414701.6A Pending CN114090533A (en) 2021-11-25 2021-11-25 Volume capacity information management method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114090533A (en)

Similar Documents

Publication Publication Date Title
WO2019205371A1 (en) Server, message allocation method, and storage medium
US8375200B2 (en) Embedded device and file change notification method of the embedded device
CN108737132B (en) Alarm information processing method and device
CN109117153B (en) Application processing method, device, terminal and storage medium
CN112612853A (en) Data processing method and device based on database cluster and electronic equipment
CN109710679B (en) Data extraction method and device
CN113535726A (en) Database capacity expansion method and device
CN110569114B (en) Service processing method, device, equipment and storage medium
CN114090533A (en) Volume capacity information management method, device, equipment and storage medium
CN114281872B (en) Method, device and equipment for generating distributed serial number and readable storage medium
CN111984723A (en) Data synchronization method and device and terminal equipment
CN114995914A (en) Picture data processing method and device, computer equipment and storage medium
CN111680014B (en) Shared file acquisition method and device, electronic equipment and storage medium
CN115170152A (en) Data distribution method, device, equipment and storage medium
CN115269063A (en) Process creation method, system, device and medium
CN109995855B (en) Data acquisition method, device and terminal
CN108984431B (en) Method and apparatus for flushing stale caches
CN113986833A (en) File merging method, system, computer system and storage medium
CN112115020B (en) Database connection pool abnormity monitoring method and device and computer equipment
CN113986134B (en) Method for storing data, method and device for reading data
CN111382351B (en) Soft telephone resource sharing method, electronic device and computer readable storage medium
CN114281604B (en) Data recovery method and device, electronic equipment and storage medium
CN112749042B (en) Application running method and device
CN107357672B (en) Data processing method and device
CN111324590A (en) Data processing method, device, system and medium for distributed file system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination