Disk cleaning method, device, system and storage medium based on disk analysis

By using the disk capacity analysis package to detect and generate analysis reports when the disk capacity is insufficient, the problem of quick cleanup when the disk space usage exceeds the limit is solved, efficient disk capacity management and monitoring platform linkage is realized, and the efficiency and effectiveness of disk cleanup are improved. accuracy.

CN112346662BActive Publication Date: 2024-10-15CHINA CITIC BANK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011323958.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-23
Publication Date
2024-10-15
Estimated Expiration
2040-11-23

AI Technical Summary

Technical Problem

The existing technology makes it difficult to perform disk cleanup quickly and timely when the disk space usage exceeds the limit, and the management process is inefficient, which can easily lead to accidental deletion and difficulty in tracing the cause.

Method used

By detecting that the server disk capacity is insufficient, use the disk capacity analysis package to detect the target file system space, generate an analysis report, display it to managers, receive cleanup instructions and perform disk capacity cleanup, including automated sensing and sorting output, and linkage monitoring platforms to reduce Difficulty of human analysis.

Benefits of technology

It improves the efficiency and accuracy of disk cleaning, reduces the difficulty of manual analysis, can automatically process large files when an event occurs, and reduces the risk of accidental deletion and time cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112346662B_ABST
    Figure CN112346662B_ABST
Patent Text Reader

Abstract

The present application discloses a disk cleaning method, device, system and storage medium based on disk analysis, wherein the method comprises: when it is detected that the storage capacity of the server's disk is insufficient, detecting whether the server's disk has a target file system space outside the alarm file system according to a disk capacity analysis program package, and when it is detected that the server's disk has a target file system space outside the alarm file system, sending an analysis instruction to the server so that the server performs disk analysis and generates a disk analysis report according to the disk capacity analysis program package; receiving the disk analysis report and displaying the disk analysis report to a manager so that the manager inputs a disk cleaning instruction; receiving the disk cleaning instruction input by the manager; and performing capacity cleaning on the server's disk according to the disk cleaning instruction. The present application can improve the efficiency of disk cleaning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a disk cleaning method, device, system and storage medium based on disk analysis. Background Art

[0002] At present, with the continuous development of information technology, the daily operation and maintenance of data centers often encounter the situation of excessive disk space usage, which in turn affects the stable operation of the system and even causes the machine to be unavailable. Currently, operation and maintenance personnel can only use commands to analyze disk usage information level by level, which is very inefficient.

[0003] The common practice for disk space usage is to set up scripts in the system to clean up the disk space regularly. However, this cannot deal with the disk space problems caused by sudden situations in the system in a timely manner. At the same time, space analysis at the management site takes a long time and easily magnifies the events with lower impact. In addition, during the emergency handling process, abnormal files are likely to be deleted, which makes it difficult to trace the cause of the problem. Summary of the invention

[0004] The purpose of the embodiments of the present application is to disclose a disk cleaning method, device, system and storage medium based on disk analysis, so as to improve the efficiency of disk cleaning.

[0005] To this end, the first aspect of the present application provides a disk cleaning method based on disk analysis, the method comprising:

[0006] When it is detected that the storage capacity of the server disk is insufficient, the disk capacity analysis program package is used to detect whether the server disk has a target file system space other than the alarm file system, wherein the target file system space is used to store the execution analysis result of the disk capacity analysis program package;

[0007] When it is detected that the disk of the server has a target file system space outside the alarm file system, an analysis instruction is sent to the server, so that the server performs disk analysis according to the disk capacity analysis program package and generates a disk analysis report;

[0008] receiving the disk analysis report and presenting the disk analysis report to a manager so that the manager can input a disk cleaning instruction;

[0009] Receiving the disk cleaning instruction input by the administrator;

[0010] The capacity of the disk of the server is cleaned up according to the disk cleanup instruction.

