CN112650376A - System and method for controlling hard disk soft switch - Google Patents

System and method for controlling hard disk soft switch Download PDF

Info

Publication number
CN112650376A
CN112650376A CN202011336519.9A CN202011336519A CN112650376A CN 112650376 A CN112650376 A CN 112650376A CN 202011336519 A CN202011336519 A CN 202011336519A CN 112650376 A CN112650376 A CN 112650376A
Authority
CN
China
Prior art keywords
hard disk
module
cpld
interface
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.)
Pending
Application number
CN202011336519.9A
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.)
Chaoyue Technology Co Ltd
Original Assignee
Chaoyue Technology 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 Chaoyue Technology Co Ltd filed Critical Chaoyue Technology Co Ltd
Priority to CN202011336519.9A priority Critical patent/CN112650376A/en
Publication of CN112650376A publication Critical patent/CN112650376A/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/24Resetting means
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention discloses a system and a method for controlling soft switching of a hard disk, which belong to the technical field of computer hard disks and comprise the following steps: the system comprises a BMC module, a core CPU control module, a CPLD module, a hard disk power supply control module, a hard disk reset module and a hard disk interface, wherein the core CPU control module sends a hard disk control signal according to a system instruction or a CPU abnormal strategy; the BMC module sends a hard disk control signal according to a BMC remote control interface or an internal power-on strategy; the CPLD module is used for reading hard disk control signals sent by the BMC module and the core CPU control module, and controlling the hard disk power supply control module, the hard disk reset module and the hard disk interface to complete the on-off control of the hard disk after reading the instruction. The CPLD is controlled by the CPU and the BMC, so that a soft restart mode of the hard disk is controlled, the corresponding speed of the hard disk is increased, and the requirement of the hard disk for higher access speed is met.

Description

