CN101814010B - Disk array implementation method and device - Google Patents

Disk array implementation method and device Download PDF

Info

Publication number
CN101814010B
CN101814010B CN2010100338895A CN201010033889A CN101814010B CN 101814010 B CN101814010 B CN 101814010B CN 2010100338895 A CN2010100338895 A CN 2010100338895A CN 201010033889 A CN201010033889 A CN 201010033889A CN 101814010 B CN101814010 B CN 101814010B
Authority
CN
China
Prior art keywords
disk
master
state
master disk
control
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
CN2010100338895A
Other languages
Chinese (zh)
Other versions
CN101814010A (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.)
Suzhou Inspur Intelligent Technology 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 CN2010100338895A priority Critical patent/CN101814010B/en
Publication of CN101814010A publication Critical patent/CN101814010A/en
Application granted granted Critical
Publication of CN101814010B publication Critical patent/CN101814010B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention puts forward a disk array implementation method and a device. A disk array comprises master disks and slave disks. The method includes the following steps: detecting the state parameters of the master disks; evaluating the state of the master disks according to a state parameter detection result of the master disks; judging a state evaluation result of the master disks, and controlling the slave disks to be in a hibernation mode if the state evaluation result is the healthy state of the master disks; and controlling the slave disks to be in a running mode if the state evaluation result is the subhealthy state of the master disks. The adoption of the method can realize the disk array function, and under the premise of guaranteeing data security, the waste of energy is reduced.

Description

