CN104794043B - A kind of control method for realizing server hard disc state lighting instruction - Google Patents

A kind of control method for realizing server hard disc state lighting instruction Download PDF

Info

Publication number
CN104794043B
CN104794043B CN201510119669.7A CN201510119669A CN104794043B CN 104794043 B CN104794043 B CN 104794043B CN 201510119669 A CN201510119669 A CN 201510119669A CN 104794043 B CN104794043 B CN 104794043B
Authority
CN
China
Prior art keywords
hard disk
mark
read
port
write
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.)
Active
Application number
CN201510119669.7A
Other languages
Chinese (zh)
Other versions
CN104794043A (en
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.)
SHENZHEN YUESON TECHNOLOGY DEVELOPMENT Co Ltd
Original Assignee
SHENZHEN YUESON TECHNOLOGY DEVELOPMENT 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 SHENZHEN YUESON TECHNOLOGY DEVELOPMENT Co Ltd filed Critical SHENZHEN YUESON TECHNOLOGY DEVELOPMENT Co Ltd
Priority to CN201510119669.7A priority Critical patent/CN104794043B/en
Publication of CN104794043A publication Critical patent/CN104794043A/en
Application granted granted Critical
Publication of CN104794043B publication Critical patent/CN104794043B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of control method for realizing server hard disc state lighting instruction, including step 1, the register on South Bridge chip on SATA controller read to detect whether mainboard sata port inserts hard disk by the timing of hard disk detecting system;If step 2, having detected hard disk access, the indicator lamp of sata port correspondence position is lighted;If being accessed without hard disk, extinguish the indicator lamp of sata port correspondence position;Step 3, disk read-write mark is set in hard disc data read-write interface module, the mark is inquired about using the timing of LED control system and answers the LED of port hard disk to read and write indicator lamp according to the state control pair of the mark;Step 4, system perform SMART by timing and detect program to scan the health status of hard disk, if detect hard disk corruptions, police instruction is realized by alarm.The present invention is not only widely applicable, reliable and stable, and can indicate various disk states.

Description

