CN109815169B - Storage device and storage link self-adaption method thereof - Google Patents

Storage device and storage link self-adaption method thereof Download PDF

Info

Publication number
CN109815169B
CN109815169B CN201910039675.XA CN201910039675A CN109815169B CN 109815169 B CN109815169 B CN 109815169B CN 201910039675 A CN201910039675 A CN 201910039675A CN 109815169 B CN109815169 B CN 109815169B
Authority
CN
China
Prior art keywords
module
hard disk
raid
disk expansion
expansion module
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
CN201910039675.XA
Other languages
Chinese (zh)
Other versions
CN109815169A (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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201910039675.XA priority Critical patent/CN109815169B/en
Publication of CN109815169A publication Critical patent/CN109815169A/en
Application granted granted Critical
Publication of CN109815169B publication Critical patent/CN109815169B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a storage device and a method for self-adapting a storage link thereof, wherein the storage device comprises: the RAID card bit detection circuit is used for sending an insertion/removal instruction when detecting that the RAID card is inserted into/removed from the RAID module; the hard disk expansion module configuration switching circuit is used for sending a storage module use instruction for forbidding/using the HBA module to store to the hard disk expansion module; the hard disk expansion module reset circuit is used for sending a reset instruction to the hard disk expansion module; the hard disk expansion module is used for controlling the forbidding/using of the HBA module for storage according to the use indication of the storage module; and performing a reset operation according to the reset indication; the invention effectively solves the problems that in the prior art, in a large-disk storage system, a storage system based on HBA only cannot support the requirement of hard RAID and the storage system based on hard RAID only has higher cost.

Description

Storage device and storage link self-adaption method thereof
Technical Field
The invention relates to the technical field of data storage capacity expansion, in particular to a storage device and a storage link self-adaption method thereof.
Background
In order to improve the performance and speed Of the storage system, in the large-disk storage system, the architecture is usually an SAS (Serial Attached SCSI)/SATA (Serial ata) CONTROLLER cascade SAS/SATA EXPANDER, where the SAS/SATA CONTROLLER may be a main CONTROLLER CPU itself, or a host Bus adapter hba (host Bus adapter) chip or a redundant Array Of Independent disks raid (redundant Array Of Independent disk) chip; however, the number of SAS/SATA interfaces of a general-purpose CPU is limited, and the resource requirement of a large disk cannot be met generally, and currently, a large disk storage system is divided into a storage system based on HBA only and a storage system based on hard RAID only.
The storage system based on the HBA only has lower cost than the storage system based on the hard RAID only, and the HBA card and the large disk storage equipment based on the HBA architecture are preferably selected in application generally; however, from the viewpoints of cost reduction, production process reduction and product stability, the HBA module is not suitable to be made into a card-in type, but the storage device of the onboard HBA architecture cannot be upgraded to a device supporting hard RAID, so that when the product needs to upgrade hard RAID in the using process, only the machine type of the product can be replaced, thereby wasting human and material resources.
Compared with the storage system based on the HBA, the storage system based on the hard RAID card combines a plurality of independent physical hard disks in different modes to form a hard disk logic, so that the capacity of the hard disks is expanded, the data reliability of the hard disks is improved, and the hard RAID module can be made into a plug-in card type.
In summary, in the large-disk storage system, the storage system based on the HBA cannot support the requirement of the hard RAID, and the storage system based on the hard RAID is high in cost; due to the combination of cost and performance, a storage link system based on the mixture of HBA and RAID cards is urgently needed.
Disclosure of Invention
The invention provides a storage device and a storage link self-adaption method thereof, which are used for solving the problems that in a large-disk storage system in the prior art, a storage system only based on HBA cannot support the requirement of hard RAID, and the storage system only based on hard RAID has higher cost.
In a first aspect, an embodiment of the present invention provides a storage device, where the storage device includes:
the RAID card bit detection circuit is used for respectively sending insertion/removal instructions to the hard disk expansion module configuration switching circuit and the hard disk expansion module reset circuit when detecting that the RAID card is inserted/removed from the RAID module;
the hard disk expansion module is provided with a switching circuit and is used for sending a storage module use instruction for forbidding/using the HBA module to store to the hard disk expansion module according to the insertion/removal instruction received from the RAID card by the bit detection circuit;
the hard disk expansion module reset circuit is used for sending a reset instruction to the hard disk expansion module when receiving the insertion/removal instruction received by the RAID card bit detection circuit;
the hard disk expansion module is used for controlling the forbidding/using the HBA module for storage according to the use indication of the storage module of the hard disk expansion module configuration switching circuit; and carrying out reset operation according to the reset instruction of the reset circuit of the hard disk expansion module so as to obtain the port configuration information between the hard disk expansion module and the RAID module/HBA module again.
In a second aspect, an embodiment of the present invention provides a method for storage link adaptation, where the method includes:
when the RAID card bit detection circuit detects that the RAID card is inserted into or removed from the RAID module, the RAID card bit detection circuit respectively sends insertion/removal instructions to the hard disk expansion module configuration switching circuit and the hard disk expansion module reset circuit;
the hard disk expansion module configuration switching circuit sends a storage module use instruction for forbidding/using the HBA module to store to the hard disk expansion module according to the insertion/removal instruction received from the RAID card bit detection circuit;
when the hard disk expansion module reset circuit receives the insertion/removal instruction received by the RAID card bit detection circuit, the reset circuit sends a reset instruction to the hard disk expansion module;
the hard disk expansion module controls the forbidding/using of the HBA module for storage according to the storage module use indication of the hard disk expansion module configuration switching circuit; and carrying out reset operation according to the reset instruction of the reset circuit of the hard disk expansion module so as to obtain the port configuration information between the hard disk expansion module and the RAID module/HBA module again.
Compared with the prior art, the storage device and the storage link self-adapting method thereof provided by the invention have the following beneficial effects:
1) in the method provided by the invention, when the hard RAID storage system needs to be upgraded in the large-disk storage device with onboard HBA, the hard RAID storage system can be directly upgraded by installing the RAID card on the premise of not replacing the whole machine and software, and the RAID card can still normally work based on the HBA storage system after being pulled out;
2) after the HBA storage system is switched to a hard RAID storage system or the hard RAID storage system is switched back to the HBA storage system, the storage link can be ensured to be switched before the hard disk expansion module is identified;
3) after the hard RAID card is accessed, the dynamic DISABLE HBA can be cascaded to a port on the SAS EXPANDER, the SAS EXPANDER is prevented from butting two SAS/SATA controllers, and a hardware storage link is enabled to be unique.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1A is a schematic diagram of a storage device according to an embodiment of the present invention;
fig. 1B is a schematic diagram of a storage device according to an embodiment of the present invention;
fig. 1C is a schematic diagram of a data flow direction of data to be stored when a RAID card is inserted into a RAID module according to an embodiment of the present invention;
fig. 1D is a schematic diagram of a data flow direction of data to be stored when a RAID card is removed from a RAID module according to an embodiment of the present invention;
fig. 2A is a schematic diagram of a memory device according to a second embodiment of the present invention;
fig. 2B is a schematic diagram of an embodiment of a RAID card bit detection circuit according to a second embodiment of the present invention;
fig. 2C is a schematic diagram of a specific example of a hard disk expansion module configuration switching circuit according to a second embodiment of the present invention;
fig. 2D is a schematic diagram of a specific implementation example of a hard disk expansion module reset circuit according to a second embodiment of the present invention;
fig. 2E is a schematic diagram of a specific implementation example of a hot plug circuit according to a second embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Some of the words that appear in the text are explained below:
1. the term "and/or" in the embodiments of the present invention describes an association relationship of associated objects, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
2. In the embodiment of the present invention, the terms "RAID" and "RAID" are all "hard RAID," which is a card that implements RAID functions by using hardware, for example: all the RAID cards and the RAID which can be manufactured by the mainboard integration are hard RAI and hard RAIDD.
The application scenario described in the embodiment of the present invention is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not form a limitation on the technical solution provided in the embodiment of the present invention, and it can be known by a person skilled in the art that with the occurrence of a new application scenario, the technical solution provided in the embodiment of the present invention is also applicable to similar technical problems. In the description of the present invention, the term "plurality" means two or more unless otherwise specified.
In a large disk storage system, a storage system based on the HBA is low in cost, but from the aspects of reducing cost, reducing production procedures and product stability, the HBA module is not suitable to be made into a plug-in card type, but the storage equipment of an onboard HBA framework cannot be upgraded into equipment supporting hard RAID; compared with the storage system based on HBA, the storage system based on hard RAID combines a plurality of independent physical hard disks to form a hard disk logic in different modes, thereby expanding the capacity of the hard disks and improving the reliability of the data of the hard disks, and the hard RAID module can be made into a plug-in card type, but the storage system based on hard RAID has higher cost; due to the combination of cost and performance, a storage link system based on the mixture of HBA and RAID cards is urgently needed.
Therefore, the embodiment of the invention provides a storage device and a storage link self-adaption method thereof. In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
With respect to the above scenario, the following describes an embodiment of the present invention in further detail with reference to the drawings of the specification.
The first embodiment is as follows:
as shown in fig. 1A, the present embodiment provides a storage device including:
a RAID card bit detection circuit 101 configured to send an insertion/removal instruction to the hard disk expansion module configuration switching circuit 102 and the hard disk expansion module reset circuit 103, respectively, when detecting that a RAID card is inserted/removed in the RAID module 105;
the above-mentioned hard disk expansion module configuration switching circuit 102 is configured to send a storage module use instruction for disabling/using the HBA module storage to the hard disk expansion module 104 according to the insertion/removal instruction received from the RAID card by the bit detection circuit;
the hard disk expansion module reset circuit 103 is configured to send a reset instruction to the hard disk expansion module when receiving an insertion/removal instruction received by the RAID card by the bit detection circuit;
the hard disk expansion module 104 is configured to disable/use the storage of the HBA module 112 according to the storage module use indication control of the hard disk expansion module configuration switching circuit; and carrying out reset operation according to the reset instruction of the reset circuit of the hard disk expansion module so as to obtain the port configuration information between the hard disk expansion module and the RAID module/HBA module again.
In the storage equipment, when the HBA module needs to be upgraded into a hard RAID storage system, the hard RAID storage system can be directly upgraded into the hard RAID storage system by installing the RAID card on the premise of not replacing the whole machine and software, and the RAID card can still normally work based on the HBA storage system after being pulled out, so that the problem that the machine needs to be changed and the operation is complex when the HBA module needs to be upgraded into the hard RAID storage system is solved.
In implementation, as shown in fig. 1B, the storage device further includes a main control module CPU106, where the main control module is connected to the RAID module and the HBA module, and configured to provide a clock signal to the RAID module or the HBA module in an enabled state, provide a clock signal to the RAID module in the enabled state when a RAID card is inserted into the RAID module, and provide a clock signal to the HBA module in the enabled state when the RAID card is removed from the RAID module;
and the hot plug circuit 107 is connected with the power supply 111 and is used for supplying power to/cutting off power from the RAID module according to the detected information of inserting/removing the RAID card in the RAID module and simultaneously enabling/closing a clock signal provided by the CPU to the RAID module.
As shown in fig. 1B, in an implementation, the storage device further includes a PCIE card connection module 109, connected to the RAID module and the hot plug circuit, and configured to insert/remove the RAID card into/from the RAID module through a PCIE slot of the PCIE card connection module, where the hot plug circuit is connected to the PCIE slot of the PCIE card connection module, and the level on a corresponding connection line changes when the RAID card is inserted/removed from the PCIE slot of the PCIE card connection module. The hot plug circuit supports the hot plug on the RAID card, and the operation of accessing the RAID card or moving out the RAID card from the RAID module can be completed without powering off;
the RAID in-place detection circuit cannot share the in-place detection function of the hot plug circuit, because when any standard PCIE card is connected, the hot plug circuit receives an in-place detection signal, and the RAID in-place detection circuit can notify the hard disk expansion module configuration switching circuit to instruct the hard disk expansion module to control the docking data storage port where the hard disk expansion module and the HBA module are disabled only when the RAID in-place detection circuit is connected to the RAID card.
In implementation, the hard disk expansion module is specifically configured to disable a docking data storage port between the hard disk expansion module and the HBA module when it is determined that the storage module use instruction is to disable the storage of the HBA module; when the storage module use indication is stored by using the HBA module, enabling a butt joint data storage port between the hard disk expansion module and the HBA module;
as an optional implementation manner, two chips in the hard disk expansion module are respectively and correspondingly connected to storage link paths of the HBA module and the RAID module, and the hard disk expansion module is specifically configured to determine the storage module use indication, disable/enable a data storage port in a docking state between the hard disk expansion module and the HBA module, and may be a selection for controlling the hard disk expansion module to switch the chips.
In implementation, the hard disk expansion module configuration switching circuit comprises an I2C gating device; the I2C gating device is respectively connected with the hard disk expansion module and the RAID card bit detection circuit, and generates corresponding gating/forbidding gating signals to be connected with the hard disk expansion module according to insertion/removal instructions sent by the RAID card bit detection circuit.
In an implementation, as shown in fig. 1B, the storage device further includes a cable connection module connected between the RAID module and the RAID card bit detection circuit.
Based on the same inventive concept, this embodiment further provides a method for storing link adaptation, which specifically includes:
when the RAID card bit detection circuit detects that the RAID card is inserted into or removed from the RAID module, the RAID card bit detection circuit respectively sends insertion/removal instructions to the hard disk expansion module configuration switching circuit and the hard disk expansion module reset circuit;
the hard disk expansion module configuration switching circuit sends a storage module use instruction for forbidding/using the HBA module to store to the hard disk expansion module according to the insertion/removal instruction received from the RAID card bit detection circuit;
when the hard disk expansion module reset circuit receives the insertion/removal instruction received by the RAID card bit detection circuit, the reset circuit sends a reset instruction to the hard disk expansion module;
the hard disk expansion module controls the forbidding/using of the HBA module for storage according to the storage module use indication of the hard disk expansion module configuration switching circuit; and carrying out reset operation according to the reset instruction of the reset circuit of the hard disk expansion module so as to obtain the port configuration information between the hard disk expansion module and the RAID module/HBA module again.
In an implementation, the insertion/removal indication received by the bit detection circuit of the RAID card may be a gating control signal, and when the RAID card is inserted into the RAID module, the gating control signal is at a low level and is a storage module use indication for disabling storage of the HBA module; when the RAID card is removed from the RAID module, the gating control signal is in a high level and indicates the use of the storage module stored by the HBA module.
In implementation, when it is determined that the storage module use indication is to disable the storage of the HBA module, disabling a data storage port of the interface between the hard disk expansion module and the HBA module, writing data to be stored into the RAID module, and preventing the HBA module and the RAID module from accessing the storage device at the same time, so that a link of the storage hardware is unique;
and when the storage module use indication is determined to be stored by using the HBA module, enabling a data storage port connected between the hard disk expansion module and the HBA module, and writing data to be stored into the HBA module, so that the HBA module continuously takes over the storage service of the storage equipment.
Because the port configuration of the hard disk expansion module belongs to the firmware, the hard disk expansion module can complete the port switching action before the system software is executed, and the condition that the data of the RAID module stored last time is lost due to the fact that the switching is not timely performed in the software mode in the system starting process can be avoided.
The following respectively shows the adaptive situation of the storage link of the storage device when a RAID card is inserted into or removed from a RAID module:
when a RAID card is inserted into the RAID module:
1) the RAID card bit detection circuit detects that the RAID card is inserted into the RAID module, and respectively sends insertion instructions to the hard disk expansion module configuration switching circuit and the hard disk expansion module reset circuit;
2) inserting information of a RAID card into the RAID module detected by the hot plug circuit, opening a switch for supplying power to the RAID module to enable the RAID module to work normally, and enabling a CPU to provide clock signals for the RAID module;
3) the hard disk expansion module configuration switching circuit receives an indication of inserting the RAID card and sends a storage module use indication forbidding the HBA module storage to the hard disk expansion module;
4) the hard disk expansion module reset circuit receives the indication of inserting the RAID card and sends a reset indication to the hard disk expansion module;
5) the hard disk expansion module forbids a butt joint data storage port between the hard disk expansion module and the HBA module according to the use instruction of the storage module; and carrying out reset operation according to the reset instruction, and enabling the new configuration switched after the RAID card is inserted into the RAID module to take effect, thereby shutting off a butt joint data storage port between the HBA module and the hard disk expansion module.
At this time, the data flow of the data to be stored goes as shown in fig. 1C, and the data to be stored may flow from the HDD array to the RAID module through the hard disk expansion module, or may flow from the RAID module to the HDD array 113 (disk array) through the hard disk expansion module.
And (II) when the RAID card is removed from the RAID module:
1) the RAID card bit detection circuit detects that the RAID card is moved out of the RAID module, and respectively sends out moving-out instructions to the hard disk expansion module configuration switching circuit and the hard disk expansion module reset circuit;
2) inserting information of a RAID card into the RAID module detected by the hot plug circuit, closing a switch for supplying power to the RAID module, and forbidding a clock signal provided by the CPU to the RAID module;
3) the hard disk expansion module configuration switching circuit receives an indication of removing the RAID card and sends a storage module use indication enabling the HBA module to store to the hard disk expansion module;
4) the hard disk expansion module reset circuit receives the indication of moving out the RAID card and sends a reset indication to the hard disk expansion module;
5) enabling a butt joint data storage port between the hard disk expansion module and the HBA module by the hard disk expansion module according to the storage module use instruction; and carrying out reset operation according to the reset instruction, so that the new configuration switched after the RAID card is moved out of the RAID module takes effect, thereby enabling a data storage port which is in butt joint between the HBA module and the hard disk expansion module.
At this time, the data flow of the data to be stored goes as shown in fig. 1D, and the data to be stored may flow out from the HDD array, flow to the HBA module through the hard disk expansion module, or flow out from the HBA module, flow to the HDD array through the hard disk expansion module.
In the method provided by the embodiment, when the hard RAID storage system needs to be upgraded in a large-disk storage device with an onboard HBA, the hard RAID storage system can be directly upgraded by installing the RAID card on the premise of not replacing the whole device and not replacing software, and the RAID card can still normally work based on the HBA storage system after being pulled out, that is, when the RAID card does not need to be used, the corresponding PCIE slot can be connected to other PCIE devices, and the normal work of the HBA system is not affected;
after the HBA storage system is switched to a hard RAID storage system or the hard RAID storage system is switched back to the HBA storage system, the storage link can be ensured to be switched before the hard disk expansion module is identified; after the hardware RAID card is accessed, the dynamic DISABLE HBA can be cascaded to a port on the SAS EXPANDER, the SAS EXPANDER is prevented from being butted with two SAS/SATA controllers, and a hardware storage link is enabled to be unique
In the method provided by this embodiment, because the HBA module and the hard RAID module are connected to the hard disk expansion module at the same time without sharing a hardware link, no gating device is passed, no extra signal attenuation is generated, and the method is suitable for a scenario where the wiring is long, and simultaneously, the layout of a PCB (Printed Circuit Board) is more flexible.
Example two:
the embodiment provides a storage device and a method for self-adapting a storage link, which specifically include the following steps: as shown in fig. 2A, the storage device is composed of a CPU module (i.e., the main control module CPU), an HBA chip (i.e., the HBA module), a PCIE slot (i.e., the PCIE card connection module), a hard RAID card (i.e., the RAID module), a MINISAS connector (i.e., the hard disk expansion module configuration switching circuit), a sase xpander (i.e., the hard disk expansion module), and an HDD array;
as shown in fig. 2A, the CPU module is connected to the upstream port and the PCIE slot of the HBA chip through two PCIE interfaces, the downstream SAS port of the HBA is connected to the SAS interface 1 of the SAS EXPANDER, and the MINISAS HD 4i connector is connected to the SAS interface 2 of the SAS EXPANDER through the MINISAS HD 4i high-speed cable;
when the RAID card is accessed to the storage device, the uplink port of the RAID card is connected with the PCIE slot of the storage device, and the downlink port of the RAID card is connected with the MINISAS HD 4i connector.
As shown in FIG. 2B, a specific embodiment of a RAID card bit detection circuit is shown:
the RAID card bit detection circuit comprises a MINISAS HD 4i connector, a MINISAS cable and peripheral circuits, wherein the downstream SAS interface definition of the RAID card meets SFF8485 specification, MINISAS HD 4i and the peripheral circuits thereof which are connected with the RAID card are shown in figure 2B, and one pin of SB1 and SB4 in Side BAND [7:0] is pulled up to the power supply voltage of the storage device, so that a gating control signal is generated;
it is worth noting that the specifications of SB1 and SB4 define GND, and besides these two GND PINs (ground PINs), there are several other GND PINs on the MINISAS HD 4i connector, and this scheme can only select SB1 or SB4, but cannot select other GND PINs;
when no RAID card is inserted, the gating control signal is at a high level, and after the RAID card is inserted into the storage device, the gating control signal is at a low level, and the gating signal is interconnected with the hard disk expansion module configuration switching circuit and the hard disk expansion module reset circuit and used as an insertion/removal instruction sent by the RAID card bit detection circuit to the hard disk expansion module configuration switching circuit and the hard disk expansion module reset circuit respectively.
As shown in fig. 2C, a specific example of a hard disk expansion module configuration switching circuit is given, where the hard disk expansion module configuration switching circuit may include, but is not limited to, the following first hard disk expansion module configuration switching circuit implementation examples:
the hard disk expansion module configuration switching Circuit comprises a hard disk expansion module, a two-wire serial bus I2C (Inter-Integrated Circuit) gating device and two EEPROMs;
the I2C control interface of the hard disk expansion module is connected with the I2C gating device, two I2C ports of the I2C gating device are respectively interconnected with two EEPROMs, and the gating input of the I2C is connected with the gating control signal output in FIG. 2B;
when the gating control signal is output to high level, the I2C control interface of the hard disk expansion module is connected with the EEPROM with default configuration, and the default configuration is an SAS port which enables the interconnection of the HBA card and the hard disk expansion module, so that the HBA card can manage a hard disk array under the hard disk expansion module; when the gating control signal is output to be in a low level, the I2C control interface of the hard disk expansion module is connected with another EEPROM which is configured to prohibit an SAS wide port for interconnecting the HBA card and the hard disk expansion module, so that the RAID card can manage a hard disk array under the hard disk expansion module.
As shown in fig. 2D, it is a specific implementation example of the reset circuit of the hard disk expansion module:
in the implementation, the hard disk expansion module reset circuit is a logic circuit module;
the gating control signal output in fig. 2B is connected to the logic circuit module, and when the logic circuit module detects that the gating control signal has a level change, the logic output module outputs a low-pulse reset signal to instruct the hard disk expansion module to reset, so that the hard disk expansion module can reacquire the port configuration information and take the configuration in the switched EEPROM into effect.
In implementation, the logic circuit module may be, but is not limited to, an MCU, a CPLD, or a discrete logic device.
As shown in fig. 2E, a specific implementation example of the hot-plug circuit is:
when the RAID card is inserted, the PRSNTR is at low level, and the signal is simultaneously sent to the power control module and the CPU;
after receiving the PRSNTR low level signal, the power control module provides working voltage for the RAID card; and after receiving the PRSNTR low-level signal, a CPU (central processing unit) end CPUREQ pin outputs CLK (clock signal) and reestablishes a PCIE (peripheral component interface express) link flow so that the RAID card works normally.
The specific working process is as follows:
when a RAID card is inserted into a storage device:
after the RAID card is inserted into the PCIE slot, the hot-plug circuit shown in fig. 2E opens the switch for supplying power to the RAID card to supply power to the RAID card, and simultaneously enables the clock signal for connecting the CPU and the RAID card, and reestablishes the PCIE link flow, so that the RAID card operates normally;
at this time, when the RAID bit detection circuit shown in fig. 2B accesses the storage device in the RAID card, the gate control signal, that is, the SB1 signal is pulled down because the end of the RAID card that is connected to the RAID bit detection circuit is GND and the SB1 signal, and the RAID bit detection circuit outputs the pulled down SB1 signal to the hard disk expansion module configuration switching circuit and the hard disk expansion module reset circuit at the same time;
if the hard disk expansion module configuration switching circuit shown in fig. 2C is adopted, after the hard disk expansion module configuration switching circuit detects the strobe control signal SB1 that is pulled low, the I2C strobe device switches the EEPROM device — the switching configuration disables the docking of the HBA card with the hard disk expansion module to the data storage port;
as shown in fig. 2D, after detecting the gating control signal from high to low, the logic output module outputs a low-pulse reset signal to reset the chip of the hard disk expansion module, and for the hard disk expansion module configuration switching circuit shown in fig. 2C, the chip of the hard disk expansion module will read the EEPROM configuration information after the I2C gating device is switched after being reset, and disable the docking of the HBA card and the hard disk expansion module to the data storage port, thereby shutting off the hardware connection between the HBA card and the hard disk expansion module, preventing the HBA and the RAID card from accessing the storage device at the same time, and making the storage hardware link unique.
(II) when the RAID card is pulled out of the storage device:
after the RAID card is pulled out of the PCIE slot, the hot plug circuit shown in fig. 2E closes the power supply switch of the RAID card to power off the RAID card, and simultaneously closes the clock signal connected to the CPU and the RAID card, at this time, after the RAID in-place detection circuit shown in fig. 2B moves out of the storage device, the gating control signal, that is, the SB1 signal, is pulled high under the action of the pull-up resistor thereof, and the RAID in-place detection circuit outputs the pulled-up SB1 signal to the hard disk expansion module configuration switching circuit and the hard disk expansion module reset circuit;
if the hard disk expansion module configuration switching circuit shown in fig. 2C is adopted, after the hard disk expansion module configuration switching circuit detects the pulled-up gating control signal, the I2C gating device switches the EEPROM device — enabling it to be in butt joint with the hard disk expansion module to the data storage port;
as shown in fig. 2D, after detecting the gating control signal from low to high, the logic output module outputs a low-pulse reset signal to reset the hard disk expansion module; for the hard disk expansion module configuration switching circuit shown in fig. 2C, after the chip of the hard disk expansion module is reset, the EEPROM configuration information after the I2C gating device is switched is read, so that the HBA card and the hard disk expansion module are enabled to be in butt joint with the data storage port, and the HBA card continues to take over the storage service of the storage device.
The present application is described above with reference to illustrating apparatus, methods, and/or flow diagrams in accordance with embodiments of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A storage device, comprising:
the RAID card bit detection circuit is used for respectively sending insertion/removal instructions to the hard disk expansion module configuration switching circuit and the hard disk expansion module reset circuit when detecting that the RAID card is inserted/removed from the RAID module;
the hard disk expansion module is provided with a switching circuit and is used for sending a storage module use instruction for forbidding/using the HBA module to store to the hard disk expansion module according to the insertion/removal instruction received from the RAID card by the bit detection circuit;
the hard disk expansion module reset circuit is used for sending a reset instruction to the hard disk expansion module when receiving the insertion/removal instruction received by the RAID card bit detection circuit;
the hard disk expansion module is used for controlling the forbidding/using the HBA module for storage according to the use indication of the storage module of the hard disk expansion module configuration switching circuit; and carrying out reset operation according to the reset instruction of the reset circuit of the hard disk expansion module so as to obtain the port configuration information between the hard disk expansion module and the RAID module/HBA module again.
2. The storage device of claim 1, further comprising:
the microprocessor CPU is used for providing a clock signal to the RAID module in an enabling state;
and the hot plug circuit is used for supplying power to/cutting off power from the RAID module according to the detected information of inserting/removing the RAID card in the RAID module, and simultaneously enabling/closing a clock signal provided by the CPU to the RAID module.
3. The storage device of claim 1, wherein the hard disk expansion module is specifically configured to disable the docking data storage port between the hard disk expansion module and the HBA module when it is determined that the storage module usage indication is that HBA module storage is disabled; and enabling a data storage port of the interface between the hard disk expansion module and the HBA module when the storage module use indication is determined to be stored by the HBA module.
4. The memory device of claim 1, wherein the hard disk expansion module configuration switching circuitry comprises a two-wire serial bus I2C gating device; the I2C gating device is respectively connected with the hard disk expansion module and the signal line of the insertion/removal indication sent by the RAID card position detection circuit.
5. The storage device of claim 1, further comprising:
and the cable connection module is connected between the RAID module and the RAID card bit detection circuit.
6. The storage device of claim 1, further comprising:
and the PCIE card connecting module is connected with the RAID module and is used for inserting/removing the RAID card into/from the RAID module through a PCIE slot of the PCIE card connecting module.
7. A method for memory link adaptation, the method comprising:
when the RAID card bit detection circuit detects that the RAID card is inserted into or removed from the RAID module, the RAID card bit detection circuit respectively sends insertion/removal instructions to the hard disk expansion module configuration switching circuit and the hard disk expansion module reset circuit;
the hard disk expansion module configuration switching circuit sends a storage module use instruction for forbidding/using the HBA module to store to the hard disk expansion module according to the insertion/removal instruction received from the RAID card bit detection circuit;
when the hard disk expansion module reset circuit receives the insertion/removal instruction received by the RAID card bit detection circuit, the reset circuit sends a reset instruction to the hard disk expansion module;
the hard disk expansion module controls the forbidding/using of the HBA module for storage according to the storage module use indication of the hard disk expansion module configuration switching circuit; and carrying out reset operation according to the reset instruction of the reset circuit of the hard disk expansion module so as to obtain the port configuration information between the hard disk expansion module and the RAID module/HBA module again.
8. The method of claim 7, further comprising:
the microprocessor CPU provides a clock signal to the RAID module in an enabling state;
the hot plug circuit supplies power to/cuts off power to the RAID module according to the detected information of inserting/removing the RAID card in the RAID module, and enables/shuts off the clock signal provided by the CPU to the RAID module.
9. The method of claim 7, wherein the insertion/removal indication received by the bit detection circuit of the RAID card is a strobe control signal, the strobe control signal being low when the RAID card is inserted into the RAID module and high when the RAID card is removed from the RAID module.
10. The method of claim 7, wherein the hard disk expansion module controls disabling/using HBA module storage according to the storage module usage indication of the hard disk expansion module configuration switching circuit, comprising:
when the storage module use indication is determined to be that the HBA module is forbidden to store, forbidding a butt joint data storage port between the hard disk expansion module and the HBA module;
and enabling a data storage port of the interface between the hard disk expansion module and the HBA module when the storage module use indication is determined to be stored by the HBA module.
CN201910039675.XA 2019-01-16 2019-01-16 Storage device and storage link self-adaption method thereof Active CN109815169B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910039675.XA CN109815169B (en) 2019-01-16 2019-01-16 Storage device and storage link self-adaption method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910039675.XA CN109815169B (en) 2019-01-16 2019-01-16 Storage device and storage link self-adaption method thereof