A kind of disk array implementation method and device
Technical field
The present invention relates to the disk array administrative skill, be specifically related to a kind of disk array implementation method and device.
Background technology
Current, digitizing technique has incorporated among most of people's the life, and the thing followed is the preservation of lot of data.Jumbo disk emerges in an endless stream, from GB level TB level till now.The security of the preservation of data also becomes the focus that people pay close attention to.The appearance of disk array has been satisfied people greatly to the data safe requirement.
Along with improving constantly of disk quality, tenure of use is also more and more longer thereupon.For traditional disk array, for example RAID 1, and principal and subordinate's disk is at every moment all keeping data sync, to shown in Fig. 1 (c), wherein Fig. 1 (a), Fig. 1 (b), Fig. 1 (c) are according to the signal of time order and function order to principal and subordinate's disk storage state as Fig. 1 (a).The applicant finds through after examining, when master disk is well behaved, will cause unnecessary energy dissipation.
Because safety of data is primary, how when guaranteeing safety of data, the waste that can reduce the energy again then is the direction that needs those skilled in the art constantly to make great efforts.
Summary of the invention
The technical problem to be solved in the present invention is to propose a kind of disk array implementation method and device, can realize disk array function, under the prerequisite that guarantees data security, reduces the waste of the energy.
In order to solve the problems of the technologies described above, the present invention proposes a kind of disk array implement device, comprise master disk in the described disk array and from disk, described device comprises a state detection unit, an assessment control module, an Energy Saving Control unit that links to each other successively, and a difference variable lock unit, wherein:
Described state detection unit detects in order to the state parameter to master disk, and the parameter detecting result is sent to described assessment control module;
Described assessment control module in order to after receiving the parameter detecting result that described state detection unit sends, carries out state estimation according to default Rules of Assessment, and the state estimation result is sent to described Energy Saving Control unit;
Described Energy Saving Control unit in order to receive and to judge the state estimation result that described assessment control module sends, if described assessment result indication master disk is in health status, is then controlled from disk and is in park mode; If described assessment result indication master disk is in sub-health state, then controls and be in operational mode, and send synchronous control command to described difference variable lock unit from disk;
Described difference variable lock unit in order to after receiving the synchronous control command that sends described Energy Saving Control unit, carries out the synchronous of difference variable to master disk with from disk.
Further, said apparatus also can have following characteristics:
Described Energy Saving Control unit controls is in operational mode from disk and comprises: control starts from disk, and control principal and subordinate disk carries out synchronously.
Further, said apparatus also can have following characteristics:
The described master disk that is in sub-health state after control principal and subordinate disk is finished synchronously, is replaced as the new master disk its place disk array with described from disk in described Energy Saving Control unit, makes in the described disk array other disks as newly from disk.
Further, said apparatus also can have following characteristics:
Described Energy Saving Control unit after control principal and subordinate disk is finished synchronously, also reminds the user to substitute the described master disk that is in sub-health state.
Further, said apparatus also can have following characteristics:
Further, said apparatus also can have following characteristics:
Described Energy Saving Control unit only starts the master disk in the disk array when starting disk array.
In order to solve the problems of the technologies described above, the present invention also proposes a kind of disk array implementation method, comprises master disk in the described disk array and from disk, this method comprises:
Detect the state parameter of master disk;
According to state parameter testing result, master disk is carried out state estimation to master disk;
Judgement is to the state estimation result of master disk, if the state estimation result is in health status for master disk, then controls from disk and is in park mode; Be in sub-health state if assessment result is a master disk, then control and be in operational mode from disk, and trigger to master disk and from disk carry out the difference variable synchronously.
Further, said method also can have following characteristics:
Described control is in operational mode from disk and comprises: control starts from disk, and control principal and subordinate disk carries out synchronously.
Further, said method also can have following characteristics:
After control principal and subordinate disk is finished synchronously, replace the described master disk that is in sub-health state as the new master disk its place disk array with described from disk, make in the described disk array other disks as newly from disk.
Further, said method also can have following characteristics:
After control principal and subordinate disk is finished synchronously, also remind the user to substitute the described master disk that is in sub-health state.
Further, said method also can have following characteristics:
When starting disk array, only start the master disk in the disk array.
A kind of disk array implementation method and device that the present invention proposes can realized disk array function, under the prerequisite that guarantees data security, reduce the waste of the energy.
Description of drawings
Fig. 1 (a) to Fig. 1 (c) be the store status synoptic diagram of prior art principal and subordinate disk according to the time order and function order;
Fig. 2 is a kind of disk array implement device of embodiment of the invention block scheme;
Fig. 3 is a kind of disk array implementation method of embodiment of the invention process flow diagram;
Fig. 4 (a) to Fig. 4 (d) be the store status synoptic diagram of embodiment of the invention principal and subordinate disk according to the time order and function order.
Embodiment
The present invention proposes a kind of disk array implementation method and device, disk array function can realized, under the prerequisite that guarantees data security, reduce the waste of the energy, it is conceived substantially: to master disk I/O error rate, parameters such as Bad Track detect, and then its health status are assessed, when assessment result is a master disk when being in health status, control is in park mode from disk; When assessment result is a master disk when being in sub-health state, control is in operational mode from disk, thereby reaches the purpose that reduces the computing machine overall power.
Describe embodiment of the present invention in detail below in conjunction with accompanying drawing.
Referring to Fig. 2, the figure shows a kind of disk array implement device of the embodiment of the invention, comprise the state detection unit, assessment control module, the Energy Saving Control unit that link to each other successively, and difference variable lock unit, wherein:
Described state detection unit detects in order to the state parameter to master disk, comprises parameters such as magnetic disc i/o error rate, Bad Track are detected, and the parameter detecting result is sent to described assessment control module.Described state detection unit can be regularly detects the state parameter of master disk, and the user also can select the Disk State parameter is continued to detect.
Described assessment control module in order to after receiving the parameter detecting result that described state detection unit sends, carries out state estimation according to default Rules of Assessment, and the state estimation result is sent to described Energy Saving Control unit.Described Rules of Assessment can be provided with as required, for example, can be the parameters that needs to detect threshold value is set, and the value of detected parameters and corresponding threshold value compared, respectively whether parameters is met the requirements judge, and for example satisfied parameter that reaches certain data volume of setting meets the requirements as assessment result for being in health status, perhaps be provided with and satisfy several designated parameters and meet the requirements as assessment result for being in health status, or the like the evaluation condition of this class.
Described Energy Saving Control unit in order to receive and to judge the state estimation result that described assessment control module sends, if described assessment result indication master disk is in health status, is then controlled from disk and is in park mode; If described assessment result indication master disk state is in sub-health state, then controls and be in operational mode from disk.
Further, described Energy Saving Control unit controls is in operational mode from disk and comprises: control is restarted from disk, and control principal and subordinate disk carries out synchronously.
Further, described Energy Saving Control unit, after control principal and subordinate disk is finished synchronously, also make described from disk as new master disk its place disk array, make other disks in the described disk array as new from disk.
Further, described Energy Saving Control unit after control principal and subordinate disk is finished synchronously, also sends the information that substitutes former master disk to the user.
Further, described Energy Saving Control unit only starts the master disk in the disk array when starting disk array.
Further, described Energy Saving Control unit when disk enters operational mode, also sends synchronous control command to described difference variable lock unit in control.
Described difference variable lock unit in order to after receiving the synchronous control command that sends described Energy Saving Control unit, carries out the synchronous of difference variable to principal and subordinate's disk.
Referring to Fig. 3, the figure shows a kind of disk array implementation method of the embodiment of the invention, comprise the steps:
Step S301: the state parameter that detects master disk;
The parameter detecting of master disk is comprised detection to parameters such as magnetic disc i/o error rate, Bad Tracks.
Can regularly detect the Disk State parameter, the user also selects the Disk State parameter is continued to detect.
Step S302:, master disk is carried out state estimation according to state parameter testing result to master disk;
When master disk is carried out state estimation, be to carry out according to a default Rules of Assessment.Described Rules of Assessment can be provided with as required, in order to detected parameters carried out analysis-by-synthesis and to obtain the state estimation result of master disk.For example, can be the parameters that needs to detect threshold value is set, and the value of detected parameters and corresponding threshold value compared, respectively whether parameters is met the requirements judge, and for example satisfied parameter that reaches certain data volume of setting meets the requirements as assessment result for being in health status, perhaps be provided with and satisfy several designated parameters and meet the requirements as assessment result for being in health status, or the like the evaluation condition of this class.
Step S303: judgement is in health status to the state estimation result of master disk if assessment result is a master disk, then controls from disk to be in park mode; Be in sub-health state if assessment result is a master disk, then control and be in operational mode from disk.
Wherein, control enters operational mode from disk and is meant that control restarts from disk, triggers synchronous to from disk and master disk.
Preferably, in control when disk enters operational mode, also trigger to master disk and from disk carry out the difference variable synchronously, synchronous fully to realize master and slave disk.
Preferably, after control principal and subordinate disk is finished synchronously, also make described from disk as new master disk its place disk array, make other disks in the described disk array as new from disk, thereby in time with former from disk replace be in sub-health status former master disk as new master disk, to guarantee safety of data.
Preferably, after control principal and subordinate disk is finished synchronously, can also send the information that substitutes former master disk to the user, make the user can in time know the health status of disk array Central Plains master disk, and in time replace the former master disk that is in sub-health state, the user newly be substituted in the disk array disk will as in the disk array newly from disk.
Preferably, when starting computer system, can only start the master disk in the disk array, only when this master disk is in inferior health, just start, thereby can further reduce unnecessary power consumption from disk.
The present invention by dexterously with master disk state estimation result as the judgment standard that whether moves from disk, when master disk is in health status, can controls and be in park mode, thereby reduce the unnecessary power consumption of computing machine from disk.
Please in conjunction with method shown in Figure 3, continuation referring to Fig. 4 (a) to Fig. 4 (d), wherein Fig. 4 (a), Fig. 4 (b), Fig. 4 (c), Fig. 4 (d) are according to the signal of time order and function order to principal and subordinate's disk storage state: when computer starting, only start master disk (shown in Fig. 4 (a)); Detect and assessment master disk situation, find that master disk is in health status, control is in park mode (shown in Fig. 4 (b)) from disk; Detect and assessment master disk situation, find that master disk is in sub-health status, control is in operational mode (shown in Fig. 4 (c)) from disk, comprises startup from disk, and control principal and subordinate disk is synchronous; Principal and subordinate's disk is finished (shown in Fig. 4 (d)) synchronously.Therefrom adopt the present invention program to be under the situation of health status at master disk as can be seen, order is in park mode from disk, thereby reduces the unnecessary power consumption of computing machine.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. disk array implement device, comprise master disk in the described disk array and, it is characterized in that described device comprises a state detection unit, an assessment control module, an Energy Saving Control unit that links to each other successively from disk, and a difference variable lock unit, wherein:
Described state detection unit detects in order to the state parameter to master disk, and the parameter detecting result is sent to described assessment control module;
Described assessment control module in order to after receiving the parameter detecting result that described state detection unit sends, carries out state estimation according to default Rules of Assessment, and the state estimation result is sent to described Energy Saving Control unit;
Described Energy Saving Control unit in order to receive and to judge the state estimation result that described assessment control module sends, if described assessment result indication master disk is in health status, is then controlled from disk and is in park mode; If described assessment result indication master disk is in sub-health state, then controls and be in operational mode, and send synchronous control command to described difference variable lock unit from disk;
Described difference variable lock unit in order to after receiving the synchronous control command that sends described Energy Saving Control unit, carries out the synchronous of difference variable to master disk with from disk.
2. device as claimed in claim 1 is characterized in that:
Described Energy Saving Control unit controls is in operational mode from disk and comprises: control starts from disk, and control principal and subordinate disk carries out synchronously.
3. device as claimed in claim 2 is characterized in that:
The described master disk that is in sub-health state after control principal and subordinate disk is finished synchronously, is replaced as the new master disk its place disk array with described from disk in described Energy Saving Control unit, makes in the described disk array other disks as newly from disk.
4. as claim 2 or 3 described devices, it is characterized in that:
Described Energy Saving Control unit after control principal and subordinate disk is finished synchronously, also reminds the user to substitute the described master disk that is in sub-health state.
5. device as claimed in claim 1 is characterized in that:
Described Energy Saving Control unit only starts the master disk in the disk array when starting disk array.
6. disk array implementation method comprises master disk and, it is characterized in that described method comprises from disk in the described disk array:
Detect the state parameter of master disk;
According to state parameter testing result, master disk is carried out state estimation to master disk;
Judgement is to the state estimation result of master disk, if the state estimation result is in health status for master disk, then controls from disk and is in park mode; Be in sub-health state if assessment result is a master disk, then control and be in operational mode from disk, and trigger to master disk and from disk carry out the difference variable synchronously.
7. method as claimed in claim 6 is characterized in that:
Described control is in operational mode from disk and comprises: control starts from disk, and control principal and subordinate disk carries out synchronously.
8. method as claimed in claim 7 is characterized in that:
After control principal and subordinate disk is finished synchronously, replace the described master disk that is in sub-health state as the new master disk its place disk array with described from disk, make in the described disk array other disks as newly from disk.
9. as claim 7 or 8 described methods, it is characterized in that:
After control principal and subordinate disk is finished synchronously, also remind the user to substitute the described master disk that is in sub-health state.
10. method as claimed in claim 6 is characterized in that:
When starting disk array, only start the master disk in the disk array.
CN2010100338895A 2010-01-11 2010-01-11 Disk array implementation method and device Active CN101814010B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010100338895A CN101814010B (en) 2010-01-11 2010-01-11 Disk array implementation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010100338895A CN101814010B (en) 2010-01-11 2010-01-11 Disk array implementation method and device