System and method for controlling hard disk soft switch
Technical Field
The invention relates to the technical field of computer hard disks, and particularly provides a system and a method for controlling soft switching of a hard disk.
Background
The development of the server industry can not leave a storage medium, the fire speed is increased based on the data volume in the information era, and the requirement of mainstream manufacturers on the access speed of the hard disk is higher and higher at present.
The hard disk is mainly classified as an SAS (Serial Attached SCSI)/SATA (Serial ATA: Serial Advanced Technology attachment, a computer bus) hard disk and an NVME (Non-Volatile Memory express, a logical device interface specification) hard disk as a key device of the server. The server manages the hard disk according to the state of the hard disk through different controllers. And meanwhile, the in-place information and the state (positioning, fault and reconstruction) information of the hard disk are presented under a Web page of a BMC (Baseboard management controller), so that a client can conveniently monitor the state of the hard disk.
The requirements on the storage speed and the response speed of the ordinary SATA/SAS hard disk and the latest NVME hard disk based on PCIE channel transmission are higher and higher.
Disclosure of Invention
The invention mainly aims at the problems and provides a system and a method for controlling the soft switching of a hard disk.
In order to achieve the purpose, the invention provides the following technical scheme:
a system for controlling soft switching of a hard disk, the system comprising:
BMC module, core CPU control module, CPLD module, hard disk power supply control module, hard disk reset module, hard disk interface, wherein:
the core CPU control module sends a hard disk control signal according to a system instruction or a CPU abnormal strategy;
the BMC module sends a hard disk control signal according to a BMC remote control interface or an internal power-on strategy;
the CPLD module is used for reading hard disk control signals sent by the BMC module and the core CPU control module, and controlling the hard disk power supply control module, the hard disk reset module and the hard disk interface to complete the on-off control of the hard disk after reading the instruction.
The hard disk power supply control module is 12V and is responsible for supplying power to the hard disk, and the power cannot be lost when the hard disk is restarted.
The hard disk reset module is responsible for supplying power to the hard disk and resetting when the hard disk is restarted.
The hard disk interface is responsible for connecting a hard disk, supporting a sata interface protocol or a pcie interface protocol, distributing signals related to the interface protocol to the CPLD module, and setting the CPLD end to be high-resistance during data transmission through CPLD control; and when the data is cut off, the CPLD end is subjected to forced assignment operation, and the data transmission protocol is cut off.
A method for controlling the soft switch of a hard disk comprises the following steps:
the CPLD module is used as a control core, and the hard disk power supply control module, the hard disk reset module and the hard disk interface are controlled to complete the on-off control of the hard disk by receiving a restart instruction sent by the core CPU control module and the BMC module.
The CPLD module transmits control instructions sent by the BMC module and the core CPU control module in IIC and GPIO modes and reads the control instructions;
after the control instruction is read, the hard disk soft restart is controlled by controlling the hard disk power supply control module, the hard disk reset module and the hard disk interface, so that the hard disk is switched on and off.
And when the CPLD module receives a hard disk closing instruction, the hard disk power supply control module, the hard disk reset module and the hard disk interface are all closed, so that the hard disk is closed.
The CPLD module controls the hard disk power supply control module through an EN _12V signal and controls the hard disk reset module through an RST _ SATA signal.
The restarting instruction is a cold starting instruction, when the CPLD module receives the cold restarting instruction, the power supply of EN _12V is cut off, at the moment, the hard disk is not supplied with power, and meanwhile, the level is pulled down, and the transmission of a hard disk interface is cut off; and after waiting for the set time, the BMC module sends out a command for controlling the hard disk to be electrified.
The restarting instruction is a hot restarting instruction, when the CPLD module receives the hot restarting instruction, the level of the RST _ SATA signal is changed into low level, and meanwhile, the transmission of the hard disk interface is cut off;
after the RST _ SATA signal received by the hard disk is at a low level, the hard disk firstly enters a power-down state, the state of the hard disk is waited to be reset (the state is returned by timing or the hard disk), and the CPLD module enters a recovery state;
the CPLD module entering the recovery state is firstly reconnected with the transmission of the hard disk interface, and then the level of the hard disk reset module is pulled high to control the hard disk to enter the normal working state.
Compared with the prior art, the system and the method for controlling the hard disk soft switch have the following outstanding beneficial effects:
the CPLD is controlled by the CPU and the BMC, so that a soft restart mode of the hard disk is controlled, the corresponding speed of the hard disk is increased, and the requirement of the hard disk for higher access speed is met.
Drawings
FIG. 1 is a block diagram of a system for controlling soft switching of a hard disk according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Example 1
As shown in fig. 1, a system for controlling soft switching of a hard disk, the system comprising:
BMC module, core CPU control module, CPLD module, hard disk power supply control module, hard disk reset module, hard disk interface, wherein:
the core CPU control module sends a hard disk control signal according to a system instruction or a CPU abnormal strategy;
the BMC module sends a hard disk control signal according to a BMC remote control interface or an internal power-on strategy;
the CPLD module is used for reading hard disk control signals sent by the BMC module and the core CPU control module, and controlling the hard disk power supply control module, the hard disk reset module and the hard disk interface to complete the on-off control of the hard disk after reading the instruction.
The hard disk power supply control module is 12V and is responsible for supplying power to the hard disk, and the power cannot be lost when the hard disk is restarted.
The hard disk reset module is responsible for supplying power to the hard disk and resetting when the hard disk is restarted.
The hard disk interface is responsible for connecting a hard disk, supporting a sata interface protocol or a pcie interface protocol, distributing signals related to the interface protocol to the CPLD module, and setting the CPLD end to be high-resistance during data transmission through CPLD control; and when the data is cut off, the CPLD end is subjected to forced assignment operation, and the data transmission protocol is cut off.
Example 2
A method for controlling the soft switch of a hard disk comprises the following steps:
the CPLD module is used as a control core, and the hard disk power supply control module, the hard disk reset module and the hard disk interface are controlled to complete the on-off control of the hard disk by receiving a restart instruction sent by the core CPU control module and the BMC module.
The CPLD module transmits control instructions sent by the BMC module and the core CPU control module in IIC and GPIO modes and reads the control instructions;
after the control instruction is read, the hard disk soft restart is controlled by controlling the hard disk power supply control module, the hard disk reset module and the hard disk interface, so that the hard disk is switched on and off.
And when the CPLD module receives a hard disk closing instruction, the hard disk power supply control module, the hard disk reset module and the hard disk interface are all closed, so that the hard disk is closed.
The CPLD module controls the hard disk power supply control module through an EN _12V signal and controls the hard disk reset module through an RST _ SATA signal.
The restarting instruction is a cold starting instruction, when the CPLD module receives the cold restarting instruction, the power supply of EN _12V is cut off, at the moment, the hard disk is not supplied with power, and meanwhile, the level is pulled down, and the transmission of a hard disk interface is cut off; and after waiting for the set time, the BMC module sends out a command for controlling the hard disk to be electrified.
The restarting instruction is a hot restarting instruction, when the CPLD module receives the hot restarting instruction, the level of the RST _ SATA signal is changed into low level, and meanwhile, the transmission of the hard disk interface is cut off;
after the RST _ SATA signal received by the hard disk is at a low level, the hard disk firstly enters a power-down state, the state of the hard disk is waited to be reset (the state is returned by timing or the hard disk), and the CPLD module enters a recovery state;
the CPLD module entering the recovery state is firstly reconnected with the transmission of the hard disk interface, and then the level of the hard disk reset module is pulled high to control the hard disk to enter the normal working state.
The above-described embodiments are merely preferred embodiments of the present invention, and general changes and substitutions by those skilled in the art within the technical scope of the present invention are included in the protection scope of the present invention.