[0011] The method of the first aspect of the present application can, when it is detected that the storage capacity of the server's disk is insufficient, detect whether the server's disk has target file system space outside the alarm file system according to a disk capacity analysis program package, and then, when it is detected that the server's disk has target file system space outside the alarm file system, send an analysis instruction to the server, so that the server performs disk analysis and generates a disk analysis report according to the disk capacity analysis program package, and then receives the disk analysis report and displays the disk analysis report to the administrator, so that the administrator inputs a disk cleanup instruction. On the other hand, the method of the first aspect of the present application can also receive the disk cleanup instruction input by the administrator, so as to perform capacity cleanup on the server's disk according to the disk cleanup instruction.

[0012] In the first aspect of the present application, as an optional implementation, before detecting whether the disk of the server has a target file system space other than the alarm file system according to the disk capacity analysis package, the method further includes:

[0013] It is determined whether the disk capacity analysis program package exists in the server. If the disk capacity analysis program package does not exist, a download instruction is sent to the server, so that the server downloads the disk capacity analysis program package according to the download instruction.

[0014] In the first aspect of the present application, as an optional implementation, after receiving the disk analysis report and presenting the disk analysis report to the administrator, and before receiving the disk cleaning instruction input by the administrator, the method includes:

[0015] Traversing and scanning the directory entries in all the file systems of the server and the files of each of the directory entries, and accumulating the capacity of each of the directory entries and the capacity of the files to obtain the capacity statistics result of each of the file systems;

[0016] A recommendation list is determined according to the capacity statistics result of each file system, so that the administrator determines the target file system space according to the recommendation list.

[0017] In the first aspect of the present application, as an optional implementation, determining a recommendation list according to the capacity statistics result of each file system so that the administrator determines the target file system space according to the recommendation list includes:

[0018] Determining at least two pre-selected file systems according to the capacity statistics result of each of the file systems;

[0019] Generating the recommendation list according to the capacity statistics result of each of the pre-selected file systems;

[0020] The recommendation list is displayed so that the administrator determines the target file system space according to the recommendation list.

[0021] In the first aspect of the present application, as an optional implementation, after the capacity of the disk of the server is cleaned up according to the disk cleanup instruction, the method further includes:

[0022] Generate a disk cleanup report, wherein the disk cleanup report at least includes a data transfer path and the size of the capacity released during the disk cleanup process.

[0023] In the first aspect of the present application, as an optional implementation, the method further includes:

[0024] When it is detected that the target file system space other than the alarm file system does not exist on the disk of the server, an alarm prompt is generated and displayed.

[0025] A second aspect of the present application provides a disk cleaning device based on disk usage analysis, the device comprising:

[0026] A first detection module is used to detect that the storage capacity of the disk of the server is insufficiently released;

[0027] A second detection module is used for, when the first detection module detects that the storage capacity of the server disk is insufficient, detecting whether the server disk has a target file system space other than the alarm file system according to the disk capacity analysis program package, wherein the target file system space is used to store the execution analysis result of the disk capacity analysis program package;

[0028] A first sending module, configured to send an analysis instruction to the server when the second detection module detects that the disk of the server has a target file system space outside the alarm file system, so that the server performs disk analysis according to the disk capacity analysis program package and generates a disk analysis report;

[0029] A first receiving module, configured to receive the disk analysis report and present the disk analysis report to a manager, so that the manager can input a disk cleaning instruction;

[0030] A second receiving module, used for receiving the disk cleaning instruction input by the administrator;

[0031] The cleaning module is used to clean up the capacity of the disk of the server according to the disk cleaning instruction.

[0032] The device of the second aspect of the present application can, when it detects that the storage capacity of the server's disk is insufficient, detect whether the server's disk has target file system space outside the alarm file system based on a disk capacity analysis program package, and then, when it detects that the server's disk has target file system space outside the alarm file system, send an analysis instruction to the server, so that the server performs disk analysis and generates a disk analysis report according to the disk capacity analysis program package, and then receives the disk analysis report and displays the disk analysis report to the administrator, so that the administrator inputs a disk cleanup instruction. On the other hand, the device of the second aspect of the present application can also receive the disk cleanup instruction input by the administrator, so as to perform capacity cleanup on the server's disk according to the disk cleanup instruction.