Publications (2)

Publication Number Publication Date
CN101814010A CN101814010A (en) 2010-08-25
CN101814010B true CN101814010B (en) 2011-11-23

Family

ID=42621276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010100338895A Active CN101814010B (en) 2010-01-11 2010-01-11 Disk array implementation method and device

Country Status (1)

Country Link
CN (1) CN101814010B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103268147A (en) * 2013-06-04 2013-08-28 北京百度网讯科技有限公司 Method and device for hard disk power consumption management
TWI750109B (en) * 2014-11-12 2021-12-21 香港商阿里巴巴集團服務有限公司 Hard disk power consumption, hard disk power consumption management service control method and device
CN108334278B (en) * 2017-12-15 2021-05-07 中兴通讯股份有限公司 Storage system balance management method and device
CN108733526A (en) * 2018-06-21 2018-11-02 郑州云海信息技术有限公司 A kind of test method and system of batch detection RAID card health status
CN110196688A (en) * 2019-05-30 2019-09-03 深信服科技股份有限公司 A kind of disk detection method, device, equipment and medium
CN112102855A (en) * 2020-09-12 2020-12-18 肇庆悦能科技有限公司 Hot plug disk array rack based on cloud calculates
CN112416454A (en) * 2020-11-17 2021-02-26 浙江大华技术股份有限公司 Method and device for controlling starting of disk

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3360719B2 (en) * 1998-06-19 2002-12-24 日本電気株式会社 Disk array clustering reporting method and system
CN1501364A (en) * 2002-11-18 2004-06-02 华为技术有限公司 A hot backup data migration method
CN101276302A (en) * 2007-03-29 2008-10-01 中国科学院计算技术研究所 Magnetic disc fault processing and data restructuring method in magnetic disc array system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3360719B2 (en) * 1998-06-19 2002-12-24 日本電気株式会社 Disk array clustering reporting method and system
CN1501364A (en) * 2002-11-18 2004-06-02 华为技术有限公司 A hot backup data migration method
CN101276302A (en) * 2007-03-29 2008-10-01 中国科学院计算技术研究所 Magnetic disc fault processing and data restructuring method in magnetic disc array system

