CN109558288A - Detection method, device, system and the storage medium of NVME hard disk life-span - Google Patents

Detection method, device, system and the storage medium of NVME hard disk life-span Download PDF

Info

Publication number
CN109558288A
CN109558288A CN201811536308.2A CN201811536308A CN109558288A CN 109558288 A CN109558288 A CN 109558288A CN 201811536308 A CN201811536308 A CN 201811536308A CN 109558288 A CN109558288 A CN 109558288A
Authority
CN
China
Prior art keywords
hard disk
nvme hard
service life
nvme
span
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.)
Withdrawn
Application number
CN201811536308.2A
Other languages
Chinese (zh)
Inventor
王相宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811536308.2A priority Critical patent/CN109558288A/en
Publication of CN109558288A publication Critical patent/CN109558288A/en
Withdrawn legal-status Critical Current

Links

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/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses detection method, device, system and the computer readable storage medium of a kind of NVME hard disk life-span, this method includes that the supervisor register of NVME hard disk is read using BMC, obtains corresponding register information;The register information is parsed to obtain the service life percentage of the NVME hard disk;The service life percentage is sent to terminal device to show.The application can read the register information of the supervisor register of NVME hard disk by BMC, and the service life percentage of the NVME hard disk is obtained after parsing to the register information, it is shown by service life percentage of the terminal device to NVME hard disk, so that most NVME hard disk is in time replaced the service life by staff, improve the real-time and accuracy of detection, and additional detection instrument, save the cost are not needed.

Description

