CN106708585A - Method and system for grabbing hard disk SMART log through RAID card under Linux system - Google Patents

Method and system for grabbing hard disk SMART log through RAID card under Linux system Download PDF

Info

Publication number
CN106708585A
CN106708585A CN201710002725.8A CN201710002725A CN106708585A CN 106708585 A CN106708585 A CN 106708585A CN 201710002725 A CN201710002725 A CN 201710002725A CN 106708585 A CN106708585 A CN 106708585A
Authority
CN
China
Prior art keywords
hard disk
smartctl
linux system
parameter
raid card
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
CN201710002725.8A
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 CN201710002725.8A priority Critical patent/CN106708585A/en
Publication of CN106708585A publication Critical patent/CN106708585A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3037Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and system for grabbing hard disk SMART log through RAID card under Linux system. In the Linux system, read the DID of the array by utilizing the RAID card, and then the SMART log of the hard disk is accessed directly through the command of system, and through the real-time monitoring of the hard disk, the invention achieved the health warning function. The method and system for grabbing hard disk SMART log through RAID card under Linux system is simple and easy to operate, and can monitor the health status of the hard disk and monitor the health of the hard disk in real time. The method and system for grabbing hard disk SMART log through RAID card under Linux system has the advantages of saving test and problem analysis, positioning time, reducing manpower input, improving product quality and saving cost.

Description

