[go: up one dir, main page]

CN115390759A - A hard disk expansion system and its control method, device, and medium - Google Patents

A hard disk expansion system and its control method, device, and medium 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
expansion system
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 OR CALCULATING; 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 OR CALCULATING; 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 OR CALCULATING; 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

一种硬盘扩展系统及其控制方法、装置、介质A hard disk expansion system and its control method, device, and medium

技术领域technical field

本申请涉及计算机存储领域,特别是涉及一种硬盘扩展系统及其控制方法、装置、介质。The present application relates to the field of computer storage, in particular to a hard disk expansion system and its control method, device and medium.

背景技术Background technique

随着云计算技术、物联网技术的高速发展,服务器需要处理的数据量也越来越大。为了扩充服务器存储系统的容量,保证服务器能够实现数据的高速存储,目前大多存储供应商选择为服务器的存储主机连接SSD硬盘扩展柜(Just a Bound Of Flash,JBOF)或HDD硬盘扩展柜。With the rapid development of cloud computing technology and Internet of Things technology, the amount of data that servers need to process is also increasing. In order to expand the capacity of the server storage system and ensure that the server can achieve high-speed data storage, most storage providers currently choose to connect the storage host of the server to an SSD hard disk expansion cabinet (Just a Bound Of Flash, JBOF) or HDD hard disk expansion cabinet.

硬盘扩展柜与存储主机间通过高速串行计算机扩展总线标准(peripheralcomponent interconnect express,PCI-Express)连接,并在JBOF下连接多个硬盘以进行磁盘阵列的扩充。但由于PCIE总线为树形拓扑,只能存在一个根设备,因此硬盘扩展柜只能与一个控制器(PCIE总线的根设备)连接。当控制器发生故障时,用户将无法读取挂载在该控制器上的硬盘扩展柜中的数据。The hard disk expansion cabinet and the storage host are connected through a high-speed serial computer expansion bus standard (peripheral component interconnect express, PCI-Express), and multiple hard disks are connected under JBOF to expand the disk array. However, because the PCIE bus is a tree topology, there can only be one root device, so the hard disk expansion cabinet can only be connected to one controller (the root device of the PCIE bus). When a controller fails, users will not be able to read the data in the hard disk expansion cabinet mounted on the controller.

由此可见,如何提供一种更安全可靠的硬盘扩展系统,以防止由于控制器控制导致JBOF中的数据无法读取,是本领域技术人员亟需解决的问题。It can be seen that how to provide a more secure and reliable hard disk expansion system to prevent the data in the JBOF from being unreadable due to the control of the controller is an urgent problem to be solved by those skilled in the art.

发明内容Contents of the invention

本申请的目的是提供一种硬盘扩展系统及其控制方法、装置、介质,以使存储系统中各存储设备(硬盘)能够与多个服务器的控制器连接,防止由于控制器故障导致硬盘中的数据无法访问。The purpose of this application is to provide a hard disk expansion system and its control method, device, and medium, so that each storage device (hard disk) in the storage system can be connected to the controllers of multiple servers, and prevent the hard disk from being damaged due to controller failure. Data cannot be accessed.

为了解决上述技术问题,本申请提供了一种硬盘扩展系统,包括:In order to solve the above technical problems, the application provides a hard disk expansion system, including:

控制单元、通信单元和硬盘接口;Control unit, communication unit and hard disk interface;

所述控制单元通过通信单元与服务器连接,以获取所述服务器通过虚拟接口发送的控制指令;其中,所述虚拟接口为基于硬盘物理端口创建的接口,且所述虚拟接口的数量与所述服务器的数量一致;The control unit is connected to the server through the communication unit, so as to obtain the control instruction sent by the server through the virtual interface; wherein, the virtual interface is an interface created based on the physical port of the hard disk, and the number of the virtual interface is the same as that of the server the same number;

所述控制单元通过所述硬盘接口与硬盘端口连接,以根据所述控制指令与硬盘进行数据交换。The control unit is connected to the hard disk port through the hard disk interface, so as to exchange data with the hard disk according to the control instruction.

优选的,所述通信单元包括MINI SAS线缆和MINI SAS接口控制器;Preferably, the communication unit includes a MINI SAS cable and a MINI SAS interface controller;

各对所述MINI SAS接口控制器分别设置于所述服务器侧和所述控制单元侧,并基于所述MINI SAS线缆建立PCIE总线连接。Each pair of MINI SAS interface controllers is respectively arranged on the server side and the control unit side, and establishes a PCIE bus connection based on the MINI SAS cable.

优选的,所述控制单元为PM42100芯片。Preferably, the control unit is a PM42100 chip.

优选的,所述控制单元侧的MINI SAS接口控制器通过所述控制单元的上行接口与所述控制单元连接。Preferably, the MINI SAS interface controller on 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 problems, the present application also provides a hard disk expansion system control method, which is applied to the hard disk expansion system, and the method includes:

获取服务器通过虚拟接口发送的控制指令,其中,所述虚拟接口为基于硬盘物理端口创建的接口,且所述虚拟接口的数量与所述服务器的数量一致;Obtain the control instruction sent by the server through the virtual interface, wherein the virtual interface is an interface created based on the physical port of the hard disk, and the number of the virtual interface is consistent with the number of the server;

根据所述控制指令与硬盘进行数据交换。Perform data exchange with the hard disk according to the control instructions.

优选的,所述获取服务器通过虚拟接口发送的控制指令的步骤前,还包括:Preferably, before the step of obtaining the control instruction sent by the server through the virtual interface, it also includes:

基于所述硬盘的存储空间创建共享命名空间;Create a shared namespace 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, it further includes:

