CN112230752A - Method for controlling electrification of hard disk array by using out-of-band signal - Google Patents

Method for controlling electrification of hard disk array by using out-of-band signal Download PDF

Info

Publication number
CN112230752A
CN112230752A CN202011099164.6A CN202011099164A CN112230752A CN 112230752 A CN112230752 A CN 112230752A CN 202011099164 A CN202011099164 A CN 202011099164A CN 112230752 A CN112230752 A CN 112230752A
Authority
CN
China
Prior art keywords
hard disk
power
host
signal
disk array
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
CN202011099164.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.)
Tianjin Jinhang Computing Technology Research Institute
Original Assignee
Tianjin Jinhang Computing Technology Research Institute
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 Tianjin Jinhang Computing Technology Research Institute filed Critical Tianjin Jinhang Computing Technology Research Institute
Priority to CN202011099164.6A priority Critical patent/CN112230752A/en
Publication of CN112230752A publication Critical patent/CN112230752A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Power Sources (AREA)

Abstract

The invention relates to a method for controlling electrification of a hard disk array by using an out-of-band signal, belonging to the field of hard disk control. The invention sequences the power consumption of the hard disk array; electrifying the Host and the device; and performing OOB signal operation on the hard disks in the hard disk array according to the sequence of the power-on power consumption from large to small. According to the invention, other hardware devices are not required to be added, and the power-on initialization of a single hard disk is controlled by using the OOB signals; and evaluating the power consumption of the hard disks in the hard disk array, and determining the power-on initialization sequence of the hard disks in a configurable mode. The method can smooth the power consumption of the hard disk array in the power-on initialization process only by using software, and avoids the damage of power consumption spikes generated by the simultaneous power-on initialization of a plurality of hard disks in the hard disk array to components such as a system power supply and the like.

Description