Publications (2)

Publication Number Publication Date
CN109815169A CN109815169A (en) 2019-05-28
CN109815169B true CN109815169B (en) 2021-02-02

Family

ID=66604436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910039675.XA Active CN109815169B (en) 2019-01-16 2019-01-16 Storage device and storage link self-adaption method thereof

Country Status (1)

Country Link
CN (1) CN109815169B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11789893B2 (en) * 2020-08-05 2023-10-17 Etron Technology, Inc. Memory system, memory controller and memory chip
CN113688084B (en) * 2021-07-22 2023-08-22 苏州浪潮智能科技有限公司 Circuit, method and storage medium for realizing PCIE resource automatic allocation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101095116A (en) * 2004-11-05 2007-12-26 数据机器人技术公司 Storage system condition indicator and method
CN101488077A (en) * 2009-02-24 2009-07-22 浪潮电子信息产业股份有限公司 Redundancy magnetic disk control server system
CN102346508A (en) * 2011-09-23 2012-02-08 浪潮电子信息产业股份有限公司 Design method for improving expansion capability of heterogeneous system mainboard
CN109116934A (en) * 2018-06-27 2019-01-01 烽火通信科技股份有限公司 Expansible combined server stores backboard

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7062644B2 (en) * 2001-05-30 2006-06-13 International Business Machines Corporation Method, system, and program for initializing a storage device comprising multiple storage units through a storage controller
CN203982354U (en) * 2014-06-19 2014-12-03 天津书生投资有限公司 A kind of redundant storage system
CN102521194A (en) * 2011-12-31 2012-06-27 曙光信息产业股份有限公司 Method and system capable of realizing high-speed interconnection between devices
CN102999106B (en) * 2012-11-19 2016-09-28 浪潮电子信息产业股份有限公司 A kind of realization on blade server extends PCIe card or the method for designing of storage device
CN106997224A (en) * 2016-01-22 2017-08-01 中兴通讯股份有限公司 Hard disk subrack and server
CN106201963A (en) * 2016-07-11 2016-12-07 浪潮(北京)电子信息产业有限公司 A kind of system of PCI E card hot plug in server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101095116A (en) * 2004-11-05 2007-12-26 数据机器人技术公司 Storage system condition indicator and method
CN101488077A (en) * 2009-02-24 2009-07-22 浪潮电子信息产业股份有限公司 Redundancy magnetic disk control server system
CN102346508A (en) * 2011-09-23 2012-02-08 浪潮电子信息产业股份有限公司 Design method for improving expansion capability of heterogeneous system mainboard
CN109116934A (en) * 2018-06-27 2019-01-01 烽火通信科技股份有限公司 Expansible combined server stores backboard