Detection method, device, system and the storage medium of NVME hard disk life-span
Technical field
The present embodiments relate to storage equipment technical fields, more particularly to a kind of detection side of NVME hard disk life-span Method, device, system and computer readable storage medium.
Background technique
NVME hard disk is a kind of use Nonvolatile memory host controller interface specification (Non-Volatile Memory Express solid state hard disk) is written and read, relative to common solid-state hard disk by PCI-Express (PCIe) bus There can be several times promotion.Each NVME hard disk all has certain service life, and NVME hard disk often holds when the service life will be most It easily damages, in turn results in the loss of stored data, therefore, it is necessary to carry out life tests to NVME hard disk.
Currently, mainly hard by the hard disk detection instrument or other that run producer's offer under system in the prior art Disk detection instrument estimates service life of NVME hard disk, on the one hand, increase testing cost, the service life of NVME hard disk can not be carried out it is real When detect;On the other hand, since each machine configures difference, hard disk producer is different, causes the versatility of detection instrument poor, no Can accurate detection go out service life of VME hard disk.
In consideration of it, how to provide detection method, device, the system of a kind of NVME hard disk life-span for solving above-mentioned technical problem And computer readable storage medium becomes those skilled in the art's problem to be solved.
Summary of the invention
The purpose of the embodiment of the present invention is that providing detection method, device, system and the computer of a kind of NVME hard disk life-span Readable storage medium storing program for executing, improves the real-time and accuracy of detection in use, and does not need additional detection instrument, Save the cost.
In order to solve the above technical problems, the embodiment of the invention provides a kind of detection methods of NVME hard disk life-span, comprising:
The supervisor register that NVME hard disk is read using BMC, obtains corresponding register information;
The register information is parsed to obtain the service life percentage of the NVME hard disk;
The service life percentage is sent to terminal device to show.
Optionally, further includes:
Judge whether the service life percentage is greater than preset value, if so, issuing alarm prompt.
Optionally, the process for issuing alarm prompt are as follows:
Alarm prompt is sent to client by way of short message.
Optionally, the process of the supervisor register that NVME hard disk is read using BMC are as follows:
The supervisor register of NVME hard disk is read by SMBUS agreement using BMC.
Optionally, when the service life percentage is greater than preset value, further includes:
Detect the data information of the hard disk backboard of the NVME hard disk;
Data information according to the hard disk backboard positions the NVME hard disk, obtains the position of the NVME hard disk Confidence breath.
The embodiment of the present invention provides a kind of detection device of NVME hard disk life-span accordingly, comprising:
Read module obtains corresponding register information for reading the supervisor register of NVME hard disk using BMC;
Parsing module obtains the service life percentage of the NVME hard disk for being parsed to the register information Than;
Sending module is shown for the service life percentage to be sent to terminal device.
Optionally, further includes:
Judgment module, for judging whether the service life percentage is greater than preset value, if so, triggering alarm mould Block;
The alarm module, for issuing alarm prompt.
It optionally, further include detection module and locating module, the judgment module is also used in the service life percentage When than being greater than preset value, detection trigger module;Wherein:
The detection module, the data information of the hard disk backboard for detecting the NVME hard disk;
The locating module positions the NVME hard disk for the data information according to the hard disk backboard, obtains Take the location information of the NVME hard disk.
The embodiment of the invention also provides a kind of detection systems of NVME hard disk life-span, comprising:
Memory, for storing computer program;
Processor realizes the detection method of NVME hard disk life-span as described above when for executing the computer program The step of.
The embodiment of the invention also provides a kind of computer readable storage medium, deposited on the computer readable storage medium Computer program is contained, the computer program realizes the detection of NVME hard disk life-span as described above when being executed by processor The step of method.
The embodiment of the invention provides a kind of detection method of NVME hard disk life-span, device, system and computer-readable deposit Storage media obtains corresponding register information this method comprises: reading the supervisor register of NVME hard disk using BMC;To described Register information is parsed to obtain the service life percentage of the NVME hard disk;The service life percentage is sent to end End equipment is shown.As it can be seen that the application can read the register information of the supervisor register of NVME hard disk by BMC, and To the service life percentage of the NVME hard disk is obtained after register information parsing, NVME hard disk is made by terminal device It is shown with service life percentage, so that most NVME hard disk is in time replaced the service life by staff, improves detection Real-time and accuracy, and do not need additional detection instrument, save the cost.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to institute in the prior art and embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of flow diagram of the detection method of NVME hard disk life-span provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of the detection device of NVME hard disk life-span provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of detection method of NVME hard disk life-span, device, system and computer-readable deposit Storage media, improves the real-time and accuracy of detection in use, and does not need additional detection instrument, save at This.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 is please referred to, Fig. 1 is a kind of process signal of detection method of NVME hard disk life-span provided in an embodiment of the present invention Figure.This method, comprising:
S110: the supervisor register of NVME hard disk is read using BMC, obtains corresponding register information;
It should be noted that BMC (Baseboard Management Controller, baseboard management controller) can be with Long-range and local management is carried out to server, is widely used in the large-scale cluster management of server, it can be achieved that server component Monitoring.
Specifically, in the embodiment of the present invention can by BMC in real time or periodic reading NVME hard disk supervisor register, Namely the subsystem management register that BMC reads NVME hard disk is read, obtain the supervisor register of NVME hard disk In the register information at current time.
Wherein it is possible to which the supervisor register of NVME hard disk, the management of NVME hard disk are read by SMBUS agreement using BMC Register meets SMBUS agreement, and data format meets standard data structure specified in NVME management regulation, each producer The NVME hard disk of production meets the standard data structure, it is possible to directly parse to the status information read out.
S120: register information is parsed to obtain the service life percentage of NVME hard disk;
Specifically, analytically obtaining the service life pair with NVME hard disk in result by the parsing to register information The service life percentage answered.
S130: service life percentage is sent to terminal device and is shown.
It is shown it is understood that service life percentage corresponding with the NVME hard disk is sent to terminal device Show, so that staff determines whether to need to carry out more corresponding NVME hard disk by the service life percentage shown It changes, to ensure the safety of data, avoids the problem that NVME hard disk life-span will hard disk corruptions loss of data caused to the greatest extent.Into one Step, this method can also include:
Judge whether service life percentage is greater than preset value, if so, issuing alarm prompt.
It, can be with it should be noted that in order to notify staff in time when NVME hard disk life-span will be most in the application After obtaining the service life percentage of NVME hard disk, judge whether the service life percentage has been more than preset value, this is pre- If value can be 80% or 90%, when service life percentage is more than the preset value, warning note is issued, prompts work people The service life of member's NVME hard disk will use up, and need in time to replace the NVME hard disk, to be damaged, data be caused to be lost It loses.
Wherein, the specific value of the preset value in the present embodiment can be determined according to the actual situation, and the application is to this Do not do particular determination.
Further, the process of above-mentioned sending alarm prompt is specifically as follows:
Alarm prompt is sent to client by way of short message.
It should be noted that can be by way of short message to client (such as mobile terminal or PC) in the present embodiment Alarm prompt is sent, to prompt the life status of staff's NVME hard disk in time, can specifically be sent by BMC to client The short message of alarm prompt.
Specifically, a PC can be used and receive MBC hair when being managed to the NVME hard disk in large-scale server The alarm prompt sent can be with so that staff can will use up according to the service life of these acquisition of information which NVME hard disks Not needing frequently discrepancy computer room can be obtained the service condition of NVME hard disk, can be existed according to the actual conditions of each NVME hard disk Regular time replaces corresponding NVME hard disk, greatly facilitates the management to each NVME hard disk.
Certainly, it is not limited only to send alarm prompt in the form of short message in the present embodiment, it can also be using others Form sends alarm prompt, such as is prompted by way of prompt tone staff, specifically without limitation.
Further, when service life percentage is greater than preset value, this method can also include:
Detect the data information of the hard disk backboard of NVME hard disk;
Data information according to hard disk backboard positions NVME hard disk, obtains the location information of NVME hard disk.
Specifically, most NVME hard disk is replaced the service life by staff for convenience, and it is quickly found out these The position of NVME hard disk, in the present embodiment can also when the service life percentage for detecting NVME hard disk is greater than preset value, The data information for detecting the hard disk backboard of the NVME hard disk, according to the position of the available NVME hard disk of the data information of hard disk backboard Confidence breath, can also be sent to terminal device for the location information and show, so that staff is fast according to the location information Speed finds the position where NVME hard disk and is replaced and safeguarded to it.
The embodiment of the invention provides a kind of detection methods of NVME hard disk life-span, comprising: reads NVME hard disk using BMC Supervisor register, obtain corresponding register information;Register information is parsed to obtain the service life of NVME hard disk Percentage;Service life percentage is sent to terminal device to show.As it can be seen that the application can be hard by BMC reading NVME The register information of the supervisor register of disk, and the service life percentage of the NVME hard disk is obtained after parsing to the register information Than being shown by service life percentage of the terminal device to NVME hard disk, so that staff in time will use up the service life NVME hard disk replaced, improve the real-time and accuracy of detection, and do not need additional detection instrument, save at This.
On the basis of the above embodiments, the embodiment of the present invention provides a kind of detection dress of NVME hard disk life-span accordingly It sets, specifically referring to figure 2..The device includes:
Read module 21 obtains corresponding register information for reading the supervisor register of NVME hard disk using BMC;
Parsing module 22 obtains the service life percentage of NVME hard disk for being parsed to register information;
Sending module 23 is shown for service life percentage to be sent to terminal device.
Further, further includes:
Judgment module, for judging whether service life percentage is greater than preset value, if so, triggering alarm module;
Alarm module, for issuing alarm prompt.
It further, further include detection module and locating module;
Judgment module is also used to when service life percentage is greater than preset value, detection trigger module;Wherein:
Detection module, the data information of the hard disk backboard for detecting NVME hard disk;
Locating module positions NVME hard disk for the data information according to hard disk backboard, obtains NVME hard disk Location information.
It should be noted that the detection device of NVME hard disk life-span provided in the present embodiment has and above-described embodiment The identical beneficial effect of detection method of the NVME hard disk life-span of middle offer, and to NVME involved in this present embodiment The specific introduction of the detection method of hard disk life-span please refers to above-described embodiment, and details are not described herein by the application.
On the basis of the above embodiments, the embodiment of the invention also provides a kind of detection system of NVME hard disk life-span, The system includes:
Memory, for storing computer program;
Processor, when for executing computer program the step of the realization such as detection method of above-mentioned NVME hard disk life-span.
For example, the processor in the present embodiment obtains phase for realizing the supervisor register for reading NVME hard disk using BMC The register information answered;Register information is parsed to obtain the service life percentage of NVME hard disk;By service life hundred Point being sent to terminal device is shown.
On the basis of the above embodiments, the embodiment of the invention also provides a kind of computer readable storage mediums, calculate It is stored with computer program on machine readable storage medium storing program for executing, such as above-mentioned NVME hard disk is realized when computer program is executed by processor The step of detection method in service life.
The computer readable storage medium may include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit Store up the medium of program code.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is said referring to method part It is bright.
It should also be noted that, in the present specification, such as the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of detection method of NVME hard disk life-span characterized by comprising
The supervisor register that NVME hard disk is read using BMC, obtains corresponding register information;
The register information is parsed to obtain the service life percentage of the NVME hard disk;
The service life percentage is sent to terminal device to show.
2. the detection method of NVME hard disk life-span according to claim 1, which is characterized in that further include:
Judge whether the service life percentage is greater than preset value, if so, issuing alarm prompt.
3. the detection method of NVME hard disk life-span according to claim 2, which is characterized in that the sending alarm prompt Process are as follows:
Alarm prompt is sent to client by way of short message.
4. the detection method of NVME hard disk life-span according to claim 2, which is characterized in that described to be read using BMC The process of the supervisor register of NVME hard disk are as follows:
The supervisor register of NVME hard disk is read by SMBUS agreement using BMC.
5. the detection method of NVME hard disk life-span according to claim 2, which is characterized in that in the service life percentage When than being greater than preset value, further includes:
Detect the data information of the hard disk backboard of the NVME hard disk;
Data information according to the hard disk backboard positions the NVME hard disk, obtains the position letter of the NVME hard disk Breath.
6. a kind of detection device of NVME hard disk life-span characterized by comprising
Read module obtains corresponding register information for reading the supervisor register of NVME hard disk using BMC;
Parsing module obtains the service life percentage of the NVME hard disk for being parsed to the register information;
Sending module is shown for the service life percentage to be sent to terminal device.
7. the detection device of NVME hard disk life-span according to claim 6, which is characterized in that further include:
Judgment module, for judging whether the service life percentage is greater than preset value, if so, triggering alarm module;
The alarm module, for issuing alarm prompt.
8. the detection device of NVME hard disk life-span according to claim 7, which is characterized in that further include detection module and fixed Position module, the judgment module are also used to trigger the detection module when the service life percentage is greater than preset value, Wherein:
The detection module, the data information of the hard disk backboard for detecting the NVME hard disk;
The locating module positions the NVME hard disk for the data information according to the hard disk backboard, obtains institute State the location information of NVME hard disk.
9. a kind of detection system of NVME hard disk life-span characterized by comprising
Memory, for storing computer program;
Processor realizes the NVME hard disk longevity as described in claim 1 to 5 any one when for executing the computer program The step of detection method of life.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes the NVME hard disk life-span as described in claim 1 to 5 any one when the computer program is executed by processor Detection method the step of.
CN201811536308.2A 2018-12-14 2018-12-14 Detection method, device, system and the storage medium of NVME hard disk life-span Withdrawn CN109558288A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811536308.2A CN109558288A (en) 2018-12-14 2018-12-14 Detection method, device, system and the storage medium of NVME hard disk life-span

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811536308.2A CN109558288A (en) 2018-12-14 2018-12-14 Detection method, device, system and the storage medium of NVME hard disk life-span