Method for controlling electrification of hard disk array by using out-of-band signal
Technical Field
The invention belongs to the technical field of hard disk control, and particularly relates to a method for controlling electrification of a hard disk array by using an out-of-band signal.
Background
First, SATA OOB signal
The main functions Of the OOB (out Of band) signal in SATA protocol are: initialization, negotiation of transmission rates of both parties, waking up from a power saving state, and the like. OOB has three out-of-band signals: COMRESET, COMINIT, COMWAKE, which are used by the physical layer to power up or prepare for data transfer. COMRESET is sent to Device by Host; COMINIT is sent by Device to Host; COMWAKE can be sent to each other. In the power-on process, the Host and the Device communicate according to the following procedures:
the Host resets and sends out COMRESET;
responding to COMINIT after the device detects COMRESET;
if not, the Host repeats the step 1 until the Device replies to COMINIT;
host correction, sending out COMWAKE;
after receiving COMWAKE, the Device continuously sends 6 COMWAKE signals and then continuously sends ALIGN to negotiate the transmission speed;
host latches data. After receiving COMWAKE, Host continuously sends D10.2 at the supported lowest rate, simultaneously latches and detects the received data, and forwards ALIGN to Device at the receiving rate after detecting ALIGN sent by Device;
after sending COMWAKE, the Host at least needs to detect ALIGN in 880ps, otherwise, the Host restarts the power-on sequence to detect the device again until the application layer terminates the device;
the equipment latches data, sends a synchronous signal SYNC after detecting ALIGN, successfully establishes communication and enters a normal operation mode. If ALIGN is not detected within 54.6us, entering error processing and waiting for reconnection;
and when the Host receives three non-ALIGN, completing link establishment and entering normal operation.
Second, hard disk power consumption
In the occasion of large-capacity storage space demand, a plurality of hard disks are generally used to form a hard disk array, wherein the situation of mixing different types of hard disks is not rare: mechanical hard disks and solid state disks are used in a mixture, and 2.5 inch and 3.5 inch hard disks are used in a mixture. Although different types of hard disks can store data for users, the power consumption of the solid state disk and the mechanical hard disk is different due to the difference between the composition and the operating principle of the solid state disk and the mechanical hard disk. For example, the average power consumption of the solid state disk in the use process is about 1-2 watts; the power consumption of the mechanical hard disk is about 10 watts in the using process. At the moment of power-on, the instantaneous power consumption of the mechanical hard disk reaches the level of 20-30 watts.
For a hard disk array loaded by a plurality of hard disks, if the plurality of hard disks are simultaneously powered on for initialization when the Host is powered on, the pressure brought to the instantaneous power of a hard disk array power supply system is large. Therefore, measures need to be taken to smooth the energy consumption of the hard disk in the process, and damage is caused to the system.
The CN201707642U patent proposes a device for reducing the power consumption of hard disk array at the moment of power-on, which uses a serial shift logic device to sequentially power up the hard disk array, thereby avoiding the power consumption peak caused by power-on at the same time. However, this method requires an additional hardware unit, i.e. a serial shift logic device, to be added to the ordinary system, which brings inconvenience to the upgrade of the existing system and the deployment of a new system.
Disclosure of Invention
Technical problem to be solved
The technical problem to be solved by the invention is how to provide a method for controlling the electrification of a hard disk array by using an out-of-band signal, so as to solve the problem that power consumption spikes generated by simultaneous electrification initialization of a plurality of hard disks in the hard disk array damage components such as a system power supply and the like.
(II) technical scheme
In order to solve the above technical problem, the present invention provides a method for controlling the power-on of a hard disk array by using an out-of-band signal, which comprises the following steps:
s1, sequencing the power consumption of the hard disk array;
s2, electrifying the Host and the device;
and S3, performing OOB signal operation on the hard disks in the hard disk array according to the sequence of the power-on power consumption from large to small.
Further, the step S31 specifically includes: before the system is powered on, the power-on power consumption of the hard disk array in the system is evaluated, and the power-on power consumption of the hard disks in the array is sorted from large to small.
Further, the power-on power consumption is evaluated by referring to the product specification.
Further, the step S3 specifically includes the following steps:
3.1: firstly, host sends COMRESET signal;
3.2: after receiving a COMINIT signal returned by the device, the host sends a COMAWAKE signal;
3.3: after receiving the COMAWAKE signal sent by the host, the device sends the COMAWAKE signal;
3.4: and the host and the device carry out speed negotiation to complete the establishment process of the connection between the host and the device.
Further, the step S3 specifically includes the following steps:
s31, selecting the hard disk with the largest power consumption from the rest hard disks;
s32, host sends COMRESET signal;
s33, after the host receives the COMINIT signal returned by the device, the host sends a COMAWAKE signal;
s34, after the device receives the COMAWAKE signal sent by the host, the device sends the COMAWAKE signal
S35, carrying out speed negotiation on the host and the device to complete the establishing process of the connection between the host and the device;
s36, judging whether the hard disk is completely electrified, if not, returning to the step S31; if so, power up is complete.
(III) advantageous effects
The invention provides a method for controlling the electrification of a hard disk array by using an out-of-band signal, which can smooth the power consumption of the hard disk array in the electrification initialization process by using software without adding other hardware devices, and avoid the damage of power consumption spikes generated by the simultaneous electrification initialization of a plurality of hard disks in the hard disk array to components such as a system power supply and the like.
The invention has the advantages that:
the hardware structure is not required to be increased;
controlling power-on initialization of the single hard disk by using the OOB signal;
and evaluating the power consumption of the hard disks in the hard disk array, and determining the power-on initialization sequence of the hard disks in a configurable mode.
Drawings
FIG. 1 is a flow chart of a method for controlling power up of a hard disk array using an out-of-band signal according to the present invention.
Detailed Description
In order to make the objects, contents and advantages of the present invention clearer, the following detailed description of the embodiments of the present invention will be made in conjunction with the accompanying drawings and examples.
The invention provides a method for controlling a power-on initialization process Of a hard disk array by using an Out Of Band (OOB) signal and determining a power-on initialization sequence Of the hard disk according to a power consumption weight Of the hard disk in the hard disk array. The method has the advantages that other hardware devices are not needed to be added, the power consumption in the power-on initialization process of the hard disk array can be smoothed only by using software, and the damage to components such as system power supply and the like caused by power consumption peaks generated by simultaneous power-on initialization of a plurality of hard disks in the hard disk array is avoided.
Referring to fig. 1, the method for controlling the power-on of the hard disk array by using the out-of-band signal of the present invention includes the following steps:
and S1, sequencing the power consumption of the hard disk array.
Before the system is powered on, the power-on power consumption of the hard disk array in the system is evaluated, data such as product specifications can be consulted, and the power-on power consumption of the hard disks in the array is sorted from large to small. The number of hard disks in the hard disk array is n (n is an integer greater than 0), the power consumption of the hard disks is as follows:
P(n)≥P(n-1)≥……≥P(1)
s2, Host and device power-on
The host and devices in the system are powered up.
And S3, carrying out OOB signal operation on the n hard disks in the hard disk array according to the sequence of the power-on power consumption from large to small.
Sequentially carrying out OOB signal operation on the hard disk according to the power consumption of device electrification according to the following processes:
3.1: firstly, host sends COMRESET signal
3.2: after the host receives the COMINIT signal returned by the device, the host sends a COMAWAKE signal
3.3: after the device receives the COMAWAKE signal sent by the host, the device sends the COMAWAKE signal
3.4: and the host and the device carry out speed negotiation to complete the establishment process of the connection between the host and the device.
Step S3 can also be implemented using the following steps:
s31, selecting the hard disk with the largest power consumption from the rest hard disks;
s32, host sends COMRESET signal;
s33, after the host receives the COMINIT signal returned by the device, the host sends a COMAWAKE signal;
s34, after the device receives the COMAWAKE signal sent by the host, the device sends the COMAWAKE signal
S35, carrying out speed negotiation on the host and the device to complete the establishing process of the connection between the host and the device;
s36, judging whether the hard disk is completely electrified, if not, returning to the step S31; if so, power up is complete.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (5)