Also Published As

Publication number Publication date
CN101814010A (en) 2010-08-25

Similar Documents

Publication Publication Date Title
CN101814010B (en) Disk array implementation method and device
US20120040623A1 (en) Method and system for triggering corresponding functions of electronic devices
CN103218889B (en) A kind of from body alarm terminal and its implementation
CN204833414U (en) Complementary use that heat releases electricity and infrared correlation sensor prevent following access control system
CN104076904B (en) Control the method and device of mobile terminal hardware state
CN101929060B (en) A kind of method of intelligently prompting trash line clearup for clothes dryer and dryer
CN103685762A (en) Mobile terminal and control method thereof
CN106338690A (en) Standby battery detection method, device and system and power supply method
CN105407217A (en) Mobile terminal music playing method and mobile terminal
CN105516515A (en) Method and system for automatically switching intelligent terminal to power saving mode
CN104731301A (en) Mobile terminal, power-saving operation method of mobile terminal, power-saving operation system of mobile terminal
CN105653418A (en) Terminal, terminal control method and terminal control device
CN104103237A (en) Intelligent LED display system based on multi sensor data fusion
CN101420775B (en) Communication device and signal transferring method
CN203849776U (en) Vehicle traveling data recorder for achieving parking monitoring by virtue of G-sensor
CN101446812A (en) Control method and control device of state of equipment and equipment
CN104850417B (en) A kind of method and electronic equipment of information processing
CN104486089B (en) A kind of computer network awakening method and device
CN108196176B (en) Insulation detection alarm device and method for battery pack
CN107229553B (en) Hard disk on-site and activity control system and method based on programmable module
CN105320246B (en) A kind of information processing method and electronic equipment
CN109581014B (en) Method for measuring broken zero line of electric energy meter
CN104219837B (en) Method for intelligently managing and controlling indicator lamps of subscriber terminal equipment
CN106912091A (en) A kind of control method, device and electronic equipment
CN112180785B (en) Server room environment monitoring system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201105

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Patentee after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 100085 Beijing, Haidian District on the road to information on the ground floor, building 2-1, No. 1, C

Patentee before: Inspur (Beijing) Electronic Information Industry Co.,Ltd.

TR01 Transfer of patent right