CN104035855A - Method and device for monitoring hard disks - Google Patents

Method and device for monitoring hard disks Download PDF

Info

Publication number
CN104035855A
CN104035855A CN201410265173.6A CN201410265173A CN104035855A CN 104035855 A CN104035855 A CN 104035855A CN 201410265173 A CN201410265173 A CN 201410265173A CN 104035855 A CN104035855 A CN 104035855A
Authority
CN
China
Prior art keywords
state information
disk state
hard disk
disk
monitoring
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
CN201410265173.6A
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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201410265173.6A priority Critical patent/CN104035855A/en
Publication of CN104035855A publication Critical patent/CN104035855A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a method and a device for monitoring hard disks, and relates to the field of computers. By the aid of the method and the device, the hard disks can be monitored in real time. The method includes monitoring states of the hard disks and generating state information of the hard disks; enabling a driving processor to output the state information of the hard disks via an I2C (inter-integrated circuit) or SMBUS (system management bus) interface. According to the technical scheme, the method and the device have the advantages that the method and the device are applicable to memory systems, and faults of the hard disks can be timely and effectively discovered.

Description

Hard disk monitoring method and apparatus
Technical field
The present invention relates to computer realm, relate in particular to a kind of hard disk monitoring method and apparatus.
Background technology
Along with the development of the new techniques such as cloud computing, large data, require more and more higher to the real-time servicing of storage system, to disk state in real time, intuitively show, can effectively reflect the duty of hard disk, make staff can find timely and effectively faulty hard disk, the stability of raising system and problem hard disk processing ageing, ensures the trouble-free operation of system.
Summary of the invention
The invention provides a kind of hard disk monitoring method and apparatus, solved the problem to hard disk Real-Time Monitoring.
A kind of hard disk monitoring method, comprising:
Monitoring disk state also generates disk state information;
Drive processor by I2C or SMBUS interface, described disk state information to be exported.
Preferably, drive processor by I2C or SMBUS interface, described disk state information output to be comprised:
Drive described processor the disk state information receiving at once to be exported or exported in batches the disk state information of the multiple different hard disks that receive by described I2C or SMBUS interface.
Preferably, after the step that driving transmission processor is exported described disk state information by I2C or SMBUS interface, also comprise:
Described disk state information is resolved.
Preferably, described disk state information is resolved and is comprised:
Use I2C or SMBUS expansion GPIO unit to resolve described disk state information.
Preferably, after the step that described disk state information is resolved, also comprise:
Analysis result is shown by external unit, and described external unit is pilot lamp or display screen.
The present invention also provides a kind of hard disk monitoring device, comprising:
Monitoring tool, for monitoring disk state and generating disk state information;
Driver output module, for driving processor to pass through I2C or SMBUS interface is exported described disk state information.
Preferably, this device also comprises:
Parsing module, for resolving described disk state information.
Preferably, described parsing module comprises:
I2C or SMBUS expansion GPIO unit, for resolving described disk state information.
Preferably, this device also comprises:
Display module, shows analysis result by external unit, described external equipment is pilot lamp or display screen.
The invention provides a kind of hard disk monitoring method and apparatus, monitoring generates disk state information, drive processor by I2C or SMBUS interface, described disk state information to be exported, having realized hard disk failure timely and effectively finds, improve the ageing of the stability of system and problem hard disk processing, solved the problem to hard disk Real-Time Monitoring.
Brief description of the drawings
The process flow diagram of a kind of hard disk monitoring method that Fig. 1 provides for embodiments of the invention one;
The structural representation of a kind of hard disk monitoring device that Fig. 2 provides for embodiments of the invention two;
The structural representation of a kind of hard disk monitoring device that Fig. 3 provides for embodiments of the invention three.
Embodiment
In order to improve the stability of system and the processing of problem hard disk is ageing, embodiments of the invention provide a kind of hard disk monitoring method and apparatus.Hereinafter in connection with accompanying drawing, embodiments of the invention are elaborated.It should be noted that, in the situation that not conflicting, the combination in any mutually of the feature in embodiment and embodiment in the application.
First by reference to the accompanying drawings, embodiments of the invention one are described.
The embodiment of the present invention provides a kind of hard disk monitoring method, uses the method to realize to the flow process of disk state Real-Time Monitoring as shown in Figure 1, comprising:
Step 101, monitoring generate disk state information;
In this step, specifically can carry out hard disk monitoring and generate disk state information by monitoring tool smartmontools.
Step 102, driving processor are exported described disk state information by I2C or SMBUS interface;
In this step, drive described processor the disk state information receiving at once to be exported or exported in batches the disk state information of the multiple different hard disks that receive by described I2C or SMBUS interface.Described processor is specially CPU.
Step 103, described disk state information is resolved;
In this step, use I2C or SMBUS expansion GPIO unit to resolve described disk state information.
Step 104, analysis result is shown by external unit, described external unit is pilot lamp or display screen;
Preferably, also analysis result can be shown by external unit, as be shown on screen, or indicate by the light on and off of multiple pilot lamp which hard disk is whether fault.
Below in conjunction with accompanying drawing, embodiments of the invention two are described.
The embodiment of the present invention provides a kind of hard disk monitoring device, and this device as shown in Figure 2, comprising:
Monitoring tool 201, for monitoring disk state and generating disk state information;
Driver output module 202, for driving processor to pass through I2C or SMBUS interface is exported described disk state information.
Preferably, this device also comprises:
Parsing module 203, for resolving described disk state information.
Preferably, described parsing module 203 comprises:
I2C or SMBUS expansion GPIO unit 2031, for resolving described disk state information.
Preferably, this device also comprises:
Display module 204, shows analysis result by external unit, described external equipment is pilot lamp or display screen.
Below in conjunction with accompanying drawing, embodiments of the invention three are described.
The embodiment of the present invention provides a kind of hard disk monitoring device, based on hard disk control and monitoring tool smartmontools, I2C or SMBUS interface by CPU are exported disk state inter-area traffic interarea, and the disk state inter-area traffic interarea of output is resolved with display device and carried out the real-time demonstration of each disk state by disk state.By hard disk state indicator lamp in real time, show intuitively, can effectively reflect and the duty of hard disk make staff can find timely and effectively faulty hard disk, improve the ageing of the stability of system and problem hard disk processing.
The hard disk monitoring device that the embodiment of the present invention provides as shown in Figure 3, comprising:
Disk state information-driven output module 301: this driver module operates in operating system, outputs to the disk state information-driven of hard disk control and monitoring tool smartmontools output I2C or the SMBUS interface of CPU.
Disk state parsing module 302: the I2C or the SMBUS interface that connect CPU, I2C by its I2C or SMBUS expansion GPIO unit to CPU or the disk state inter-area traffic interarea of SMBUS interface output are resolved, the information that the data after parsing are each disk state.
Disk state display module 303: the status information of the each hard disk after parsing outputs to hard disk state indicator lamp, hard disk state indicator lamp shows in real time to the state of hard disk.
Embodiments of the invention provide a kind of hard disk monitoring method and apparatus, carry out the monitoring of disk state based on smartmontools instrument, drive I2C or the SMBUS interface of CPU, I2C or SMBUS interface by CPU are exported disk state information, the disk state information exchange of output is crossed disk state parsing and is resolved with I2C or SMBUS expansion GPIO unit in display device, and the status indication information that the signal after parsing is each hard disk the hard disk state indicator lamp outputing in device show.By hard disk state indicator lamp in real time, show intuitively, can effectively reflect and the duty of hard disk make staff can find timely and effectively faulty hard disk, improve the ageing of the stability of system and problem hard disk processing.
The all or part of step that one of ordinary skill in the art will appreciate that above-described embodiment can realize by computer program flow process, described computer program can be stored in a computer-readable recording medium, described computer program (as system, unit, device etc.) on corresponding hardware platform is carried out, in the time carrying out, comprise step of embodiment of the method one or a combination set of.
Alternatively, all or part of step of above-described embodiment also can realize with integrated circuit, and these steps can be made into respectively integrated circuit modules one by one, or the multiple modules in them or step are made into single integrated circuit module realize.Like this, the present invention is not restricted to any specific hardware and software combination.
Each device/functional module/functional unit in above-described embodiment can adopt general calculation element to realize, and they can concentrate on single calculation element, also can be distributed on the network that multiple calculation elements form.
Each device/functional module/functional unit in above-described embodiment is realized and during as production marketing independently or use, can be stored in a computer read/write memory medium using the form of software function module.The above-mentioned computer read/write memory medium of mentioning can be ROM (read-only memory), disk or CD etc.
Any be familiar with those skilled in the art the present invention disclose technical scope in, can expect easily change or replace, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain described in claim.