将各硬盘的各所述虚拟接口绑定至所述控制单元的各上行接口所对应的下行接口。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 problems, the present application also provides a hard disk expansion system control device, including:

获取模块,用于获取服务器通过虚拟接口发送的控制指令,其中,所述虚拟接口为基于硬盘物理端口创建的接口,且所述虚拟接口的数量与所述服务器的数量一致;An acquisition module, configured to acquire a control instruction sent by the server through a virtual interface, wherein the virtual interface is an interface created based on a physical port of a hard disk, and the number of the virtual interface is consistent with the number of the server;

数据交换模块,用于根据所述控制指令与硬盘进行数据交换。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 problems, the present application also provides another hard disk expansion system control device, which includes a memory for storing computer programs;

处理器,用于执行所述计算机程序时实现所述的硬盘扩展系统控制方法的步骤。The processor is configured to implement the steps in the method for controlling the hard disk expansion system when executing the computer program.

为了解决上述技术问题,本申请还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现所述的硬盘扩展系统控制方法的步骤。In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the described hard disk expansion system control method is implemented A step of.

本申请提供了一种硬盘扩展系统,该系统包括:控制单元、通信单元和硬盘接口;控制单元通过通信单元与服务器连接,以获取服务器通过虚拟接口发送的控制指令;其中,虚拟接口为基于硬盘物理端口创建的接口,且虚拟接口的数量与服务器的数量一致,系统中的任意存储设备均通过虚拟接口与各服务器建立通信,以使各服务器均能够读取存储设备中的数据;控制单元通过硬盘接口与硬盘端口连接,以根据控制指令与硬盘进行数据交换。由此可见,本申请所提供的技术方案,通过基于硬盘物理端口创建虚拟接口,并使用控制单元根据服务器通过虚拟接口发送的控制指令与硬盘进行数据交换,以使各硬盘能够与多个控制器连接,防止单个控制器故障导致硬盘中的数据无法读取,提高系统的稳定性和可靠性。The application provides a hard disk expansion system, the system includes: a control unit, a communication unit and a hard disk interface; the control unit is connected to the server through the communication unit to obtain the control instructions sent by the server through the virtual The interface created by the physical port, and the number of virtual interfaces is consistent with the number of servers. Any storage device in the system establishes communication with each server through the virtual interface, so that each server can read the data in the storage device; the control unit passes The hard disk interface is connected with the hard disk port, so as to exchange data with the hard disk according to the control command. It can be seen that the technical solution provided by this application creates a virtual interface based on the physical port of the hard disk, and uses the control unit to exchange data with the hard disk according to the control command sent by the server through the virtual interface, so that each hard disk can communicate with multiple controllers. Connect to prevent the failure of a single controller from causing the data in the hard disk to be unreadable, improving the stability and reliability of the system.

此外,本申请还提供了一种硬盘扩展系统的控制方法、装置、介质,应用于上述硬盘扩展系统,包括:控制单元通过通信单元与服务器连接,以获取服务器通过虚拟接口发送的控制指令;其中,虚拟接口为基于硬盘物理端口创建的接口,且虚拟接口的数量与服务器的数量一致,系统中的任意存储设备均通过虚拟接口与各服务器建立通信,以使各服务器均能够读取存储设备中的数据;控制单元通过硬盘接口与硬盘端口连接,以根据控制指令与硬盘进行数据交换。由此可见,本申请所提供的技术方案,通过基于硬盘物理端口创建虚拟接口,并使用控制单元根据服务器通过虚拟接口发送的控制指令与硬盘进行数据交换,以使各硬盘能够与多个控制器连接,防止单个控制器故障导致硬盘中的数据无法读取,提高系统的稳定性和可靠性。In addition, the present application also provides a control method, device, and medium of a hard disk expansion system, which are applied to the above-mentioned hard disk expansion system, including: the control unit is connected to the server through the communication unit, so as to obtain the control command sent by the server through the virtual interface; , the virtual interface is an interface created based on the physical port of the hard disk, and the number of virtual interfaces is consistent with the number of servers. Any storage device in the system establishes communication with each server through the virtual interface, so that each server can read the data stored in the storage device. data; the control unit is connected to the hard disk port through the hard disk interface, so as to exchange data with the hard disk according to the control command. It can be seen that the technical solution provided by this application creates a virtual interface based on the physical port of the hard disk, and uses the control unit to exchange data with the hard disk according to the control command sent by the server through the virtual interface, so that each hard disk can communicate with multiple controllers. Connect to prevent the failure of a single controller from causing the data in the hard disk to be unreadable, improving the stability and reliability of the system.

附图说明Description of drawings

为了更清楚地说明本申请实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the embodiments of the present application more clearly, the following will briefly introduce the accompanying drawings used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. As far as people are concerned, other drawings can also be obtained based on these drawings on the premise of not paying creative work.

图1为本申请实施例所提供的一种硬盘扩展系统的结构图;FIG. 1 is a structural diagram of a hard disk expansion system provided by an embodiment of the present application;

图2为本申请实施例所提供的另一种硬盘扩展系统的结构图;FIG. 2 is a structural diagram of another hard disk expansion system provided by the embodiment of the present application;

图3为本申请实施例所提供的一种硬盘扩展系统控制方法的流程图;FIG. 3 is a flow chart of a hard disk expansion system control method provided by an embodiment of the present application;

图4为本申请实施例所提供的一种硬盘扩展系统控制装置的结构图;FIG. 4 is a structural diagram of a hard disk expansion system control device provided by an embodiment of the present application;

图5为本申请实施例所提供的另一种硬盘扩展系统控制装置的结构图。FIG. 5 is a structural diagram of another hard disk expansion system control device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下,所获得的所有其他实施例,都属于本申请保护范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of this application.

