CN109308237A - A kind of method, apparatus, equipment and storage medium detecting storage system hard disk - Google Patents
A kind of method, apparatus, equipment and storage medium detecting storage system hard disk Download PDFInfo
- Publication number
- CN109308237A CN109308237A CN201811463377.5A CN201811463377A CN109308237A CN 109308237 A CN109308237 A CN 109308237A CN 201811463377 A CN201811463377 A CN 201811463377A CN 109308237 A CN109308237 A CN 109308237A
- Authority
- CN
- China
- Prior art keywords
- hard disk
- storage system
- information
- detecting
- storage
- 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/26—Functional testing
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 a kind of method, apparatus, equipment and computer readable storage mediums for detecting storage system hard disk, comprising: judges the type of storage system to be detected, configures to obtain the hard disk of type of the storage system;The hard disk is being obtained with postponing, is acquiring the hard disk information of each hard disk in the storage system;According to the hard disk information of each hard disk, each hard disk in the storage system is detected.Method, apparatus, equipment and computer readable storage medium provided by the present invention, for different product portabilities with higher.
Description
Technical field
The present invention relates to technical field of memory, more particularly to a kind of method, apparatus, equipment for detecting storage system hard disk
And computer readable storage medium.
Background technique
With the development of Information technology, the application demand of storage system is increasing.Increasingly increased portfolio is to storage
The stability of system, reliability, safety etc. require higher and higher.And the composition that hard disk is important as a storage system
Element has important influence to storage system, so rationally efficient hard disk detection method is necessary.
The technology of hard disk detection at present is poor for different hard disk quantity scalabilities, and for different product portables
Property is not also high.
In summary as can be seen that the portability for how improving hard disk detection method is current problem to be solved.
Summary of the invention
The method, apparatus of storage system hard disk, equipment and computer-readable are detected the object of the present invention is to provide a kind of
Storage medium, it is portable to the method for storage system hard disk detection lower in the prior art to solve the problems, such as.
In order to solve the above technical problems, the present invention provides a kind of method for detecting storage system hard disk, comprising: judge to be checked
The type of the storage system of survey configures to obtain the hard disk of type of the storage system;Match in the acquisition hard disk and postpone,
Acquire the hard disk information of each hard disk in the storage system;According to the hard disk information of each hard disk, it is to the storage
Each hard disk in system is detected.
Preferably, described to obtain the hard disk with postponing, acquire the hard disk information of each hard disk in the storage system
Include:
In the hard disk for obtaining the type of the storage system with postponing, by the hard disk sum of the storage system and described deposit
The record start location information of the hard disk information of each hard disk summarizes and is recorded in the first page pages in storage system;
The hard disk information of each hard disk in the storage system is recorded in the 2nd page pages.
Preferably, the hard disk information by each hard disk in the storage system be recorded in the 2nd page pages include:
The hard disk information of each hard disk in the system is recorded in the 2nd page pages;And utilize 4 byte records one
The hard disk information of hard disk.
Preferably, the hard disk information according to each hard disk carries out each hard disk in the storage system
After detection further include:
When detecting that a certain hard disk in the storage system breaks down, sent by preset alarm mode to user
Standby signal.
Preferably, described when detecting that a certain hard disk in the storage system breaks down, by preset alarm side
Formula sends standby signal to user
When detecting a certain hard disk failure in the storage system, failure is provided a user using the pop-up of the end GUI
Hard disk information, in order to which user checks and repairs to the faulty hard disk.
Preferably, described when detecting that a certain hard disk in the storage system breaks down, by preset alarm side
Formula sends standby signal to user
When detecting that a certain hard disk in the storage system breaks down, is alarmed and led to using the end GUI
Crossing trouble light flashing reminds user to check faulty hard disk.
The present invention also provides a kind of devices for detecting storage system hard disk, comprising:
Judgment module, for judging the type of storage system to be detected, to obtain the type of the storage system
Hard disk configuration;
Acquisition module acquires the hard disk letter of each hard disk in the storage system for obtaining the hard disk with postponing
Breath;
Detection module, for the hard disk information according to each hard disk, to each hard disk in the storage system into
Row detection.
Preferably, the acquisition module is specifically used for:
In the hard disk for obtaining the type of the storage system with postponing, by the hard disk sum of the storage system and described deposit
The record start location information of the hard disk information of each hard disk summarizes and is recorded in the first page pages in storage system;
The hard disk information of each hard disk in the storage system is recorded in the 2nd page pages.
The present invention also provides a kind of equipment for detecting storage system hard disk, comprising:
Memory, for storing computer program;Processor realizes above-mentioned one kind when for executing the computer program
The step of detecting the method for storage system hard disk.
The present invention also provides a kind of computer readable storage medium, meter is stored on the computer readable storage medium
Calculation machine program, the computer program realize the step of a kind of above-mentioned method for detecting storage system hard disk when being executed by processor
Suddenly.
The method of detection storage system hard disk provided by the present invention, is added to the function of compatible multiple product model.By
In different products, the slot quantity of hard disk be it is inconsistent, cause the hard disk quantity that can be carried be it is inconsistent, by obtaining
Then the configuration for taking different types to obtain different product for hard disk carries out subsequent hard disk detection again.It deposits described in the acquisition
After the hard disk type of storage system type, each hard disk is carried out according to the hard disk information of hard disk each in the storage system
Detection.The present invention increases by identifying that the hard disk of storage system type to be detected configures and adapts to the detection of multiple product model
Function, the specific higher portability of method for detecting storage system hard disk.
Detailed description of the invention
It, below will be to embodiment or existing for the clearer technical solution for illustrating the embodiment of the present invention or the prior art
Attached drawing needed in technical description is briefly described, it should be apparent that, the accompanying drawings in the following description is only this hair
Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart of the first specific embodiment of the method for detection storage system hard disk provided by the present invention;
Fig. 2 is the flow chart of second of specific embodiment of the method for detection storage system hard disk provided by the present invention;
Fig. 3 is a kind of structural block diagram of device for detecting storage system hard disk provided in an embodiment of the present invention.
Specific embodiment
Core of the invention, which is to provide, a kind of detects the method, apparatus of storage system hard disk, equipment and computer-readable
Storage medium, for different product portabilities with higher.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Referring to FIG. 1, Fig. 1 is the first specific embodiment of the method for detection storage system hard disk provided by the present invention
Flow chart;Specific steps are as follows:
Step S101: judging the type of storage system to be detected, so as to obtain the storage system type hard disk
Configuration;
Step S102: the hard disk is being obtained with postponing, is acquiring the hard disk information of each hard disk in the storage system;
Information collection is carried out to hard disk each in the storage system, is saved in the form of 16 systems after the completion of collection
In page pages.Collected information is aggregated into the first page pages (page1) first.Described in the described first page pages of interior record
The record start location information of the hard disk information of each hard disk in hard disk sum and the storage system in storage system.So
The specific hard disk information of each hard disk is being saved in the 2nd page pages (page2) afterwards, wherein the hard disk of each hard disk
The fixed byte representation for using predetermined number of information.The hard disk information of a hard disk is indicated in the present embodiment using 4 bytes,
When being detected in this way to each hard disk in the storage system, it is only necessary to get the record of hard disk information from page1
Start position information and hard disk sum, then read hard disk information, every 4 bytes represent a hard disk into page2 again
Information thus can very easily get the information of each hard disk.And if actual physics in the storage system
Hard disk increases, we only need to modify page1 and page2, can directly be multiplexed to the detection method of hard disk, has fine
Scalability.
In the present embodiment, the page1 and the page2 refer to one group of storage unit, are used to store from hard disk and obtain
Information.
Step S103: according to the hard disk information of each hard disk, each hard disk in the storage system is examined
It surveys.
In the present embodiment, it is added to the function of compatible multiple product model.Due to different products, the slot count of hard disk
Amount be it is inconsistent, cause the hard disk quantity that can be carried be it is inconsistent, obtain different product by obtaining different type
Then configuration for hard disk carries out subsequent hard disk detection again.The function that addition adapts to multiple product model makes the design
With good portability, it is adapted to different storage systems.Therefore, the inspection of storage system hard disk provided by the present embodiment
Survey method has good scalability and higher portability.
It based on the above embodiment, in this embodiment, can when some hard disk breaks down in detecting the storage system
To prompt user using preset type of alarm, in order to which user checked and repairs to the problem of hard disk.It please refers to
Fig. 2, Fig. 2 are the flow chart of second of specific embodiment of the method for detection storage system hard disk provided by the present invention.Specifically
Operating procedure is as follows:
Step S201: judging the type of storage system to be detected, so as to obtain the storage system type hard disk
Configuration;
Step S202: matching in the hard disk for obtaining the type of the storage system and postpone, and the hard disk of the storage system is total
The record start location informations of the hard disk information of each hard disk summarize and are recorded in the first page pages in the several and storage system;
Step S203: the hard disk information of each hard disk in the storage system is recorded in the 2nd page pages;
Step S204: according to the record start location information and the hard disk information of the hard disk information of each hard disk, to institute
The each hard disk stated in storage system is detected;
Step S205: it when detecting that a certain hard disk in the storage system breaks down, is carried out using the end GUI
Alarming and being flashed by trouble light reminds user to check faulty hard disk.
The method of detection storage system hard disk, can be compatible with the product of different storages provided by the present embodiment, have very
Strong portability, at the same can adaptive hard disk quantity variation, be with good expansibility.And it can detecte described
When a certain hard disk in storage system breaks down, it can use the end GUI pop-up and provide a user faulty hard disk information, with
The faulty hard disk is checked and repaired convenient for user.
Referring to FIG. 3, Fig. 3 is a kind of structural frames of device for detecting storage system hard disk provided in an embodiment of the present invention
Figure;Specific device may include:
Judgment module 100, for judging the type of storage system to be detected, to obtain the type of the storage system
Hard disk configuration;
Acquisition module 200 acquires the hard disk of each hard disk in the storage system for obtaining the hard disk with postponing
Information;
Detection module 300, for the hard disk information according to each hard disk, to each hard disk in the storage system
It is detected.
The device of the detection storage system hard disk of the present embodiment for realizing it is above-mentioned detection storage system hard disk method,
Therefore the method for the visible detection storage system hard disk hereinbefore of specific embodiment in the device of detection storage system hard disk
Embodiment part, for example, judgment module 100, acquisition module 200, detection module 300, are respectively used to realize that above-mentioned detection is deposited
Step S101, S102 and S103 in the method for storage system hard disk, so, specific embodiment is referred to corresponding each portion
Divide the description of embodiment, details are not described herein.
The specific embodiment of the invention additionally provides a kind of equipment for detecting storage system hard disk, comprising: memory, for depositing
Store up computer program;Processor realizes a kind of above-mentioned side for detecting storage system hard disk when for executing the computer program
The step of method.
The specific embodiment of the invention additionally provides a kind of computer readable storage medium, the computer readable storage medium
On be stored with computer program, the computer program realizes a kind of above-mentioned detection storage system hard disk when being executed by processor
The step of method.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other
The difference of embodiment, same or similar part may refer to each other between each embodiment.For being filled disclosed in embodiment
For setting, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part
Explanation.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
It to the detection method, apparatus of storage system hard disk provided by the present invention, equipment and computer-readable deposits above
Storage media is described in detail.It is used herein that a specific example illustrates the principle and implementation of the invention,
The above description of the embodiment is only used to help understand the method for the present invention and its core ideas.It should be pointed out that for this technology
For the those of ordinary skill in field, without departing from the principle of the present invention, several improvement can also be carried out to the present invention
And modification, these improvements and modifications also fall within the scope of protection of the claims of the present invention.
Claims (10)
1. a kind of method for detecting storage system hard disk characterized by comprising
Judge the type of storage system to be detected, is configured to obtain the hard disk of type of the storage system;
The hard disk is being obtained with postponing, is acquiring the hard disk information of each hard disk in the storage system;
According to the hard disk information of each hard disk, each hard disk in the storage system is detected.
2. the method as described in claim 1, which is characterized in that it is described to obtain the hard disk with postponing, acquire the storage
The hard disk information of each hard disk includes: in system
In the hard disk for obtaining the type of the storage system with postponing, it is by the hard disk sum of the storage system and the storage
The record start location information of the hard disk information of each hard disk summarizes and is recorded in the first page pages in uniting;
The hard disk information of each hard disk in the storage system is recorded in the 2nd page pages.
3. method according to claim 2, which is characterized in that the hard disk information by each hard disk in the storage system
Be recorded in the 2nd page pages include:
The hard disk information of each hard disk in the system is recorded in the 2nd page pages;And utilize 4 byte records, one hard disk
Hard disk information.
4. the method as described in claim 1, which is characterized in that the hard disk information according to each hard disk, to described
After each hard disk in storage system is detected further include:
When detecting that a certain hard disk in the storage system breaks down, is sent and prompted to user by preset alarm mode
Signal.
5. method as claimed in claim 4, which is characterized in that described to detect that a certain hard disk in the storage system goes out
When existing failure, sending standby signal to user by preset alarm mode includes:
When detecting a certain hard disk failure in the storage system, faulty hard disk is provided a user using the pop-up of the end GUI
Information, in order to which user checks and repairs to the faulty hard disk.
6. method as claimed in claim 4, which is characterized in that described to detect that a certain hard disk in the storage system goes out
When existing failure, sending standby signal to user by preset alarm mode includes:
When detecting that a certain hard disk in the storage system breaks down, is alarmed using the end GUI and pass through event
Barrier lamp flashing reminds user to check faulty hard disk.
7. a kind of device for detecting storage system hard disk characterized by comprising
Judgment module, for judging the type of storage system to be detected, so as to obtain the storage system type hard disk
Configuration;
Acquisition module acquires the hard disk information of each hard disk in the storage system for obtaining the hard disk with postponing;
Detection module examines each hard disk in the storage system for the hard disk information according to each hard disk
It surveys.
8. device as claimed in claim 7, which is characterized in that the acquisition module is specifically used for:
In the hard disk for obtaining the type of the storage system with postponing, it is by the hard disk sum of the storage system and the storage
The record start location information of the hard disk information of each hard disk summarizes and is recorded in the first page pages in uniting;
The hard disk information of each hard disk in the storage system is recorded in the 2nd page pages.
9. a kind of equipment for detecting storage system hard disk characterized by comprising
Memory, for storing computer program;
Processor realizes a kind of detection storage system as described in any one of claim 1 to 6 when for executing the computer program
The step of method of system hard disk.
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 a kind of detection storage system as described in any one of claim 1 to 6 when the computer program is executed by processor
The step of method of hard disk.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811463377.5A CN109308237A (en) | 2018-12-03 | 2018-12-03 | A kind of method, apparatus, equipment and storage medium detecting storage system hard disk |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811463377.5A CN109308237A (en) | 2018-12-03 | 2018-12-03 | A kind of method, apparatus, equipment and storage medium detecting storage system hard disk |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109308237A true CN109308237A (en) | 2019-02-05 |
Family
ID=65223462
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811463377.5A Pending CN109308237A (en) | 2018-12-03 | 2018-12-03 | A kind of method, apparatus, equipment and storage medium detecting storage system hard disk |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109308237A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102591591A (en) * | 2011-12-19 | 2012-07-18 | 杭州瑞网广通信息技术有限公司 | Disk detection system, disk detection method and network storage system |
CN104317693A (en) * | 2014-10-30 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | Method for automatically testing hard disk performance fluctuation |
CN105045689A (en) * | 2015-06-25 | 2015-11-11 | 浪潮电子信息产业股份有限公司 | Method for using RAID card to perform hard disk batch detection, monitoring and alerting |
US20150324135A1 (en) * | 2014-05-06 | 2015-11-12 | Netapp, Inc. | Automatic storage system configuration based on workload monitoring |
CN105335271A (en) * | 2015-09-24 | 2016-02-17 | 浪潮电子信息产业股份有限公司 | State monitoring apparatus and comprehensive monitoring system and method |
US20170133104A1 (en) * | 2015-11-11 | 2017-05-11 | Imagination Technologies Limited | Hardware Monitor to Verify Memory Units |
CN107255526A (en) * | 2017-07-27 | 2017-10-17 | 郑州云海信息技术有限公司 | A kind of temperature checking method, detection module and detecting system |
-
2018
- 2018-12-03 CN CN201811463377.5A patent/CN109308237A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102591591A (en) * | 2011-12-19 | 2012-07-18 | 杭州瑞网广通信息技术有限公司 | Disk detection system, disk detection method and network storage system |
US20150324135A1 (en) * | 2014-05-06 | 2015-11-12 | Netapp, Inc. | Automatic storage system configuration based on workload monitoring |
CN104317693A (en) * | 2014-10-30 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | Method for automatically testing hard disk performance fluctuation |
CN105045689A (en) * | 2015-06-25 | 2015-11-11 | 浪潮电子信息产业股份有限公司 | Method for using RAID card to perform hard disk batch detection, monitoring and alerting |
CN105335271A (en) * | 2015-09-24 | 2016-02-17 | 浪潮电子信息产业股份有限公司 | State monitoring apparatus and comprehensive monitoring system and method |
US20170133104A1 (en) * | 2015-11-11 | 2017-05-11 | Imagination Technologies Limited | Hardware Monitor to Verify Memory Units |
CN107255526A (en) * | 2017-07-27 | 2017-10-17 | 郑州云海信息技术有限公司 | A kind of temperature checking method, detection module and detecting system |
Non-Patent Citations (1)
Title |
---|
王海涛等: "一种云存储系统分层性能监测和采集方法", 《西北工业大学学报》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103003799B (en) | Method and system for verifying memory device integrity | |
US20030065759A1 (en) | Event driven storage resource metering | |
CN102567185B (en) | Monitoring method of application server | |
CN109684140A (en) | A kind of slow disk detection method, device, equipment and computer readable storage medium | |
CN103026342B (en) | method and system for verifying memory device integrity | |
CN109034423A (en) | A kind of method, apparatus, equipment and storage medium that fault pre-alarming determines | |
CN107608826A (en) | A kind of fault recovery method, device and the medium of the node of storage cluster | |
CN105302697B (en) | A kind of running state monitoring method and system of density data model database | |
CN101576842A (en) | System and method for monitoring baseboard management controller | |
CN110008129B (en) | Reliability test method, device and equipment for storage timing snapshot | |
CN105955875A (en) | Device and method for monitoring logs of RAID cards | |
CN110413430A (en) | A kind of life-span prediction method of solid state hard disk, device and equipment | |
CN109710501A (en) | A kind of detection method and system of server data transport stability | |
CN107731262A (en) | A kind of storage disk bad block management method, device, equipment and readable storage medium storing program for executing | |
CN106682162A (en) | Log management method and device | |
CN109597746A (en) | fault analysis method and device | |
CN109240917A (en) | A kind of blog management method and relevant apparatus | |
CN107391307A (en) | The method of testing and device of storage area network storage device snapshot functions | |
CN106980468A (en) | Trigger the method and device that RAID array is rebuild | |
CN109213659A (en) | A kind of monitoring method, device and the storage medium of device memory state | |
CN109389697A (en) | Recording method, equipment and the readable storage medium storing program for executing of underground inspection data inputting time | |
CN109460994A (en) | A kind of transaction journal data detection method, device, equipment and readable storage medium storing program for executing | |
CN109308237A (en) | A kind of method, apparatus, equipment and storage medium detecting storage system hard disk | |
CN110532139A (en) | Method for early warning and device | |
CN106708648A (en) | Text data storage checking method and system |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190205 |