Claims (9)

1. a hard disk monitoring method, is characterized in that, comprising:
Monitoring disk state also generates disk state information;
Drive processor by I2C or SMBUS interface, described disk state information to be exported.
2. hard disk monitoring method according to claim 1, is characterized in that, drives processor by I2C or SMBUS interface, described disk state information output to be comprised:
Drive described processor the disk state information receiving at once to be exported or exported in batches the disk state information of the multiple different hard disks that receive by described I2C or SMBUS interface.
3. hard disk monitoring method according to claim 1, is characterized in that, after the step that driving transmission processor is exported described disk state information by I2C or SMBUS interface, also comprises:
Described disk state information is resolved.
4. hard disk monitoring method according to claim 3, is characterized in that, described disk state information is resolved and comprised:
Use I2C or SMBUS expansion GPIO unit to resolve described disk state information.
5. according to the hard disk monitoring method described in claim 3 or 4, it is characterized in that, after the step that described disk state information is resolved, also comprise:
Analysis result is shown by external unit, and described external unit is pilot lamp or display screen.
6. a hard disk monitoring device, is characterized in that, comprising:
Monitoring tool, for monitoring disk state and generating disk state information;
Driver output module, for driving processor to pass through I2C or SMBUS interface is exported described disk state information.
7. hard disk monitoring device according to claim 6, is characterized in that, this device also comprises:
Parsing module, for resolving described disk state information.
8. hard disk monitoring device according to claim 7, is characterized in that, described parsing module comprises:
I2C or SMBUS expansion GPIO unit, for resolving described disk state information.
9. according to the hard disk monitoring device described in claim 7 or 8, it is characterized in that, this device also comprises:
Display module, shows analysis result by external unit, described external equipment is pilot lamp or display screen.
CN201410265173.6A 2014-06-13 2014-06-13 Method and device for monitoring hard disks Pending CN104035855A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410265173.6A CN104035855A (en) 2014-06-13 2014-06-13 Method and device for monitoring hard disks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410265173.6A CN104035855A (en) 2014-06-13 2014-06-13 Method and device for monitoring hard disks

