CN115390759A - Hard disk expansion system and control method, device and medium thereof - Google Patents

Hard disk expansion system and control method, device and medium thereof Download PDF

Info

Publication number
CN115390759A
CN115390759A CN202211026996.4A CN202211026996A CN115390759A CN 115390759 A CN115390759 A CN 115390759A CN 202211026996 A CN202211026996 A CN 202211026996A CN 115390759 A CN115390759 A CN 115390759A
Authority
CN
China
Prior art keywords
hard disk
interface
control unit
server
virtual
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
CN202211026996.4A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211026996.4A priority Critical patent/CN115390759A/en
Publication of CN115390759A publication Critical patent/CN115390759A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems
    • G06F3/0622Securing storage systems in relation to access
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0682Tape device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a hard disk expansion system and a control method, a device and a medium thereof, comprising the following steps: the device comprises a control unit, a communication unit and a hard disk interface; the control unit is connected with the server through the communication unit to acquire a control instruction sent by the server through the virtual interface; the virtual interfaces are interfaces created based on the physical ports of the hard disks, the number of the virtual interfaces is consistent with that of the servers, and any hard disk in the system is communicated with each server through the virtual interfaces so that each server can read data in the hard disk; the control unit is connected with the hard disk port through the hard disk interface so as to exchange data with the hard disk according to the control instruction. According to the method and the device, the virtual interface is established based on the physical port of the hard disk, and the control unit is used for exchanging data with the hard disk according to the control instruction sent by the server through the virtual interface, so that each hard disk can be connected with a plurality of controllers, the situation that data in the hard disk cannot be read due to the failure of a single controller is prevented, and the stability and the reliability of the system are improved.

Description