本申请的核心是提供一种硬盘扩展系统及其控制方法、装置、介质,以使存储系统中各存储设备(硬盘)能够与多个服务器的控制器连接,防止由于控制器故障导致硬盘中的数据无法访问。The core of this application is to provide a hard disk expansion system and its control method, device, and medium, so that each storage device (hard disk) in the storage system can be connected to the controllers of multiple servers, and prevent the hard disk from being damaged due to controller failure. Data cannot be accessed.

在存储系统工作场景中,为了增强存储主机的存储能力和存储性能,需要使用JBOF对存储主机进行扩展。存储主机与JBOF间通过线缆连接(例如:SAS线缆、MiniSAS线缆等),JBOF中挂载多个硬盘3,但由于连接线缆使用PCIE协议,每个硬盘3仅能够与单个的服务器中的控制器连接,当控制器发生故障时,无法访问与该控制器连接的硬盘3中的数据。为了解决这一问题,本申请提供了一种硬盘扩展系统及其控制方法、装置、介质,该系统包括:控制单元1、通信单元2和硬盘接口,其中,虚拟接口为基于硬盘物理端口创建的接口,且虚拟接口的数量与服务器的数量一致,系统中的任意存储设备均通过虚拟接口与各服务器建立通信,以使各服务器均能够读取存储设备中的数据;控制单元1通过硬盘接口与硬盘端口连接,以根据控制指令与硬盘3进行数据交换。本申请所提供的硬盘扩展系统通过基于硬盘物理端口创建的虚拟端口获取服务器发送的控制指令,以便于控制单元1根据控制指令通过硬盘接口与硬盘3进行数据交换。以使每个硬盘3能够与多个控制器连接,防止由于单个控制器故障导致硬盘3中的数据无法读取,提高存储系统的稳定性和可靠性。In the working scenario of the storage system, in order to enhance the storage capacity and storage performance of the storage host, it is necessary to use JBOF to expand the storage host. The storage host and the JBOF are connected by cables (for example: SAS cables, MiniSAS cables, etc.), and multiple hard disks 3 are mounted on the JBOF. However, since the connecting cables use the PCIE protocol, each hard disk 3 can only communicate with a single server. In the controller connection, when the controller fails, the data in the hard disk 3 connected to the controller cannot be accessed. In order to solve this problem, the application provides a hard disk expansion system and its control method, device, and medium. The system includes: a control unit 1, a communication unit 2, and a hard disk interface, wherein the virtual interface is created based on the physical port of the hard disk. interface, and the number of virtual interfaces is consistent with the number of servers, any storage device in the system establishes communication with each server through the virtual interface, so that each server can read the data in the storage device; the control unit 1 communicates with the server through the hard disk interface The hard disk port is connected to exchange data with the hard disk 3 according to control instructions. The hard disk expansion system provided in this application obtains the control command 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 exchange data with the hard disk 3 through the hard disk interface according to the control command. This enables each hard disk 3 to be connected to multiple controllers, prevents the data in the hard disk 3 from being unreadable due to failure of a single controller, and improves the stability and reliability of the storage system.

为了使本技术领域的人员更好地理解本申请方案,下面结合附图和具体实施方式对本申请作进一步的详细说明。In order to enable those skilled in the art to better understand the solution of the present application, the present application will be further described in detail below in conjunction with the drawings and specific implementation methods.

图1为本申请实施例所提供的一种硬盘扩展系统的结构图,如图1所示,该系统包括:Fig. 1 is a structural diagram of a hard disk expansion system provided by the embodiment of the present application. As shown in Fig. 1, the system includes:

控制单元1、通信单元2和硬盘接口;Control unit 1, communication unit 2 and hard disk interface;

控制单元1通过通信单元2与服务器连接,以获取服务器通过虚拟接口发送的控制指令;其中,虚拟接口为基于硬盘物理端口创建的接口,且虚拟接口的数量与服务器的数量一致;The control unit 1 is connected to the server through the communication unit 2, so as to obtain the control instruction sent by the server through the virtual interface; wherein, the virtual interface is an interface created based on the physical port of the hard disk, and the number of virtual interfaces is consistent with the number of servers;

控制单元1通过硬盘接口与硬盘端口连接,以根据控制指令与硬盘3进行数据交换。The control unit 1 is connected to the hard disk port through the hard disk interface, so as to exchange data with the hard disk 3 according to control instructions.

需要注意的是,本实施例中所提供的硬盘3可以为机械硬盘(Hard Disk Drive,HDD)或固态硬盘(Solid State Drive,SSD)等,此处不做限定。进一步的,本申请所提供的方案还可以应用于除硬盘外其他类型的存储设备。It should be noted that the hard disk 3 provided in this embodiment may be a mechanical hard disk (Hard Disk Drive, HDD) or a solid state disk (Solid State Drive, SSD), etc., which is not limited here. Furthermore, the solutions provided in this application can also be applied to other types of storage devices except hard disks.

可以理解的是,为了便于控制单元1对硬盘3进行控制,本实施例提供的硬盘扩展系统中挂载的硬盘3为支持SR-IOV(Single Root I/O Virtualizati on)的硬盘。进一步的,控制单元1通过硬盘3的物理端口与硬盘3连接,当硬盘物理端口存在故障时,服务器将无法读取硬盘3中的数据。为了解决这一问题,提高系统稳定性,可以选择具有双端口的硬盘。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 the physical port of the hard disk 3. When the physical port of the hard disk is faulty, the server will not be able to read the data in the hard disk 3. In order to solve this problem and improve system stability, you can choose a hard disk with dual ports.

