CN107766191A - The automatic detecting storage information of Linux systems and the method for testing of health status - Google Patents

The automatic detecting storage information of Linux systems and the method for testing of health status Download PDF

Info

Publication number
CN107766191A
CN107766191A CN201711072413.0A CN201711072413A CN107766191A CN 107766191 A CN107766191 A CN 107766191A CN 201711072413 A CN201711072413 A CN 201711072413A CN 107766191 A CN107766191 A CN 107766191A
Authority
CN
China
Prior art keywords
disk
raid
testing
health status
information
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
Application number
CN201711072413.0A
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 CN201711072413.0A priority Critical patent/CN107766191A/en
Publication of CN107766191A publication Critical patent/CN107766191A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

A kind of method of testing of automatic detecting storage information and health status based on linux system of the present application.By the detection instruction in hard disk hardware to the hardware of hard disk as magnetic head, disc, motor, circuit running situation be monitored, record and with manufacturer set by default safety value compared with, if the situation of monitoring by or beyond the safe range of default safety value, can is made from trend user by the monitoring hardware or software of main frame and alerts and carry out slight automatic reparation, to ensure the safety of hard disc data in advance.

Description

The automatic detecting storage information of linux system and the method for testing of health status
Technical field
The present invention relates to hard disk test field, and in particular to a kind of automatic detecting storage information based on linux system and The method of testing of health status.
Background technology
With the demand of great capacity data storage, disk size is increasing at present, is set by storage card or other hardware The technology that the standby disk by certain capacity establishes more massive store with a kind of specific rule continues to develop, to big data In storing process, the health status of hardware disk just turns into another indispensable focus.Therefore, each piece of hard disk (bag Include IDE, SATA, SCSI) operation when, some reference records of itself are got off, these parameters include model, capacity, Temperature, density, sector, tracking time, transmission, bit error rate etc., when hard disk has been run it is thousands of small when after, many inherent physics ginsengs Count a certain parameter that can all change and exceed alarm threshold value, then illustrate hard disk close to damage, this is alarmed if user ignores It is continuing with, then hard disk will become very unreliable, and possible breakdown causes loss of data at any time.
For such case, the present application a kind of automatic detecting storage information and health status based on linux system Method of testing.
The content of the invention
The present invention is that the test side of a kind of disk state automatic detection and early warning is realized using SMART and MegaCli instruments Method.
MegaCli is a management service hardware RAID software, and all letters of current raid card can be understood by it Breath, include the model of raid card, raid array type, the upper each Disk States of raid, etc..MegaCli can accomplish inspection, Typically pass through MegaCli Media Error Count:0 Other Error Count:0 the two numerical value determine array Whether middle disk is problematic;Medai Error Count represent the possible mistake of disk, it may be possible to which disk has bad track, and this value is not For 0 it is noted that numerical value is bigger, danger coefficient is higher, and Other Error Count represent that disk there may be loosening, may Need to be inserted into again.MegaCli can be detected to disk all in array so as to notify administrative staff.
Running situation by the detection instruction in hard disk hardware to hardware such as magnetic head, disc, motor, the circuit of hard disk It is monitored, records and compared with the default safety value set by manufacturer, if monitoring situation or will exceeds default safety The safe range of value, it is possible to made by the monitoring hardware of main frame or software from trend user alert and carry out it is slight automatic Repair, to ensure the safety of hard disc data in advance.
Specifically, a kind of the automatic detecting storage information based on linux system and health status is claimed in the application Method of testing, it is characterised in that this method specifically comprises the following steps:
Automatic installation MegaCli instruments;
Print Disk Properties;
Scan and print raid card id information;
With reference to current Disk State, if raid information prints raid states, if not printing disc information;
Check all physics disk unit FW;
No. slot is printed corresponding to all physical disks;
Check whether disk is supported and open smart technologies, printing FW, No. slot, raid dev attributes, enumerate FW versions This;
In the case where hard disk and operating system all support SMART technologies and open, if disk state is bad, display police Accuse information.
The method of testing of automatic detecting storage information based on linux system and health status as described above, its feature Also reside in, disc information includes model, capacity, temperature, density, sector, tracking time, transmission, the bit error rate.
Brief description of the drawings
Fig. 1, automatic testing process figure of the present invention
Embodiment
Automatic test of the present invention specific implementation step is illustrated below by one embodiment.
Present invention is mainly used for raid card of being arranged in pairs or groups on storage machine or server, the disk under linux system carries out automatic Inspection corresponding information and health status, it can realize following functions:
1st, Disk Properties are printed;
The 2nd, MegaCli instruments are installed automatically;
3rd, scan and print raid card id information;
4th, with reference to current Disk State, if raid information prints raid states, if not printing disc information;
5th, all physics disk unit FW are checked;
6th, No. slot is printed corresponding to all physical disks;
7th, check whether disk is supported and open smart technologies, print raid dev attributes, enumerate FW versions;
8th, in the case where hard disk and operating system all support SMART technologies and open, if disk state is bad, SMART technologies can show English warning message on screen:“WARNING:IMMEDIATLY BACKUP YOUR DATA AND REPLACE YOUR HARD DISK DRIVE, A FAILURE MAY BE IMMINENT ".
It is the flow chart of automatic test of the present invention shown in accompanying drawing 1.
1, setup test environment
Hardware requirement:Server or storage one, machine/raid card/disk;
Software requirement:MegaCli instruments, linux system.
2, build test environment
Collocation raid card and disk to be measured on server or storage machine, by MegaCli instruments and it is somebody's turn to do into linux system Automatized script is copied under desktop, testing results application program.
Application program part content is as follows:
It should be evident that illustrated above is only the specific embodiment of the present invention, for the common skill in this area For art personnel, on the premise of not paying creative work, other technical schemes can also be obtained according to above-described embodiment, And the equivalent variations made in the scope of protection of the invention all should be fallen within the scope of protection of the present invention, and belong to the present invention The scope of protection.
In summary, automated testing method of the present invention, realize simply, without manual operation, really realize fast Fast automatic test, drastically increase research and development test, production efficiency.