Publications (1)

Publication Number Publication Date
CN104035855A true CN104035855A (en) 2014-09-10

Family

ID=51466629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410265173.6A Pending CN104035855A (en) 2014-06-13 2014-06-13 Method and device for monitoring hard disks

Country Status (1)

Country Link
CN (1) CN104035855A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461800A (en) * 2014-11-24 2015-03-25 英业达科技有限公司 Hard disk running state detection system
CN105468557A (en) * 2015-11-20 2016-04-06 浪潮电子信息产业股份有限公司 Isolation method for avoiding interference to SMBUSes (System Management Bus)
CN106033234A (en) * 2015-03-20 2016-10-19 联想(北京)有限公司 Information processing method and server
CN106055456A (en) * 2016-06-23 2016-10-26 乐视控股(北京)有限公司 Monitoring method and monitoring system for terminal state
CN108763035A (en) * 2018-05-28 2018-11-06 郑州云海信息技术有限公司 A kind of instruction machine box for server internal hard drive status system and method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461800A (en) * 2014-11-24 2015-03-25 英业达科技有限公司 Hard disk running state detection system
CN106033234A (en) * 2015-03-20 2016-10-19 联想(北京)有限公司 Information processing method and server
CN105468557A (en) * 2015-11-20 2016-04-06 浪潮电子信息产业股份有限公司 Isolation method for avoiding interference to SMBUSes (System Management Bus)
CN105468557B (en) * 2015-11-20 2018-09-04 浪潮电子信息产业股份有限公司 A kind of partition method for avoiding SMBUS from being disturbed
CN106055456A (en) * 2016-06-23 2016-10-26 乐视控股(北京)有限公司 Monitoring method and monitoring system for terminal state
CN108763035A (en) * 2018-05-28 2018-11-06 郑州云海信息技术有限公司 A kind of instruction machine box for server internal hard drive status system and method

Similar Documents

Publication Publication Date Title
US9146823B2 (en) Techniques for testing enclosure management controller using backplane initiator
US9304562B2 (en) Server rack system and power management method applicable thereto
CN103473167B (en) The fault display method of server and device
CN104035855A (en) Method and device for monitoring hard disks
US9367510B2 (en) Backplane controller for handling two SES sidebands using one SMBUS controller and handler controls blinking of LEDs of drives installed on backplane
CN104516802A (en) Method and system for indicating statuses of different types of hard disks
US10832536B2 (en) Guided cable management
CN113302677A (en) System and method for performing hardware management and configuration in a data center with augmented reality and sensor data
US8954619B1 (en) Memory module communication control
CN102478800A (en) System and method for monitoring electric power sequential signals
US10120702B2 (en) Platform simulation for management controller development projects
US20190026240A1 (en) System and method for controlling multi-function pins in management controller stack
US9916273B2 (en) Sideband serial channel for PCI express peripheral devices
CN105573895A (en) Double-control storage based HDD (hard disk drive) indicating light design method and module
US8762696B2 (en) Firmware with a plurality of emulated instances of platform-specific management firmware
CN113608970A (en) Core board, server, failure recovery method, device and storage medium
US20150370679A1 (en) Server and device for analyzing a signal thereof
US10007583B2 (en) Generating a data structure to maintain error and connection information on components and use the data structure to determine an error correction operation
US8516311B2 (en) System and method for testing peripheral component interconnect express switch
US20210065348A1 (en) Intelligent cabling and connection validation
TWI605347B (en) System of flexible server configuration
US10289429B2 (en) Multiple sign controller system using multiple virtual sign controllers
CN109491876A (en) A kind of server and its CPU IERR miscue system
US11392440B2 (en) Hard disk status monitoring system and hard disk status monitoring method
US9811345B2 (en) Utilizing computing resources under a disabled processor node without fully enabling the disabled processor node

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140910

RJ01 Rejection of invention patent application after publication