CN112083884A - Disk early warning method and device based on bastion machine - Google Patents
Disk early warning method and device based on bastion machine Download PDFInfo
- Publication number
- CN112083884A CN112083884A CN202010936322.2A CN202010936322A CN112083884A CN 112083884 A CN112083884 A CN 112083884A CN 202010936322 A CN202010936322 A CN 202010936322A CN 112083884 A CN112083884 A CN 112083884A
- Authority
- CN
- China
- Prior art keywords
- disk
- maintenance data
- early warning
- transferred
- fixed directory
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000012423 maintenance Methods 0.000 claims abstract description 111
- 238000004140 cleaning Methods 0.000 claims abstract description 30
- 238000012546 transfer Methods 0.000 claims abstract description 27
- 230000001960 triggered effect Effects 0.000 claims abstract description 12
- 230000015654 memory Effects 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 14
- 238000012545 processing Methods 0.000 abstract description 13
- 230000005291 magnetic effect Effects 0.000 description 9
- 238000007726 management method Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000005192 partition Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000011112 process operation Methods 0.000 description 2
- 238000012550 audit Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000003936 working memory Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
- G06F3/0605—Improving or facilitating administration, e.g. storage management by facilitating the interaction with a user or administrator
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1464—Management of the backup or restore process for networked environments
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0644—Management of space entities, e.g. partitions, extents, pools
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application aims to provide a disk early warning scheme based on a bastion machine. According to the scheme, an actual use value of a disk is obtained, a disk early warning preset value is read, and whether disk early warning is triggered or not is judged by comparing the actual use value of the disk with the disk early warning preset value; if the disk early warning is triggered, judging whether the operation and maintenance data needs to be transferred or not according to the transfer cleaning setting information; if the operation and maintenance data need to be transferred and stored, transferring the operation and maintenance data of the disk fixed directory to a backup server, and cleaning the operation and maintenance data of the disk fixed directory; if the operation and maintenance data do not need to be transferred and stored, the operation and maintenance data of the disk fixed directory are cleaned; and finally, sending disk early warning prompt information to a user according to the early warning report setting information. The method is applied to the operation and maintenance management system, the disk early warning prompt is realized through the predictability parameter setting method, the operation and maintenance data processing is convenient for a user, the system load hidden danger caused by the disk utilization rate is reduced, and the stable operation of the system is rapidly ensured.
Description
Technical Field
The application relates to the technical field of information, in particular to a disk early warning technology based on a bastion machine.
Background
With the advancement of the national information industry, information security is increasingly receiving attention from governments and enterprises. After the construction of various IT infrastructures is completed, the operation and maintenance work of IT equipment becomes more and more complicated, and the operation and maintenance management system is produced in the situation. The operation and maintenance management system is used as an intermediate layer between a user and target equipment, and needs to complete agent operation and maintenance processes of various protocols and realize related control functions, wherein important modules are disk processing and operation and maintenance video data migration. The existing disk processing scheme generally performs certain information prompt on a user by calculating the utilization rate of a disk, informs the user of the current state of the disk, and enables the user to perform corresponding processing.
The current disk pre-warning is mainly based on the above scheme, and although some basic functions can be realized by using the scheme, the scheme has some disadvantages: (1) when the utilization rate of the magnetic disk reaches an early warning value for warning, a user cannot process operation and maintenance data in time, the utilization rate of the magnetic disk is continuously increased, system load hidden danger is caused, and operation and maintenance operation cannot be normally implemented; (2) the setting of the utilization rate of the disk is single, the alarm modes are few, the information acquisition conditions are harsh, the method is not suitable for various information acquisition methods, and the user cannot perform corresponding processing in time.
Disclosure of Invention
An object of the application is to provide a disk early warning method and device based on a bastion machine.
According to one aspect of the application, a disk early warning method based on a bastion machine is provided, wherein the method comprises the following steps:
acquiring an actual use value of a disk, reading a disk early warning preset value, and judging whether to trigger disk early warning or not by comparing the actual use value of the disk with the disk early warning preset value;
if the disk early warning is triggered, judging whether the operation and maintenance data needs to be transferred or not according to the transfer cleaning setting information;
if the operation and maintenance data need to be transferred and stored, transferring the operation and maintenance data of the disk fixed directory to a backup server, and cleaning the operation and maintenance data of the disk fixed directory;
if the operation and maintenance data do not need to be transferred and stored, the operation and maintenance data of the disk fixed directory are cleaned;
and sending disk early warning prompt information to a user according to the early warning report setting information.
According to another aspect of the application, the disk early warning device based on the bastion machine is further provided, wherein the device comprises:
the early warning triggering module is used for acquiring the actual use value of the disk, reading the early warning preset value of the disk, and judging whether to trigger the disk early warning or not by comparing the actual use value of the disk with the early warning preset value of the disk;
the unloading judgment module is used for judging whether the operation and maintenance data needs to be unloaded according to unloading cleaning setting information if the disk early warning is triggered;
the transfer module is used for transferring the operation and maintenance data of the disk fixed directory to a backup server and cleaning the operation and maintenance data of the disk fixed directory if the operation and maintenance data need to be transferred and stored;
the non-transfer module is used for cleaning the operation and maintenance data of the disk fixed directory if the operation and maintenance data do not need to be transferred and stored;
and the early warning report module is used for sending disk early warning prompt information to a user according to the early warning report setting information.
According to yet another aspect of the application, there is also provided a computing device, wherein the device comprises a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein the computer program instructions, when executed by the processor, trigger the device to perform the bastion-based disk warning method.
According to yet another aspect of the application, a computer readable medium is also provided, on which computer program instructions are stored, the computer readable instructions being executable by a processor to implement the bastion-based disk warning method.
According to the scheme provided by the application, the actual use value of the disk is obtained firstly, the early warning preset value of the disk is read, and whether the early warning of the disk is triggered or not is judged by comparing the actual use value of the disk with the early warning preset value of the disk; if the disk early warning is triggered, judging whether the operation and maintenance data needs to be transferred or not according to the transfer cleaning setting information; if the operation and maintenance data need to be transferred and stored, transferring the operation and maintenance data of the disk fixed directory to a backup server, and cleaning the operation and maintenance data of the disk fixed directory; if the operation and maintenance data do not need to be transferred and stored, the operation and maintenance data of the disk fixed directory are cleaned; and finally, sending disk early warning prompt information to a user according to the early warning report setting information. The embodiment of the application is applied to an operation and maintenance management system, the disk early warning prompt is realized through a predictability parameter setting method, a user can conveniently process operation and maintenance data, the system load hidden danger caused by the disk utilization rate is reduced, the follow-up maintenance work is facilitated, and the stable operation of the system is rapidly ensured.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a disk early warning method based on a bastion machine according to an embodiment of the present application;
FIG. 2 is a flow chart of a disk pre-warning based on a bastion machine according to an embodiment of the present application;
fig. 3 is a schematic diagram of a bastion machine-based disk pre-warning device according to an embodiment of the application.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present application is described in further detail below with reference to the attached figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, which include both non-transitory and non-transitory, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, program means, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
The embodiment of the application provides a disk early warning method based on a bastion machine, wherein the bastion machine integrates multiple functions of operation and maintenance identity identification, account management and control, system operation audit and the like. The operation and maintenance management system based on the bastion machine, the predictability parameters and the timeliness processing option setting method are adopted, conventional alarming for the utilization rate of a disk can be achieved, a user can obtain appropriate information in a diversified mode, meanwhile, operation and maintenance data of the disk are processed in a predictable and timely mode, the operation and maintenance data are saved or relatively non-important data are cleared according to rules, system load hidden dangers caused by the utilization rate of the disk are reduced, follow-up maintenance work is facilitated, and stable operation of the system is guaranteed quickly.
In a practical scenario, the device performing the method may be a user equipment, a network device, or a device formed by integrating the user equipment and the network device through a network. The user equipment includes, but is not limited to, a terminal device such as a smartphone, a tablet computer, a Personal Computer (PC), and the like, and the network device includes, but is not limited to, a network host, a single network server, multiple network server sets, or a cloud computing-based computer set. Here, the Cloud is made up of a large number of hosts or web servers based on Cloud Computing (Cloud Computing), which is a type of distributed Computing, one virtual computer consisting of a collection of loosely coupled computers.
Fig. 1 is a flowchart of a bastion-based disk warning method according to an embodiment of the present application, and the method includes step S101, step S102, step S103, step S104, and step S105.
Step S101, acquiring an actual use value of a disk, reading a disk early warning preset value, and judging whether to trigger disk early warning or not by comparing the actual use value of the disk with the disk early warning preset value.
For example, a disk early warning task may be added to a timing task to be periodically executed according to a normal processing manner, as shown in fig. 2, when the disk early warning task starts, the usage rate data of a disk or a data partition is calculated and obtained first, that is, the actual usage value of the disk is obtained first; and then, comparing the disk use percentage or used data with the disk early warning preset value to judge whether to trigger disk early warning.
In some embodiments, the data format adopted by the preset disk warning value includes at least any one of the following: percentage format; specific number format. By providing a plurality of data formats, the user can conveniently operate and select when the disk early warning preset value is set.
And step S102, if the disk early warning is triggered, judging whether the operation and maintenance data needs to be transferred according to the transfer cleaning setting information.
For example, as shown in fig. 2, after triggering the disk warning, it is first determined whether the operation and maintenance data needs to be transferred. Specifically, whether the unloading is needed or not is judged according to the unloading clearing setting information set by the user, and the user can pre-set the operation and maintenance data to be unloaded or not to be unloaded under the condition that the disk early warning is triggered.
Step S103, if the operation and maintenance data need to be transferred and stored, transferring the operation and maintenance data of the disk fixed directory to a backup server, and cleaning the operation and maintenance data of the disk fixed directory.
For example, an optional mechanism may be provided for the backup server, facilitating flexible setup by the user; the user may also be provided with dump clearing settings, which may set the dump clearing data size (e.g., 1-5G).
In some embodiments, the step S103 includes: and if the operation and maintenance data need to be transferred and stored, transferring the operation and maintenance data of the disk fixed directory to a backup server by adopting an FTP automatic transfer mode, wherein the backup server adopts an FTP server. For example, an FTP automatic transfer mode may be adopted, the operation and maintenance data of the fixed directory is retrieved and calculated in a year, month and day format according to a fixed size, and is compressed according to a policy from far to near in a time sequence, and then uploaded to the FTP server, and after the uploading is completed, the FTP server returns a success or failure result.
In some embodiments, the step S103 includes: if the operation and maintenance data need to be transferred and stored, transferring the operation and maintenance data of the disk fixed directory to a backup server, and receiving a result of successful transfer and storage or failure transfer and storage returned by the backup server; and if the unloading is successful, cleaning the operation and maintenance data of the disk fixed directory. For example, as shown in fig. 2, if the unloading is required and the unloading is successful, the fixed size data can be cleaned directly.
In some embodiments, the step S103 includes: if the operation and maintenance data need to be transferred and stored, transferring the operation and maintenance data of the disk fixed directory to a backup server, and receiving a result of successful transfer and storage or failure transfer and storage returned by the backup server; and if the unloading fails, judging whether the operation and maintenance data of the disk fixed directory is forcibly cleaned according to the unloading failure setting information.
For example, the reason for the failure of the dump may be that the backup server is not available or may be affected by network performance; as shown in fig. 2, if the unloading is required but the unloading fails, whether to perform forced cleaning may be determined according to the unloading failure setting information preset by the user. For example, a data unloading failure forced cleaning switch can be provided, so that a user can select whether to perform forced cleaning under the condition of unloading failure, and the user can perform predictive setting according to the system operation and system data priority.
And step S104, if the operation and maintenance data do not need to be transferred, cleaning the operation and maintenance data of the disk fixed directory.
For example, as shown in fig. 2, if the unloading is not required, the fixed-size data can be cleaned up directly.
And step S105, sending disk early warning prompt information to a user according to the early warning report setting information.
For example, after data processing is completed, the disk warning prompt information may be organized according to data processing conditions. And sending disk early warning prompt information to the user according to the early warning report setting information preset by the user.
In some embodiments, the manner of sending the disk warning prompt message to the user includes at least any one of the following: sending disk early warning prompt information to a user through a mail; sending a disk early warning prompt message to a user through a short message; and sending disk early warning prompt information to a user through a system log (syslog).
In some embodiments, the alert report setting information includes time interval setting information for sending disk alert notice information to a user. For example, due to the high triggering frequency of the disk warning task, if the disk warning prompt information is frequently sent to the user, the situation of excessive information sending and congestion may be caused; the information can be set according to the time interval, the disk early warning prompt information can be regularly sent, and user experience is improved through humanized interaction.
Fig. 3 is a schematic diagram of a bastion-based disk pre-warning device according to an embodiment of the present application, where the disk pre-warning device includes a pre-warning trigger module 301, a dump determination module 302, a dump module 303, a non-dump module 304, and a pre-warning report module 305.
The early warning triggering module 301 obtains an actual usage value of a disk, reads a preset early warning value of the disk, and judges whether to trigger disk early warning by comparing the actual usage value of the disk with the preset early warning value of the disk.
For example, a disk early warning task may be added to a timing task to be periodically executed according to a normal processing manner, as shown in fig. 2, when the disk early warning task starts, the usage rate data of a disk or a data partition is calculated and obtained first, that is, the actual usage value of the disk is obtained first; and then, comparing the disk use percentage or used data with the disk early warning preset value to judge whether to trigger disk early warning.
In some embodiments, the data format adopted by the preset disk warning value includes at least any one of the following: percentage format; specific number format. By providing a plurality of data formats, the user can conveniently operate and select when the disk early warning preset value is set.
And if the disk early warning is triggered, the unloading judgment module 302 judges whether the operation and maintenance data needs to be unloaded according to the unloading cleaning setting information.
For example, as shown in fig. 2, after triggering the disk warning, it is first determined whether the operation and maintenance data needs to be transferred. Specifically, whether the unloading is needed or not is judged according to the unloading clearing setting information set by the user, and the user can pre-set the operation and maintenance data to be unloaded or not to be unloaded under the condition that the disk early warning is triggered.
And the unloading module 303 unloads the operation and maintenance data of the disk fixed directory to the backup server if the operation and maintenance data need to be unloaded, and cleans up the operation and maintenance data of the disk fixed directory.
For example, an optional mechanism may be provided for the backup server, facilitating flexible setup by the user; the user may also be provided with dump clearing settings, which may set the dump clearing data size (e.g., 1-5G).
In some embodiments, the unloading module 303 is configured to: and if the operation and maintenance data need to be transferred and stored, transferring the operation and maintenance data of the disk fixed directory to a backup server by adopting an FTP automatic transfer mode, wherein the backup server adopts an FTP server. For example, an FTP automatic transfer mode may be adopted, the operation and maintenance data of the fixed directory is retrieved and calculated in a year, month and day format according to a fixed size, and is compressed according to a policy from far to near in a time sequence, and then uploaded to the FTP server, and after the uploading is completed, the FTP server returns a success or failure result.
In some embodiments, the unloading module 303 is configured to: if the operation and maintenance data need to be transferred and stored, transferring the operation and maintenance data of the disk fixed directory to a backup server, and receiving a result of successful transfer and storage or failure transfer and storage returned by the backup server; and if the unloading is successful, cleaning the operation and maintenance data of the disk fixed directory. For example, as shown in fig. 2, if the unloading is required and the unloading is successful, the fixed size data can be cleaned directly.
In some embodiments, the unloading module 303 is configured to: if the operation and maintenance data need to be transferred and stored, transferring the operation and maintenance data of the disk fixed directory to a backup server, and receiving a result of successful transfer and storage or failure transfer and storage returned by the backup server; and if the unloading fails, judging whether the operation and maintenance data of the disk fixed directory is forcibly cleaned according to the unloading failure setting information.
For example, the reason for the failure of the dump may be that the backup server is not available or may be affected by network performance; as shown in fig. 2, if the unloading is required but the unloading fails, whether to perform forced cleaning may be determined according to the unloading failure setting information preset by the user. For example, a data unloading failure forced cleaning switch can be provided, so that a user can select whether to perform forced cleaning under the condition of unloading failure, and the user can perform predictive setting according to the system operation and system data priority.
And the non-transfer module 304 is used for cleaning the operation and maintenance data of the disk fixed directory if the operation and maintenance data do not need to be transferred and stored.
For example, as shown in fig. 2, if the unloading is not required, the fixed-size data can be cleaned up directly.
And the early warning report module 305 sends disk early warning prompt information to the user according to the early warning report setting information.
For example, after data processing is completed, the disk warning prompt information may be organized according to data processing conditions. And sending disk early warning prompt information to the user according to the early warning report setting information preset by the user.
In some embodiments, the manner of sending the disk warning prompt message to the user includes at least any one of the following: sending disk early warning prompt information to a user through a mail; sending a disk early warning prompt message to a user through a short message; and sending disk early warning prompt information to a user through a system log (syslog).
In some embodiments, the alert report setting information includes time interval setting information for sending disk alert notice information to a user. For example, due to the high triggering frequency of the disk warning task, if the disk warning prompt information is frequently sent to the user, the situation of excessive information sending and congestion may be caused; the information can be set according to the time interval, the disk early warning prompt information can be regularly sent, and user experience is improved through humanized interaction.
In summary, the embodiment of the application is applied to the operation and maintenance management system, and the disk early warning prompt is realized through the predictability parameter setting method, so that the operation and maintenance data processing is facilitated for a user, and the applicability, the practicability, the safety and the flexibility of the operation and maintenance management system are improved. According to the embodiment of the application, the use condition of the magnetic disk can be acquired in a diversified mode, the later maintenance of the high magnetic disk utilization rate equipment can be smoothly realized, the stability of the automatic operation of the operation and maintenance process of the equipment can be improved, the workload of maintenance of the operation and maintenance management system is reduced, and the follow-up maintenance work is facilitated.
In addition, some of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application through the operation of the computer. Program instructions which invoke the methods of the present application may be stored on a fixed or removable recording medium and/or transmitted via a data stream on a broadcast or other signal-bearing medium and/or stored within a working memory of a computer device operating in accordance with the program instructions. Herein, some embodiments of the present application provide a computing device comprising a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein the computer program instructions, when executed by the processor, trigger the device to perform the methods and/or aspects of the embodiments of the present application as described above.
Furthermore, some embodiments of the present application also provide a computer readable medium, on which computer program instructions are stored, the computer readable instructions being executable by a processor to implement the methods and/or aspects of the foregoing embodiments of the present application.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In some embodiments, the software programs of the present application may be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Claims (10)
1. A disk early warning method based on a bastion machine is disclosed, wherein the method comprises the following steps:
acquiring an actual use value of a disk, reading a disk early warning preset value, and judging whether to trigger disk early warning or not by comparing the actual use value of the disk with the disk early warning preset value;
if the disk early warning is triggered, judging whether the operation and maintenance data needs to be transferred or not according to the transfer cleaning setting information;
if the operation and maintenance data need to be transferred and stored, transferring the operation and maintenance data of the disk fixed directory to a backup server, and cleaning the operation and maintenance data of the disk fixed directory;
if the operation and maintenance data do not need to be transferred and stored, the operation and maintenance data of the disk fixed directory are cleaned;
and sending disk early warning prompt information to a user according to the early warning report setting information.
2. The method of claim 1, wherein the preset disk warning value is in a data format comprising at least one of:
percentage format;
specific number format.
3. The method of claim 1, wherein the unloading the operation and maintenance data of the disk fixed directory to the backup server if the operation and maintenance data needs to be unloaded, comprises:
and if the operation and maintenance data need to be transferred and stored, transferring the operation and maintenance data of the disk fixed directory to a backup server by adopting an FTP automatic transfer mode, wherein the backup server adopts an FTP server.
4. The method as claimed in any one of claims 1 to 3, wherein, if the operation and maintenance data needs to be transferred, transferring the operation and maintenance data of the disk fixed directory to the backup server, and cleaning the operation and maintenance data of the disk fixed directory comprises:
if the operation and maintenance data need to be transferred and stored, transferring the operation and maintenance data of the disk fixed directory to a backup server, and receiving a result of successful transfer and storage or failure transfer and storage returned by the backup server;
and if the unloading is successful, cleaning the operation and maintenance data of the disk fixed directory.
5. The method as claimed in any one of claims 1 to 3, wherein, if the operation and maintenance data needs to be transferred, transferring the operation and maintenance data of the disk fixed directory to the backup server, and cleaning the operation and maintenance data of the disk fixed directory comprises:
if the operation and maintenance data need to be transferred and stored, transferring the operation and maintenance data of the disk fixed directory to a backup server, and receiving a result of successful transfer and storage or failure transfer and storage returned by the backup server;
and if the unloading fails, judging whether the operation and maintenance data of the disk fixed directory is forcibly cleaned according to the unloading failure setting information.
6. The method of claim 1, wherein the manner of sending the disk warning prompt message to the user comprises at least any one of:
sending disk early warning prompt information to a user through a mail;
sending a disk early warning prompt message to a user through a short message;
and sending disk early warning prompt information to a user through the system log.
7. The method of claim 1, wherein the alert report setting information includes time interval setting information for sending disk alert tips to a user.
8. A disk early warning device based on fort machine, wherein the device comprises:
the early warning triggering module is used for acquiring the actual use value of the disk, reading the early warning preset value of the disk, and judging whether to trigger the disk early warning or not by comparing the actual use value of the disk with the early warning preset value of the disk;
the unloading judgment module is used for judging whether the operation and maintenance data needs to be unloaded according to unloading cleaning setting information if the disk early warning is triggered;
the transfer module is used for transferring the operation and maintenance data of the disk fixed directory to a backup server and cleaning the operation and maintenance data of the disk fixed directory if the operation and maintenance data need to be transferred and stored;
the non-transfer module is used for cleaning the operation and maintenance data of the disk fixed directory if the operation and maintenance data do not need to be transferred and stored;
and the early warning report module is used for sending disk early warning prompt information to a user according to the early warning report setting information.
9. A computing device, wherein the device comprises a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein the computer program instructions, when executed by the processor, trigger the device to perform the method of any of claims 1 to 7.
10. A computer readable medium having stored thereon computer program instructions executable by a processor to implement the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010936322.2A CN112083884A (en) | 2020-09-08 | 2020-09-08 | Disk early warning method and device based on bastion machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010936322.2A CN112083884A (en) | 2020-09-08 | 2020-09-08 | Disk early warning method and device based on bastion machine |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112083884A true CN112083884A (en) | 2020-12-15 |
Family
ID=73732890
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010936322.2A Pending CN112083884A (en) | 2020-09-08 | 2020-09-08 | Disk early warning method and device based on bastion machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112083884A (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101635651A (en) * | 2009-08-31 | 2010-01-27 | 杭州华三通信技术有限公司 | Method, system and device for managing network log data |
CN101819561A (en) * | 2010-04-21 | 2010-09-01 | 中兴通讯股份有限公司 | File downloading method and system |
CN105095022A (en) * | 2015-07-31 | 2015-11-25 | 北京金山安全软件有限公司 | Data backup method and device |
CN105786399A (en) * | 2014-12-24 | 2016-07-20 | 阿里巴巴集团控股有限公司 | Data transfer method, device and system |
CN107643962A (en) * | 2017-09-27 | 2018-01-30 | 郑州云海信息技术有限公司 | A kind of backup method of data storage, device, equipment and readable storage medium storing program for executing |
CN108959017A (en) * | 2017-05-23 | 2018-12-07 | 北京视联动力国际信息技术有限公司 | A kind of super expected occupancy method for early warning of disk and device |
CN109144791A (en) * | 2018-09-30 | 2019-01-04 | 北京金山云网络技术有限公司 | Data conversion storage method, apparatus and data management server |
CN109683826A (en) * | 2018-12-26 | 2019-04-26 | 北京百度网讯科技有限公司 | Expansion method and device for distributed memory system |
CN109766218A (en) * | 2018-12-21 | 2019-05-17 | 中信百信银行股份有限公司 | Data back up method based on distributed storage |
CN110417575A (en) * | 2019-06-17 | 2019-11-05 | 平安科技(深圳)有限公司 | Alarm method, device and the computer equipment of O&M monitor supervision platform |
CN110661650A (en) * | 2019-09-05 | 2020-01-07 | 苏州浪潮智能科技有限公司 | Log management method and device, electronic equipment and storage medium |
-
2020
- 2020-09-08 CN CN202010936322.2A patent/CN112083884A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101635651A (en) * | 2009-08-31 | 2010-01-27 | 杭州华三通信技术有限公司 | Method, system and device for managing network log data |
CN101819561A (en) * | 2010-04-21 | 2010-09-01 | 中兴通讯股份有限公司 | File downloading method and system |
CN105786399A (en) * | 2014-12-24 | 2016-07-20 | 阿里巴巴集团控股有限公司 | Data transfer method, device and system |
CN105095022A (en) * | 2015-07-31 | 2015-11-25 | 北京金山安全软件有限公司 | Data backup method and device |
CN108959017A (en) * | 2017-05-23 | 2018-12-07 | 北京视联动力国际信息技术有限公司 | A kind of super expected occupancy method for early warning of disk and device |
CN107643962A (en) * | 2017-09-27 | 2018-01-30 | 郑州云海信息技术有限公司 | A kind of backup method of data storage, device, equipment and readable storage medium storing program for executing |
CN109144791A (en) * | 2018-09-30 | 2019-01-04 | 北京金山云网络技术有限公司 | Data conversion storage method, apparatus and data management server |
CN109766218A (en) * | 2018-12-21 | 2019-05-17 | 中信百信银行股份有限公司 | Data back up method based on distributed storage |
CN109683826A (en) * | 2018-12-26 | 2019-04-26 | 北京百度网讯科技有限公司 | Expansion method and device for distributed memory system |
CN110417575A (en) * | 2019-06-17 | 2019-11-05 | 平安科技(深圳)有限公司 | Alarm method, device and the computer equipment of O&M monitor supervision platform |
CN110661650A (en) * | 2019-09-05 | 2020-01-07 | 苏州浪潮智能科技有限公司 | Log management method and device, electronic equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
MARK G.SOBELL著,詹文军 等译: "Solaris技术指南", 机械工业出版社, pages: 604 - 606 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110661659B (en) | Alarm method, device and system and electronic equipment | |
US10439937B2 (en) | Service addressing in distributed environment | |
US10771306B2 (en) | Log monitoring system | |
CN106933843B (en) | Database heartbeat detection method and device | |
CN107544755B (en) | Data read-write control method and device | |
CN114003439B (en) | Data backup method, device, equipment and storage medium | |
CN111478792B (en) | Cutover information processing method, system and device | |
EP3852363A1 (en) | Device state monitoring method and apparatus | |
US7664797B1 (en) | Method and apparatus for using statistical process control within a storage management system | |
CN110543398A (en) | method and system for recording fault information | |
CN111342986A (en) | Distributed node management method and device, distributed system and storage medium | |
CN112083884A (en) | Disk early warning method and device based on bastion machine | |
CN110018986B (en) | Abnormal snapshot identification method and device | |
CN115080309A (en) | Data backup system, method, storage medium, and electronic device | |
CN113485872A (en) | Fault processing method and device and distributed storage system | |
JP2023530996A (en) | Cluster capacity reduction/expansion method and system, capacity reduction/expansion control terminal, and medium | |
CN113438250A (en) | Abnormal event processing method and equipment | |
CN115310139A (en) | File monitoring and early warning system, method, computing equipment and computer storage medium | |
JP2002312205A (en) | Saving processing method for access log information, saving processing device for the same and processing program for the same | |
CN112765129A (en) | Method and equipment for realizing database data version management | |
JP2010213143A (en) | Traffic recorder | |
CN110597603A (en) | Scheduling method and system of distributed scheduling tasks | |
CN110955556B (en) | Database recovery method and device, storage medium and database system | |
EP1932073B1 (en) | Apparatus and method for storing data | |
CN117667586A (en) | Log printing regulation and control method and device, storage medium and computer equipment |
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 |