Claims (2)

  1. A kind of 1. method of testing of automatic detecting storage information and health status based on linux system, it is characterised in that the party Method specifically comprises the following steps:
    Automatic installation MegaCli instruments;
    Print Disk Properties;
    Scan and print raid card id information;
    With reference to current Disk State, if raid information prints raid states, if not printing disc information;
    Check all physics disk unit FW;
    No. slot is printed corresponding to all physical disks;
    Check whether disk is supported and open smart technologies, printing FW, No. slot, raid dev attributes, enumerate FW versions;
    In the case where hard disk and operating system all support SMART technologies and open, if disk state is bad, warning letter is shown Breath.
  2. 2. the method for testing of the automatic detecting storage information based on linux system and health status as claimed in claim 1, its It is further characterized in that, disc information includes model, capacity, temperature, density, sector, tracking time, transmission, the bit error rate.
CN201711072413.0A 2017-11-03 2017-11-03 The automatic detecting storage information of Linux systems and the method for testing of health status Pending CN107766191A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711072413.0A CN107766191A (en) 2017-11-03 2017-11-03 The automatic detecting storage information of Linux systems and the method for testing of health status

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711072413.0A CN107766191A (en) 2017-11-03 2017-11-03 The automatic detecting storage information of Linux systems and the method for testing of health status

Publications (1)

Publication Number Publication Date
CN107766191A true CN107766191A (en) 2018-03-06

Family

ID=61272113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711072413.0A Pending CN107766191A (en) 2017-11-03 2017-11-03 The automatic detecting storage information of Linux systems and the method for testing of health status

Country Status (1)