在具体实施中,控制单元1可以为嵌入式控制器,也可以为电脑等智能设备,此处不做限定。例如:选用JBOF主板作为控制单元1,JBOF主板包括总线单元和PAX芯片,其中,PAX芯片中运行有硬盘控制程序,以控制硬盘3的上电、下电、解复位、检测线缆的在线状态并控制总线连接和通信。In a specific implementation, the control unit 1 may be an embedded controller, or an intelligent device such as a computer, which is not limited here. For example: choose the JBOF main board as the control unit 1, the JBOF main board includes the bus unit and the PAX chip, wherein the hard disk control program runs in the PAX chip to control the power-on, power-off, reset, and detection of the online status of the hard disk 3 And control the bus connection and communication.

虚拟接口为基于硬盘物理端口创建的接口,并将各虚拟接口连接至各服务器,以保证从各服务器的系统中均能够看到物理硬盘,以获取硬盘3数据或将数据写入硬盘3中。服务器中运行的系统根据用户操作生成控制指令,并将控制指令发送至控制单元1。控制单元1通过物理接口与物理硬盘3连接,其中,控制单元1为信号片选芯片,以根据控制指令与硬盘3进行数据交换。The virtual interface is an interface created based on the physical port of the hard disk, 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 to obtain data on the hard disk 3 or write data to the hard disk 3. The system running in the server generates control instructions according to user operations, and sends the control instructions to the control unit 1 . The control unit 1 is connected to the physical hard disk 3 through a physical interface, wherein the control unit 1 is a signal chip selection chip to exchange data with the hard disk 3 according to control instructions.

本实施例中提供了一种硬盘扩展系统,该系统包括:控制单元、通信单元和硬盘接口;控制单元通过通信单元与服务器连接,以获取服务器通过虚拟接口发送的控制指令;其中,虚拟接口为基于硬盘物理端口创建的接口,且虚拟接口的数量与服务器的数量一致,系统中的任意存储设备均通过虚拟接口与各服务器建立通信,以使各服务器均能够读取存储设备中的数据;控制单元通过硬盘接口与硬盘端口连接,以根据控制指令与硬盘进行数据交换。由此可见,本申请所提供的技术方案,通过基于硬盘物理端口创建虚拟接口,并使用控制单元根据服务器通过虚拟接口发送的控制指令与硬盘进行数据交换,以使各硬盘能够与多个控制器连接,防止单个控制器故障导致硬盘中的数据无法读取,提高系统的稳定性和可靠性。This embodiment provides a hard disk expansion system, the system includes: a control unit, a communication unit, and a hard disk interface; the control unit is connected to the server through the communication unit, so as to obtain the control instructions sent by the server through the virtual interface; wherein, the virtual interface is The interface created based on the physical port of the hard disk, and the number of virtual interfaces is consistent with the number of servers, any storage device in the system establishes communication with each server through the virtual interface, so that each server can read the data in the storage device; control The 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 command. It can be seen that the technical solution provided by this application creates a virtual interface based on the physical port of the hard disk, and uses the control unit to exchange data with the hard disk according to the control command sent by the server through the virtual interface, so that each hard disk can communicate with multiple controllers. Connect to prevent the failure of a single controller from causing the data in the hard disk to be unreadable, improving the stability and reliability of the system.

作为优选的实施例,本申请还提供另一种硬盘扩展系统,图2为本申请实施例所提供的另一种硬盘扩展系统的结构图,如图2所示,该系统包括:四个服务器(HOST1、HOST2、HOST3、HOST4),各服务器的CPU通过通信单元2与挂载硬盘的JBOF连接,以实现与硬盘3的数据交换。As a preferred embodiment, the present application also provides another hard disk expansion system. Figure 2 is a structural diagram of another hard disk expansion system provided by the embodiment of the present application. As shown in Figure 2, the system includes: four servers (HOST1, HOST2, HOST3, HOST4), the CPU of each server is connected to the JBOF with the hard disk mounted through the communication unit 2, so as to realize data exchange with the hard disk 3.

进一步的,通信单元2为总线通信单元,各通信单元均包括设置于各服务器端的第一MINI SAS接口控制器、线缆和设置于JBOF端的第二MINI SAS接口控制器。各第一MINISAS接口控制器与服务器的CPU连接,各第二MINI SAS接口控制器与JBOF主板中的PAX主线连接,以建立总线通信。如图2所示,该装置中的总线通信单元2为PCIE总线,其中,各路PCIE总线均具有4个频道(X4),各个频道均具有一个接收端和一个发送端,二者差分对称。Further, the communication unit 2 is a bus communication unit, and each communication unit includes a first MINI SAS interface controller arranged at each server end, a cable, and a second MINI SAS interface controller arranged at the JBOF end. Each first MINISAS interface controller is connected to the CPU of the server, and each second MINI SAS interface controller is connected to the PAX main line in the JBOF mainboard to establish bus communication. As shown in Figure 2, the bus communication unit 2 in the device is a PCIE bus, wherein each PCIE bus has 4 channels (X4), and each channel has a receiving end and a sending end, and the two are differentially symmetrical.

通信单元2包括MINI SAS线缆和MINI SAS接口控制器;各对MINI SAS接口控制器分别设置于服务器侧和控制单元1侧,并基于MINI SAS线缆建立PCIE总线连接。进一步的,控制单元1为PM42100芯片。控制单元1侧的MINI SAS接口控制器通过控制单元1的上行接口与控制单元1连接。The communication unit 2 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 1 side, and a PCIE bus connection is established based on the MINI SAS cable. Further, the control unit 1 is a PM42100 chip. The MINI SAS interface controller on the side of the control unit 1 is connected to the control unit 1 through the uplink interface of the control unit 1 .