[0033] In the second aspect of the present application, as an optional implementation, the second detection module includes:

[0034] A judging submodule, used for judging whether the disk capacity analysis program package exists in the server;

[0035] The sending submodule is used for sending a download instruction to the server when the judging submodule judges that the disk capacity analysis program package does not exist in the server, so that the server downloads the disk capacity analysis program package according to the download instruction.

[0036] A third aspect of the present application provides a disk cleaning device based on disk usage analysis, the device comprising:

[0037] Processor; and

[0038] The memory is configured to store machine-readable instructions, which, when executed by the processor, enable the processor to perform the disk cleaning method based on disk analysis of the first aspect of the present application.

[0039] The device of the third aspect of the present application can, when it detects that the storage capacity of the server's disk is insufficient, detect whether the server's disk has target file system space outside the alarm file system according to a disk capacity analysis program package, and then, when it is detected that the server's disk has target file system space outside the alarm file system, send an analysis instruction to the server, so that the server performs disk analysis and generates a disk analysis report according to the disk capacity analysis program package, and then receives the disk analysis report and displays the disk analysis report to the administrator, so that the administrator inputs a disk cleanup instruction. On the other hand, the device of the third aspect of the present application can also receive the disk cleanup instruction input by the administrator, so as to perform capacity cleanup on the server's disk according to the disk cleanup instruction.

[0040] A fourth aspect of the present application provides a storage medium storing a computer program, wherein the computer program is executed by a processor to implement the disk cleaning method based on disk analysis of the first aspect of the present application.

[0041] The storage medium of the fourth aspect of the present application can, when it is detected that the storage capacity of the server's disk is insufficient, detect whether the server's disk has target file system space outside the alarm file system according to a disk capacity analysis program package, and then, when it is detected that the server's disk has target file system space outside the alarm file system, send an analysis instruction to the server, so that the server performs disk analysis and generates a disk analysis report according to the disk capacity analysis program package, and then receives the disk analysis report and displays the disk analysis report to the administrator, so that the administrator inputs a disk cleanup instruction. On the other hand, the storage medium of the fourth aspect of the present application can also receive the disk cleanup instruction input by the administrator, so as to perform capacity cleanup on the server's disk according to the disk cleanup instruction.

[0042] Compared with the prior art, the embodiment of the present application can analyze file systems with high occupancy rates through automatic perception when an event occurs, sort and output large files, and can be associated with the monitoring platform for automatic processing to reduce the difficulty of manual analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. It should be understood that the following drawings only illustrate certain embodiments of the present application and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work. Among them:

[0044] Figure 1 This is the process intention of a disk cleaning method based on disk analysis provided in an embodiment of the present application;

[0045] Figure 2 This is the structural intention of a disk cleaning device based on disk analysis provided in an embodiment of the present application;

[0046] Figure 3 This is the structural intention of a disk cleaning device based on disk analysis provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] The present application is described in detail below, and examples of embodiments of the present application are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar components or components having the same or similar functions. In addition, if the detailed description of the known technology is not necessary for the features of the present application shown, it will be omitted. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.

[0048] The inventor of this application found that the existing disk capacity analysis tools generally do not have output results or sorting, making it difficult to quickly locate large files, and the existing technology cannot link with the monitoring platform after the disk space usage rate exceeds the limit alarm.

[0049] There are two types:

[0050] Method 1: Enter each subdirectory level by level and sort the file sizes using "ll-S|grep'^[^d]'".

[0051] Method 2: Use find to find all files whose size exceeds each threshold (such as 100M), that is, find-size+100M.