Country Link
CN (1) CN107766191A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108647136A (en) * 2018-05-10 2018-10-12 南京道熵信息技术有限公司 Hard disk corruptions prediction technique and device based on SMART information and deep learning
CN110427528A (en) * 2019-07-31 2019-11-08 东莞记忆存储科技有限公司 SSD identifier test method, device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207820A (en) * 2013-02-05 2013-07-17 北京百度网讯科技有限公司 Method and device for fault positioning of hard disk on basis of raid card log
CN103984615A (en) * 2014-05-12 2014-08-13 浪潮(北京)电子信息产业有限公司 Method and device for realizing magnetic-disk monitoring
CN104866411A (en) * 2015-06-08 2015-08-26 北京奇虎科技有限公司 Monitoring and analyzing method and device for solid state disks
CN105045689A (en) * 2015-06-25 2015-11-11 浪潮电子信息产业股份有限公司 Method for using RAID card to perform hard disk batch detection, monitoring and alerting
CN105930187A (en) * 2016-04-21 2016-09-07 浪潮电子信息产业股份有限公司 Method for batch refreshing of FW of Mega SAS RAID cards

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207820A (en) * 2013-02-05 2013-07-17 北京百度网讯科技有限公司 Method and device for fault positioning of hard disk on basis of raid card log
CN103984615A (en) * 2014-05-12 2014-08-13 浪潮(北京)电子信息产业有限公司 Method and device for realizing magnetic-disk monitoring
CN104866411A (en) * 2015-06-08 2015-08-26 北京奇虎科技有限公司 Monitoring and analyzing method and device for solid state disks
CN105045689A (en) * 2015-06-25 2015-11-11 浪潮电子信息产业股份有限公司 Method for using RAID card to perform hard disk batch detection, monitoring and alerting
CN105930187A (en) * 2016-04-21 2016-09-07 浪潮电子信息产业股份有限公司 Method for batch refreshing of FW of Mega SAS RAID cards

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108647136A (en) * 2018-05-10 2018-10-12 南京道熵信息技术有限公司 Hard disk corruptions prediction technique and device based on SMART information and deep learning
CN108647136B (en) * 2018-05-10 2021-05-04 南京道熵信息技术有限公司 Hard disk damage prediction method and device based on SMART information and deep learning
CN110427528A (en) * 2019-07-31 2019-11-08 东莞记忆存储科技有限公司 SSD identifier test method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN102591591B (en) Disk detection system, disk detection method and network store system
CN103455395B (en) The detection method of a kind of hard disk failure and device
CN102279775B (en) Method for processing failure of hard disk under Linux system
TWI479309B (en) Apparatus and method for controlling a solid state disk
US7412631B2 (en) Methods and structure for verifying domain functionality
CN100504795C (en) Computer RAID array early-warning system and method
CN110164501B (en) Hard disk detection method, device, storage medium and equipment
EP1860556A2 (en) Storage system and control method thereof
US20080198489A1 (en) Cartridge drive diagnostic tools
CN112732477B (en) Method for fault isolation by out-of-band self-checking
CN105468482B (en) Hard disk position identification and fault diagnosis method and server equipment thereof
CN109284207A (en) Hard disc failure processing method, device, server and computer-readable medium
CN103955417A (en) Computer hard disc data detecting equipment and method
CN103207820A (en) Method and device for fault positioning of hard disk on basis of raid card log
CN109684141A (en) A kind of disk failure diagnostic method, device, terminal and readable storage medium storing program for executing
US20160133338A1 (en) Self-testing data storage devices and methods
CN100498961C (en) Hard disc detecting device and method
CN107766191A (en) The automatic detecting storage information of Linux systems and the method for testing of health status
Huang et al. Characterizing disk health degradation and proactively protecting against disk failures for reliable storage systems
US8843781B1 (en) Managing drive error information in data storage systems
WO2017220013A1 (en) Service processing method and apparatus, and storage medium
CN102222033A (en) Method and device for saving small computer system interface access error
JP2008257411A (en) Disk control system
CN107807862A (en) Detect the method, apparatus and server of hard disk failure point
CN108519940A (en) A kind of storage device alarm method, system and computer readable storage medium

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: 20180306