Publications (1)

Publication Number Publication Date
CN109558288A true CN109558288A (en) 2019-04-02

Family

ID=65870153

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811536308.2A Withdrawn CN109558288A (en) 2018-12-14 2018-12-14 Detection method, device, system and the storage medium of NVME hard disk life-span

Country Status (1)

Country Link
CN (1) CN109558288A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113886133A (en) * 2020-07-02 2022-01-04 铠侠股份有限公司 Receiving terminal, communication system, and program
WO2022127944A3 (en) * 2022-03-24 2022-09-15 苏州佳世达电通有限公司 Monitoring method and apparatus for electronic device, and electronic device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113886133A (en) * 2020-07-02 2022-01-04 铠侠股份有限公司 Receiving terminal, communication system, and program
CN113886133B (en) * 2020-07-02 2024-05-28 铠侠股份有限公司 Receiving terminal, communication system, and computer-readable medium
WO2022127944A3 (en) * 2022-03-24 2022-09-15 苏州佳世达电通有限公司 Monitoring method and apparatus for electronic device, and electronic device

Similar Documents

Publication Publication Date Title
CN106250258B (en) A kind of disk failure localization method and device
CN108872762B (en) Electronic equipment leakage detection method and device, electronic equipment and storage medium
CN103026342B (en) method and system for verifying memory device integrity
CN109343853B (en) Abnormality identification method and device for application program
CN107025224B (en) Method and equipment for monitoring task operation
CN107436414B (en) Method and device for testing effectiveness of BBU in memory system
CN103268277A (en) Method and system for outputting log information
CN109558288A (en) Detection method, device, system and the storage medium of NVME hard disk life-span
RU2015137806A (en) SYSTEMS AND METHODS FOR HOST DETECTION OF USB ASYNCHRONOUS NOTIFICATION
CN113472607A (en) Application program network environment detection method, device, equipment and storage medium
CN107943605B (en) Memory card processing method and device
CN112463501A (en) Method, equipment and storage medium for rapidly positioning fault of abnormal power failure
US11093361B2 (en) Bus monitoring system, method and apparatus
CN111478792A (en) Cutover information processing method, system and device
CN113194161B (en) Method and device for setting MMIO base address of server system
CN114826962A (en) Link fault detection method, device, equipment and machine readable storage medium
CN109271009A (en) A kind of method, apparatus that control server backboard powers on and CPLD
CN109522184A (en) A kind of server system method for safety monitoring, device and terminal
CN105260140A (en) Disk size monitoring method and apparatus
CN111124818B (en) Monitoring method, device and equipment for Expander
CN111475186A (en) Firmware upgrading method, device, equipment and medium based on BMC
CN110096414A (en) A kind of server monitoring method, device, equipment and medium
CN108038035A (en) A kind of detection method and relevant apparatus of flash reading and writing state
CN108920329A (en) Monitoring method, device, system and the computer readable storage medium of disk state
CN104407994A (en) Method and device for identifying storage equipment inserted into slots of computer

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20190402