在具体实施中,系统中每个JBOF主板最多可以挂载25个硬盘。JBOF主板具有4个上行接口,各上行接口通过MINI SAS HD external线缆与服务器主机连接。进一步的,为了便于JBOF主板与各硬盘连接,还可以在硬盘扩展系统中设置背板,PAX芯片通过背板与各硬盘连接。In specific implementation, each JBOF motherboard in the system can mount up to 25 hard disks. The JBOF motherboard has 4 uplink interfaces, and each uplink interface is connected to the server host through MINI SAS HD external cables. Furthermore, in order to facilitate the connection between the JBOF motherboard and each hard disk, a backplane can also be provided in the hard disk expansion system, and the PAX chip is connected to each hard disk through the backplane.

PAX芯片中运行的管理软件分别将硬盘的4个虚拟接口分别绑定至JBO F主板各个上行接口(UP STREAM PORT,USP),PAX芯片中管理软件通过硬盘3的物理接口管理硬盘3,基于硬盘3的全部存储空间创建一个共享的命名空间(namespace),并将共享命名空间绑定至各个虚拟接口。The management software running in the PAX chip binds the four virtual interfaces of the hard disk to each uplink interface (UP STREAM PORT, USP) of the JBO F mainboard, and the management software in the PAX chip manages the hard disk 3 through the physical interface of the hard disk 3, based on the hard disk 3 to create a shared namespace (namespace), and bind the shared namespace to each virtual interface.

图3为本申请实施例所提供的一种硬盘扩展系统控制方法的流程图,如图3所示,该方法应用于上述的硬盘扩展系统,包括:Fig. 3 is a flow chart of a hard disk expansion system control method provided in the embodiment of the present application. As shown in Fig. 3, the method is applied to the above-mentioned hard disk expansion system, including:

S10:获取服务器通过虚拟接口发送的控制指令,其中,虚拟接口为基于硬盘物理端口创建的接口,且虚拟接口的数量与服务器的数量一致;S10: Obtain the control command sent by the server through the virtual interface, wherein the virtual interface is an interface created based on the physical port of the hard disk, and the number of virtual interfaces is consistent with the number of servers;

S11:根据控制指令与硬盘进行数据交换。S11: exchanging data with the hard disk according to the control instruction.

在具体实施中,PAX芯片中管理软件通过硬盘的物理接口管理硬盘,基于硬盘的全部存储空间创建一个共享的命名空间(namespace),并将共享命名空间绑定至各个虚拟接口,以便于各服务器通过虚拟接口访问硬盘。In the specific implementation, the management software in the PAX chip manages the hard disk through the 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 Access the hard disk through a virtual interface.

控制单元中运行的管理软件将25个硬盘的虚拟接口分别绑定至各JBOF上行接口的下行接口(DOWN STREAM PORT,DSP)。The management software running in the control unit binds the virtual interfaces of the 25 hard disks to the downlink interfaces (DOWN STREAM PORT, DSP) of each JBOF uplink interface.

本实施例中提供了一种硬盘扩展系统控制方法,应用于上述硬盘扩展系统,该系统包括:控制单元、通信单元和硬盘接口;控制单元通过通信单元与服务器连接,以获取服务器通过虚拟接口发送的控制指令;其中,虚拟接口为基于硬盘物理端口创建的接口,且虚拟接口的数量与服务器的数量一致,系统中的任意存储设备均通过虚拟接口与各服务器建立通信,以使各服务器均能够读取存储设备中的数据;控制单元通过硬盘接口与硬盘端口连接,以根据控制指令与硬盘进行数据交换。由此可见,本申请所提供的技术方案,通过基于硬盘物理端口创建虚拟接口,并使用控制单元根据服务器通过虚拟接口发送的控制指令与硬盘进行数据交换,以使各硬盘能够与多个控制器连接,防止单个控制器故障导致硬盘中的数据无法读取,提高系统的稳定性和可靠性。This embodiment provides a hard disk expansion system control method, which is applied to the above-mentioned hard disk expansion system. The system includes: a control unit, a communication unit, and a hard disk interface; the control unit is connected to the server through the communication unit, so as to obtain the control instructions; wherein, the virtual interface is an interface created based on the physical port of the hard disk, and the number of virtual interfaces is consistent with the number of servers, and any storage device in the system establishes communication with each server through the virtual interface, so that each server can Read the 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. It can be seen that the technical solution provided by this application creates a virtual interface based on the physical port of the hard disk, and uses the control unit to exchange data with the hard disk according to the control command sent by the server through the virtual interface, so that each hard disk can communicate with multiple controllers. Connect to prevent the failure of a single controller from causing the data in the hard disk to be unreadable, improving the stability and reliability of the system.

作为优选的实施例,获取服务器通过虚拟接口发送的控制指令的步骤前,还包括:基于硬盘的存储空间创建共享命名空间,在共享命名空间和虚拟接口间创建连接关系,以使各服务器均能够与物理硬盘建立联系,以防止由于单个服务器故障导致无法读取硬盘中的数据。As a preferred embodiment, before the step of obtaining the control command sent by the server through the virtual interface, it also includes: creating a shared namespace based on the storage space of the hard disk, and creating a connection relationship between the shared namespace and the virtual interface, so that each server can Establish a connection with the physical hard disk to prevent the data in the hard disk from being unreadable due to a single server failure.

