CN107402855A - A kind of detection method of hard disk, device and server - Google Patents
A kind of detection method of hard disk, device and server Download PDFInfo
- Publication number
- CN107402855A CN107402855A CN201710524946.1A CN201710524946A CN107402855A CN 107402855 A CN107402855 A CN 107402855A CN 201710524946 A CN201710524946 A CN 201710524946A CN 107402855 A CN107402855 A CN 107402855A
- Authority
- CN
- China
- Prior art keywords
- hard disk
- information
- hardware
- reference information
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection 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
- G06F11/2221—Detection 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 to test input/output devices or peripheral units
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2247—Verification or detection of system hardware configuration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2284—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by power-on test, e.g. power-on self test [POST]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
- G06F13/4081—Live connection to bus, e.g. hot-plugging
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the present invention provides a kind of detection method of hard disk, device and server, by after Server Restart or hard disk hot-plug, from the hardware index information of server, extracting the interconnecting bus devices for peripheral equipment numbering of hard disk;Numbered according to the interconnecting bus devices for peripheral equipment, obtain the hardware information of hard disk;Reference information is extracted from the hardware information of acquisition;When reference information and standard information difference, hard disk exception is determined.The embodiment of the present invention is screened to the hardware information comprising bulk information; extract effective reference information; hard disk normal operation or exception are only determined by the comparison to reference information, and need to proofread hardware information, effectively increases the detection efficiency of hard disk.
Description
Technical field
The present invention relates to storage device detection technique field, more particularly to a kind of detection method of hard disk, device and clothes
Business device.
Background technology
In the server, hard disk is main storage device, for load capacity calculation data or user data.In order to ensure
The normal operation of server is, it is necessary to test hard disk.
At present, the process tested hard disk is typically to carry out hot plug to hard disk, obtain the knowledge of hard disk after hot plug
The quantity of parameters information such as other quantity, hard disk speed, bandwidth, register, by being to the multilevel iudge hard disk of above-mentioned parameter information
It is no that exception occurs.
However, inventor is had found by studying, substantial amounts of hard disk is generally included in server, can be obtained by hard disk test
Substantial amounts of parameter information, as such, it is desirable to carry out substantial amounts of data processing comparison, it just can determine that hard disk test result, testing efficiency
It is low.Therefore, the technical problem that hard disk detection efficiency is those skilled in the art's urgent need to resolve how is improved.
The content of the invention
In view of the above the shortcomings that prior art, it is an object of the invention to provide a kind of detection method of hard disk, dress
Put and server is to solve the problems, such as that hard disk detection efficiency is low in the prior art.
In order to achieve the above objects and other related objects, according to the first aspect of the invention, the embodiment of the present invention provides one
The detection method of kind hard disk, this method comprise the following steps:
After Server Restart or hard disk hot-plug, from the hardware index information of server, the external equipment for extracting hard disk is mutual
Join bus number;
Numbered according to the interconnecting bus devices for peripheral equipment, obtain the hardware information of hard disk;
Reference information is extracted from the hardware information of acquisition;
When reference information and standard information difference, hard disk exception is determined.
Alternatively, after Server Restart or hard disk hot-plug, from the hardware index information of server, hard disk is extracted
Interconnecting bus devices for peripheral equipment is numbered, including:
According to hard disk type, hard disk keyword is determined;
With the hard disk keyword, from the hardware index information, retrieval obtains the interconnecting bus devices for peripheral equipment numbering of hard disk.
Alternatively, reference information is extracted in the hardware information from acquisition, including:
From hardware information keywords database, the high one or more hardware information keywords of priority are selected;
According to the hardware information keyword selected, reference information is extracted from hardware information.
Alternatively, when reference information and standard information difference, hard disk exception is determined, including:
When the number difference of identifier in the number and standard information of identifier in reference information, hard disk exception is determined.
Alternatively, when reference information and standard information difference, hard disk exception is determined, including:
When the position difference of identifier in the position of identifier in reference information and standard information, hard disk exception is determined.
According to the second aspect of the invention, the embodiment of the present invention also provides a kind of detection means of hard disk, and the device includes:
Numbering extraction module, for after Server Restart or hard disk hot-plug, from the hardware index information of server, extracting
The interconnecting bus devices for peripheral equipment numbering of hard disk;
Hardware information acquisition module, for being numbered according to the interconnecting bus devices for peripheral equipment, obtain the hardware information of hard disk;
Reference information extraction module, for extracting reference information from the hardware information of acquisition;
Determination module, for when reference information is with standard information difference, determining hard disk exception.
Alternatively, the numbering extraction module is used for,
According to hard disk type, hard disk keyword is determined;
With the hard disk keyword, from the hardware index information, retrieval obtains the interconnecting bus devices for peripheral equipment numbering of hard disk.
Alternatively, the reference information extraction module is used for,
From hardware information keywords database, the high one or more hardware information keywords of priority are selected;
According to the hardware information keyword selected, reference information is extracted from hardware information.
Alternatively, the determination module is used for,
When the number difference of identifier in the number and standard information of identifier in reference information, hard disk exception is determined;
And/or
When the position difference of identifier in the position of identifier in reference information and standard information, hard disk exception is determined.
According to the third aspect of the invention we, the embodiment of the present invention also provides a kind of server, and the server is included at least
One processor;And
The memory being connected with least one processor communication;Wherein,
The memory storage has can be by the instruction of one computing device, and the instruction is by least one processor
Perform, so that at least one processor can:
Restart or hard disk hot-plug after, from hardware index information, extract hard disk interconnecting bus devices for peripheral equipment numbering;
Numbered according to the interconnecting bus devices for peripheral equipment, obtain the hardware information of hard disk;
Reference information is extracted from the hardware information of acquisition;
When reference information and standard information difference, hard disk exception is determined.
As described above, system recovery method provided in an embodiment of the present invention, device and terminal, have the advantages that:
By the way that after Server Restart or hard disk hot-plug, from the hardware index information of server, the external equipment for extracting hard disk is mutual
Join bus number;Numbered according to the interconnecting bus devices for peripheral equipment, obtain the hardware information of hard disk;From the hardware information of acquisition
Extract reference information;When reference information and standard information difference, hard disk exception is determined.The embodiment of the present invention is to including a large amount of letters
The hardware information of breath is screened, and extracts effective reference information, only determines that hard disk is run by the comparison to reference information
It is normal or abnormal, and need to proofread hardware information, effectively increase the detection efficiency of hard disk.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the present invention
Example, and for explaining principle of the invention together with specification.
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, for those of ordinary skill in the art
Speech, without having to pay creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the detection method of hard disk provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of the extracting method of interconnecting bus devices for peripheral equipment numbering provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic flow sheet of reference information extracting method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of the detection means of hard disk provided in an embodiment of the present invention;
Fig. 5 is a kind of hardware architecture diagram of the electronic equipment of the detection method of hard disk provided in an embodiment of the present invention.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the present invention, below in conjunction with of the invention real
The accompanying drawing in example is applied, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described implementation
Example only part of the embodiment of the present invention, rather than whole embodiments.It is common based on the embodiment in the present invention, this area
The every other embodiment that technical staff is obtained under the premise of creative work is not made, should all belong to protection of the present invention
Scope.
Fig. 1 is referred to Fig. 5.It should be noted that the diagram provided in the present embodiment only illustrates this in a schematic way
The basic conception of invention, the component relevant with the present invention is only shown in illustrating then rather than according to package count during actual implement
Mesh, shape and size are drawn, and kenel, quantity and the ratio of each component can be a kind of random change during its actual implementation, and its
Assembly layout kenel may also be increasingly complex.
In embodiments of the present invention, hard disk is arranged on server internal usually as the memory unit of server, or outside
Connect on the server.In order to ensure the reliability of hard disk, common detection method is that the server for being connected with tested hard disk is entered
Row is repeatedly restarted, or under server open state, hot plug is carried out to tested hard disk, and then in Server Restart or hard disk
After hot plug, by the detection information for being tested the identification of hard disk and getting, the detection to being tested hard disk is completed.In the present invention
In embodiment, for the ease of description, exemplified by the detection method of hard disk is performed by server.Certainly it should be noted that this hair
The detection method for the hard disk that bright embodiment provides can apply to such as PC, server array on other computer equipments
Etc., do not limit in embodiments of the present invention.
It is a kind of schematic flow sheet of the detection method of hard disk provided in an embodiment of the present invention referring to Fig. 1.As shown in figure 1,
This method comprises the following steps:
Step S101:After Server Restart or hard disk hot-plug, from the hardware index information of server, the outer of hard disk is extracted
Portion's equipment interconnection numbering.
When server is completed to restart, or after hard disk hot-plug, server obtains hardware index information.In an exemplary reality
Apply in example, the hardware index information can list server PCI by " lspci " instrument(English:Peripheral
Component Interconnect, Chinese:Outside sets portion's interconnection standard)All devices information in bus.Wherein, it is described hard
Part index information can set portion's interconnection including outside and number, and the information such as device name in pci bus.One example
The hardware index information of property can be " af:00.0 Non-Volatile memory controller: X Corporation
Device 1234 ", wherein, " af:00.0 " is that interconnecting bus devices for peripheral equipment is numbered, " Non-Volatile memory
Controller " is the device name non-volatile memory controller in pci bus, generally corresponds to the solid-state of this NVMe type
Hard disk, " X Corporation Device 1234 " are the model of equipment in pci bus.Another exemplary hardware index
Information can be " 00:1f.2 IDE interface: Y Corporation Panther Point 4 port SATA
Controller ", " 00:1f.2 " numbers for another interconnecting bus devices for peripheral equipment, and " IDE interface " are expressed as interface class
Type, specific is integrated drive electrical interface, " the port SATA of Y Corporation Panther Point 4
Controller " is the title and model of interface controller, and the machinery that this hardware index information generally corresponds to SATA types is hard
Disk.
Portion's interconnection numbering is set in order to extract outside from the hardware index information, so as to facilitate subsequent step
Perform, be a kind of interconnecting bus devices for peripheral equipment numbering provided in an embodiment of the present invention referring to Fig. 2 in one exemplary embodiment
Extracting method schematic flow sheet.As shown in Fig. 2 this method includes:
Step S1011:According to hard disk type, hard disk keyword is determined.
Hard disk generally includes a variety of different types, such as the solid state hard disc that hard disk type is NVMe, hard disk type are
SATA mechanical hard disk etc..Due to listing the hardware information of equipment in all pci bus in hardware index information, in server
Substantial amounts of equipment in addition to a hard disk is generally included such as audio frequency apparatus, network card equipment, therefore the hardware index information is past
It is past to include substantial amounts of interference information.
In order to accurately extract the interconnecting bus devices for peripheral equipment of hard disk numbering, in embodiments of the present invention according to hard disk class
Type, it is determined that corresponding hard disk keyword.
In one exemplary embodiment, when hard disk type is NVMe, in hardware index information corresponding to NVMe hard disks
Device name is " Non-Volatile memory controller ", it is " Non " that can so determine hard disk keyword.When hard
When disc-type is SATA, device name corresponding to SATA hard disc is comprising " SATA Controller ", can in hardware index information
To further determine that hard disk keyword as " SATA ".
Step S1012:With the hard disk keyword, from the hardware index information, the outside that retrieval obtains hard disk is set
Standby interconnection is numbered.
The hard disk keyword determined according to step S1011, retrieves the hardware index information, can obtain every piece of hard disk
Interconnecting bus devices for peripheral equipment is numbered.
In one exemplary embodiment, retrieved, can be carried from hardware index information by hard disk keyword " Non "
Take out entry " af:00.0 Non-Volatile memory controller:X Corporation Device 1234 ",
Further extract the element " af in first position:00.0 ", it is mutual so as to obtain the external equipment of one piece of NVMe solid state hard disc
Join bus number.Equally, retrieved by hard disk keyword " SATA ", entry can be extracted from hardware index information
“00:1f.2 IDE interface:The port SATA Controller " of Y Corporation Panther Point 4,
Further element " 00 of the extraction in first position:1f.2 ", so as to obtain the Peripheral Component Interconnect of one piece of SATA mechanical hard disk
Bus number.
Step S102:Numbered according to the interconnecting bus devices for peripheral equipment, obtain the hardware information of hard disk.
In embodiments of the present invention, after hard disk has been configured on server master board, every piece of hard disk corresponds to an outside and set
Standby interconnection is numbered, so can be to should determine that one piece of hard disk, so as to further by interconnecting bus devices for peripheral equipment numbering
Portion's interconnection numbering, the hardware information of the hard disk got, it is possible to achieve the inspection to every piece of hard disk are set according to the outside
Survey.
In order to obtain the hardware information of hard disk, in one exemplary embodiment, " lspci-s external equipments can be passed through
The control command of interconnection numbering ", obtain the hardware information of every piece of hard disk.In the hardware information, it can include
The information such as LnkSta, CESta, UEsta and DevCap, DevCtl, DevSta;Wherein, LnkSta represents hard disk link layer institute
The velocity information of support, CEsta and UEsta by the status information that is stored in hard disk register, DevCap, DevCtl and
DevSta is the description information of hardware device.
Step S103:Reference information is extracted from the hardware information of acquisition.
Because the hardware information obtained by step S102 includes substantial amounts of information, in order to improve the detection of hard disk effect
Rate, it is a kind of flow of reference information extracting method provided in an embodiment of the present invention referring to Fig. 3 in one exemplary embodiment
Schematic diagram.As shown in figure 3, this method includes:
Step S1031:From hardware information keywords database, the high one or more hardware information keywords of priority are selected.
In embodiments of the present invention, the hardware information keywords database can include LnkSta, CESta, UEsta,
DevCap, DevCtl, DevSta }, certain above-mentioned hardware information keywords database is only an exemplary embodiment, is being embodied
When, the hardware information keywords database for including other keywords can be established according to the extraction demand of reference information, of the invention real
Apply in example and do not limit.The embodiment of the present invention is with the hardware of { LnkSta, CESta, UEsta, DevCap, DevCtl, DevSta }
It is described in detail exemplified by information keywords dictionary.
In the hardware information keywords database, it is determined that the priority of each hardware information keyword.In the first implementation
In the case of, the priority that record determines hardware information keyword can be detected according to history;In one exemplary embodiment, when
There are 10 exceptions in the history detection record of " LnkSta ", and 2 exceptions occur in the history of " DevSta " detection record, then
It can determine that the priority of hardware information keyword " LnkSta " is higher than the priority of " DevSta ", through the above way can be true
Determine the priority of all hardware information key in hardware information keywords database.
Under second of performance, hardware can be determined by hardware information keyword and the degree of association of hard disk performance
The priority of information key.In one exemplary embodiment, the status information preserved in the hard disk register of " CESta " is led to
Often include the identifier of hard disk, it is big with the hard disk performance degree of association so as to directly describe whether hard disk malfunctions;And " DevCap "
The generally attribute information of description equipment, it is more difficult to directly judge whether hard disk malfunctions from the information, with the hard disk performance degree of association
It is small;Hence, it can be determined that the priority of hardware information keyword " CESta " is more than the preferential of hardware information keyword " DevCap "
Level.
Further, it is possible to from hardware information keywords database, select the high one or more hardware informations of priority and close
Keyword.In one exemplary embodiment, in hardware information keywords database, the priority of hardware information keyword has such as ShiShimonoseki
System:“LnkSta”>“UESta”>“CESta”>“DevSta”>“DevCtl”>" DevCap ", then it is high can to select priority
3 hardware information keywords, i.e. " LnkSta ", " UESta " and " CESta ".
Step S1032:According to the hardware information keyword selected, reference information is extracted from hardware information.
The hardware information keyword selected according to step S1031, hardware information is retrieved, so as to extract with reference to letter
Breath.
In one exemplary embodiment, reference information " LnkSta can be extracted by " LnkSta ":Speed 8GT/s,
TrErr-, Train- ";Reference information " UESta can be extracted by " UESta ":DLP- SDES- TLP- FCP-”;It is logical
Reference information " RxErr- BadTLP- NonFatalErr+ " can be extracted by crossing " CESta ".
Step S104:When reference information and standard information difference, hard disk exception is determined.
In embodiments of the present invention, determine whether hard disk is abnormal by reference to the comparison of information and standard information, in order to carry
The comparison efficiency of high information, and then the efficiency of hard disk detection is improved, under the first performance, when identifier in reference information
Number and standard information in identifier number difference when, determine hard disk exception.In one exemplary embodiment, it is corresponding
The reference information that UESta is extracted, " DLP- ", " SEDS- ", " TLP- " and " FCP- " can be understood as identifier, and statistics obtains
Identifier number corresponding to the reference information is 4, if the number of identifier is 3 in standard information, the mark of reference information
It is different from the identifier number of standard information to accord with number, then it is abnormal to can be determined that the hard disk occurs;If the mark in standard information
It is 4 to know symbol number, then can be determined that the hard disk is normal.
Under second of performance, when identifier in the position of identifier in reference information and standard information position not
Meanwhile determine hard disk exception.Identifier has fixed order generally in standard information, by detecting the position in identifier
Determine whether to occur it is out of order, so as to judge the running status of hard disk.In one exemplary embodiment, extracted for CESta
Reference information, " RxErr- ", " BadTLP- " and " NonFatalErr+ " can be understood as identifier, in reference information
" RxErr- " is in first position, if " RxErr- " is in the second place in standard information, can determine hard disk exception;Such as
" RxErr- " is similarly in first position in fruit standard information, then can determine that hard disk is normal.
In addition, in order to judge whether hard disk is normal in more dimensions, in the specific implementation, " fdisk " can also be passed through
The mark and capacity information for all hard disks that server can recognize that are listed Deng instrument.Under the first performance,
Whether the quantity identified by the hard disk for judging can be identified is consistent with the quantity of standard, it can be determined that whether has hard disk
Identification is abnormal, and when the hard disk quantity and the quantity of standard that identify are inconsistent, it is abnormal to determine that hard disk occurs, hard when what is identified
When disk quantity is consistent with the quantity of standard, determine that hard disk is normal.Under second of performance, normally identified in all hard disks
Under the conditions of, whether the hard-disk capacity for judging to identify occurs problem, if the capacity of the hard disk identified differs with normal capacity
Cause, it is determined that hard disk is abnormal;If the hard-disk capacity identified is consistent with normal capacity, it is determined that hard disk is normal.
From the description of above-described embodiment, a kind of detection method of hard disk provided in an embodiment of the present invention, by taking
Business think highly of open or hard disk hot-plug after, from the hardware index information of server, extract hard disk interconnecting bus devices for peripheral equipment compile
Number;Numbered according to the interconnecting bus devices for peripheral equipment, obtain the hardware information of hard disk;Reference is extracted from the hardware information of acquisition
Information;When reference information and standard information difference, hard disk exception is determined.The embodiment of the present invention is to the hardware comprising bulk information
Information is screened, and is extracted effective reference information, is only determined hard disk normal operation or different by the comparison to reference information
Often, need to proofread hardware information, effectively increase the detection efficiency of hard disk.
The description of embodiment of the method more than, it is apparent to those skilled in the art that the present invention can
Realized by the mode of software plus required general hardware platform, naturally it is also possible to by hardware, but in many cases the former
It is more preferably embodiment.Based on such understanding, technical scheme substantially makes tribute to prior art in other words
The part offered can be embodied in the form of software product, and the computer software product is stored in a storage medium, bag
Some instructions are included to cause a computer equipment(Can be personal computer, server, or network equipment etc.)Perform
The all or part of step of each embodiment methods described of the present invention.And foregoing storage medium includes:Read-only storage
(ROM), random access memory(RAM), magnetic disc or CD etc. are various can be with the medium of store program codes.
Corresponding with the detection method embodiment of hard disk provided by the invention, present invention also offers a kind of detection of hard disk
Device.
It is a kind of structural representation of the detection means of hard disk provided in an embodiment of the present invention referring to Fig. 4.As shown in figure 4,
The device includes:
Numbering extraction module 11, for after Server Restart or hard disk hot-plug, from the hardware index information of server, carrying
The interconnecting bus devices for peripheral equipment of hard disk is taken to number;
Hardware information acquisition module 12, for being numbered according to the interconnecting bus devices for peripheral equipment, obtain the hardware information of hard disk;
Reference information extraction module 13, for extracting reference information from the hardware information of acquisition;
Determination module 14, for when reference information is with standard information difference, determining hard disk exception.
In order to improve the extraction efficiency of interconnecting bus devices for peripheral equipment numbering, in embodiments of the present invention, the numbering extraction
Module 11 is additionally operable to,
According to hard disk type, hard disk keyword is determined;
With the hard disk keyword, from the hardware index information, retrieval obtains the interconnecting bus devices for peripheral equipment numbering of hard disk.
By generally comprising substantial amounts of interference information in hardware information, in order to extract effective ginseng from the hardware information
Information is examined, in embodiments of the present invention, the reference information extraction module 13 is additionally operable to,
From hardware information keywords database, the high one or more hardware information keywords of priority are selected;
According to the hardware information keyword selected, reference information is extracted from hardware information.
In order to quickly judge whether hard disk is abnormal, so as to improve the detection efficiency of hard disk, under the first performance, institute
State determination module 14 to be additionally operable to, when the number difference of identifier in the number and standard information of identifier in reference information, really
Determine hard disk exception.
Under second of performance, the determination module 14 is additionally operable to, when the position of identifier and mark in reference information
In calibration information during the position difference of identifier, hard disk exception is determined.
The embodiment of the present invention additionally provides a kind of nonvolatile computer storage media, the computer-readable storage medium storage
There are computer executable instructions, the computer executable instructions can perform the detection side of the hard disk in above-mentioned any means embodiment
Method.
It is that a kind of hardware configuration of the electronic equipment of the detection method of hard disk provided in an embodiment of the present invention shows referring to Fig. 5
It is intended to, as shown in figure 5, the equipment includes:
One or more processors 510 and memory 520, in Fig. 5 by taking a processor 510 as an example.
Performing the equipment of the detection method of hard disk can also include:Input unit 530 and output device 540.
Processor 510, memory 520, input unit 530 and output device 540 can pass through bus or other modes
Connect, in Fig. 5 exemplified by being connected by bus.
Memory 520 is used as a kind of non-volatile computer readable storage medium storing program for executing, available for storage non-volatile software journey
Sequence, non-volatile computer executable program and module, the journey as corresponding to the detection method of the hard disk in the embodiment of the present invention
Sequence instruction/module(For example, numbering extraction module 11, hardware information acquisition module 12, reference information extraction mould shown in accompanying drawing 4
Block 13 and determination module 14).Processor 510 is by running the non-volatile software program being stored in memory 520, instruction
And module, various function application and data processing so as to execute server, that is, realize above method embodiment hard disk
Detection method.
Memory 520 can include storing program area and storage data field, wherein, storing program area can store operation system
Application program required for system, at least one function;Storage data field can store to be created according to the using for detection means of hard disk
Data built etc..In addition, memory 520 can include high-speed random access memory, nonvolatile memory can also be included,
A for example, at least disk memory, flush memory device or other non-volatile solid state memory parts.In certain embodiments,
Memory 520 is optional including that can be connected relative to the remotely located memory of processor 510, these remote memories by network
It is connected to the detection means of hard disk.The example of above-mentioned network includes but is not limited to internet, intranet, LAN, mobile logical
Letter net and combinations thereof.
Input unit 530 can receive the numeral or character information of input, and produce the user with the detection means of hard disk
Set and function control it is relevant key signals input.Output device 540 may include the display devices such as display screen.
One or more of modules are stored in the memory 520, when by one or more of processors
During 510 execution, the detection method of the hard disk in above-mentioned any means embodiment is performed.
The said equipment can perform the method that the embodiment of the present invention is provided, and possesses the corresponding functional module of execution method and has
Beneficial effect.Not ins and outs of detailed description in the present embodiment, reference can be made to the method that the embodiment of the present invention is provided.
The electronic equipment of the embodiment of the present invention exists in a variety of forms, includes but is not limited to:
(1) mobile communication equipment:The characteristics of this kind equipment is that possess mobile communication function, and to provide speech, data communication
For main target.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, feature mobile phone, and low side hand
Machine etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the category of personal computer, there is calculating and processing work(
Can, typically also possess mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device:This kind equipment can show and play content of multimedia.The kind equipment includes:Audio,
Video player (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigation equipment.
(4) server:The equipment for providing the service of calculating, the composition of server are total including processor, hard disk, internal memory, system
Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, therefore in processing energy
Power, stability, reliability, security, scalability, manageability etc. require higher.
(5) other electronic installations with data interaction function.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can
To be or may not be physically separate, it can be as the part that unit is shown or may not be physics list
Member, you can with positioned at a place, or can also be distributed on multiple NEs.It can be selected according to the actual needs
In some or all of module realize the purpose of this embodiment scheme
Each embodiment in this specification is described by the way of progressive, and identical similar part is mutual between each embodiment
Mutually referring to what each embodiment stressed is the difference with other embodiment.Especially for device or system
For embodiment, because it is substantially similar to embodiment of the method, so describing fairly simple, related part is implemented referring to method
The part explanation of example.Apparatus and system embodiment described above is only schematical, wherein described as separation
The unit of part description can be or may not be it is physically separate, can be as the part that unit is shown or
It can not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
Border needs to select some or all of module therein to realize the purpose of this embodiment scheme.Those of ordinary skill in the art
Without creative efforts, you can to understand and implement.
It should be noted that herein, the relational terms of such as " first " and " second " or the like are used merely to one
Individual entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operate it
Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Cover including for nonexcludability, so that process, method, article or equipment including a series of elements not only include those
Key element, but also the other element including being not expressly set out, or also include for this process, method, article or set
Standby intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Other identical element in the process including the key element, method, article or equipment also be present.
Described above is only the embodiment of the present invention, is made skilled artisans appreciate that or realizing this hair
It is bright.A variety of modifications to these embodiments will be apparent to one 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, it is of the invention
The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one
The most wide scope caused.
Claims (10)
1. a kind of detection method of hard disk, it is characterised in that comprise the following steps:
After Server Restart or hard disk hot-plug, from the hardware index information of server, the external equipment for extracting hard disk is mutual
Join bus number;
Numbered according to the interconnecting bus devices for peripheral equipment, obtain the hardware information of hard disk;
Reference information is extracted from the hardware information of acquisition;
When reference information and standard information difference, hard disk exception is determined.
2. the detection method of hard disk according to claim 1, it is characterised in that in Server Restart or hard disk hot-plug
Afterwards, from the hardware index information of server, the interconnecting bus devices for peripheral equipment numbering of hard disk is extracted, including:
According to hard disk type, hard disk keyword is determined;
With the hard disk keyword, from the hardware index information, retrieval obtains the interconnecting bus devices for peripheral equipment numbering of hard disk.
3. the detection method of hard disk according to claim 1, it is characterised in that extracted in the hardware information from acquisition
Reference information, including:
From hardware information keywords database, the high one or more hardware information keywords of priority are selected;
According to the hardware information keyword selected, reference information is extracted from hardware information.
4. the detection method of hard disk according to claim 1, it is characterised in that when reference information is different from standard information
When, hard disk exception is determined, including:
When the number difference of identifier in the number and standard information of identifier in reference information, hard disk exception is determined.
5. the detection method of hard disk according to claim 1, it is characterised in that when reference information is different from standard information
When, hard disk exception is determined, including:
When the position difference of identifier in the position of identifier in reference information and standard information, hard disk exception is determined.
A kind of 6. detection means of hard disk, it is characterised in that including:
Numbering extraction module, for after Server Restart or hard disk hot-plug, from the hardware index information of server, extracting
The interconnecting bus devices for peripheral equipment numbering of hard disk;
Hardware information acquisition module, for being numbered according to the interconnecting bus devices for peripheral equipment, obtain the hardware information of hard disk;
Reference information extraction module, for extracting reference information from the hardware information of acquisition;
Determination module, for when reference information is with standard information difference, determining hard disk exception.
7. the detection means of hard disk according to claim 6, it is characterised in that the numbering extraction module is used for,
According to hard disk type, hard disk keyword is determined;
With the hard disk keyword, from the hardware index information, retrieval obtains the interconnecting bus devices for peripheral equipment numbering of hard disk.
8. the detection means of hard disk according to claim 6, it is characterised in that the reference information extraction module is used for,
From hardware information keywords database, the high one or more hardware information keywords of priority are selected;
According to the hardware information keyword selected, reference information is extracted from hardware information.
9. the detection means of hard disk according to claim 6, it is characterised in that the determination module is used for,
When the number difference of identifier in the number and standard information of identifier in reference information, hard disk exception is determined;
And/or
When the position difference of identifier in the position of identifier in reference information and standard information, hard disk exception is determined.
10. a kind of server, it is characterised in that the terminal includes at least one processor;And
The memory being connected with least one processor communication;Wherein,
The memory storage has can be by the instruction of one computing device, and the instruction is by least one processor
Perform, so that at least one processor can:
Restart or hard disk hot-plug after, from hardware index information, extract hard disk interconnecting bus devices for peripheral equipment numbering;
Numbered according to the interconnecting bus devices for peripheral equipment, obtain the hardware information of hard disk;
Reference information is extracted from the hardware information of acquisition;
When reference information and standard information difference, hard disk exception is determined.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710524946.1A CN107402855A (en) | 2017-06-30 | 2017-06-30 | A kind of detection method of hard disk, device and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710524946.1A CN107402855A (en) | 2017-06-30 | 2017-06-30 | A kind of detection method of hard disk, device and server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107402855A true CN107402855A (en) | 2017-11-28 |
Family
ID=60404640
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710524946.1A Pending CN107402855A (en) | 2017-06-30 | 2017-06-30 | A kind of detection method of hard disk, device and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107402855A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109445821A (en) * | 2018-11-01 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of method and system of batch refresh bimodulus SSD open channel mode firmware |
CN109684149A (en) * | 2018-12-13 | 2019-04-26 | 浪潮电子信息产业股份有限公司 | A kind of hardware information monitoring method, device and the equipment of NVMe hard disk |
CN109918246A (en) * | 2019-02-28 | 2019-06-21 | 苏州浪潮智能科技有限公司 | A kind of disk state detection method, system, terminal and storage medium |
CN109947610A (en) * | 2019-03-19 | 2019-06-28 | 浪潮商用机器有限公司 | Configuration method of calibration, device, system and the storage medium of server hardware system |
CN109976971A (en) * | 2017-12-28 | 2019-07-05 | 北京京东尚科信息技术有限公司 | Rigid disc state monitoring method and device |
CN110928814A (en) * | 2019-11-20 | 2020-03-27 | 北京安兔兔科技有限公司 | Method and device for detecting transmission abnormality of serial hard disk and electronic equipment |
CN111247496A (en) * | 2019-01-28 | 2020-06-05 | 深圳市大疆创新科技有限公司 | External load control method and device, unmanned aerial vehicle and terminal device |
CN111274071A (en) * | 2020-01-19 | 2020-06-12 | 浪潮电子信息产业股份有限公司 | USB device plug detection method and device and related device |
CN111414288A (en) * | 2020-03-13 | 2020-07-14 | 苏州浪潮智能科技有限公司 | Hard disk state detection method and system of server and related device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103246594A (en) * | 2013-04-08 | 2013-08-14 | 汉柏科技有限公司 | Automatic user state network card detecting method based on Linux kernel |
CN105183600A (en) * | 2015-09-09 | 2015-12-23 | 浪潮电子信息产业股份有限公司 | Device and method for remotely positioning hard disk fault |
CN105843720A (en) * | 2016-05-12 | 2016-08-10 | 浪潮电子信息产业股份有限公司 | Method and device for testing hot-plug stability of hard disks |
CN106020914A (en) * | 2016-06-07 | 2016-10-12 | 浪潮电子信息产业股份有限公司 | Method for adjusting loading sequence of multiple controller drives under RedHat7 |
-
2017
- 2017-06-30 CN CN201710524946.1A patent/CN107402855A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103246594A (en) * | 2013-04-08 | 2013-08-14 | 汉柏科技有限公司 | Automatic user state network card detecting method based on Linux kernel |
CN105183600A (en) * | 2015-09-09 | 2015-12-23 | 浪潮电子信息产业股份有限公司 | Device and method for remotely positioning hard disk fault |
CN105843720A (en) * | 2016-05-12 | 2016-08-10 | 浪潮电子信息产业股份有限公司 | Method and device for testing hot-plug stability of hard disks |
CN106020914A (en) * | 2016-06-07 | 2016-10-12 | 浪潮电子信息产业股份有限公司 | Method for adjusting loading sequence of multiple controller drives under RedHat7 |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109976971A (en) * | 2017-12-28 | 2019-07-05 | 北京京东尚科信息技术有限公司 | Rigid disc state monitoring method and device |
CN109976971B (en) * | 2017-12-28 | 2023-08-04 | 北京京东尚科信息技术有限公司 | Hard disk state monitoring method and device |
CN109445821A (en) * | 2018-11-01 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of method and system of batch refresh bimodulus SSD open channel mode firmware |
CN109684149A (en) * | 2018-12-13 | 2019-04-26 | 浪潮电子信息产业股份有限公司 | A kind of hardware information monitoring method, device and the equipment of NVMe hard disk |
CN111247496A (en) * | 2019-01-28 | 2020-06-05 | 深圳市大疆创新科技有限公司 | External load control method and device, unmanned aerial vehicle and terminal device |
CN109918246A (en) * | 2019-02-28 | 2019-06-21 | 苏州浪潮智能科技有限公司 | A kind of disk state detection method, system, terminal and storage medium |
CN109947610A (en) * | 2019-03-19 | 2019-06-28 | 浪潮商用机器有限公司 | Configuration method of calibration, device, system and the storage medium of server hardware system |
CN110928814A (en) * | 2019-11-20 | 2020-03-27 | 北京安兔兔科技有限公司 | Method and device for detecting transmission abnormality of serial hard disk and electronic equipment |
CN111274071A (en) * | 2020-01-19 | 2020-06-12 | 浪潮电子信息产业股份有限公司 | USB device plug detection method and device and related device |
CN111414288A (en) * | 2020-03-13 | 2020-07-14 | 苏州浪潮智能科技有限公司 | Hard disk state detection method and system of server and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107402855A (en) | A kind of detection method of hard disk, device and server | |
CN110489345B (en) | Crash aggregation method, device, medium and equipment | |
CN107391325A (en) | A kind of method of testing of hard disk, device and terminal | |
CN107315779A (en) | Log analysis method and system | |
CN109783346B (en) | Keyword-driven automatic testing method and device and terminal equipment | |
CN106294222A (en) | A kind of method and device determining PCIE device and slot corresponding relation | |
CN109905385A (en) | A kind of webshell detection method, apparatus and system | |
CN104850489B (en) | Mobile solution test system | |
CN104899016A (en) | Call stack relationship obtaining method and call stack relationship obtaining device | |
CN110457578A (en) | A kind of customer service demand recognition methods and device | |
CN108734304A (en) | A kind of training method of data model, device and computer equipment | |
CN111488740A (en) | Causal relationship judging method and device, electronic equipment and storage medium | |
CN113254354A (en) | Test case recommendation method and device, readable storage medium and electronic equipment | |
US8020123B2 (en) | Transaction-based system and method for abstraction of hardware designs | |
CN107239403A (en) | A kind of positioning problems method and apparatus | |
CN106547658A (en) | A kind of automated testing method and device | |
CN103246594A (en) | Automatic user state network card detecting method based on Linux kernel | |
CN115827436A (en) | Data processing method, device, equipment and storage medium | |
CN103164335B (en) | The method and system of inspection unit test mass | |
CN106201859A (en) | A kind of regression testing method and system | |
CN110959153A (en) | Application analysis using flexible post-processing | |
CN108985052A (en) | A kind of rogue program recognition methods, device and storage medium | |
KR102604450B1 (en) | Method and apparatus for storing log of access based on kewords | |
CN108021478B (en) | Robustness testing method for graphics processor | |
CN110389897A (en) | SDK logic test method, device, storage medium and server |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171128 |
|
RJ01 | Rejection of invention patent application after publication |