Claims (10)

1. A system for controlling soft switching of a hard disk, the system comprising:
BMC module, core CPU control module, CPLD module, hard disk power supply control module, hard disk reset module, hard disk interface, wherein:
the core CPU control module sends a hard disk control signal according to a system instruction or a CPU abnormal strategy;
the BMC module sends a hard disk control signal according to a BMC remote control interface or an internal power-on strategy;
the CPLD module is used for reading hard disk control signals sent by the BMC module and the core CPU control module, and controlling the hard disk power supply control module, the hard disk reset module and the hard disk interface to complete the on-off control of the hard disk after reading the instruction.
2. The system of claim 1, wherein the hard disk power supply control module is 12V and is responsible for supplying power to the hard disk, and does not power down when the hard disk is restarted.
3. The system of claim 1, wherein the hard disk reset module is responsible for supplying power to the hard disk and resetting the hard disk when the hard disk is restarted.
4. The system for controlling the soft switch of the hard disk according to claim 1, wherein the hard disk interface is responsible for connecting the hard disk, supporting sata interface protocol or pcie interface protocol, and distributing signals related to the interface protocol to the CPLD module, and the CPLD is set to a high impedance end during data transmission through CPLD control; and when the data is cut off, the CPLD end is subjected to forced assignment operation, and the data transmission protocol is cut off.
5. A method for controlling a hard disk soft switch is characterized in that the method is realized by the following contents:
the CPLD module is used as a control core, and the hard disk power supply control module, the hard disk reset module and the hard disk interface are controlled to complete the on-off control of the hard disk by receiving a restart instruction sent by the core CPU control module and the BMC module.
6. The method for controlling the soft switch of the hard disk according to claim 5, wherein the CPLD module transmits the control instruction sent by the BMC module and the core CPU control module in IIC and GPIO modes and reads the control instruction;
after the control instruction is read, the hard disk soft restart is controlled by controlling the hard disk power supply control module, the hard disk reset module and the hard disk interface, so that the hard disk is switched on and off.
7. The method for controlling the soft switch of the hard disk according to claim 6, wherein the CPLD module turns off all the power supply control module, the hard disk reset module and the hard disk interface of the hard disk to realize the hard disk switch-off when receiving the hard disk switch-off command.
8. The method for controlling the soft switch of the hard disk according to claim 5, wherein the CPLD module controls the hard disk power supply control module through an EN _12V signal, and controls the hard disk reset module through an RST _ SATA signal.
9. The method according to claim 8, wherein the restart command is a cold start command, and when the CPLD module receives the cold restart command, the power supply of EN _12V is cut off, and at this time, the hard disk is not powered on, and at the same time, the level is pulled down, and the transmission of the hard disk interface is cut off; and after waiting for the set time, the BMC module sends out a command for controlling the hard disk to be electrified.
10. The method according to claim 8, wherein the restart command is a warm restart command, and when the CPLD module receives the warm restart command, the level of the RST _ SATA signal is changed to a low level, and transmission of the hard disk interface is cut off;
after the RST _ SATA signal received by the hard disk is at a low level, the hard disk firstly enters a power-down state, the hard disk waits for the state of the hard disk to be reset, and the CPLD module enters a recovery state;
the CPLD module entering the recovery state is firstly reconnected with the transmission of the hard disk interface, and then the level of the hard disk reset module is pulled high to control the hard disk to enter the normal working state.
CN202011336519.9A 2020-11-25 2020-11-25 System and method for controlling hard disk soft switch Pending CN112650376A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011336519.9A CN112650376A (en) 2020-11-25 2020-11-25 System and method for controlling hard disk soft switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011336519.9A CN112650376A (en) 2020-11-25 2020-11-25 System and method for controlling hard disk soft switch

Publications (1)

Publication Number Publication Date
CN112650376A true CN112650376A (en) 2021-04-13

Family