进一步的,控制单元侧的MINI SAS接口控制器通过控制单元的上行接口与控制单元连接,因此,在共享命名空间和虚拟接口间创建连接关系的步骤后,还包括:将各硬盘的各虚拟接口绑定至控制单元的各上行接口所对应的下行接口。具体的,通过控制单元中PAX芯片中运行的管理软件将各硬盘的4个虚拟接口绑定至PAX芯片的各上行接口所对应的下行接口。绑定关系如下:硬盘SSD1的虚拟接口1绑定至上行接口的下行接口1,虚拟接口2绑定到上行接口2的下行接口1,虚拟接口3绑定到上行接口3的下行接口1,虚拟接口4绑定到上行接口4的下行接口1。以此类推,直至将各硬盘的各个虚拟接口全部绑定至PAX芯片的上行接口所对应的下行接口上。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. Therefore, after the step of creating a connection relationship between the shared namespace and the virtual interface, it also includes: connecting each virtual interface of each hard disk to The downlink interfaces corresponding to the uplink interfaces bound to the control unit. Specifically, through the management software running in the PAX chip in the control unit, the four virtual interfaces of each hard disk are bound to the downlink interfaces corresponding to the uplink interfaces of the PAX chip. The binding relationship is as follows: virtual interface 1 of the hard disk SSD1 is bound to the downlink interface 1 of the uplink interface, virtual interface 2 is bound to the downlink interface 1 of the uplink interface 2, virtual interface 3 is bound to the downlink interface 1 of the uplink interface 3, and virtual Interface 4 is bound to downlink interface 1 of uplink interface 4. By analogy, all the virtual interfaces of the hard disks are bound to the downlink interfaces corresponding to the uplink interfaces of the PAX chip.

在上述实施例中,对于硬盘扩展系统控制方法进行了详细描述,本申请还提供硬盘扩展系统控制装置对应的实施例。需要说明的是,本申请从两个角度对装置部分的实施例进行描述,一种是基于功能模块的角度,另一种是基于硬件的角度。In the above embodiments, the method for controlling the hard disk expansion system is described in detail, and the present application also provides corresponding embodiments of the control device for the hard disk expansion system. It should be noted that this application describes the embodiments of the device part from two perspectives, one is based on the perspective of functional modules, and the other is based on the perspective of hardware.

图4为本申请实施例所提供的一种硬盘扩展系统控制装置的结构图,应用于上述的硬盘扩展系统,如图4所示,该装置包括:FIG. 4 is a structural diagram of a hard disk expansion system control device provided in the embodiment of the present application, which is applied to the above-mentioned hard disk expansion system. As shown in FIG. 4, the device includes:

获取模块10,用于获取服务器通过虚拟接口发送的控制指令,其中,虚拟接口为基于硬盘物理端口创建的接口,且虚拟接口的数量与服务器的数量一致;The acquisition module 10 is configured to acquire the control instruction sent by the server through the virtual interface, wherein the virtual interface is an interface created based on the physical port of the hard disk, and the number of virtual interfaces is consistent with the number of servers;

数据交换模块11,用于根据控制指令与硬盘进行数据交换。The data exchange module 11 is used for exchanging data with the hard disk according to the control instruction.

由于装置部分的实施例与方法部分的实施例相互对应,因此装置部分的实施例请参见方法部分的实施例的描述,这里暂不赘述。Since the embodiment of the device part corresponds to the embodiment of the method part, please refer to the description of the embodiment of the method part for the embodiment of the device part, and details will not be repeated here.

此外,本申请所提供的硬盘扩展系统控制装置还包括:连接创建模块、接口绑定模块。其中,连接创建模块用于基于硬盘的存储空间创建共享命名空间;在共享命名空间和虚拟接口间创建连接关系。接口绑定模块用于将各硬盘的各虚拟接口绑定至控制单元的各上行接口所对应的下行接口。In addition, the hard disk expansion system control device provided in the present application further includes: a connection creation module and an interface binding module. Wherein, the connection creation module is used for creating a shared namespace based on the storage space of the hard disk; and creating a connection relationship between the shared namespace and the virtual interface. The interface binding module is used to bind each virtual interface of each hard disk to the corresponding downlink interface of each uplink interface of the control unit.

本实施例中提供了一种硬盘扩展系统控制装置,应用于上述硬盘扩展系统,该系统包括:控制单元、通信单元和硬盘接口;控制单元通过通信单元与服务器连接,以获取服务器通过虚拟接口发送的控制指令;其中,虚拟接口为基于硬盘物理端口创建的接口,且虚拟接口的数量与服务器的数量一致,系统中的任意存储设备均通过虚拟接口与各服务器建立通信,以使各服务器均能够读取存储设备中的数据;控制单元通过硬盘接口与硬盘端口连接,以根据控制指令与硬盘进行数据交换。由此可见,本申请所提供的技术方案,通过基于硬盘物理端口创建虚拟接口,并使用控制单元根据服务器通过虚拟接口发送的控制指令与硬盘进行数据交换,以使各硬盘能够与多个控制器连接,防止单个控制器故障导致硬盘中的数据无法读取,提高系统的稳定性和可靠性。This embodiment provides a hard disk expansion system control device, which is applied to the above-mentioned hard disk expansion system. The system includes: a control unit, a communication unit, and a hard disk interface; the control unit is connected to the server through the communication unit, so as to obtain the control instructions; wherein, the virtual interface is an interface created based on the physical port of the hard disk, and the number of virtual interfaces is consistent with the number of servers, and any storage device in the system establishes communication with each server through the virtual interface, so that each server can Read the 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. It can be seen that the technical solution provided by this application creates a virtual interface based on the physical port of the hard disk, and uses the control unit to exchange data with the hard disk according to the control command sent by the server through the virtual interface, so that each hard disk can communicate with multiple controllers. Connect to prevent the failure of a single controller from causing the data in the hard disk to be unreadable, improving the stability and reliability of the system.

图5为本申请实施例所提供的另一种硬盘扩展系统控制装置的结构图,如图5所示,该硬盘扩展系统控制装置包括:存储器20,用于存储计算机程序;FIG. 5 is a structural diagram of another hard disk expansion system control device provided in the embodiment of the present application. As shown in FIG. 5 , the hard disk expansion system control device includes: a memory 20 for storing computer programs;