Also Published As

Publication number Publication date
CN109815169A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
US20050102454A1 (en) Dynamic reconfiguration of PCI express links
US20090167771A1 (en) Methods and apparatuses for Configuring and operating graphics processing units
US6816939B2 (en) Apparatus for supporting I2C bus masters on a secondary side of an I2C multiplexor
US20140223064A1 (en) Connecting expansion slots
KR20080074221A (en) Methods and apparatus for adding an autonomous controller to an existing architecture
CN109815169B (en) Storage device and storage link self-adaption method thereof
CN112799985B (en) USB interface control method, USB control circuit and intelligent networking equipment mainboard
CN213365380U (en) Server mainboard and server
CN112951315A (en) NVME \ AHCI compatible dual-protocol hard disk testing device and method
TW201933124A (en) Hot swap control circuit and related storage server system
CN100478935C (en) PCIE channel expansion device, system and its collocation method
CN116132009A (en) Clock switching device, server and clock switching method
CN113190084A (en) Hard disk backboard connecting method and device supporting hard disks with various bit widths
CN115480628A (en) Chip port control method and computer system
US7099966B2 (en) Point-to-point electrical loading for a multi-drop bus
CN115509985A (en) I/O controller of processor
CN112527719B (en) PCIe link-based JBOF (just-in-File) connection method, device and system
CN100383757C (en) Disk data backup system and method thereof
US7069360B2 (en) Method and apparatus for detecting a device's ability to run at a selected frequency in a PCI non-inhibit bus-connect mode
CN114003528A (en) OCP switching card, switching system and switching method
CN107704403B (en) Device and method for optimizing signal transmission of main back plate
KR101854805B1 (en) mainboard and computer improved I/O performance
CN115422110B (en) Port configuration method of electronic equipment and PCIE Switch chip
CN103378902A (en) Main-and-standby switching method of optical line terminal system and optical line terminal system
CN107636676B (en) Card reader

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
GR01 Patent grant
GR01 Patent grant