1. A method for controlling the powering up of a hard disk array using an out-of-band signal, the method comprising the steps of:
s1, sequencing the power consumption of the hard disk array;
s2, electrifying the Host and the device;
and S3, performing OOB signal operation on the hard disks in the hard disk array according to the sequence of the power-on power consumption from large to small.
2. The method for controlling power up of a hard disk array using out-of-band signals as claimed in claim 1, wherein said step S31 specifically includes: before the system is powered on, the power-on power consumption of the hard disk array in the system is evaluated, and the power-on power consumption of the hard disks in the array is sorted from large to small.
3. The method for controlling power on of a hard disk array using an out-of-band signal as claimed in claim 2, wherein power on power consumption is evaluated by consulting a product specification.
4. The method according to any of claims 1 to 3, wherein the step S3 specifically comprises the steps of:
3.1: firstly, host sends COMRESET signal;
3.2: after receiving a COMINIT signal returned by the device, the host sends a COMAWAKE signal;
3.3: after receiving the COMAWAKE signal sent by the host, the device sends the COMAWAKE signal;
3.4: and the host and the device carry out speed negotiation to complete the establishment process of the connection between the host and the device.
5. The method according to any of claims 1 to 3, wherein the step S3 specifically comprises the steps of:
s31, selecting the hard disk with the largest power consumption from the rest hard disks;
s32, host sends COMRESET signal;
s33, after the host receives the COMINIT signal returned by the device, the host sends a COMAWAKE signal;
s34, after the device receives the COMAWAKE signal sent by the host, the device sends the COMAWAKE signal
S35, carrying out speed negotiation on the host and the device to complete the establishing process of the connection between the host and the device;
s36, judging whether the hard disk is completely electrified, if not, returning to the step S31; if so, power up is complete.
CN202011099164.6A 2020-10-14 2020-10-14 Method for controlling electrification of hard disk array by using out-of-band signal Pending CN112230752A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011099164.6A CN112230752A (en) 2020-10-14 2020-10-14 Method for controlling electrification of hard disk array by using out-of-band signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011099164.6A CN112230752A (en) 2020-10-14 2020-10-14 Method for controlling electrification of hard disk array by using out-of-band signal

Publications (1)

Publication Number Publication Date
CN112230752A true CN112230752A (en) 2021-01-15

Family

ID=74113668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011099164.6A Pending CN112230752A (en) 2020-10-14 2020-10-14 Method for controlling electrification of hard disk array by using out-of-band signal