Hard disk expansion system and control method, device and medium thereof
Technical Field
The present application relates to the field of computer storage, and in particular, to a hard disk expansion system, a method, an apparatus, and a medium for controlling the same.
Background
With the rapid development of cloud computing technology and internet of things technology, the data volume to be processed by the server is larger and larger. In order to expand the capacity Of a server storage system and ensure that the server can realize high-speed storage Of data, most storage providers select a storage host Of the server to connect with a SSD hard disk expansion cabinet (JBOF) or a HDD hard disk expansion cabinet.
The hard disk expansion cabinet is connected with the storage host computer through a high-speed serial computer expansion bus (PCI-Express), and a plurality of hard disks are connected under JBOF to expand the disk array. However, since the PCIE bus is in a tree topology, only one root device exists, and thus the hard disk expansion cabinet can be connected to only one controller (root device of the PCIE bus). When the controller fails, a user cannot read data in the hard disk expansion cabinet mounted on the controller.
Therefore, it is an urgent need to solve the problem of providing a safer and more reliable hard disk expansion system to prevent the data in JBOF from being unreadable due to the control of the controller.
Disclosure of Invention
The present application aims to provide a hard disk expansion system, and a control method, an apparatus, and a medium thereof, so that each storage device (hard disk) in a storage system can be connected to controllers of multiple servers, thereby preventing data in the hard disk from being inaccessible due to a failure of the controller.
In order to solve the above technical problem, the present application provides a hard disk expansion system, including:
the device comprises a control unit, a communication unit and a hard disk interface;
the control unit is connected with the server through the communication unit to acquire a control instruction sent by the server through the virtual interface; the virtual interfaces are created based on hard disk physical ports, and the number of the virtual interfaces is consistent with that of the servers;
and the control unit is connected with a hard disk port through the hard disk interface so as to exchange data with a hard disk according to the control instruction.
Preferably, the communication unit includes a MINI SAS cable and a MINI SAS interface controller;
each pair of MINI SAS interface controllers is respectively arranged on the server side and the control unit side, and PCIE bus connection is established based on the MINI SAS cables.
Preferably, the control unit is a PM42100 chip.
Preferably, the MINI SAS interface controller of the control unit side is connected to the control unit through an uplink interface of the control unit.
In order to solve the above technical problem, the present application further provides a hard disk expansion system control method, which is applied to the hard disk expansion system, and the method includes:
acquiring a control instruction sent by a server through a virtual interface, wherein the virtual interface is an interface created based on a hard disk physical port, and the number of the virtual interfaces is consistent with that of the servers;
and exchanging data with the hard disk according to the control instruction.
Preferably, before the step of obtaining the control instruction sent by the server through the virtual interface, the method further includes:
creating a shared name space based on the storage space of the hard disk;
a connection relationship is created between the shared namespace and the virtual interface.
Preferably, after the step of creating a connection relationship between the shared namespace and the virtual interface, the method further includes:
and binding each virtual interface of each hard disk to a downlink interface corresponding to each uplink interface of the control unit.
In order to solve the above technical problem, the present application further provides a hard disk expansion system control device, including:
the system comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring a control instruction sent by a server through a virtual interface, the virtual interface is an interface created based on a hard disk physical port, and the number of the virtual interfaces is consistent with that of the servers;
and the data exchange module is used for exchanging data with the hard disk according to the control instruction.
In order to solve the above technical problem, the present application further provides another hard disk expansion system control apparatus, including a memory for storing a computer program;
and the processor is used for realizing the steps of the hard disk expansion system control method when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the hard disk expansion system control method.
The application provides a hard disk expansion system, this system includes: the device comprises a control unit, a communication unit and a hard disk interface; the control unit is connected with the server through the communication unit to acquire a control instruction sent by the server through the virtual interface; the virtual interfaces are created based on the physical ports of the hard disk, the number of the virtual interfaces is consistent with that of the servers, and any storage device in the system is communicated with each server through the virtual interfaces so that each server can read data in the storage device; the control unit is connected with the hard disk port through the hard disk interface so as to exchange data with the hard disk according to the control instruction. Therefore, according to the technical scheme provided by the application, the virtual interface is established based on the physical port of the hard disk, and the control unit is used for exchanging data with the hard disk according to the control instruction sent by the server through the virtual interface, so that each hard disk can be connected with a plurality of controllers, the data in the hard disk cannot be read due to the failure of a single controller is prevented, and the stability and the reliability of the system are improved.
In addition, the present application further provides a method, an apparatus, and a medium for controlling a hard disk expansion system, which are applied to the hard disk expansion system, and include: the control unit is connected with the server through the communication unit to acquire a control instruction sent by the server through the virtual interface; the virtual interfaces are created based on the physical ports of the hard disk, the number of the virtual interfaces is consistent with that of the servers, and any storage device in the system is communicated with each server through the virtual interfaces so that each server can read data in the storage device; the control unit is connected with the hard disk port through the hard disk interface so as to exchange data with the hard disk according to the control instruction. Therefore, according to the technical scheme provided by the application, the virtual interface is established based on the physical port of the hard disk, and the control unit is used for exchanging data with the hard disk according to the control instruction sent by the server through the virtual interface, so that each hard disk can be connected with a plurality of controllers, the data in the hard disk cannot be read due to the failure of a single controller is prevented, and the stability and the reliability of the system are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a structural diagram of a hard disk expansion system according to an embodiment of the present application;
fig. 2 is a structural diagram of another hard disk expansion system provided in an embodiment of the present application;
fig. 3 is a flowchart of a hard disk expansion system control method according to an embodiment of the present application;
fig. 4 is a structural diagram of a hard disk expansion system control device according to an embodiment of the present application;
fig. 5 is a structural diagram of another hard disk expansion system control device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
The core of the application is to provide a hard disk expansion system and a control method, a device and a medium thereof, so that each storage device (hard disk) in the storage system can be connected with controllers of a plurality of servers, and the condition that data in the hard disk cannot be accessed due to the failure of the controllers is prevented.
In a storage system working scene, in order to enhance the storage capacity and the storage performance of a storage host, JBOF needs to be used for expanding the storage host. The storage host is connected with the JBOF through a cable (for example, an SAS cable, a MiniSAS cable, etc.), a plurality of hard disks 3 are mounted in the JBOF, but each hard disk 3 can only be connected with a controller in a single server because the connection cable uses a PCIE protocol, and when the controller fails, data in the hard disk 3 connected with the controller cannot be accessed. In order to solve the problem, the present application provides a hard disk expansion system, a control method, an apparatus, and a medium thereof, where the system includes: the system comprises a control unit 1, a communication unit 2 and hard disk interfaces, wherein the virtual interfaces are interfaces created based on physical ports of the hard disk, the number of the virtual interfaces is consistent with that of servers, and any storage device in the system establishes communication with each server through the virtual interfaces so that each server can read data in the storage device; the control unit 1 is connected with the hard disk port through the hard disk interface so as to exchange data with the hard disk 3 according to the control instruction. The hard disk expansion system provided by the application acquires the control instruction sent by the server through the virtual port created based on the physical port of the hard disk, so that the control unit 1 can conveniently exchange data with the hard disk 3 through the hard disk interface according to the control instruction. So that each hard disk 3 can be connected with a plurality of controllers, the data in the hard disk 3 can not be read due to the failure of a single controller, and the stability and the reliability of the storage system are improved.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings.
Fig. 1 is a structural diagram of a hard disk expansion system according to an embodiment of the present application, and as shown in fig. 1, the system includes:
the system comprises a control unit 1, a communication unit 2 and a hard disk interface;
the control unit 1 is connected with the server through the communication unit 2 to acquire a control instruction sent by the server through a virtual interface; the virtual interfaces are created based on the physical ports of the hard disk, and the number of the virtual interfaces is consistent with that of the servers;
the control unit 1 is connected with the hard disk port through the hard disk interface so as to exchange data with the hard disk 3 according to the control instruction.
It should be noted that the Hard Disk 3 provided in the present embodiment may be a Hard Disk Drive (HDD) or a Solid State Drive (SSD), and is not limited herein. Further, the scheme provided by the application can also be applied to other types of storage devices besides hard disks.
It can be understood that, in order to facilitate the control unit 1 to control the hard disk 3, the hard disk 3 mounted in the hard disk expansion system provided in this embodiment is a hard disk supporting SR-IOV (Single Root I/O virtualization). Further, the control unit 1 is connected to the hard disk 3 through a physical port of the hard disk 3, and when there is a failure in the physical port of the hard disk, the server cannot read data in the hard disk 3. To solve this problem and improve system stability, a hard disk with dual ports may be selected.
In a specific implementation, the control unit 1 may be an embedded controller, or may be an intelligent device such as a computer, and is not limited herein. For example: a JBOF mainboard is selected as a control unit 1 and comprises a bus unit and a PAX chip, wherein a hard disk control program runs in the PAX chip to control the power-on, power-off, reset-off of a hard disk 3, detect the online state of a cable and control the bus connection and communication.
The virtual interfaces are interfaces created based on the hard disk physical ports, and each virtual interface is connected to each server to ensure that the physical hard disk can be seen from the system of each server, so as to acquire the data of the hard disk 3 or write the data into the hard disk 3. The system running in the server generates a control instruction according to the user operation and sends the control instruction to the control unit 1. The control unit 1 is connected with the physical hard disk 3 through a physical interface, wherein the control unit 1 is a signal chip selection chip and exchanges data with the hard disk 3 according to a control instruction.
The embodiment provides a hard disk expansion system, which includes: the device comprises a control unit, a communication unit and a hard disk interface; the control unit is connected with the server through the communication unit to acquire a control instruction sent by the server through the virtual interface; the virtual interfaces are created based on the physical ports of the hard disk, the number of the virtual interfaces is consistent with that of the servers, and any storage device in the system is communicated with each server through the virtual interfaces so that each server can read data in the storage device; the control unit is connected with the hard disk port through the hard disk interface so as to exchange data with the hard disk according to the control instruction. Therefore, according to the technical scheme provided by the application, the virtual interface is established based on the physical port of the hard disk, and the control unit is used for exchanging data with the hard disk according to the control instruction sent by the server through the virtual interface, so that each hard disk can be connected with a plurality of controllers, the data in the hard disk cannot be read due to the failure of a single controller is prevented, and the stability and the reliability of the system are improved.
As a preferred embodiment, the present application further provides another hard disk expansion system, and fig. 2 is a structural diagram of another hard disk expansion system provided in the embodiment of the present application, and as shown in fig. 2, the system includes: four servers (HOST 1, HOST2, HOST3, HOST 4), the CPU of each server is connected with JBOF of the mounted hard disk through a communication unit 2 to realize data exchange with the hard disk 3.
Further, the communication unit 2 is a bus communication unit, and each communication unit includes a first MINI SAS interface controller disposed at each server, a cable, and a second MINI SAS interface controller disposed at a JBOF end. Each first MINI SAS interface controller is connected with a CPU of the server, and each second MINI SAS interface controller is connected with a PAX main line in the JBOF mainboard to establish bus communication. As shown in fig. 2, the bus communication unit 2 in the apparatus is a PCIE bus, where each PCIE bus has 4 frequency channels (X4), and each frequency channel has a receiving end and a transmitting end, and the two are symmetric differentially.
The communication unit 2 includes a MINI SAS cable and a MINI SAS interface controller; each pair of MINI SAS interface controllers are respectively arranged on the server side and the control unit 1 side, and PCIE bus connection is established based on the MINI SAS cables. Further, the control unit 1 is a PM42100 chip. The MINI SAS interface controller on the control unit 1 side is connected to the control unit 1 through the upstream interface of the control unit 1.
In specific implementation, each JBOF motherboard in the system can mount 25 hard disks at most. The JBOF mainboard is provided with 4 uplink interfaces, and each uplink interface is connected with the server host through MINI SAS HD external cables. Furthermore, in order to facilitate the connection of the JBOF motherboard with each hard disk, a backplane may be further disposed in the hard disk expansion system, and the PAX chip is connected with each hard disk through the backplane.
The management software running in the PAX chip binds 4 virtual interfaces of the hard disk to uplink interfaces (UP STREAM PORTs, USP) of the JBO F motherboard, respectively, manages the hard disk 3 through the physical interface of the hard disk 3, creates a shared namespace (namespace) based on the entire storage space of the hard disk 3, and binds the shared namespace to the virtual interfaces.
Fig. 3 is a flowchart of a hard disk expansion system control method provided in an embodiment of the present application, and as shown in fig. 3, the method is applied to the hard disk expansion system, and includes:
s10: acquiring a control instruction sent by a server through a virtual interface, wherein the virtual interface is an interface created based on a hard disk physical port, and the number of the virtual interfaces is consistent with that of the servers;
s11: and exchanging data with the hard disk according to the control instruction.
In specific implementation, management software in the PAX chip manages the hard disk through a physical interface of the hard disk, creates a shared namespace (namespace) based on the entire storage space of the hard disk, and binds the shared namespace to each virtual interface, so that each server can access the hard disk through the virtual interface.
The management software running in the control unit binds the virtual interfaces of the 25 hard disks to the downlink interfaces (DOWN STREAM PORTs, DSPs) of the JBOF uplink interfaces, respectively.
The embodiment provides a hard disk expansion system control method, which is applied to the hard disk expansion system, and the system comprises the following steps: the device comprises a control unit, a communication unit and a hard disk interface; the control unit is connected with the server through the communication unit to acquire a control instruction sent by the server through the virtual interface; the virtual interfaces are created based on the physical ports of the hard disk, the number of the virtual interfaces is consistent with that of the servers, and any storage device in the system is communicated with each server through the virtual interfaces so that each server can read data in the storage device; the control unit is connected with the hard disk port through the hard disk interface so as to exchange data with the hard disk according to the control instruction. Therefore, according to the technical scheme provided by the application, the virtual interface is established based on the physical port of the hard disk, and the control unit is used for exchanging data with the hard disk according to the control instruction sent by the server through the virtual interface, so that each hard disk can be connected with a plurality of controllers, the data in the hard disk cannot be read due to the failure of a single controller is prevented, and the stability and the reliability of the system are improved.
As a preferred embodiment, before the step of obtaining the control instruction sent by the server through the virtual interface, the method further includes: a shared name space is created based on a storage space of a hard disk, and a connection relation is created between the shared name space and a virtual interface, so that each server can establish contact with a physical hard disk, and the problem that data in the hard disk cannot be read due to the failure of a single server is avoided.
Further, the MINI SAS interface controller on the control unit side is connected to the control unit through the uplink interface of the control unit, and therefore, after the step of creating the connection relationship between the shared namespace and the virtual interface, the method further includes: and binding each virtual interface of each hard disk to a downlink interface corresponding to each uplink interface of the control unit. Specifically, 4 virtual interfaces of each hard disk are bound to a downlink interface corresponding to each uplink interface of the PAX chip through management software running in the PAX chip in the control unit. The binding relationship is as follows: a virtual interface 1 of the hard disk SSD1 is bound to a downstream interface 1 of the upstream interface, a virtual interface 2 is bound to a downstream interface 1 of the upstream interface 2, a virtual interface 3 is bound to a downstream interface 1 of the upstream interface 3, and a virtual interface 4 is bound to a downstream interface 1 of the upstream interface 4. And repeating the steps until all the virtual interfaces of each hard disk are bound to the downlink interface corresponding to the uplink interface of the PAX chip.
In the foregoing embodiments, a control method of a hard disk expansion system is described in detail, and the present application also provides embodiments corresponding to a control apparatus of a hard disk expansion system. It should be noted that the present application describes the embodiments of the apparatus portion from two perspectives, one from the perspective of the function module and the other from the perspective of the hardware.
Fig. 4 is a structural diagram of a hard disk expansion system control device according to an embodiment of the present application, which is applied to the hard disk expansion system, and as shown in fig. 4, the device includes:
the acquiring module 10 is configured to acquire a control instruction sent by a server through a virtual interface, where the virtual interface is an interface created based on a hard disk physical port, and the number of the virtual interfaces is consistent with the number of the servers;
and the data exchange module 11 is used for exchanging data with the hard disk according to the control instruction.
Since the embodiment of the apparatus portion and the embodiment of the method portion correspond to each other, please refer to the description of the embodiment of the method portion for the embodiment of the apparatus portion, and details are not repeated here.
In addition, the hard disk expansion system control device provided by the present application further includes: the device comprises a connection establishing module and an interface binding module. The connection establishing module is used for establishing a shared name space based on a storage space of the hard disk; a connection relationship is created between the shared namespace and the virtual interface. The interface binding module is used for binding each virtual interface of each hard disk to a downlink interface corresponding to each uplink interface of the control unit.
The embodiment provides a hard disk expansion system control device, which is applied to the hard disk expansion system, and the system includes: the device comprises a control unit, a communication unit and a hard disk interface; the control unit is connected with the server through the communication unit to acquire a control instruction sent by the server through the virtual interface; the virtual interfaces are created based on the physical ports of the hard disk, the number of the virtual interfaces is consistent with that of the servers, and any storage device in the system is communicated with each server through the virtual interfaces so that each server can read data in the storage device; the control unit is connected with the hard disk port through the hard disk interface so as to exchange data with the hard disk according to the control instruction. Therefore, according to the technical scheme provided by the application, the virtual interface is established based on the physical port of the hard disk, and the control unit is used for exchanging data with the hard disk according to the control instruction sent by the server through the virtual interface, so that each hard disk can be connected with a plurality of controllers, the data in the hard disk cannot be read due to the failure of a single controller is prevented, and the stability and the reliability of the system are improved.
Fig. 5 is a structural diagram of another hard disk expansion system control device according to an embodiment of the present application, and as shown in fig. 5, the hard disk expansion system control device includes: a memory 20 for storing a computer program;
the processor 21 is configured to implement the steps of the hard disk expansion system control method according to the above-mentioned embodiment when executing the computer program.
The smart device provided by the embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, or a desktop computer.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The Processor 21 may be implemented in hardware using at least one of a Digital Signal Processor (DSP), a Field-Programmable Gate Array (FPGA), and a Programmable Logic Array (PLA). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a Graphics Processing Unit (GPU) which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, the processor 21 may further include an Artificial Intelligence (AI) processor for processing computational operations related to machine learning.
Memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing the following computer program 201, wherein after the computer program is loaded and executed by the processor 21, the relevant steps of the hard disk expansion system control method disclosed in any one of the foregoing embodiments can be implemented. In addition, the resources stored in the memory 20 may also include an operating system 202, data 203, and the like, and the storage manner may be a transient storage manner or a permanent storage manner. Operating system 202 may include windows, unix, linux, etc., among others. Data 203 may include, but is not limited to, control instructions sent by the server over the virtual interface, and the like.
In some embodiments, the hard disk expansion system control device may further include a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the configuration shown in FIG. 5 does not constitute a limitation of the hard disk expansion system control device and may include more or fewer components than those shown.
The hard disk expansion system control method provided by the embodiment of the application comprises a memory and a processor, wherein when the processor executes a program stored in the memory, the following method can be realized:
acquiring a control instruction sent by a server through a virtual interface, wherein the virtual interface is an interface created based on a hard disk physical port, and the number of the virtual interfaces is consistent with that of the servers;
and exchanging data with the hard disk according to the control instruction.
In this embodiment, a hard disk expansion system control apparatus is provided, which is applied to the hard disk expansion system, and includes: the device comprises a control unit, a communication unit and a hard disk interface; the control unit is connected with the server through the communication unit to acquire a control instruction sent by the server through the virtual interface; the virtual interfaces are created based on the physical ports of the hard disk, the number of the virtual interfaces is consistent with that of the servers, and any storage device in the system is communicated with each server through the virtual interfaces so that each server can read data in the storage device; the control unit is connected with the hard disk port through the hard disk interface so as to exchange data with the hard disk according to the control instruction. Therefore, according to the technical scheme provided by the application, the virtual interface is established based on the physical port of the hard disk, and the control unit is used for exchanging data with the hard disk according to the control instruction sent by the server through the virtual interface, so that each hard disk can be connected with a plurality of controllers, the data in the hard disk cannot be read due to the failure of a single controller is prevented, and the stability and the reliability of the system are improved.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps as set forth in the above-mentioned method embodiments. In this embodiment, a control medium for a hard disk expansion system is provided, which is applied to the hard disk expansion system, and the system includes: the device comprises a control unit, a communication unit and a hard disk interface; the control unit is connected with the server through the communication unit to acquire a control instruction sent by the server through the virtual interface; the virtual interfaces are created based on the physical ports of the hard disk, the number of the virtual interfaces is consistent with that of the servers, and any storage device in the system is communicated with each server through the virtual interfaces so that each server can read data in the storage device; the control unit is connected with the hard disk port through the hard disk interface so as to exchange data with the hard disk according to the control instruction. Therefore, according to the technical scheme provided by the application, the virtual interface is established based on the physical port of the hard disk, and the control unit is used for exchanging data with the hard disk according to the control instruction sent by the server through the virtual interface, so that each hard disk can be connected with a plurality of controllers, the data in the hard disk cannot be read due to the failure of a single controller is prevented, and the stability and the reliability of the system are improved.
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application, which are essential or part of the prior art, or all or part of the technical solutions may be embodied in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The hard disk expansion system, the control method, the control device and the control medium thereof provided by the application are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A hard disk expansion system, comprising:
the device comprises a control unit, a communication unit and a hard disk interface;
the control unit is connected with the server through a communication unit to acquire a control instruction sent by the server through a virtual interface; the virtual interfaces are interfaces created based on hard disk physical ports, and the number of the virtual interfaces is consistent with that of the servers;
and the control unit is connected with a hard disk port through the hard disk interface so as to exchange data with a hard disk according to the control instruction.
2. The hard disk expansion system of claim 1, wherein the communication unit includes a MINI SAS cable and a MINI SAS interface controller;
each pair of MINI SAS interface controllers is respectively arranged on the server side and the control unit side, and PCIE bus connection is established based on the MINI SAS cables.
3. The hard disk expansion system of claim 1, wherein the control unit is a PM42100 chip.
4. The hard disk expansion system according to claim 3, wherein the MINI SAS interface controller of the control unit side is connected with the control unit through an uplink interface of the control unit.
5. A hard disk expansion system control method is applied to a hard disk expansion system comprising a control unit, a communication unit and a hard disk interface, wherein the control unit is connected with a server through the communication unit, the control unit is connected with a hard disk port through the hard disk interface, and the method comprises the following steps:
acquiring a control instruction sent by a server through a virtual interface, wherein the virtual interface is an interface created based on a hard disk physical port, and the number of the virtual interfaces is consistent with that of the servers;
and exchanging data with the hard disk according to the control instruction.
6. The hard disk expansion system control method according to claim 5, wherein before the step of obtaining the control instruction sent by the server through the virtual interface, the method further comprises:
creating a shared name space based on the storage space of the hard disk;
a connection relationship is created between the shared namespace and the virtual interface.
7. The hard disk expansion system control method according to claim 6, further comprising, after the step of creating a connection relationship between the shared namespace and the virtual interface:
and binding each virtual interface of each hard disk to a downlink interface corresponding to each uplink interface of the control unit.
8. The utility model provides a hard disk expansion system controlling means which characterized in that is applied to the hard disk expansion system who includes the control unit, communication unit and hard disk interface, the control unit passes through communication unit and is connected with the server, the control unit passes through hard disk interface and hard disk port are connected, and the device includes:
the system comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring a control instruction sent by a server through a virtual interface, the virtual interface is an interface created based on a hard disk physical port, and the number of the virtual interfaces is consistent with that of the servers;
and the data exchange module is used for exchanging data with the hard disk according to the control instruction.
9. A hard disk expansion system control device is characterized by comprising a memory, a storage unit and a control unit, wherein the memory is used for storing a computer program;
a processor for implementing the steps of the hard disk expansion system control method according to any one of claims 5 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, carries out the steps of the hard disk expansion system control method according to any one of claims 5 to 7.
CN202211026996.4A 2022-08-25 2022-08-25 Hard disk expansion system and control method, device and medium thereof Pending CN115390759A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211026996.4A CN115390759A (en) 2022-08-25 2022-08-25 Hard disk expansion system and control method, device and medium thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211026996.4A CN115390759A (en) 2022-08-25 2022-08-25 Hard disk expansion system and control method, device and medium thereof