处理器21,用于执行计算机程序时实现如上述实施例硬盘扩展系统控制方法的步骤。The processor 21 is configured to implement the steps of the method for controlling the hard disk expansion system in the above-mentioned embodiment when executing the computer program.

本实施例提供的智能设备可以包括但不限于智能手机、平板电脑、笔记本电脑或台式电脑等。The smart device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer or a desktop computer, and the like.

其中,处理器21可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器21可以采用数字信号处理器(Digital Signal Processor,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器21也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称中央处理器(CentralProcessing Unit,CPU);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器21可以集成有图像处理器(Graphics Processing Unit,GPU),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器21还可以包括人工智能(Artificial Intelligence,AI)处理器,该AI处理器用于处理有关机器学习的计算操作。Wherein, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. Processor 21 can adopt at least one hardware form in Digital Signal Processor (Digital Signal Processor, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), Programmable Logic Array (Programmable LogicArray, PLA) accomplish. The processor 21 may also include a main processor and a coprocessor, the main processor is a processor for processing data in the wake-up state, and is also called a central processing unit (Central Processing Unit, CPU); Low-power processor for processing data in standby state. In some embodiments, the processor 21 may be integrated with a graphics processor (Graphics Processing Unit, GPU), and the GPU is used for rendering and drawing the content that needs to be displayed on the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (AI) processor, and the AI processor is used to process calculation operations related to machine learning.

存储器20可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器20还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。本实施例中,存储器20至少用于存储以下计算机程序201,其中,该计算机程序被处理器21加载并执行之后,能够实现前述任一实施例公开的硬盘扩展系统控制方法的相关步骤。另外,存储器20所存储的资源还可以包括操作系统202和数据203等,存储方式可以是短暂存储或者永久存储。其中,操作系统202可以包括Windo ws、Unix、Linux等。数据203可以包括但不限于服务器通过虚拟接口发送的控制指令等。Memory 20 may include one or more computer-readable storage media, which may be non-transitory. The memory 20 may also include high-speed random access memory, and 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 to store 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 of the above-mentioned embodiments can be realized. In addition, the resources stored in the memory 20 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Wherein, the operating system 202 may include Windows, Unix, Linux and the like. Data 203 may include, but is not limited to, control instructions sent by the server through the virtual interface.

在一些实施例中,硬盘扩展系统控制装置还可包括有显示屏22、输入输出接口23、通信接口24、电源25以及通信总线26。In some embodiments, the hard disk expansion system control device may further include a display screen 22 , an input/output interface 23 , a communication interface 24 , a power supply 25 and a communication bus 26 .

本领域技术人员可以理解,图5中示出的结构并不构成对硬盘扩展系统控制装置的限定,可以包括比图示更多或更少的组件。Those skilled in the art can understand that the structure shown in FIG. 5 does not constitute a limitation to the hard disk expansion system control device, and may include more or less components than those shown in the figure.

本申请实施例提供的硬盘扩展系统控制方法,包括存储器和处理器,处理器在执行存储器存储的程序时,能够实现如下方法:The hard disk expansion system control method provided in the embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, it can implement the following methods:

获取服务器通过虚拟接口发送的控制指令,其中,虚拟接口为基于硬盘物理端口创建的接口,且虚拟接口的数量与服务器的数量一致;Obtain the control command sent by the server through the virtual interface, where the virtual interface is an interface created based on the physical port of the hard disk, and the number of virtual interfaces is consistent with the number of servers;

根据控制指令与硬盘进行数据交换。Data exchange with the hard disk according to the control command.

本实施例中提供了一种硬盘扩展系统控制装置,应用于上述硬盘扩展系统,该系统包括:控制单元、通信单元和硬盘接口;控制单元通过通信单元与服务器连接,以获取服务器通过虚拟接口发送的控制指令;其中,虚拟接口为基于硬盘物理端口创建的接口,且虚拟接口的数量与服务器的数量一致,系统中的任意存储设备均通过虚拟接口与各服务器建立通信,以使各服务器均能够读取存储设备中的数据;控制单元通过硬盘接口与硬盘端口连接,以根据控制指令与硬盘进行数据交换。由此可见,本申请所提供的技术方案,通过基于硬盘物理端口创建虚拟接口,并使用控制单元根据服务器通过虚拟接口发送的控制指令与硬盘进行数据交换,以使各硬盘能够与多个控制器连接,防止单个控制器故障导致硬盘中的数据无法读取,提高系统的稳定性和可靠性。This embodiment provides a hard disk expansion system control device, which is applied to the above-mentioned hard disk expansion system. The system includes: a control unit, a communication unit, and a hard disk interface; the control unit is connected to the server through the communication unit, so as to obtain the control instructions; wherein, the virtual interface is an interface created based on the physical port of the hard disk, and the number of virtual interfaces is consistent with the number of servers, and any storage device in the system establishes communication with each server through the virtual interface, so that each server can Read the 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. It can be seen that the technical solution provided by this application creates a virtual interface based on the physical port of the hard disk, and uses the control unit to exchange data with the hard disk according to the control command sent by the server through the virtual interface, so that each hard disk can communicate with multiple controllers. Connect to prevent the failure of a single controller from causing the data in the hard disk to be unreadable, improving the stability and reliability of the system.

最后,本申请还提供一种计算机可读存储介质对应的实施例。计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述方法实施例中记载的步骤。本实施例中提供了一种硬盘扩展系统控制介质,应用于上述硬盘扩展系统,该系统包括:控制单元、通信单元和硬盘接口;控制单元通过通信单元与服务器连接,以获取服务器通过虚拟接口发送的控制指令;其中,虚拟接口为基于硬盘物理端口创建的接口,且虚拟接口的数量与服务器的数量一致,系统中的任意存储设备均通过虚拟接口与各服务器建立通信,以使各服务器均能够读取存储设备中的数据;控制单元通过硬盘接口与硬盘端口连接,以根据控制指令与硬盘进行数据交换。由此可见,本申请所提供的技术方案,通过基于硬盘物理端口创建虚拟接口,并使用控制单元根据服务器通过虚拟接口发送的控制指令与硬盘进行数据交换,以使各硬盘能够与多个控制器连接,防止单个控制器故障导致硬盘中的数据无法读取,提高系统的稳定性和可靠性。Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. A computer program is stored on a computer-readable storage medium, and when the computer program is executed by a processor, the steps described in the foregoing method embodiments are implemented. This embodiment provides a hard disk expansion system control medium, which is applied to the above-mentioned hard disk expansion system. The system includes: a control unit, a communication unit, and a hard disk interface; the control unit is connected to the server through the communication unit, so as to obtain the control instructions; wherein, the virtual interface is an interface created based on the physical port of the hard disk, and the number of virtual interfaces is consistent with the number of servers, and any storage device in the system establishes communication with each server through the virtual interface, so that each server can Read the 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. It can be seen that the technical solution provided by this application creates a virtual interface based on the physical port of the hard disk, and uses the control unit to exchange data with the hard disk according to the control command sent by the server through the virtual interface, so that each hard disk can communicate with multiple controllers. Connect to prevent the failure of a single controller from causing the data in the hard disk to be unreadable, improving the stability and reliability of the system.

可以理解的是,如果上述实施例中的方法以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-On ly Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。It can be understood that if the methods in the above embodiments are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , executing all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc., which can store program codes. medium.

以上对本申请所提供的一种硬盘扩展系统及其控制方法、装置、介质进行了详细介绍。说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。The hard disk expansion system and its control method, device, and medium provided by the present application have been introduced in detail above. Each embodiment in the description is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related information, please refer to the description of the method part. It should be pointed out that those skilled in the art can make some improvements and modifications to the application without departing from the principles of the application, and these improvements and modifications also fall within the protection scope of the claims of the application.

还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this specification, relative terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is no such actual relationship or order between the operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said 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 A hard disk expansion system and its control method, device, and medium Pending CN115390759A (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

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 A hard disk expansion system and its control method, device, and medium

Country Status (1)

Country Link
CN (1) CN115390759A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6421711B1 (en) * 1998-06-29 2002-07-16 Emc Corporation Virtual ports for data transferring of a data storage system
CN104135514A (en) * 2014-07-25 2014-11-05 英业达科技有限公司 Integrated virtualized storing system
CN108683659A (en) * 2018-05-11 2018-10-19 新华三技术有限公司成都分公司 Multi-protocol data communication means and device
CN113885783A (en) * 2020-07-02 2022-01-04 爱思开海力士有限公司 Memory system and method of operation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6421711B1 (en) * 1998-06-29 2002-07-16 Emc Corporation Virtual ports for data transferring of a data storage system
CN104135514A (en) * 2014-07-25 2014-11-05 英业达科技有限公司 Integrated virtualized storing system
CN108683659A (en) * 2018-05-11 2018-10-19 新华三技术有限公司成都分公司 Multi-protocol data communication means and device
CN113885783A (en) * 2020-07-02 2022-01-04 爱思开海力士有限公司 Memory system and method of operation

Similar Documents

Publication Publication Date Title
US10282192B1 (en) Updating device code through a bus
CN111901164A (en) Adaptive control method, device, equipment and system for OCP NIC network card
CN113703535B (en) Connection configuration method and system for multi-node server and OCP card
US10657077B2 (en) HyperConverged NVMF storage-NIC card
US12277323B2 (en) Distributed region tracking for tiered memory systems
CN109033328A (en) A kind of access request processing method, device, equipment and readable storage medium storing program for executing
WO2025152506A1 (en) Data processing system and method, device and nonvolatile readable storage medium
CN115061958B (en) Hard disk identification method, identification system, storage medium and computer equipment
CN107463404A (en) Increase the method and system of configuration file in a kind of system to virtual machine file
CN111078353A (en) Operation method of storage device and physical server
CN102884515B (en) Serial port redirection processing method, device and system
WO2022068753A1 (en) Server system, and container setting method and apparatus
CN115421795A (en) Software and hardware cooperative multi-port storage acceleration system
CN108932138A (en) A kind of configuration method, device, equipment and the medium of RSSD hard disk
CN111399771B (en) Protocol configuration method, device and equipment of MCS storage system
US20240184732A1 (en) Modular datacenter interconnection system
CN106933653A (en) A kind of data file storage method of virtual machine, device and KVM virtual machines
CN115390759A (en) A hard disk expansion system and its control method, device, and medium
CN100520744C (en) Apparatus for bridging a host to a storage area network
CN114676086A (en) A method, device, electronic device and medium for plugging and unplugging a hard disk
CN107729270A (en) A kind of NVMe hard disk backboards and its design method based on NVMe agreements
CN114296882A (en) Method, device and medium for exporting memory snapshot of virtual machine
CN114676085B (en) A CCIX bus control method, device and medium
CN113704165B (en) A hyper-converged server, data processing method and device
CN110704163A (en) A server and its virtualized storage method and 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
CB02 Change of applicant information

Country or region after: China

Address after: 215100 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: Suzhou Yuannao Intelligent Technology Co.,Ltd.

Address before: 215100 Building 9, No.1 guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant before: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Country or region before: China