A kind of control method for realizing server hard disc state lighting instruction
Technical field
The present invention relates to control technology, more particularly to a kind of control method for realizing server hard disc state lighting instruction.
Background technology
In the prior art, there are as below methods can realize the lighting instruction of disk state:First, pass through hard disk controller Itself is realized, but the hard disk for currently having many models does not support the function;Second, realized by simple discrete circuit, But this pattern typically can only judge whether hard disk has access, it is impossible to judge whether hard disk is in read-write state;3rd, use The data transmission mechanism of SGPIO buses, because support of the different hard disk producers to SGPIO standards is inconsistent, some producers it is hard Disk does not support SGPIO bus protocols;4th, using complexity chip, although the chip can realize the instruction of disk state, This kind of chip it is expensive, cost is higher.In addition, four kinds of methods do not support hard disk health status to indicate above.
The content of the invention
The technical problems to be solved by the invention are:A kind of control for realizing server hard disc state lighting instruction is provided Method, it is not only widely applicable, reliable and stable, cheap, and various disk states can be indicated comprehensively.
In order to solve the above technical problems, the present invention proposes a kind of controlling party for realizing server hard disc state lighting instruction Method, comprise the following steps:
Step 1, read by the timing of hard disk detecting system register on South Bridge chip on SATA controller come Whether detection mainboard sata port inserts hard disk;
If step 2, having detected hard disk access, the indicator lamp of sata port correspondence position is lighted;If detecting does not have Hard disk accesses, then extinguishes the indicator lamp of sata port correspondence position;
Step 3, disk read-write mark is set in hard disc data read-write interface module, the timing of LED control system is inquired about The mark simultaneously answers the LED of port hard disk to read and write indicator lamp according to the state control pair of the mark;
Step 4, system perform SMART by timing and detect program to scan the health status of hard disk, if detecting hard disk During damage, police instruction is realized by alarm.
Further, the alarm is alarm lamp, and police instruction is realized by the flicker of alarm lamp.
Above-mentioned technical proposal at least has the advantages that:Present system stable and reliable operation, it is cheap, disobey Rely in specific hardware system, positioning, the disk read-write shape of hard disk position can be carried out respectively to each hard disk in server The instruction of state, health status, and can easily change function.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow the above and other objects, features and advantages of the present invention can Become apparent, below especially exemplified by preferred embodiment, and describe in detail as follows.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase Mutually combination.The present invention is described further below.
The present invention realizes that the control method of server hard disc state lighting instruction comprises the following steps:
Step 1, read by the timing of hard disk detecting system register on South Bridge chip on SATA controller come Detection mainboard sata port whether insert hard disk, such as, when port0 has hard disk access, the register it is corresponding with port0 certain One meeting is set to 1 by 0, while will indicate that the mark that corresponding ports hard disk whether there is puts 1;Otherwise, when port0 does not have hard disk to connect Fashionable, the register a certain position corresponding with port0 can be set to 0, while the mark that instruction corresponding ports hard disk whether there is by 1 Will is reset.Other several marks also carry out assignment according to identical processing logic.
If step 2, having detected hard disk access, the LED light of sata port correspondence position is lighted;If detect not There is hard disk access, then extinguish the LED light of sata port correspondence position;
Step 3, disk read-write mark is set in hard disc data read-write interface module, LED control system can be looked into regularly Ask the mark and answer the LED of port hard disk to read and write the light on and off of indicator lamp according to the state control pair of the mark, specifically, due to Linux system carries out having to call hard disc data read-write interface module during hard disc data read-write while needs to refer in the module Surely the port numbers (each port can only connect a hard disk) of reading writing harddisk are wanted, disk read-write mark can be now set in the module Will.Such as:When system will write data to hard disk corresponding to port0, in linux system reading writing harddisk data interface module (generally ATA drive modules) is inner to be set to 1 read-write mark corresponding to port0, otherwise resets.Same mode is in Linux systems Confirm whether other port have reading and writing data in system reading writing harddisk data interface module, if there are read-write data, corresponding port Disk read-write mark be set to 1, otherwise reset.And LED control system can extinguish all port during system initialization when working Hard disk LED reading and writing lamp, then system can timing read hard disk position and come what corresponding ports hard disk in alignment system whether there is Mark, if this is masked as 1, referred to by controlling corresponding GPIO level to light the LED that corresponding instruction hard disk whether there is for height Show lamp, otherwise, by controlling corresponding GPIO level to be low, the corresponding LED light that indicates hard disk and whether there is of extinguishing;Enter one Step ground, if port has access hard disk, the value of disk read-write mark is read, if this is masked as 1, by way of controlling GPIO To control whether corresponding port instructions hard disk enters line flicker in the LED of read-write, otherwise, corresponding port instructions hard disk is controlled to be The no LED in read-write does not flash.After completing above-mentioned handling process, the system can sleep certain time, subsequently into the system Re-execute said process.
Step 4, system perform SMART by timing and detect program to scan the health status of hard disk, if detecting hard disk During damage, police instruction is realized by alarm, for example police instruction is realized by the flicker of alarm lamp, during work, timing Perform smart orders detection and scan all hard disks, if testing result is:FAILED, disk alarm lamp is lighted, otherwise extinguishes disk Alarm lamp.
To sum up, method mentioned in the present invention goes in the server product of all operation linux operating systems, System run all right is reliable, cheap, and independent of specific hardware system, each hard disk in server can be distinguished Positioning, the instruction of disk read-write state, health status of hard disk position are carried out, and can easily change function, for example is repaiied Change flicker frequency of disk read-write status indicator lamp etc..
Described above is the embodiment of the present invention, it is noted that for those skilled in the art For, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications are also considered as Protection scope of the present invention.

Claims (2)

1. a kind of control method for realizing server hard disc state lighting instruction, it is characterised in that comprise the following steps:
Step 1, the register on South Bridge chip on SATA controller read to detect master by the timing of hard disk detecting system Whether plate sata port inserts hard disk;When there is hard disk access mainboard SATA port, register is corresponding with the port a certain Position can be set to 1 by 0, while will indicate that the mark that corresponding ports hard disk whether there is puts 1;When mainboard SATA port does not have hard disk During access, register position corresponding with port can be set to 0 by 1, while will indicate that the mark that corresponding ports hard disk whether there is is clear Zero;
If step 2, having detected hard disk access, the indicator lamp of sata port correspondence position is lighted;If detect no hard disk Access, then extinguish the indicator lamp of sata port correspondence position;
Step 3, disk read-write mark is set in hard disc data read-write interface module, inquired about using the timing of LED control system The mark simultaneously answers the LED of port hard disk to read and write indicator lamp according to the state control pair of the mark;
Step 4, system perform SMART by timing and detect program to scan the health status of hard disk, if detecting hard disk corruptions When, police instruction is realized by alarm.
2. the control method as claimed in claim 1 for realizing server hard disc state lighting instruction, it is characterised in that the report Alert device is alarm lamp, and police instruction is realized by the flicker of alarm lamp.
CN201510119669.7A 2015-03-18 2015-03-18 A kind of control method for realizing server hard disc state lighting instruction Active CN104794043B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510119669.7A CN104794043B (en) 2015-03-18 2015-03-18 A kind of control method for realizing server hard disc state lighting instruction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510119669.7A CN104794043B (en) 2015-03-18 2015-03-18 A kind of control method for realizing server hard disc state lighting instruction

Publications (2)

Publication Number Publication Date
CN104794043A CN104794043A (en) 2015-07-22
CN104794043B true CN104794043B (en) 2017-11-10

Family