[0052] For method 1, it takes too long to enter each subdirectory step by step. For method 2, the threshold of file size is difficult to determine. In current practice, method 2 is almost ineffective for systems with a large number of fragmented images and other file directories. In addition, when cleaning the file system, the system administrator needs to manually write a cleaning script, which is very time-consuming and prone to errors.

[0053] In view of at least one of the above problems, the present application provides a disk cleaning method based on disk analysis, please refer to Figure 1 , Figure 1 This is the process intention of a disk cleaning method based on disk analysis provided by an embodiment of the present application. Figure 1 As shown, the method comprises the steps of:

[0054] Step 101: When it is detected that the storage capacity of the server disk is insufficient, the disk capacity analysis program package is used to detect whether the server disk has a target file system space other than the alarm file system, and the target file system space is used to store the execution analysis result of the disk capacity analysis program package.

[0055] Step 102: When it is detected that the server's disk has target file system space outside the alarm file system, an analysis instruction is sent to the server, so that the server performs disk analysis according to the disk capacity analysis program package and generates a disk analysis report.

[0056] Step 103: Receive the disk analysis report and present the disk analysis report to the administrator so that the administrator can input a disk cleanup instruction.

[0057] Step 104: Receive a disk cleanup instruction input by an administrator.

[0058] Step 105: Clean up the capacity of the server's disk according to the disk cleanup instruction.

[0059] The method of the embodiment of the present application can, when it is detected that the storage capacity of the server's disk is insufficient, detect whether the server's disk has target file system space outside the alarm file system according to the disk capacity analysis program package, and then when it is detected that the server's disk has target file system space outside the alarm file system, send an analysis instruction to the server, so that the server performs disk analysis and generates a disk analysis report according to the disk capacity analysis program package, and then receives the disk analysis report and displays the disk analysis report to the administrator, so that the administrator inputs a disk cleanup instruction. On the other hand, the method of the embodiment of the present application can also receive the disk cleanup instruction input by the administrator, so as to perform capacity cleanup on the server's disk according to the disk cleanup instruction.

[0060] It should be noted that the purpose of detecting whether the target file system space other than the alarm file system exists on the server disk is to detect whether the disk has available system space to determine whether the process of the method can continue. When there is no available system space, the process of the method can be terminated. Taking the Windows system as an example, if the Windows system has only one C drive, and the C drive is the alarm file system, it is impossible to detect other available system space other than the C drive of the server, and the process of the method will be terminated.

[0061] In an embodiment of the present application, as an optional implementation, before step 101: detecting whether the server's disk has target file system space outside the alarm file system according to the disk capacity analysis program package, the method of the embodiment of the present application also includes: determining whether there is a disk capacity analysis program package in the server, and if the disk capacity analysis program package does not exist, sending a download instruction to the server, so that the server downloads the disk capacity analysis program package according to the download instruction.

[0062] In the first aspect of the present application, as an optional implementation, after step 103: receiving the disk analysis report and displaying the disk analysis report to the administrator, and before step 104: receiving the disk cleanup instruction input by the administrator, the method of the embodiment of the present application includes the steps of: traversing the directory items and the files of each directory item in all file systems of the scanning server, and accumulating the capacity of each directory item and the capacity of the file to obtain the capacity statistics of each file system; determining a recommendation list based on the capacity statistics of each file system, so that the administrator determines the target file system space based on the recommendation list.

[0063] In an embodiment of the present application, as an optional implementation, the step of: determining a recommendation list based on the capacity statistics results of each file system so that the administrator determines the target file system space based on the recommendation list, includes: determining at least two pre-selected file systems based on the capacity statistics results of each file system; generating a recommendation list based on the capacity statistics results of each pre-selected file system; and displaying the recommendation list so that the administrator determines the target file system space based on the recommendation list.

[0064] In the embodiment of the present application, as an optional implementation, after step 105: cleaning up the capacity of the disk of the server according to the disk cleaning instruction, the method of the embodiment of the present application further includes:

[0065] Generate a disk cleanup report, wherein the disk cleanup report at least includes a data transfer path and the size of the capacity released during the disk cleanup process.

[0066] In the embodiment of the present application, as an optional implementation, the method of the embodiment of the present application also includes: when it is detected that the server's disk does not have the target file system space outside the alarm file system, an alarm prompt is generated and displayed.

[0067] See also Figure 2 , Figure 2 This is the structural intention of a disk cleaning device based on disk analysis provided by an embodiment of the present application. Figure 2 As shown, the disk cleaning device based on disk analysis provided in the embodiment of the present application includes:

[0068] The first detection module 201 is used to detect that the storage capacity of the disk of the server is insufficiently released;

[0069] The second detection module 202 is used to detect whether the server's disk has a target file system space other than the alarm file system when the first detection module detects that the storage capacity of the server's disk is insufficient, according to the disk capacity analysis program package, and the target file system space is used to store the execution analysis result of the disk capacity analysis program package;

[0070] The first sending module 203 is used to send an analysis instruction to the server when the second detection module detects that the server's disk has a target file system space outside the alarm file system, so that the server performs disk analysis according to the disk capacity analysis program package and generates a disk analysis report.

[0071] The first receiving module 204 is used to receive the disk analysis report and display the disk analysis report to the administrator so that the administrator can input a disk cleaning instruction.

[0072] The second receiving module 205 is used to receive a disk cleaning instruction input by a management staff.

[0073] The cleaning module 206 is used to clean up the capacity of the server's disk according to the disk cleaning instruction.

[0074] The device of the embodiment of the present application can, when it detects that the storage capacity of the server's disk is insufficient, detect whether the server's disk has target file system space outside the alarm file system according to the disk capacity analysis program package, and then when it detects that the server's disk has target file system space outside the alarm file system, send an analysis instruction to the server, so that the server performs disk analysis and generates a disk analysis report according to the disk capacity analysis program package, and then receives the disk analysis report and displays the disk analysis report to the administrator, so that the administrator inputs a disk cleanup instruction. On the other hand, the device of the second aspect of the present application can also receive the disk cleanup instruction input by the administrator, so as to perform capacity cleanup on the server's disk according to the disk cleanup instruction.

[0075] In the embodiment of the present application, as an optional implementation, the second detection module 202 includes:

[0076] A judgment submodule is used to judge whether there is a disk capacity analysis program package in the server;

[0077] The sending submodule is used to send a download instruction to the server when the judging submodule judges that the disk capacity analysis program package does not exist in the server, so that the server downloads the disk capacity analysis program package according to the download instruction.

[0078] In the second aspect of the present application, as an optional implementation, the device of the embodiment of the present application also includes a traversal scanning module and a determination module.

[0079] The traversal scanning module is used to traverse the directory items and the files in each directory item in all file systems of the scanning server, and accumulate the capacity of each directory item and the capacity of the file to obtain the capacity statistics of each file system;

[0080] The determination module is used to determine a recommendation list according to the capacity statistics result of each file system, so that the administrator can determine the target file system space according to the recommendation list.

[0081] In an embodiment of the present application, as an optional implementation, the determination module executes a recommendation list based on the capacity statistics results of each file system, so that the administrator determines the target file system space based on the recommendation list. The specific method is: determining at least two pre-selected file systems based on the capacity statistics results of each file system; generating a recommendation list based on the capacity statistics results of each pre-selected file system; and displaying the recommendation list so that the administrator determines the target file system space based on the recommendation list.

[0082] In an embodiment of the present application, as an optional implementation, the device of the embodiment of the present application also includes a first generation module, which is used to generate a disk cleanup report, wherein the disk cleanup report at least includes a data transfer path and the size of the capacity released during the disk cleanup process.

[0083] In an embodiment of the present application, as an optional implementation, the device of the embodiment of the present application also includes a second generation module, and the second generation module is used to generate and display an alarm prompt when it is detected that the server's disk does not have a target file system space outside the alarm file system.