Under a kind of linux system by RAID card capture hard disk SMART daily records method and System
Technical field
The present invention relates to the technical field of server system, captured by RAID card under more particularly to a kind of linux system The method and system of hard disk SMART daily records.
Background technology
Continuing to develop and grow with tide server industry, as the server provider of largest domestic, server Every field has been included in market, especially the main flow field such as finance, internet, the high speed development of internet, the Gao An of information The high reliability of full property and system increasingly becomes company and enterprise, the thing that government pays close attention to the most, and hard disk is used as data storage Main carriers, its stability and reliability are also increasingly taken seriously, therefore are used on our servers for hard disk, must The health status of palpus overall monitor hard disk, so that it is guaranteed that the security of customer data and the quality for ensuring product.
, used as an extremely important server component, its health status is closely bound up with hard disk reliability, currently for hard disk Under direct-connected pattern or SAS mode cards, the health status of hard disk directly can be read with order, but under RAID card pattern, Can not be in real time monitored with order, so under RAID card pattern can be realized, being supervised in real time to hard disk health status with order Control is necessary, and especially when customer complaint problem is processed, is particularly important on hard disk quality is judged.Based on existing , it is necessary to a kind of method can be directed through RAID card, directly with order, monitoring is hard in real time under system for problem present in technology The health status of disk.
The content of the invention
The present invention proposes the method and system for capturing hard disk SMART daily records under a kind of linux system by RAID card, leads to The mode for crossing software is realized, then direct by system command with the DID of RAID card instrument reading array under linux system The smart daily records of access hard disk, by hard disk health status monitor in real time, so as to reach the effect of healthy early warning.
A kind of method for capturing hard disk SMART daily records under linux system by RAID card, it is characterised in that including following Step:Step one, builds test environment;Step 2, installs linux system, installs Avago kits;Step 3, carries out RAID Card configuration, obtains the parameter of RAID array;Step 4, according to the parameter, operation smartctl orders obtain the smart of hard disk Daily record.
Wherein, before the step 2 installs linux system, the SATA3.5 hard disks from HGST are verified.
Wherein, the parameter of the RAID array is DID, and by run order obtain, it is described order for/ storcli64/c0show。
Wherein, the smartctl orders are:Smartctl-all-divice=sat+megaraid, DID/dev/sdb Or smartctl-all-divice=megaraid, DID/dev/sda;The DID is the DID parameters of RAID array.
A kind of system for capturing hard disk SMART daily records under linux system by RAID card, it is characterised in that:Including environment Module is built, test environment is built;Module is installed, linux system is installed, Avago kits are installed;Parameter acquisition module, enters Row RAID card is configured, and obtains the parameter of RAID array;Log acquisition module, according to the parameter, operation smartctl orders are obtained Take the smart daily records of hard disk.
Wherein, the installation module, before linux system is installed, the hard disks of SATA 3.5 from HGST are verified.
Wherein, the parameter of the RAID array is DID, and by run order obtain, it is described order for/ storcli64/c0show。
Wherein, the smartctl orders are:Smartctl-all-divice=sat+megaraid, DID/dev/sdb Or smartctl-all-divice=megaraid, DID/dev/sda;The DID is the DID parameters of RAID array.
As known from the above, the invention discloses the side for capturing hard disk SMART daily records under a kind of linux system by RAID card Method and system, read the DID of array, then by the direct access hard disk of system command under Linux system with RAID card instrument Smart daily records, by hard disk health status monitor in real time, so as to reach the effect of healthy early warning, method of the present invention side Just it is quick, simple effective method.
Brief description of the drawings
Fig. 1 is flow chart of the method for the present invention;
Fig. 2 is system block diagram of the invention.
Fig. 3 is the surface chart of acquisition RAID array DID of the invention.
Fig. 4 is acquisition smart log interface figures of the invention.
Specific embodiment
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below by to be used needed for embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ability For the those of ordinary skill of domain, on the premise of not paying creative work, can also obtain other attached according to these accompanying drawings Figure.
A kind of method for capturing hard disk SMART daily records under linux system by RAID card, method flow is as shown in Figure 1.
Step 101, builds test environment;
It is the basis for obtaining smart to build test environment, can be needing to carry out the server of batch upgrade in the present invention The test environment is built based on unit, its specific included hardware foundation equipment belongs to the known of those skilled in the art General knowledge, will not be repeated here;
Step 102, installs linux system, installs Avago kits;
If the hard disk selected is SATA, before linux system is installed, the hard disks of SATA 3.5 from HGST are tested Card, after installation linux system, then carries out Avago kit installations, installs Avago kits and uses Installing of Command: rpm–ivh storcli-1.19.04-1.noarch.rpm。
Step 103, carries out RAID card configuration, obtains the parameter of RAID array;
The parameter of RAID array is DID, and the DID is obtained by running order, and the order is ./storcli64/ C0show, is the DID of the RAID array obtained after the operation order as shown in Figure 3, the DID of acquisition is respectively 87, 89、86、88、90、85、107、92、91。
Step 104, according to the parameter, operation smartctl orders obtain the smart daily records of hard disk.
When hard disk is SATA, smartctl orders are:Smartctl-all-divice=sat+megaraid, DID/ Dev/sdb, when hard disk is SAS, smartctl orders are:Smartctl-all-divice=megaraid, DID/dev/ sda;Wherein, DID is the DID parameters of RAID array, obtains smart log interfaces as shown in Figure 4.
The system for capturing hard disk SMART daily records under a kind of linux system by RAID card, systematic functional structrue figure such as accompanying drawing Shown in 2, the system includes environmental structure module, installs module, parameter acquisition module and log acquisition module.
Environmental structure module 201, builds test environment;
It is the basis for obtaining smart to build test environment, and environmental structure module 201 its major function is to build acquisition The test environment of smart daily records, this can be built in the present invention based on needing to carry out the server unit of batch upgrade Test environment, its specific included hardware foundation equipment belongs to the common knowledge of those skilled in the art, will not be repeated here;
Module 202 is installed, linux system is installed, Avago kits are installed;
If the hard disk selected is SATA, before linux system is installed, the hard disks of SATA 3.5 from HGST are tested Card, after installation linux system, then carries out Avago kit installations, installs Avago kits and uses Installing of Command: rpm–ivh storcli-1.19.04-1.noarch.rpm。
Parameter acquisition module 203, carries out RAID card configuration, obtains the parameter of RAID array;
The parameter of RAID array is DID, and the DID is obtained by running order, and the order is ./storcli64/ C0show, is the DID parameters for running the RAID array obtained after the order as shown in Figure 3, and the DID of acquisition is respectively 87、89、86、88、90、85、107、92、91。
Log acquisition module 204, according to the parameter, operation smartctl orders obtain the smart daily records of hard disk.
When hard disk is SATA, smartctl orders are:Smartctl-all-divice=sat+megaraid, DID/ Dev/sdb, when hard disk is SAS, smartctl orders are:Smartctl-all-divice=megaraid, DID/dev/ sda;Wherein, DID is the DID parameters of RAID array, obtains smart log interfaces as shown in Figure 4.
The health status direct relation of hard disk hard disk can normal work, so as to be related to the reliability of data storage, The premise for ensuring hard disk energy normal work is the health status of real-time detection hard disk.But server work under the configuration for having RAID card When making, it is impossible to carry out monitor in real time to hard disk health status, so carry out monitor in real time hard disk health status using order under system, It is convenient and swift, simple effective method.Hard disk SMART daily records are captured by RAID card under a kind of linux system of the invention Method and system, under Linux system with RAID card instrument read array DID, then directly accessed by system command The smart daily records of hard disk, by hard disk health status monitor in real time, so as to reach the effect of healthy early warning, present invention operation It is simple and convenient, with the health status of monitor in real time hard disk, and healthy early warning can be carried out to hard disk, save test and case study is determined The time of position, human input is reduced, Improving The Quality of Products is cost-effective.
The foregoing description of the disclosed embodiments, enables those skilled in the art to realize or uses the present invention.To this Various modifications of a little embodiments will be apparent for a person skilled in the art, the General Principle defined in the present invention Can realize in other embodiments without departing from the spirit or scope of the present invention.Therefore, the present invention will not be by It is limited to the embodiments shown herein, but meets consistent with principles disclosed herein and features of novelty most wide Scope.

