Summary of the invention
The invention provides a kind of monitoring hard-disk status method and system, solved and to have obtained the problem that detailed disk state is not easy to manage.
A kind of monitoring hard-disk status method comprises:
Collect the disk state data of at least one hard disk;
Described disk state data are sent to visualization device, show described disk state data by described visualization device.
Further, described disk state data comprise bus message and temperature information, and described collection disk state data comprise:
Receive bus message, from described bus message, resolve location, active and the error information that obtains hard disk.
Obtain the temperature information of each hard disk by temperature sensor;
Bus message after resolving and temperature information are carried out data to be compiled.
Further, described disk state data also comprise the disk state extend information, and the disk state data of described at least one hard disk of collection also comprise:
Obtain the disk state extend information of each hard disk by the USB mouth, described disk state extend information comprises hard-disk capacity, mistake read rate, powers up number of times and manufacturer's characteristic.
Further, above-mentioned monitoring hard-disk status method also comprises:
Back up described disk state data.
Further, above-mentioned monitoring hard-disk status method also comprises:
The instruction of reception external inquiry;
According to described external inquiry instruction, from the disk state data of backup, read the disk state data of believing;
Described disk state data are sent to visualization device, show by described visualization device.
The present invention also provides a kind of monitoring hard-disk status system, comprises visualization device and driver element;
Described driver element, the disk state data that are used to collect at least one hard disk, and described disk state data are sent to visualization device;
Described visualization device is used to show described disk state data.
Further, above-mentioned monitoring hard-disk status system also comprises resolution unit and temperature monitoring unit;
Described resolution unit is used to receive bus message, resolves location, active and the error information that obtains hard disk from described bus message, sends to described driver element;
Described temperature monitoring unit is used for obtaining by temperature sensor the temperature information of each hard disk, and sends to described driver element.
Further, above-mentioned monitoring hard-disk status system also comprises storage unit and communication unit;
Described storage unit is used to back up described disk state data;
Described communication unit is used for obtaining by the USB mouth disk state extend information of each hard disk, and described disk state extend information comprises hard-disk capacity, mistake read rate, powers up number of times and manufacturer's characteristic.
Further, above-mentioned monitoring hard-disk status system also comprises the redundant configuration parts;
Described redundant configuration parts are used to monitor the duty of each functional unit, and when finding the functional unit of fault, replace the functional unit work of this fault.
Further, described driver element, also be used to receive the external inquiry instruction, and according to described external inquiry instruction, from the disk state data of described Storage unit backups, read the disk state data of believing, described disk state data are sent to visualization device, show by described visualization device.
Embodiments of the invention provide a kind of monitoring hard-disk status method and system, collect the disk state data of at least one hard disk, and described disk state data are sent to visualization device, show described disk state data by described visualization device, provide a kind of effective and efficient manner directly perceived more to obtain the abundanter running state information of hard disk, realized the visualized management of disk state.
Embodiment
In the commercial computing application of growing high-performance field, equilibrium configuration of the availability of system, intuitive, system resource etc. is had relatively high expectations, only can not provide the details of disk state, just seem very necessary so propose a kind of visualized management architecture of the commercial server hard disc state of using that is applicable to by pilot lamp indication hard disk duty.
In order to address the above problem, embodiments of the invention provide a kind of monitoring hard-disk status system, and its structure comprisesresolution unit 101 as shown in Figure 1,driver element 102,temperature monitoring unit 103,storage unit 104,communication unit 105 and visualization device 106.This system also comprises at least onehard disk 107 under the same server, andcommunication unit 105 is connected in the USB mouth of hard disk.
Driver element 102 adopts general Single Chip Microcomputer (SCM) system, has specifically adopted ATMEGA1281 microcontroller able to programme;Resolution unit 101 has adopted FPGA or CPLD, is specifically as follows the EPM240T100C5 programmable logic chip;Communication unit 105 can adopt general USB interface chip; Thatstorage unit 104 is selected for use is EEPROM, and its capacity depends on the size of storage disk state data.
Resolution unit 101 is main be responsible for the SFF-8485 protocol analysis, with the packet exchange of server communication;Driver element 102 is cores of architecture, be responsible for accepting to gather the bus message of the hard disk afterresolution unit 101 is resolved, the temperature information of the employing hard disk oftemperature monitoring unit 103 by being distributed in the temperature sensor on the hard disk backboard,visualization device 106 show the disk state data in patterned mode and coordinate communication between each resource;Temperature monitoring unit 103 is made up of the temperature sensor collection, by the reasonable distribution on hard disk backboard, to obtain to specify the temperature parameter of hard disk areas;Storage unit 104 is in system's power down or when delaying machine, be responsible for the preservation of disk state data,, need not to start server owing to should have independent current source based on thevisualization device 106 of SFF-8485 agreement, can check previous hard disc data, the information of hard disk aspect is provided for the systemfailure.Communication unit 105 is connected in the USB mouth of server, obtains more hard disk informations by operating system, comprise hard-disk capacity, hard disk disk body working temperature, mistake read rate, power up number of times, manufacturer's characteristic etc.
In addition, the driver element of the embodiment of the invention also hasredundant configuration parts 108, is used for each functional unit in the system is monitored.When finding to have functional unit to break down,redundant configuration parts 108 taking over fault parts work on, thereby improve the overall usability of system.For example,redundant configuration parts 108 are regularly accepted the normal run signal of system fromdriver element 102, if do not receivedriver element 102 normal run signal in continuous three time intervals, withreset drives unit 102, makedriver element 102 standbies,redundant configuration parts 108 taking over fault parts are finished the analysis of bus message and are extracted, and work on.Optionally, also can onredundant configuration parts 108, connect disk state LED light group, stipulate the different corresponding functional units of pilot lamp combination, when the discovery feature cell failure, provide the corresponding external LED indication of this functional unit.
In a typical configuration surroundings, 8 SAS hard disks that adopt 1 station server to dispose are as the acquisition applications object, resolution unit is by obtaining bus message (location to the SFF-8485 protocol analysis, active, error), the disk state data are sent to disk state and separate the display driver unit.Bus message comprises location, active and the error information of hard disk; Location information is used for the physical positioning of disk, illustrates whether current hard disk is selected; The active information of hard disk is used to illustrate whether current hard disk is in configuration or presence, read-write state etc.; The error information of hard disk is used to illustrate whether current hard disk is in fault or falls the plate-like attitude.
Temperature monitoring unit 103 is gathered the temperature parameter that obtains near the position of corresponding hard disk, and is sent todriver element 101 by being distributed in the temperature sensor on the hard disk backboard.Afterdriver element 101 compiled through data, the disk state data in real time was sent tovisualization device 106, thereby constructs the server system of disk state visual patternization.Compare with traditional server system hard disk system status indicating structure, this novel architecture has graphically, characteristics such as compatible and extended attribute flexibly.
Embodiments of the invention also provide a kind of monitoring hard-disk status method, can combine with above-mentioned monitoring hard-disk status system, realize the monitoring and the disk state visualization of data of disk state are shown, the flow process of using this method comprises as shown in Figure 2:
Step 201, driver element are collected the disk state data of at least one hard disk;
This step comprises specifically as shown in Figure 3:
2011, resolution unit receives bus message, resolves location, active and the error information that obtains hard disk from described bus message;
In this step, after resolution unit has been resolved bus message, the bus message after resolving is sent to driver element.
2012, the temperature monitoring unit obtains the temperature information of each hard disk by temperature sensor;
In this step, the humidity detection unit sends to driver element with the temperature information that obtains.
2013, bus message after driver element will be resolved and temperature information carry out data and compile.
Step 202, driver element send to visualization device with described disk state data, show described disk state data by described visualization device;
In the embodiment of the invention, visualization device is specially LCD display.
In addition, can also issue the inquiry indication by graphical interfaces, driver element is after receiving the external inquiry instruction, according to described external inquiry instruction, from the disk state data of backup, read the disk state data of believing, described disk state data are sent to visualization device, show by described visualization device.
The monitoring hard-disk status method and system that embodiments of the invention provide, on the basis that does not change existing server hard disc framework, directly by SFF-8485 protocol bus and system interconnect, with the systemic-function refinement, finish by different functional units respectively, can dispose flexibly, reduce the complexity of system management; The backup of realization disk state data is deposited, and after breaking away from server, still can transfer inquiry hard disk running status record, for searching of the system failure provides effective and feasible approach, has realized graphical, the interfaceization of hard disk service data.
One of ordinary skill in the art will appreciate that and realize that all or part of step that the foregoing description method is carried is to instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, this program comprises one of step or its combination of method embodiment when carrying out.
In addition, each functional unit in each embodiment of the present invention can adopt the form of hardware to realize, also can adopt the form of software function module to realize.If described integrated module realizes with the form of software function module and during as independently production marketing or use, also can be stored in the computer read/write memory medium.
The above-mentioned storage medium of mentioning can be a ROM (read-only memory), disk or CD etc.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the described protection domain of claim.