Country Status (1)

Country Link
CN (1) CN112230752A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114063919A (en) * 2021-11-12 2022-02-18 厦门市美亚柏科信息股份有限公司 Physical block allocation sequence acquisition method and data recovery method for SSD

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200905468A (en) * 2007-07-20 2009-02-01 Samsung Electronics Co Ltd Serial advanced technology attachment device and method testing the same
CN102629891A (en) * 2011-02-07 2012-08-08 瑞萨电子株式会社 Serial communication circuit, semiconductor device, and serial communication controlling method
CN102749981A (en) * 2012-05-31 2012-10-24 华为技术有限公司 Method and system for controlling hard disk electrification in hard disk array
CN107066418A (en) * 2017-03-07 2017-08-18 广州慧睿思通信息科技有限公司 A kind of SATA protocol power-up initializing control method and controller based on FPGA
CN108919931A (en) * 2018-05-25 2018-11-30 郑州云海信息技术有限公司 A kind of power supplying system of server and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200905468A (en) * 2007-07-20 2009-02-01 Samsung Electronics Co Ltd Serial advanced technology attachment device and method testing the same
CN102629891A (en) * 2011-02-07 2012-08-08 瑞萨电子株式会社 Serial communication circuit, semiconductor device, and serial communication controlling method
CN102749981A (en) * 2012-05-31 2012-10-24 华为技术有限公司 Method and system for controlling hard disk electrification in hard disk array
CN107066418A (en) * 2017-03-07 2017-08-18 广州慧睿思通信息科技有限公司 A kind of SATA protocol power-up initializing control method and controller based on FPGA
CN108919931A (en) * 2018-05-25 2018-11-30 郑州云海信息技术有限公司 A kind of power supplying system of server and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114063919A (en) * 2021-11-12 2022-02-18 厦门市美亚柏科信息股份有限公司 Physical block allocation sequence acquisition method and data recovery method for SSD
CN114063919B (en) * 2021-11-12 2023-08-18 厦门市美亚柏科信息股份有限公司 Physical block allocation sequence acquisition method and data recovery method for SSD

Similar Documents

Publication Publication Date Title
US8055810B2 (en) Mobile terminal and switching method for controlling data transmission via GPIO interface based on preset threshold
US7603570B2 (en) Power delivery over ethernet cables
US20110230138A1 (en) Electronic device and communication control method
US20090132837A1 (en) System and Method for Dynamically Selecting Clock Frequency
US8510578B2 (en) Line-card disabling for power management
CN101425049B (en) Customer equipment based on USB and data channel switching method
CN101110776B (en) Backup method, backup device and backup system for data business
SG174040A1 (en) Wireless support for portable media player devices
WO2010043158A1 (en) Method and apparatus for controlling charging and discharging of battery in base station
US20210165451A1 (en) Usb docking station and power-governing method thereof
CN105103623A (en) Intelligent beaconing by software-enabled access point
CN112230752A (en) Method for controlling electrification of hard disk array by using out-of-band signal
US7111158B1 (en) Techniques for transitioning control of a serial ATA device among multiple hosts using sleep and wake commands
US9992140B2 (en) Electronic apparatus, server, and control method of system
US9529761B2 (en) Data transfer apparatus, host apparatus, data transfer system, and communication mode setting method
JP2010244457A (en) Method and system for control of usb communication, and usb hub apparatus
US20120023350A1 (en) Method for active power management in a serial ata interface
US20120331315A1 (en) System and Method for Re-Balancing Power Supply Efficiency in a Networking Environment
KR100745694B1 (en) Wireless universal serial bus adapter and method for supporting multiple wireless medium
CN102469446B (en) Method and device for business processing
CN105376637A (en) A Bluetooth hardware sharing system and method
JPH11177598A (en) Hub, device, communication method therefor and storage medium storing computer readable program
CN112004218B (en) Bluetooth connection pairing method
CN104796973A (en) Wireless access device control method and wireless access device
GB2448226A (en) Energy saving in a network processor

Legal Events

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

Application publication date: 20210115

RJ01 Rejection of invention patent application after publication