Claims (8)

1. a kind of method for capturing hard disk SMART daily records under linux system by RAID card, it is characterised in that:Including following step Suddenly:
Step one, builds test environment;
Step 2, installs linux system, installs Avago kits;
Step 3, carries out RAID card configuration, obtains RAID array parameter;
Step 4, according to the parameter, operation smartctl orders obtain the smart daily records of hard disk.
2. method according to claim 1, it is characterised in that:Before the step 2 installs linux system, from HGST The hard disks of SATA 3.5 verified.
3. method according to claim 1, it is characterised in that:The RAID array parameter is DID, and is ordered by running Obtain, the order is ./storcli64/c0show.
4. method according to claim 1, it is characterised in that:The smartctl orders are:smartctl–all– Divice=sat+megaraid, DID/dev/sdb or smartctl-all-divice=megaraid, DID/dev/sda; The DID is the DID parameters of RAID array.
It is 5. a kind of to automatically configure systems of the ssh without cryptographic acess, it is characterised in that:The system includes:
Environmental structure module, builds test environment;
Module is installed, linux system is installed, Avago kits are installed;
Parameter acquisition module, carries out RAID card configuration, obtains the parameter of RAID array;
Log acquisition module, according to the parameter, operation smartctl orders obtain the smart daily records of hard disk.
6. system according to claim 5, it is characterised in that:The installation module, before linux system is installed, selects The hard disks of SATA 3.5 of HGST are verified.
7. system according to claim 5, it is characterised in that:The RAID array parameter is DID, and is ordered by running Obtain, the order is ./storcli64/c0show.
8. system according to claim 5, it is characterised in that:The smartctl orders are:smartctl–all– Divice=sat+megaraid, DID/dev/sdb or smartctl-all-divice=megaraid, DID/dev/sda; The DID is the DID parameters of RAID array.
CN201710002725.8A 2017-01-03 2017-01-03 Method and system for grabbing hard disk SMART log through RAID card under Linux system Pending CN106708585A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710002725.8A CN106708585A (en) 2017-01-03 2017-01-03 Method and system for grabbing hard disk SMART log through RAID card under Linux system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710002725.8A CN106708585A (en) 2017-01-03 2017-01-03 Method and system for grabbing hard disk SMART log through RAID card under Linux system

Publications (1)

Publication Number Publication Date
CN106708585A true CN106708585A (en) 2017-05-24

Family

ID=58906602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710002725.8A Pending CN106708585A (en) 2017-01-03 2017-01-03 Method and system for grabbing hard disk SMART log through RAID card under Linux system