[0084] See also Figure 3 , Figure 3 FIG. 1 is a schematic diagram of a disk cleaning device based on disk usage analysis provided by an embodiment of the present application. Figure 3 As shown, the device of the embodiment of the present application includes:

[0085] Processor 301; and

[0086] The memory 302 is configured to store machine-readable instructions. When the instructions are executed by the processor, the processor executes the disk cleaning method based on disk analysis of the first embodiment of the present application.

[0087] The device of the embodiment of the present application can, when it detects that the storage capacity of the server's disk is insufficient, detect whether the server's disk has target file system space outside the alarm file system according to the disk capacity analysis program package, and then, when it detects that the server's disk has target file system space outside the alarm file system, send an analysis instruction to the server, so that the server performs disk analysis and generates a disk analysis report according to the disk capacity analysis program package, and then receives the disk analysis report and displays the disk analysis report to the administrator, so that the administrator inputs a disk cleanup instruction. On the other hand, the device of the embodiment of the present application can also receive the disk cleanup instruction input by the administrator, so as to perform capacity cleanup on the server's disk according to the disk cleanup instruction.

[0088] An embodiment of the present application also provides a storage medium, which stores a computer program, and the computer program is executed by a processor to implement the disk cleaning method based on disk analysis in the first embodiment of the present application.

[0089] The storage medium of the embodiment of the present application can, when it detects that the storage capacity of the server's disk is insufficient, detect whether the server's disk has target file system space outside the alarm file system according to the disk capacity analysis program package, and then when it is detected that the server's disk has target file system space outside the alarm file system, send an analysis instruction to the server, so that the server performs disk analysis and generates a disk analysis report according to the disk capacity analysis program package, and then receives the disk analysis report and displays the disk analysis report to the administrator, so that the administrator inputs a disk cleanup instruction. On the other hand, the storage medium of the embodiment of the present application can also receive the disk cleanup instruction input by the administrator, so as to perform capacity cleanup on the server's disk according to the disk cleanup instruction.

[0090] Compared with the prior art, the embodiment of the present application can analyze file systems with high occupancy rates through automatic perception when an event occurs, sort and output large files, and can be associated with the monitoring platform for automatic processing to reduce the difficulty of manual analysis.

[0091] An embodiment of the present application discloses a computer product, which stores a computer program. The computer program is used to execute a disk cleaning method based on disk analysis provided in the above embodiment of the present application.

[0092] The computer product of the embodiment of the present application can, when it detects that the storage capacity of the server's disk is insufficient, detect whether the server's disk has target file system space outside the alarm file system based on the disk capacity analysis program package, and then when it detects that the server's disk has target file system space outside the alarm file system, send an analysis instruction to the server, so that the server performs disk analysis and generates a disk analysis report according to the disk capacity analysis program package, and then receives the disk analysis report and displays the disk analysis report to the administrator, so that the administrator inputs a disk cleanup instruction. On the other hand, the computer product of the embodiment of the present application can also receive the disk cleanup instruction input by the administrator, so as to perform capacity cleanup on the server's disk according to the disk cleanup instruction.

[0093] In several embodiments disclosed in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a module, a program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0094] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0095] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a positioning base station, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program code.

[0096] The above are only embodiments of the present application and are not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0097] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0098] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A disk cleaning method based on disk analysis, characterized in that: The method comprises: When it is detected that the storage capacity of the server disk is insufficient, the disk capacity analysis program package is used to detect whether the server disk has a target file system space other than the alarm file system, wherein the target file system space is used to store the execution analysis result of the disk capacity analysis program package; When it is detected that the disk of the server has a target file system space outside the alarm file system, an analysis instruction is sent to the server, so that the server performs disk analysis according to the disk capacity analysis program package and generates a disk analysis report; receiving the disk analysis report and presenting the disk analysis report to a manager so that the manager can input a disk cleaning instruction; Receiving the disk cleaning instruction input by the administrator; Cleaning up the capacity of the disk of the server according to the disk cleaning instruction; Wherein, after receiving the disk analysis report and presenting the disk analysis report to the administrator and before receiving the disk cleaning instruction input by the administrator, the method includes: Traversing and scanning the directory entries in all the file systems of the server and the files of each of the directory entries, and accumulating the capacity of each of the directory entries and the capacity of the files to obtain the capacity statistics result of each of the file systems; A recommendation list is determined according to the capacity statistics result of each file system, so that the administrator determines the target file system space according to the recommendation list.