Publications (1)

Publication Number Publication Date
CN115390759A true CN115390759A (en) 2022-11-25

Family

ID=84123085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211026996.4A Pending CN115390759A (en) 2022-08-25 2022-08-25 Hard disk expansion system and control method, device and medium thereof

Country Status (1)

Country Link
CN (1) CN115390759A (en)

Similar Documents

Publication Publication Date Title
US8745238B2 (en) Virtual hot inserting functions in a shared I/O environment
WO2016037503A1 (en) Configuration method and device of pcie topology
CN109324991B (en) Hot plug device, method, medium and system of PCIE (peripheral component interface express) equipment
CN109947682B (en) Server mainboard and server
CN111901164B (en) Adaptive control method, device, equipment and system of OCP NIC network card
US20170220506A1 (en) Modular Software Defined Storage Technology
WO2020233435A1 (en) Data processing method, apparatus, and system
CN105354116A (en) Hot-plug detection method, apparatus, system and mobile terminal
CN209248436U (en) A kind of expansion board clamping and server
CN114003528A (en) OCP switching card, switching system and switching method
CN102393838B (en) Data processing method and device, PCI-E (peripheral component interface-express) bus system, and server
CN110851318A (en) Serial port log collection method, system and equipment under server management system
CN112243033B (en) Method, device and equipment for acquiring memory information and computer readable storage medium
CN103942013A (en) High-speed reading-writing and mass-storage system under ARM platform and working method of high-speed reading-writing and mass-storage system under ARM platform
CN115390759A (en) Hard disk expansion system and control method, device and medium thereof
CN114185720B (en) Method, device, equipment and storage medium for dynamic hot backup of server
US20170046291A1 (en) Multi-server system interconnect
CN113703535B (en) Connection configuration method and system for multi-node server and OCP card
US8688889B2 (en) Virtual USB key for blade server
CN204189089U (en) A kind of server
US20070174034A1 (en) Transparent intellectual network storage device
CN111338861B (en) RSS-based network card performance test method, device, equipment and storage medium
CN214756404U (en) Extensible network security mainboard based on megacore processor
CN117472289B (en) Storage configuration adjustment method, device, system, equipment and medium of server
US20100017189A1 (en) Transparent Intellectual Network Storage Device

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