ID=53558853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510119669.7A Active CN104794043B (en) 2015-03-18 2015-03-18 A kind of control method for realizing server hard disc state lighting instruction

Country Status (1)

Country Link
CN (1) CN104794043B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106611200A (en) * 2015-10-21 2017-05-03 中兴通讯股份有限公司 Fault location method and device of optical fiber electronic tag
CN105893207A (en) * 2016-03-29 2016-08-24 联想(北京)有限公司 Information processing method and electronic device
CN106681890B (en) * 2017-01-10 2019-01-22 郑州云海信息技术有限公司 A kind of disk state instruction device
CN107590051A (en) * 2017-09-06 2018-01-16 郑州云海信息技术有限公司 A kind of device and method of display RACK server hard disc running statuses
CN107943633B (en) * 2017-11-28 2021-06-29 郑州云海信息技术有限公司 Method and device for rapidly reproducing task abort problem of SAS card
CN108680872A (en) * 2018-04-02 2018-10-19 郑州云海信息技术有限公司 A kind of test method suitable for NVME hard disk backboard status lamps
CN111831518A (en) * 2020-07-17 2020-10-27 浪潮商用机器有限公司 Grouping display server group and grouping display hard disk module thereof
CN113204475B (en) * 2021-05-08 2023-01-24 山东英信计算机技术有限公司 Lighting device and method for hard disk of server backboard and server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101158935A (en) * 2006-10-06 2008-04-09 国际商业机器公司 South bridge system and method
CN101202079A (en) * 2006-12-15 2008-06-18 英业达股份有限公司 Hard disk status indicating system
CN101826367A (en) * 2009-06-02 2010-09-08 深圳市朗科科技股份有限公司 Method and device for monitoring reliability of semiconductor storage device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI306241B (en) * 2004-07-12 2009-02-11 Infortrend Technology Inc A controller capable of self-monitoring, a redundant storage system having the same, and its method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101158935A (en) * 2006-10-06 2008-04-09 国际商业机器公司 South bridge system and method
CN101202079A (en) * 2006-12-15 2008-06-18 英业达股份有限公司 Hard disk status indicating system
CN101826367A (en) * 2009-06-02 2010-09-08 深圳市朗科科技股份有限公司 Method and device for monitoring reliability of semiconductor storage device

Also Published As

Publication number Publication date
CN104794043A (en) 2015-07-22

Similar Documents

Publication Publication Date Title
CN104794043B (en) A kind of control method for realizing server hard disc state lighting instruction
US9460042B2 (en) Backplane controller to arbitrate multiplexing of communication
CN104111886B (en) Management system compatible with different GPUs and design method thereof
US7945769B2 (en) Single system board with automatic feature selection based on installed configuration selection unit
US20180260349A1 (en) System and method for detecting types of storage drives connected to backplane controller or enclosure management controller
JP4886601B2 (en) Apparatus and method for operating USB interface equipment
US7694029B2 (en) Detecting miscabling in a storage area network
CN104516802A (en) Method and system for indicating statuses of different types of hard disks
CN109933475A (en) A kind of hard disk hot-plug processing system, method and device
CN101996128A (en) Hard disk state indicator lamp control system
JP6307847B2 (en) Information processing apparatus, control apparatus, and control program
CN103052942B (en) Alignment controls
JP6135114B2 (en) Storage device, error processing method, and error processing program
CN110489259B (en) Memory fault detection method and equipment
CN107622002A (en) A kind of the server hard disc indicator lamp design system and method for compatible NVME hard disks
CN107784635A (en) A kind of server panel automatic identifying method and system
US9690602B2 (en) Techniques for programming and verifying backplane controller chip firmware
CN110795317A (en) Method and system for realizing lighting of self-adaptive hard disk backboard by using CPLD (complex programmable logic device)
US20080307148A1 (en) System and Method for Improved Bus Communication
CN105930161A (en) Method for automatically adjusting BIOS option value
WO2014082275A1 (en) Method and apparatus for detecting cable connection condition
CN112506817B (en) Method and device for controlling hard disk backboard LED
CN103593275A (en) Disk information displaying method and device
CN105446856A (en) Electronic device interface detection method and apparatus
CN104636271A (en) Method for having access to data stored in instruction/address register device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Control method for achieving light-up indication of server hard disk state

Effective date of registration: 20190429

Granted publication date: 20171110

Pledgee: Shenzhen SME financing Company limited by guarantee

Pledgor: Shenzhen Yueson Technology Development Co., Ltd.

Registration number: 2019990000375

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20200601

Granted publication date: 20171110

Pledgee: Shenzhen SME financing Company limited by guarantee

Pledgor: SHENZHEN YEHE TECHNOLOGY DEVELOPMENT Co.,Ltd.

Registration number: 2019990000375

PC01 Cancellation of the registration of the contract for pledge of patent right