CN110109790B - Server hard disk management method, device, equipment and computer readable storage medium - Google Patents

Server hard disk management method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN110109790B
CN110109790B CN201910404180.2A CN201910404180A CN110109790B CN 110109790 B CN110109790 B CN 110109790B CN 201910404180 A CN201910404180 A CN 201910404180A CN 110109790 B CN110109790 B CN 110109790B
Authority
CN
China
Prior art keywords
hard disk
server
server hard
information
verification request
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.)
Active
Application number
CN201910404180.2A
Other languages
Chinese (zh)
Other versions
CN110109790A (en
Inventor
冯期明
鲁东东
郭江涛
邵海涛
黄耿冬
曾可
卢道和
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WeBank Co Ltd
Original Assignee
WeBank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910404180.2A priority Critical patent/CN110109790B/en
Publication of CN110109790A publication Critical patent/CN110109790A/en
Application granted granted Critical
Publication of CN110109790B publication Critical patent/CN110109790B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2268Logging of test results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2289Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6227Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/78Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure storage of data
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Debugging And Monitoring (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the field of financial science and technology, and discloses a server hard disk management method, a device, equipment and a computer readable storage medium, wherein the method comprises the following steps: if a target server is detected to be newly added in the current management node, acquiring hard disk information of a server hard disk corresponding to the target server, and marking a first state on the server hard disk; receiving an operation verification request aiming at the server hard disk sent by a user side; verifying the operation verification request based on the hard disk information; and if the operation verification request passes the verification, returning a verification result to the user side, and modifying the first state into a second state corresponding to the operation verification request. The server hard disk management method reduces the error rate in the server hard disk life cycle management process and reduces the probability of user data leakage.

Description

Server hard disk management method, device, equipment and computer readable storage medium
Technical Field
The invention relates to the technical field of financial technology (Fintech), in particular to a server hard disk management method, device and equipment and a computer readable storage medium.
Background
With the development of computer technology, the application of computer-related technologies (big data, distributed architecture, etc.) in the financial field is becoming more and more extensive, the traditional financial industry is gradually changing to financial technology (Fintech), servers are used in large quantities, and server hard disks are easy to break down due to high read-write frequency of the server hard disks; at present, a data center mainly manages hard disks by a server manufacturer and field residents in a machine room manually, for example, the life cycle of the hard disks is managed, when the hard disks have faults, the hard disks are replaced and the fault hard disks are destroyed, errors are easily caused in the life cycle management process depending on manual registration, hard disk state marking errors are caused, and the misoperation possibly causes leakage of user data.
Disclosure of Invention
The invention mainly aims to provide a server hard disk management method, a device, equipment and a computer readable storage medium, aiming at solving the problems of high error rate and high possibility of user data leakage of the existing hard disk life cycle management process depending on manual registration.
In order to achieve the above object, the present invention provides a server hard disk management method, including the following steps:
if a target server is newly added in the current management node, acquiring the hard disk information of a server hard disk corresponding to the target server, and marking a first state on the server hard disk;
receiving an operation verification request aiming at the server hard disk sent by a user side;
verifying the operation verification request based on the hard disk information;
and if the operation verification request passes the verification, returning a verification result to the user side, and modifying the first state into a second state corresponding to the operation verification request.
Optionally, the step of acquiring the hard disk information of the server hard disk corresponding to the target server and marking the server hard disk with the first state if it is detected that a target server is newly added to the current management node includes:
if a target server is detected to be newly added in the current management node, acquiring hard disk information of a server hard disk of the target server based on a configuration management database and an acquisition instruction corresponding to the configuration type of the target server;
and marking the first state of the server hard disk.
Optionally, if it is detected that a target server is newly added to the current management node, the step of acquiring the hard disk information of the server hard disk of the target server based on the configuration management database and the acquisition instruction corresponding to the configuration type of the target server further includes:
comparing the collected hard disk information with configuration information corresponding to the server hard disk in the configuration management database to obtain a first comparison result;
and if the first comparison result meets a preset alarm condition, displaying alarm information on the management node.
Optionally, the hard disk information includes a first identity of the server hard disk, the operation verification request carries a second identity of the server hard disk, and the step of verifying the operation verification request based on the hard disk information includes:
and matching the second identity with the first identity, and if the second identity is successfully matched with the first identity, judging that the operation verification request passes the verification.
Optionally, the step of, if it is detected that a target server is newly added to the current management node, acquiring hard disk information of a server hard disk corresponding to the target server, and marking the server hard disk with a first state further includes:
displaying the server hard disk on the management node in a first preset mode, and entering the following steps: and receiving an operation verification request aiming at the server hard disk, which is sent by a user side.
Optionally, if the operation verification request passes verification, the step of returning a verification result to the user side and modifying the first state into a second state corresponding to the operation verification request further includes:
and displaying the server hard disk on the management node in a second preset mode, wherein the first preset mode is different from the second preset mode.
Optionally, the step of, if it is detected that a target server is newly added to the current management node, acquiring hard disk information of a server hard disk corresponding to the target server, and marking the server hard disk with a first state further includes:
acquiring real-time data information of the server hard disk based on a preset condition;
comparing the real-time data information with the hard disk information to obtain a second comparison result;
and outputting an audit result aiming at the server hard disk according to the second comparison result.
In addition, in order to achieve the above object, the present invention further provides a server hard disk management apparatus, including:
the first acquisition module is used for acquiring the hard disk information of a server hard disk corresponding to a target server if a target server is detected to be newly added in a current management node, and marking a first state on the server hard disk;
the receiving module is used for receiving an operation verification request aiming at the server hard disk sent by a user side;
the verification module is used for verifying the operation verification request based on the hard disk information;
and the changing module is used for returning a verification result to the user side if the operation verification request passes the verification, and changing the first state into a second state corresponding to the operation verification request.
Optionally, the first obtaining module includes:
the acquisition unit is used for acquiring hard disk information of a server hard disk of a target server based on a configuration management database and an acquisition instruction corresponding to the configuration type of the target server if a target server is detected to be newly added in a current management node;
and the marking unit is used for marking the first state of the server hard disk.
Optionally, the apparatus further comprises:
the first comparison module is used for comparing the collected hard disk information with the configuration information corresponding to the server hard disk in the configuration management database to obtain a first comparison result;
and the alarm module is used for displaying alarm information on the management node if the first comparison result meets a preset alarm condition.
Optionally, the hard disk information includes a first identity of the server hard disk, the operation verification request carries a second identity of the server hard disk, and the verification module includes:
and the matching unit is used for matching the second identity with the first identity, and if the matching is successful, judging that the operation verification request passes the verification.
Optionally, the apparatus further comprises:
and the first display module is used for displaying the server hard disk on the management node in a first preset mode.
Optionally, the apparatus further comprises:
and the second display module is used for displaying the server hard disk on the management node in a second preset mode, wherein the first preset mode is different from the second preset mode.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring real-time data information of the server hard disk based on preset conditions;
the second comparison module is used for comparing the real-time data information with the hard disk information to obtain a second comparison result;
and the output module is used for outputting the audit result aiming at the server hard disk according to the second comparison result.
In addition, the present invention also provides a server hard disk management device, including: the hard disk management system comprises a memory, a processor and a server hard disk management program which is stored on the memory and can run on the processor, wherein when the server hard disk management program is executed by the processor, the steps of the server hard disk management method are realized.
Furthermore, the present invention also provides a computer readable storage medium, on which a server hard disk management program is stored, and the server hard disk management program, when executed by a processor, implements the steps of the server hard disk management method according to any one of the above.
If a target server is detected to be newly added in a current management node, acquiring hard disk information of a server hard disk corresponding to the target server, and marking a first state on the server hard disk; receiving an operation verification request aiming at the server hard disk sent by a user side; verifying the operation verification request based on the hard disk information; if the operation verification request passes the verification, returning a verification result to the user side, and modifying the first state into a second state corresponding to the operation verification request; therefore, the automatic management of the life cycle of the server hard disk is realized, the state label corresponding to the server hard disk is updated for each operation of the server hard disk, the problems of high error rate and high probability of user data leakage caused by manual management of the life cycle of the server hard disk are solved, the error rate in the management of the life cycle of the server hard disk is reduced, and the probability of user data leakage is reduced.
Drawings
FIG. 1 is a schematic diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a server hard disk management method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a server hard disk management method according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a server hard disk management method according to a third embodiment of the present invention;
FIG. 5 is a flowchart illustrating a fourth embodiment of a server hard disk management method according to the present invention;
fig. 6 is a flowchart illustrating a fifth embodiment of a server hard disk management method according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present invention.
It should be noted that fig. 1 is a schematic structural diagram of a hardware operating environment of a server hard disk management device. The server hard disk management device of the embodiment of the invention can be a terminal device such as a PC, a portable computer and the like.
As shown in fig. 1, the server hard disk management apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001 described previously.
Those skilled in the art will appreciate that the server hard disk management device configuration shown in fig. 1 does not constitute a limitation of the server hard disk management device, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a server hard disk management program. The operating system is a program for managing and controlling hardware and software resources of the server hard disk management device, and supports the operation of the server hard disk management program and other software or programs.
In the server hard disk management apparatus shown in fig. 1, the user interface 1003 is mainly used for data communication with a user terminal; the network interface 1004 is mainly used for connecting a background server and performing data communication with the background server; and the processor 1001 may be configured to call the server hard disk management program stored in the memory 1005 and perform the following operations:
if a target server is newly added in the current management node, acquiring the hard disk information of a server hard disk corresponding to the target server, and marking a first state on the server hard disk;
receiving an operation verification request aiming at the server hard disk sent by a user side;
verifying the operation verification request based on the hard disk information;
and if the operation verification request passes the verification, returning a verification result to the user side, and modifying the first state into a second state corresponding to the operation verification request.
Further, the step of acquiring the hard disk information of the server hard disk corresponding to the target server and marking the server hard disk with the first state if it is detected that the target server is newly added to the current management node includes:
if a target server is detected to be newly added in the current management node, acquiring hard disk information of a server hard disk of the target server based on a configuration management database and an acquisition instruction corresponding to the configuration type of the target server;
and marking the first state of the server hard disk.
Further, after the step of acquiring the hard disk information of the server hard disk of the target server based on the configuration management database and the acquisition instruction corresponding to the configuration type of the target server if it is detected that the target server is newly added to the current management node, the processor 1001 may be further configured to call a server hard disk management program stored in the memory 1005, and execute the following steps:
comparing the collected hard disk information with configuration information corresponding to the server hard disk in the configuration management database to obtain a first comparison result;
and if the first comparison result meets a preset alarm condition, displaying alarm information on the management node.
Further, the hard disk information includes a first identity of the server hard disk, the operation verification request carries a second identity of the server hard disk, and the step of verifying the operation verification request based on the hard disk information includes:
and matching the second identity with the first identity, and if the matching is successful, judging that the operation verification request passes the verification.
Further, after the step of detecting that a target server is newly added to the current management node, acquiring the hard disk information of the server hard disk corresponding to the target server, and marking the server hard disk with the first state, the processor 1001 may be further configured to call a server hard disk management program stored in the memory 1005, and execute the following steps:
displaying the server hard disk on the management node in a first preset mode, and entering the following steps: and receiving an operation verification request aiming at the server hard disk sent by a user side.
Further, after the step of returning the verification result to the user side and modifying the first state to the second state corresponding to the operation verification request if the operation verification request passes the verification, the processor 1001 may be further configured to call a server hard disk management program stored in the memory 1005, and execute the following steps:
and displaying the server hard disk on the management node in a second preset mode, wherein the first preset mode is different from the second preset mode.
Further, after the step of detecting that a target server is newly added to the current management node, acquiring the hard disk information of the server hard disk corresponding to the target server, and marking the server hard disk with the first state, the processor 1001 may be further configured to call a server hard disk management program stored in the memory 1005, and execute the following steps:
acquiring real-time data information of the server hard disk based on a preset condition;
comparing the real-time data information with the hard disk information to obtain a second comparison result;
and outputting an audit result aiming at the server hard disk according to the second comparison result.
Based on the above structure, the present invention provides various embodiments of the server hard disk management method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a server hard disk management method according to a first embodiment of the present invention.
While a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that shown or described herein.
The server hard disk management method comprises the following steps:
step S100, if a target server is detected to be newly added in a current management node, acquiring hard disk information of a server hard disk corresponding to the target server, and marking a first state on the server hard disk;
with the popularization of big data and distributed architecture, the application of the server is more and more extensive. The invention realizes the management of mass data through adding a high-performance target server in a financial institution and through a hard disk of the target server.
The management of computing resource hardware equipment of a data center mainly uses servers as granularity for management, but for financial institutions (such as banks, insurance, financial institutions and the like), due to the information security requirements of supervision institutions and enterprises, absolute security management and control are required to be performed on production data of all servers of the data center, so that higher requirements are provided for massive server hard disk management; at present, in a data center, server manufacturers and field residents in a machine room mainly manage server hard disks manually, for example, the life cycle of the hard disks is managed manually, when a hard disk fails, the hard disk replacement and the destruction of the failed hard disk are involved, errors are easily caused in the life cycle management process depending on manual registration, hard disk state marking errors are caused, and the misoperation possibly causes leakage of user data.
In this embodiment, if it is detected that a target server is newly added in a current management node, acquiring hard disk information of a server hard disk corresponding to the target server, and marking the server hard disk in a first state, specifically, for a target server device that is newly online in the management node, acquiring hard disk information of the server hard disk corresponding to the target server device, and marking the server hard disk in the first state, for example, marking the server hard disk "online"; the number of the server hard disks can be one or more, the first state is respectively marked on each newly added server hard disk, namely the life cycle of each server hard disk is independently managed, and the hard disk information corresponding to each server hard disk is obtained and stored; as an implementation manner, in this embodiment, based on the configuration management database, the corresponding acquisition commands are called for different types of server hard disks to acquire hard disk information, where the hard disk information includes information such as a fixed asset code of the hard disk, a slot where the hard disk is located, a model of the hard disk, a serial number of the hard disk, and an acquisition date of the hard disk information.
Step S200, receiving an operation verification request aiming at the server hard disk sent by a user side;
the server hard disk is prone to failure due to high read-write frequency, when a certain server hard disk marked with a first state in the management node fails, an operator needs to process the failed server hard disk, such as replacement and destruction, and submits a form, wherein the form can be submitted based on an operation and maintenance system, the form comprises an operation verification request for the failed server hard disk and an identification code of the failed server hard disk, and the identification code can be a serial number of the failed server hard disk.
Step S300, verifying the operation verification request based on the hard disk information;
taking the identification code of the hard disk of the fault server as the serial number of the hard disk of the fault server as an example, based on the hard disk information, verifying the operation verification request specifically includes searching the collected hard disk information respectively corresponding to the plurality of hard disks of the server, and searching whether a hard disk of the server consistent with the serial number of the hard disk of the fault server exists.
As an implementation manner, when the current management node verifies the operation verification request based on the hard disk information, the current management node may logically group the server hard disks of all servers in the node into a plurality of logical groups, and first search for a logical group corresponding to the serial number of the failed server hard disk, and then scan the server hard disk in the group that is consistent with the serial number of the failed server hard disk, thereby avoiding searching and verifying in the hard disk information of all server hard disks in the management node, and improving the verification speed.
Step S400, if the operation verification request passes the verification, returning a verification result to the user side, and modifying the first state into a second state corresponding to the operation verification request.
As an implementation manner, if a server hard disk consistent with the serial number of the failed server hard disk is found out through searching in the collected information of the plurality of server hard disks, the operation verification request indicates that an operator requests to operate the found server hard disk, it is determined that the verification is passed, and a verification result is returned to the user side to allow the user side to operate the server hard disk (i.e., the failed server hard disk), for example, replace the server hard disk, and simultaneously modify a first state (e.g., "online") of the server hard disk into a second state (e.g., "failed" or "offline") corresponding to the operation request.
It is to be understood that the operation of the operation verification request is not limited to the replacement of the fault of the server hard disk, and may also be the operation of the retirement and destruction of the server hard disk, as an implementation manner, if the operation verification request is a retirement operation verification request for the server hard disk, after the verification request passes, the state of the target server is modified to be a "retired" state corresponding to the retirement operation verification request, and the like, and the embodiment is not limited specifically herein.
As an implementation manner, in this embodiment, an offline database is generated according to collected hard disk information corresponding to a plurality of server hard disks in a current management node, where the offline database is used to provide functions of querying and screening server hard disk data, so as to facilitate uniform management of server hard disks by an operator, that is, the plurality of server hard disks are stored in the offline database, and even if a failure of a server hard disk causes that hardware information cannot be read, relevant information can be queried through the generated offline database; further, in this embodiment, a time threshold is set based on the storage duration required by the security audit, and if it is detected that the storage time of the hard disk information of a certain server hard disk exceeds the threshold, the hard disk information is automatically cleared, so that the security of the user information is protected.
Furthermore, the server hard disk management method of the embodiment activates and updates through the ITSM document, and then performs auditing through the acquisition module, and the embodiment activates a server hard disk of a new target server through a new target server and inputs the server hard disk into an offline database, and can be implemented through the CMDB for the management of going to and coming from a shelf of the server, and compared with the management through a new server hard disk, the server hard disk management method of the embodiment is easier to operate.
If a target server is newly added to a current management node, acquiring hard disk information of a server hard disk corresponding to the target server, and marking a first state of the server hard disk; receiving an operation verification request aiming at the server hard disk sent by a user side; verifying the operation verification request based on the hard disk information; if the operation verification request passes the verification, returning a verification result to the user side, and modifying the first state into a second state corresponding to the operation verification request; therefore, the automatic management of the life cycle of the server hard disk is realized, the state label corresponding to the server hard disk is updated for each operation of the server hard disk, the problems of high error rate and high user data leakage probability caused by manual management of the life cycle of the server hard disk are solved, the error rate in the management of the life cycle of the server hard disk is reduced, and the user data leakage probability is reduced.
Further, a second embodiment of the server hard disk management method of the present invention is provided.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of a server hard disk management method according to the present invention, based on the first embodiment of the server hard disk management method, in this embodiment, if it is detected that a target server is newly added to a current management node, the step of obtaining hard disk information of a server hard disk corresponding to the target server, and marking the server hard disk with a first state includes:
step S110, if a target server is detected to be newly added in a current management node, acquiring hard disk information of a server hard disk of the target server based on a configuration management database and an acquisition instruction corresponding to the configuration type of the target server;
in this embodiment, specifically, based on a CMDB (Configuration Management Database), an automatic acquisition rule is set according to a vendor type of a target server and a hard disk array condition, for example: the hard disk with the array uses a MegaCli-PDList-aALL command to acquire the corresponding hard disk information, the hard disk without the array uses a plurality of modes such as an hdparm command and the like to acquire the hard disk information of the hard disk of the server, wherein the nvme hard disk without the array uses an nvme command to acquire the hard disk information.
And step S120, marking a first state of the server hard disk.
After the server hard disk is online, the automatic management process for the life cycle of the server hard disk is started, the newly online server hard disk is marked with a first state, such as an "online" label, and the state label of the server hard disk is modified once for each subsequent operation of the server hard disk.
Further, in step S110, if it is detected that a target server is newly added to the current management node, based on the configuration management database and the acquisition instruction corresponding to the configuration type of the target server, the step of acquiring the hard disk information of the server hard disk of the target server further includes:
step S130, comparing the collected hard disk information with configuration information corresponding to the server hard disk in the configuration management database to obtain a first comparison result;
in the embodiment, the collected hard disk information of the server hard disk is compared with the configuration information of the server hard disk in the configuration management database to obtain a first comparison result; the configuration information in the configuration management database is recorded by taking a server as a unit and comprises hard disk information of the server, such as the model number of the hard disk, the serial number of the hard disk and the like, and the first comparison result can be that the acquired hard disk information of the hard disk of the server is matched with or not matched with the configuration information of the hard disk of the server in the configuration management database.
Step S140, if the first comparison result meets a preset alarm condition, displaying alarm information on the management node.
If the first comparison result meets a preset alarm condition, namely if the acquired hard disk information of the server is not matched with the configuration information of the server in the configuration management database, an alarm is triggered, and the alarm information is displayed on the management node.
In this embodiment, if a target server is newly added to a current management node, acquiring hard disk information of a server hard disk of the target server based on a configuration management database and an acquisition instruction corresponding to a configuration type of the target server; marking a first state of the server hard disk; comparing the collected hard disk information with configuration information corresponding to the server hard disk in the configuration management database to obtain a first comparison result; if the first comparison result meets a preset alarm condition, displaying alarm information on the management node; receiving an operation verification request aiming at the server hard disk sent by a user side; verifying the operation verification request based on the hard disk information; if the operation verification request passes the verification, returning a verification result to the user side, and modifying the first state into a second state corresponding to the operation verification request; the automatic management of the server hard disk is realized, the abnormality that the hard disk is lost, the hard disk is replaced by errors and the like can be found in time, the labor consumption of manual checking is avoided, and the risk of user data leakage is reduced.
Further, a third embodiment of the server hard disk management method of the present invention is provided.
Referring to fig. 4, fig. 4 is a flowchart illustrating a third embodiment of a server hard disk management method according to the present invention, where, based on the first embodiment of the server hard disk management method, in this embodiment, the hard disk information includes a first identity of the server hard disk, the operation verification request carries a second identity of the server hard disk, and step S300, based on the hard disk information, the step of verifying the operation verification request includes:
step S310, the second identity mark is matched with the first identity mark, and if the second identity mark is successfully matched with the first identity mark, the operation verification request is judged to pass verification.
In this embodiment, specifically, the identity is a serial number of a server hard disk, the operation verification request includes a serial number of the server hard disk that the operator needs to operate, the serial number may be obtained by scanning a barcode of the hard disk when the operator processes the hard disk on site, the serial number of the server hard disk that the user requests to operate is matched with the collected hard disk information, and if the hard disk information that is consistent with the serial number is found, it is determined that the operation verification request passes verification.
Further, a fourth embodiment of the server hard disk management method of the present invention is provided.
Referring to fig. 5, fig. 5 is a flowchart illustrating a fourth embodiment of a server hard disk management method according to the present invention, based on the first embodiment of the server hard disk management method, in this embodiment, if it is detected that a target server is newly added to a current management node, step S100 further includes, after the step of obtaining hard disk information of a server hard disk corresponding to the target server and marking the server hard disk with a first state:
step S101, displaying the server hard disk on the management node in a first preset manner, and proceeding to step S200, receiving an operation verification request for the server hard disk sent by a user.
In this embodiment, the plurality of server hard disks in the management node are displayed in a visual manner, and the first preset manner may be graphical display or tabular display.
Further, in step S400, if the operation verification request passes the verification, the step of returning a verification result to the user side and modifying the first state into a second state corresponding to the operation verification request further includes:
step S401, displaying the server hard disk on the management node in a second preset manner, where the first preset manner is different from the second preset manner.
In this embodiment, a first preset manner is taken as an example for graphical display, and after hard disk information of a plurality of server hard disks in a current management node is acquired, the plurality of server hard disks are displayed on the current management node in a plurality of graphic frames, each graphic frame displays a serial number of a server hard disk corresponding to the graphic frame, and a plurality of target servers having a first state (e.g., "online") all have the same graphic frame display color; as an implementation manner, if the current management node divides a plurality of server hard disks in the node into logical groups, the hard disks having the same status flag in the same logical group have the same display color, thereby facilitating an operator to quickly distinguish the plurality of hard disks.
After an operation verification request for a certain server hard disk passes, the server hard disk corresponding to the operation verification request is displayed on the management node in a second preset mode, the first preset mode is different from the second preset mode, the second preset mode can be graphical display different from the display color of the first preset mode, namely, the server hard disks in different label states are subjected to color marking distinguishing, the searching difficulty of a fault server hard disk is reduced, and when the management node performs hard disk replacement according to the position of the graphically displayed hard disk, the situation that the fault hard disk is replaced due to the fact that an operator is not skilled can be avoided.
The embodiment has the advantages that the target servers in different states are displayed in different distinguishing colors, the hard disks are visually managed, the hard disks are conveniently distinguished by operators during operation, the error rate of the hard disks during replacement and maintenance is reduced, and the possibility of user data leakage is reduced.
Further, a fifth embodiment of the server hard disk management method of the present invention is provided.
Referring to fig. 6, fig. 6 is a flowchart of a fifth embodiment of a server hard disk management method according to the present invention, and based on the first embodiment of the server hard disk management method, in this embodiment, step S100, if it is detected that a target server is newly added to a current management node, further includes, after the step of obtaining hard disk information of a server hard disk corresponding to the target server, and marking the server hard disk with a first state:
step S102, acquiring real-time data information of the server hard disk based on preset conditions;
step S103, comparing the real-time data information with the hard disk information to obtain a second comparison result;
and step S104, outputting an audit result aiming at the server hard disk according to the second comparison result.
In this embodiment, the management node may set to periodically collect real-time data information of the server hard disk according to an actual audit requirement, and compare the collected real-time data information with the hard disk information of the server hard disk when the server hard disk is online to obtain a comparison result, that is, the second comparison result; outputting a differentiation result of real-time data information of the server hard disk and hard disk information when the server hard disk is online, namely the audit result, according to a second comparison result; therefore, automatic audit of the server hard disk is achieved, errors caused by manual audit checking are avoided, and the risk that user data leakage is caused due to hard disk loss or malicious replacement caused by manual operation errors is avoided.
In addition, an embodiment of the present invention further provides a server hard disk management device, where the server hard disk management device includes:
the first acquisition module is used for acquiring the hard disk information of a server hard disk corresponding to a target server if a target server is detected to be newly added in a current management node, and marking a first state on the server hard disk;
the receiving module is used for receiving an operation verification request aiming at the server hard disk sent by a user side;
the verification module is used for verifying the operation verification request based on the hard disk information;
and the changing module is used for returning a verification result to the user side if the operation verification request passes the verification, and changing the first state into a second state corresponding to the operation verification request.
Preferably, the first obtaining module includes:
the acquisition unit is used for acquiring hard disk information of a server hard disk of a target server based on a configuration management database and an acquisition instruction corresponding to the configuration type of the target server if a target server is detected to be newly added in a current management node;
and the marking unit is used for marking the first state of the server hard disk.
Preferably, the apparatus further comprises:
the first comparison module is used for comparing the collected hard disk information with the configuration information corresponding to the server hard disk in the configuration management database to obtain a first comparison result;
and the alarm module is used for displaying alarm information on the management node if the first comparison result meets a preset alarm condition.
Preferably, the hard disk information includes a first identity of the server hard disk, the operation verification request carries a second identity of the server hard disk, and the verification module includes:
and the matching unit is used for matching the second identity with the first identity, and if the matching is successful, judging that the operation verification request passes the verification.
Preferably, the apparatus further comprises:
and the first display module is used for displaying the server hard disk on the management node in a first preset mode.
Preferably, the apparatus further comprises:
and the second display module is used for displaying the server hard disk on the management node in a second preset mode, and the first preset mode is different from the second preset mode.
Preferably, the apparatus further comprises:
the second acquisition module is used for acquiring real-time data information of the server hard disk based on preset conditions;
and the second comparison module is used for comparing the real-time data information with the hard disk information to obtain a second comparison result.
The steps of implementing the above-described server hard disk management method when each module of the server hard disk management device operates according to this embodiment are not described herein again.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a server hard disk management program is stored on the computer-readable storage medium, and when being executed by a processor, the server hard disk management program implements the steps of the server hard disk management method described above.
The method implemented when the server hard disk management program running on the processor is executed may refer to each embodiment of the server hard disk management method of the present invention, and details are not described here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (12)

1. A server hard disk management method is characterized by comprising the following steps:
if a target server is detected to be newly added in the current management node, acquiring hard disk information of a server hard disk corresponding to the target server, and marking a first state on the server hard disk;
receiving an operation verification request aiming at the server hard disk sent by a user side, wherein the verification request is a form submitted by an operator based on an operation and maintenance system;
verifying the operation verification request based on the hard disk information;
if the operation verification request passes the verification, returning a verification result to the user side, and modifying the first state into a second state corresponding to the operation verification request, wherein the second state represents that the server hard disk is in failure or is offline;
the hard disk information comprises a first identity of the server hard disk, the operation verification request carries a second identity of the server hard disk, and the step of verifying the operation verification request based on the hard disk information comprises the following steps:
matching the second identity with the first identity, and if the second identity is successfully matched with the first identity, judging that the operation verification request passes the verification;
if a target server is newly added in the current management node, acquiring the hard disk information of the server hard disk corresponding to the target server, and marking the server hard disk with a first state comprises the following steps:
if a target server is newly added in the current management node, acquiring hard disk information of a server hard disk of the target server based on a configuration management database and an acquisition instruction corresponding to the configuration type of the target server;
and marking a first state for the server hard disk, wherein the first state represents that the server hard disk is on-line.
2. The method for managing the server hard disk according to claim 1, wherein, if it is detected that a target server is newly added to the current management node, the step of collecting the hard disk information of the server hard disk of the target server based on a configuration management database and a collection instruction corresponding to the configuration type of the target server further comprises:
comparing the collected hard disk information with configuration information corresponding to the server hard disk in the configuration management database to obtain a first comparison result;
and if the first comparison result meets a preset alarm condition, displaying alarm information on the management node.
3. The method for managing a server hard disk according to claim 1, wherein the step of acquiring the hard disk information of the server hard disk corresponding to the target server and marking the server hard disk with the first state, if it is detected that a target server is newly added to the current management node, further comprises:
displaying the server hard disk on the management node in a first preset mode, and entering the following steps: and receiving an operation verification request aiming at the server hard disk, which is sent by a user side.
4. The method for managing a server hard disk according to claim 3, wherein the step of returning a verification result to the user side and modifying the first state to a second state corresponding to the operation verification request, if the operation verification request passes verification, further comprises:
and displaying the server hard disk on the management node in a second preset mode, wherein the first preset mode is different from the second preset mode.
5. The method for managing a server hard disk according to any one of claims 1 to 4, wherein the step of acquiring hard disk information of a server hard disk corresponding to a target server and marking the server hard disk with a first state, if it is detected that a target server is newly added to a current management node, further comprises:
acquiring real-time data information of the server hard disk based on a preset condition;
comparing the real-time data information with the hard disk information to obtain a second comparison result;
and outputting an audit result aiming at the server hard disk according to the second comparison result.
6. A server hard disk management apparatus, characterized in that the server hard disk management apparatus comprises:
the first acquisition module is used for acquiring the hard disk information of a server hard disk corresponding to a target server if a target server is detected to be newly added in a current management node, and marking a first state on the server hard disk;
the server comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving an operation verification request which is sent by a user side and aims at the server hard disk, and the verification request is a form submitted by an operator based on an operation and maintenance system;
the verification module is used for verifying the operation verification request based on the hard disk information;
the change module is used for returning a verification result to the user side if the operation verification request passes the verification, and modifying the first state into a second state corresponding to the operation verification request, wherein the second state represents the fault or the off-line of the server hard disk;
the hard disk information includes a first identity of the server hard disk, the operation verification request carries a second identity of the server hard disk, and the verification module includes:
the matching unit is used for matching the second identity with the first identity, and if the matching is successful, the operation verification request is judged to pass the verification;
the first obtaining module comprises:
the acquisition unit is used for acquiring hard disk information of a server hard disk of a target server based on a configuration management database and an acquisition instruction corresponding to the configuration type of the target server if a target server is detected to be newly added in a current management node;
and the marking unit is used for marking a first state of the server hard disk, wherein the first state represents that the server hard disk is on line.
7. The server hard disk management apparatus according to claim 6, wherein said apparatus further comprises:
the first comparison module is used for comparing the collected hard disk information with the configuration information corresponding to the server hard disk in the configuration management database to obtain a first comparison result;
and the alarm module is used for displaying alarm information on the management node if the first comparison result meets a preset alarm condition.
8. The server hard disk management apparatus according to claim 6, wherein said apparatus further comprises:
and the first display module is used for displaying the server hard disk on the management node in a first preset mode.
9. The server hard disk management apparatus according to claim 8, further comprising:
and the second display module is used for displaying the server hard disk on the management node in a second preset mode, wherein the first preset mode is different from the second preset mode.
10. The server hard disk management apparatus according to any one of claims 6 to 9, characterized in that the apparatus further comprises:
the second acquisition module is used for acquiring real-time data information of the server hard disk based on preset conditions;
the second comparison module is used for comparing the real-time data information with the hard disk information to obtain a second comparison result;
and the output module is used for outputting an audit result aiming at the server hard disk according to the second comparison result.
11. A server hard disk management apparatus, characterized in that the apparatus comprises: memory, a processor and a server hard disk management program stored on the memory and executable on the processor, the server hard disk management program when executed by the processor implementing the steps of the server hard disk management method according to any one of claims 1 to 5.
12. A computer-readable storage medium, having stored thereon a server hard disk management program, which when executed by a processor implements the steps of the server hard disk management method according to any one of claims 1 to 5.
CN201910404180.2A 2019-05-13 2019-05-13 Server hard disk management method, device, equipment and computer readable storage medium Active CN110109790B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910404180.2A CN110109790B (en) 2019-05-13 2019-05-13 Server hard disk management method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910404180.2A CN110109790B (en) 2019-05-13 2019-05-13 Server hard disk management method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110109790A CN110109790A (en) 2019-08-09
CN110109790B true CN110109790B (en) 2023-04-07

Family

ID=67490309

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910404180.2A Active CN110109790B (en) 2019-05-13 2019-05-13 Server hard disk management method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110109790B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113420889A (en) * 2020-12-16 2021-09-21 阿里巴巴集团控股有限公司 Hard disk storage device, transportation device, destruction device, control method and system thereof, electronic device, and computer-readable storage medium
CN113448802B (en) * 2021-06-25 2023-11-07 新华三云计算技术有限公司 Method, device, system and server for synchronizing states of hard disks

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067485A (en) * 2012-12-25 2013-04-24 曙光信息产业(北京)有限公司 Disk monitoring method for cloud storage system
CN107368261A (en) * 2017-07-20 2017-11-21 郑州云海信息技术有限公司 A kind of hard disk management method and system
WO2018024139A1 (en) * 2016-08-01 2018-02-08 杭州海康威视数字技术股份有限公司 Hard disk management method and system
CN108021490A (en) * 2017-12-06 2018-05-11 郑州云海信息技术有限公司 A kind of hard disk failure area detecting method, device and computer-readable recording medium
CN109032887A (en) * 2018-06-22 2018-12-18 郑州云海信息技术有限公司 A kind of faulty hard disk method for rapidly positioning and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067485A (en) * 2012-12-25 2013-04-24 曙光信息产业(北京)有限公司 Disk monitoring method for cloud storage system
WO2018024139A1 (en) * 2016-08-01 2018-02-08 杭州海康威视数字技术股份有限公司 Hard disk management method and system
CN107368261A (en) * 2017-07-20 2017-11-21 郑州云海信息技术有限公司 A kind of hard disk management method and system
CN108021490A (en) * 2017-12-06 2018-05-11 郑州云海信息技术有限公司 A kind of hard disk failure area detecting method, device and computer-readable recording medium
CN109032887A (en) * 2018-06-22 2018-12-18 郑州云海信息技术有限公司 A kind of faulty hard disk method for rapidly positioning and system

Also Published As

Publication number Publication date
CN110109790A (en) 2019-08-09

Similar Documents

Publication Publication Date Title
US11315084B2 (en) Method and system for aggregating diagnostic analyzer related information
US20180322508A1 (en) Identifying clusters for service management operations
CN111736875A (en) Version updating monitoring method, device, equipment and computer storage medium
US20140278244A1 (en) System and method for providing user guidance for electronic device processing
CA2665738A1 (en) Closed loop self corrective maintenance within a document processing environment
CN107660289A (en) Automatic network controls
CN110109790B (en) Server hard disk management method, device, equipment and computer readable storage medium
CN110764798A (en) Microcode upgrading method, device, computer equipment and storage medium
WO2014054230A1 (en) Information system construction device, information system construction method, and storage medium
CN111679851B (en) Demand code management method, device, system and computer readable storage medium
CN110704471B (en) Material management method, material management system and electronic equipment
CN114020432A (en) Task exception handling method and device and task exception handling system
CN113407973A (en) Software function authority management method, system, server and storage medium
WO2017149500A1 (en) System and method for facilitating maintenance of an equipment
JP2018055267A (en) Information input process management device, information input process management method and information input process management program
CA3003779A1 (en) Identifying clusters for service management operations
US10324821B2 (en) Oracle cemli analysis tool
JP4592022B2 (en) Automatic execution command generation system, method and program
CN112667512A (en) Data drive test method, device, equipment and computer readable storage medium
CN112613792A (en) Data processing method, system, computer device and storage medium
JP5182361B2 (en) Information acquisition support device
US11314585B1 (en) System for generating enterprise remediation documentation
CN112434900B (en) Information processing method and device, computer readable storage medium and equipment
WO2023021838A1 (en) Information processing device, information processing method, and information processing program
US12001276B2 (en) System for efficient enterprise dispatching

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
GR01 Patent grant
GR01 Patent grant