ID=75349960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011336519.9A Pending CN112650376A (en) 2020-11-25 2020-11-25 System and method for controlling hard disk soft switch

Country Status (1)

Country Link
CN (1) CN112650376A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014112039A1 (en) * 2013-01-15 2014-07-24 富士通株式会社 Information processing device, method for controlling information processing device and information processing device control program
CN107656857A (en) * 2017-10-12 2018-02-02 郑州云海信息技术有限公司 A kind of NVMeSSD hard disks ignition method and device
CN107688376A (en) * 2017-09-28 2018-02-13 郑州云海信息技术有限公司 A kind of hard disk backboard for supporting adaptive hard-disk interface
CN107832199A (en) * 2017-10-10 2018-03-23 曙光信息产业(北京)有限公司 Hard disk monitoring system based on CPLD
CN107885686A (en) * 2017-12-01 2018-04-06 郑州云海信息技术有限公司 A kind of system and method for controlling single hard disk to restart using BMC
CN108287770A (en) * 2018-03-01 2018-07-17 联想(北京)有限公司 Electronic equipment, information processing method and readable storage medium storing program for executing
CN108829567A (en) * 2018-05-29 2018-11-16 郑州云海信息技术有限公司 Support the monolithic NVMe hard disk backboard of dual lighting and the ignition method of hard disk backboard
CN110377142A (en) * 2019-06-27 2019-10-25 苏州浪潮智能科技有限公司 A kind of system and method for supporting server hard disc independence power-on and power-off

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014112039A1 (en) * 2013-01-15 2014-07-24 富士通株式会社 Information processing device, method for controlling information processing device and information processing device control program
CN107688376A (en) * 2017-09-28 2018-02-13 郑州云海信息技术有限公司 A kind of hard disk backboard for supporting adaptive hard-disk interface
CN107832199A (en) * 2017-10-10 2018-03-23 曙光信息产业(北京)有限公司 Hard disk monitoring system based on CPLD
CN107656857A (en) * 2017-10-12 2018-02-02 郑州云海信息技术有限公司 A kind of NVMeSSD hard disks ignition method and device
CN107885686A (en) * 2017-12-01 2018-04-06 郑州云海信息技术有限公司 A kind of system and method for controlling single hard disk to restart using BMC
CN108287770A (en) * 2018-03-01 2018-07-17 联想(北京)有限公司 Electronic equipment, information processing method and readable storage medium storing program for executing
CN108829567A (en) * 2018-05-29 2018-11-16 郑州云海信息技术有限公司 Support the monolithic NVMe hard disk backboard of dual lighting and the ignition method of hard disk backboard
CN110377142A (en) * 2019-06-27 2019-10-25 苏州浪潮智能科技有限公司 A kind of system and method for supporting server hard disc independence power-on and power-off

Similar Documents

Publication Publication Date Title
CN107885686B (en) System and method for controlling restart of single hard disk by adopting BMC
US7730235B2 (en) Storage apparatus for controlling power saving modes of multiple disk devices of different specifications
US8443221B2 (en) Methods, systems, and computer readable media for advanced power management for serial advanced technology attachment (SATA)-based storage devices
CN110321066A (en) Electronic equipment, computer system and their control method
JP5409159B2 (en) Information processing apparatus, information processing apparatus control method, and program
US8078815B2 (en) Power-saving-backup management method
TW200421288A (en) Method and apparatus for managing power consumption of a disk drive
CN104345869A (en) SDIO device, system and method for controlling same
WO2010116419A1 (en) Storage apparatus and method for shredding storage medium
CN101593082A (en) A kind of device of managing power supply circuit of memory equipment, method and computing machine
KR101196878B1 (en) Hybrid raid controller
CN101788939B (en) Controller status-monitoring device and method
WO2014008653A1 (en) Method for switching a device between hibernat mode and wake-up
WO2020082929A1 (en) Data processing method and distributed storage system
CN112650376A (en) System and method for controlling hard disk soft switch
CN103019619B (en) A kind of disk plug control method and device
US20080007860A1 (en) Disk array control apparatus and method
US11385815B2 (en) Storage system
CN107656708A (en) Electronic equipment and its control method
JP2001337789A (en) Disk subsystem
CN111506332B (en) Remote-controlled data storage device and remote control system
TWI221971B (en) The system and method for controlling dual hot-swappable IDE devices
JP2013206009A (en) Drive control device, storage system, and drive control method
CN109710323A (en) A kind of control method and electronic equipment
JP5621246B2 (en) Disk enclosure and storage system control method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210413