Country Status (1)

Country Link
CN (1) CN106708585A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885465A (en) * 2019-01-25 2019-06-14 深圳证券通信有限公司 The bulk statistics and monitoring method in SSD disk service life on multi-brand server
CN110111836A (en) * 2019-05-15 2019-08-09 东莞记忆存储科技有限公司 Standardized test method and system based on solid state hard disk temperature rise model

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740110A (en) * 2016-01-29 2016-07-06 浪潮电子信息产业股份有限公司 Detection method for smart information of hard disk in linux system
CN106095647A (en) * 2016-06-29 2016-11-09 浪潮电子信息产业股份有限公司 Method for monitoring voltage of Seagate hard disk in real time

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740110A (en) * 2016-01-29 2016-07-06 浪潮电子信息产业股份有限公司 Detection method for smart information of hard disk in linux system
CN106095647A (en) * 2016-06-29 2016-11-09 浪潮电子信息产业股份有限公司 Method for monitoring voltage of Seagate hard disk in real time

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ASROCK: "SATA硬盘安装和RAID配置指南", 《ASROCK.PC.CDN.BITGRAVITY.COM/MANUAL/RAID/FATAL1TY%20H170%20PERFORMANCE/SCHINESE.PDF》 *
DAVEBYRNE: ""LSI RAID Controller – Physical Disk S.M.A.R.T. Status Check (Nagios NRPE)"", 《HTTPS://WWW.DAVE-BYRNE.CO.UK/LSI-RAID-PHYSICAL-DISK-SMART-CHECK-NRPE/》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885465A (en) * 2019-01-25 2019-06-14 深圳证券通信有限公司 The bulk statistics and monitoring method in SSD disk service life on multi-brand server
CN110111836A (en) * 2019-05-15 2019-08-09 东莞记忆存储科技有限公司 Standardized test method and system based on solid state hard disk temperature rise model
CN110111836B (en) * 2019-05-15 2021-06-08 东莞记忆存储科技有限公司 Standardized test method and system based on solid state disk temperature rise performance

Similar Documents

Publication Publication Date Title
EP2836881B1 (en) Embedded prognostics on plc platforms for equipment condition monitoring, diagnosis and time-to-failure/service prediction
CN106126421A (en) Method for automatically testing and comparing PCIE-SSD performance
CN102915269A (en) Method for analyzing common logs of B/S (browser/server) software system
CN103729221A (en) Method and device for writing BIOS debugging information into hard disk
US11740122B2 (en) Autonomous discrimination of operation vibration signals
CN109254922A (en) A kind of automated testing method and device of server B MC Redfish function
CN106708585A (en) Method and system for grabbing hard disk SMART log through RAID card under Linux system
CN103425580A (en) Method for automatically and rapidly obtaining and calibrating configuration information of cloud computing device
CN104750600B (en) Equipment state recording method and system
CN105138293A (en) Disk performance evaluation method based on database
CN103595999B (en) The automatic testing method of intelligent television and automatic detection device
CN106095647A (en) Method for monitoring voltage of Seagate hard disk in real time
US20200110875A1 (en) Vehicle intrusion detection system training data generation
CN108647124A (en) A kind of method and its device of storage skip signal
KR102069793B1 (en) Method for managing electric power energy, and apparatus for performing the same
CN116482460A (en) Fault diagnosis method for power grid equipment and related equipment
US11599404B2 (en) Correlation-based multi-source problem diagnosis
US20220221374A1 (en) Hybrid vibration-sound acoustic profiling using a siamese network to detect loose parts
EP2691858B1 (en) Timeframe based data analysis
CN111651330B (en) Data acquisition method, data acquisition device, electronic equipment and computer readable storage medium
CN114064510A (en) Function testing method and device, electronic equipment and storage medium
US20160210056A1 (en) Determining a cause for low disk space with respect to a logical disk
CN205353225U (en) Multiple electronic parts automatic test equipment
CN104346244A (en) Server hardware detection method
CN117116333B (en) Method and device for testing VPD information of enterprise-level solid state disk

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
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: 20170524