2. The method according to claim 1, characterized in that Before detecting whether the disk of the server has target file system space outside the alarm file system according to the disk capacity analysis package, the method further includes: It is determined whether the disk capacity analysis program package exists in the server. If the disk capacity analysis program package does not exist, a download instruction is sent to the server, so that the server downloads the disk capacity analysis program package according to the download instruction.

3. The method according to claim 1, characterized in that The step of determining a recommendation list according to the capacity statistics result of each file system so that the administrator determines the target file system space according to the recommendation list includes: Determining at least two pre-selected file systems according to the capacity statistics result of each of the file systems; Generating the recommendation list according to the capacity statistics result of each of the pre-selected file systems; The recommendation list is displayed so that the administrator determines the target file system space according to the recommendation list.

4. The method according to claim 1, characterized in that After performing capacity cleaning on the disk of the server according to the disk cleaning instruction, the method further includes: Generate a disk cleanup report, wherein the disk cleanup report at least includes a data transfer path and the size of the capacity released during the disk cleanup process.

5. The method according to claim 1, characterized in that The method further comprises: When it is detected that the target file system space other than the alarm file system does not exist on the disk of the server, an alarm prompt is generated and displayed.

6. A disk cleaning device based on disk usage analysis, characterized in that: The device comprises: A first detection module is used to detect that the storage capacity of the disk of the server is insufficiently released; A second detection module is used for, when the first detection module detects that the storage capacity of the server disk is insufficient, detecting whether the server disk has a target file system space other than the alarm file system according to the disk capacity analysis program package, wherein the target file system space is used to store the execution analysis result of the disk capacity analysis program package; A first sending module, configured to send an analysis instruction to the server when the second detection module detects that the disk of the server has a target file system space outside the alarm file system, so that the server performs disk analysis according to the disk capacity analysis program package and generates a disk analysis report; A first receiving module, configured to receive the disk analysis report and present the disk analysis report to a manager, so that the manager can input a disk cleaning instruction; A second receiving module, used for receiving the disk cleaning instruction input by the administrator; A cleaning module, used to clean up the capacity of the disk of the server according to the disk cleaning instruction; Wherein, after receiving the disk analysis report and presenting the disk analysis report to the administrator and before receiving the disk cleaning instruction input by the administrator, the method includes: Traversing and scanning the directory entries in all the file systems of the server and the files of each of the directory entries, and accumulating the capacity of each of the directory entries and the capacity of the files to obtain the capacity statistics result of each of the file systems; A recommendation list is determined according to the capacity statistics result of each file system, so that the administrator determines the target file system space according to the recommendation list.

7. The device according to claim 6, characterized in that The second detection module includes: A judging submodule, used for judging whether the disk capacity analysis program package exists in the server; The sending submodule is used for sending a download instruction to the server when the judging submodule judges that the disk capacity analysis program package does not exist in the server, so that the server downloads the disk capacity analysis program package according to the download instruction.

8. A disk cleaning device based on disk usage analysis, characterized in that: The device comprises: Processor; and A memory configured to store machine-readable instructions, which, when executed by the processor, enable the processor to execute the disk cleaning method based on disk analysis as described in any one of claims 1-5.

9. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program is executed by a processor to implement the disk cleaning method based on disk analysis as described in any one of claims 1 to 5.