CN112463670A - Storage controller access method and related device - Google Patents

Storage controller access method and related device Download PDF

Info

Publication number
CN112463670A
CN112463670A CN202011343128.XA CN202011343128A CN112463670A CN 112463670 A CN112463670 A CN 112463670A CN 202011343128 A CN202011343128 A CN 202011343128A CN 112463670 A CN112463670 A CN 112463670A
Authority
CN
China
Prior art keywords
controller
access
target
storage
forwarding data
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
CN202011343128.XA
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 CN202011343128.XA priority Critical patent/CN112463670A/en
Publication of CN112463670A publication Critical patent/CN112463670A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0026PCI express

Abstract

The application discloses a storage controller access method, which comprises the following steps: the HBA card processes the received access request to obtain access forwarding data; determining a target controller from the plurality of controllers according to a preset controller number; wherein the plurality of controllers are each connected to the HBA card; and sending the access forwarding data to the target controller. The target controller is determined from the multiple controllers when the HBA card sends the access forwarding data, and then the data is sent instead of only specifying a single controller, so that the reliability of accessing the storage controller is improved. The application also discloses a storage controller access device, a server and a computer readable storage medium, which have the beneficial effects.

Description

Storage controller access method and related device
Technical Field
The present application relates to the field of storage technologies, and in particular, to a storage controller access method, a storage controller access apparatus, a server, and a computer-readable storage medium.
Background
With the continuous development of data storage technology, various data storage technologies are currently available. Among them, the HBA (Host Bus adapter) card can be inserted into a board card of a Computer, a server, or a large Host, and the Computer is connected to a memory or a memory network through a fiber channel or a SCSI (Small Computer System Interface). A host bus adapter is a circuit board or integrated circuit adapter that provides input/output processing and physical connections between a server and a storage device. Because the HBA relieves the host processor of the data storage and retrieval tasks, it can improve the performance of the server. An HBA and its associated disk subsystem are sometimes collectively referred to as a disk channel.
In the related art, the storage controller and the HBA card are in a one-to-one relationship, that is, the storage and the HBA card at the front end belong to only one controller, and even if a switch is added between the host and the storage, only multiple hosts can share the same storage device, but in the storage engine, only one HBA card can be accessed by one controller, and only one controller can be accessed by the host through one HBA card. When the controller corresponding to the HBA card fails, the whole controller, the HBA card and a link from the HBA card to a host end can not work any more, the service needs to be switched to other HBA cards and the corresponding controllers through a host redundant link, the whole service switching process comprises three parts of link switching, switch port switching and HBA card switching, the delay is more than 20 seconds, the networking is complex, more physical redundant links are high, the cost is high, and the reliability of the HBA card accessing the storage controller is reduced.
Therefore, how to improve the reliability of the HBA card access controller is a key issue that is of concern to those skilled in the art.
Disclosure of Invention
The aim of the application is to provide a storage controller access method, a storage controller access device, a server and a computer readable storage medium, when transmitting access forwarding data, a target controller is determined from a plurality of controllers through an HBA card, and then data transmission is carried out, instead of only specifying a single controller, so that the reliability of accessing the storage controller is improved.
In order to solve the above technical problem, the present application provides a storage controller access method, including:
the HBA card processes the received access request to obtain access forwarding data;
determining a target controller from the plurality of controllers according to a preset controller number; wherein the plurality of controllers are each connected to the HBA card;
and sending the access forwarding data to the target controller.
Optionally, sending the access forwarding data to the target controller includes:
the HBA card sends the access forwarding data to the target controller through the PCIE SWITCH chip.
Optionally, the PCIE SWITCH chip is a PCIE SWITCH chip with a Multihost function.
Optionally, the PCIE SWITCH chip is a PCIE SWITCH chip with a part function.
Optionally, the method further includes:
when the target controller fails, determining a new controller number;
and sending the access forwarding data to the controller corresponding to the new controller number according to the new controller number.
Optionally, when the target controller fails, determining a new controller number includes:
and when the target controller fails, determining the new controller number according to the controller state.
Optionally, when the target controller fails, determining a new controller number includes:
and when the target controller fails, determining the new controller number according to the data transmission performance.
The present application further provides a storage controller access apparatus, including:
the request processing module is used for processing the received access request to obtain access forwarding data;
the target controller determining module is used for determining a target controller from the plurality of controllers according to a preset controller number; wherein the plurality of controllers are each connected to the HBA card;
and the data sending module is used for sending the access forwarding data to the target controller.
The present application further provides a server, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the storage controller access method as described above when executing the computer program.
The present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the storage controller access method as described above.
The application provides a storage controller access method, which comprises the following steps: the HBA card processes the received access request to obtain access forwarding data; determining a target controller from the plurality of controllers according to a preset controller number; wherein the plurality of controllers are each connected to the HBA card; and sending the access forwarding data to the target controller.
The target controller is determined from the multiple controllers when the HBA card sends the access forwarding data, and then the data is sent instead of only specifying a single controller, so that the reliability of accessing the storage controller is improved.
The present application further provides a storage controller access device, a server, and a computer-readable storage medium, which have the above beneficial effects, and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flowchart of a storage controller access method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a storage controller access apparatus according to an embodiment of the present disclosure.
Detailed Description
The core of the application is to provide a storage controller access method, a storage controller access device, a server and a computer readable storage medium, when transmitting access forwarding data, the HBA card determines a target controller from a plurality of controllers, and then transmits the data, instead of only specifying a single controller, so that the reliability of accessing the storage controller is improved.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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 some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the related art, the storage controller and the HBA card are in a one-to-one relationship, that is, the storage and the HBA card at the front end belong to only one controller, and even if a switch is added between the host and the storage, only multiple hosts can share the same storage device, but in the storage engine, only one HBA card can be accessed by one controller, and only one controller can be accessed by the host through one HBA card. When the controller corresponding to the HBA card fails, the whole controller, the HBA card and a link from the HBA card to a host end can not work any more, the service needs to be switched to other HBA cards and the corresponding controllers through a host redundant link, the whole service switching process comprises three parts of link switching, switch port switching and HBA card switching, the delay is more than 20 seconds, the networking is complex, more physical redundant links are high, the cost is high, and the reliability of the HBA card accessing the storage controller is reduced.
Therefore, the application also provides a storage controller access method, when the HBA card sends access forwarding data, the target controller is determined from the multiple controllers, and then the data is sent instead of only one controller, so that the reliability of accessing the storage controller is improved.
The following describes a storage controller access method provided by the present application, by way of an embodiment.
Referring to fig. 1, fig. 1 is a flowchart illustrating a memory controller access method according to an embodiment of the present disclosure.
In this embodiment, the method may include:
s101, the HBA card processes the received access request to obtain access forwarding data;
it can be seen that, in this step, the HBA card mainly processes the received access request to obtain access forwarding data.
The HBA card can be inserted into a card of a computer, a server or a large host, and the computer is connected to a memory or a memory network through an optical fiber channel or SCSI. A host bus adapter is a circuit board or integrated circuit adapter that provides input/output processing and physical connections between a server and a storage device. Because the HBA relieves the host processor of the data storage and retrieval tasks, it can improve the performance of the server. An HBA and its associated disk subsystem are sometimes collectively referred to as a disk channel.
The process of processing the received access request in this step may adopt any request processing manner provided in the prior art, which is not specifically limited herein.
In the prior art, generally, access forwarding data obtained by processing the access request is directly sent to a controller connected in a single manner.
S102, determining a target controller from a plurality of controllers according to a preset controller number; wherein, a plurality of controllers are connected with the HBA card;
on the basis of S101, this step is intended to determine a target controller from a plurality of controllers based on a preset controller number; wherein, a plurality of controllers are all connected with the HBA card.
The preset controller number refers to a controller number set in the HBA card in advance. The preset controller number may be a controller number that a technician sets in advance in the HBA card, and the controller number may be a controller number of a default controller. Or may be a controller number determined according to the situation of the current storage controller. It can be seen that the manner of determining the preset controller number in this step is not unique, and is not specifically limited herein.
S103, sending the access forwarding data to the target controller.
On the basis of S102, this step is intended to transmit the access forwarding data to the target controller.
Further, in order to improve the efficiency of data transmission, the step may include:
the HBA card sends the access forwarding data to the target controller through the PCIE SWITCH chip.
It can be seen that, in this alternative, the access forwarding data is mainly sent to the target controller through a PCIE (peripheral component interconnect express) SWITCH chip. One of the biggest essential differences of using Switch with respect to a bridge is that Switch exchange is used instead of Bus among multiple roles in the same Bus. The efficiency and speed of signal switching are improved.
Further, the PCIE SWITCH chip in this alternative may be a PCIE SWITCH chip with a Multihost function.
It can be seen that the PCIE SWITCH chip in this alternative may be a PCIE SWITCH chip with a Multihost function. Among them, the multi host is a multi-pass technology. By adopting the Multi-Host technology, a plurality of computing and storage nodes can be interconnected with the outside through a single network card. Compared with the prior art, the data center adopting the Multi-Host technology has the advantages that the number of the switches, the network cards and the cables can be reduced by 4 times, and the total investment of the data center is greatly reduced. That is, the cost in the data transmission process is reduced while the data performance is improved.
Further, the PCIE SWITCH chip in this alternative may be a PCIE SWITCH chip with a partition function.
It can be seen that the PCIE SWITCH chip in this alternative may be the PCIE SWITCH chip with the partition function. The partition function refers to a partition function of network transmission.
Further, in order to improve the reliability of determining the controller in the method, the embodiment may further include:
step 1, when a target controller fails, determining a new controller number;
and 2, sending the access forwarding data to the controller corresponding to the new controller number according to the new controller number.
It can be seen that the present alternative is primarily illustrative of operation when a controller failure occurs. The alternative scheme firstly determines a new controller number when a target controller fails; and then, sending the access forwarding data to the controller corresponding to the new controller number according to the new controller number. Therefore, when the controller fails, only the connected controllers need to be switched, and the repair efficiency and speed of the controller failure are improved.
Further, step 1 in this alternative may include:
when the target controller fails, a new controller number is determined according to the controller state.
It can be seen that in this alternative, when the target controller fails, the new control number is determined based on the controller status. The controller state refers to a performance state of the controller at the moment, and belongs to a working state or an idle state. Further, the controller number corresponding to the currently idle controller is selected as the new controller number.
Further, step 1 in this alternative may include:
when the target controller fails, a new controller number is determined according to the data transmission performance.
It can be seen that in the present alternative scheme, mainly when the target controller fails, the new controller number is determined according to the data transmission performance so as to improve the new controller performance.
In summary, in this embodiment, when the HBA card transmits the access forwarding data, the HBA card determines the target controller from the multiple controllers and then transmits the data, instead of specifying only a single controller, so that the reliability of accessing the storage controller is improved.
The following further describes a memory controller access method provided by the present application by a specific embodiment.
In this embodiment, an PCIE SWITCH chip with a multiply/part function, such as Broadcom or michichip, is added to the HBA card.
Based on this, the technical scheme in this embodiment includes:
step 1, placing PCIE SWITCH chips with a multiply/part function of Broadcom or Micochip into an HBA card, and connecting the PCIE SWITCH chips with an original chip of the HBA card through a PCIE channel;
step 2, the host port of the HBA card is kept unchanged, and a plurality of ports of the SWITCH chip are respectively connected with each controller;
step 3, by using the switching function of the HBA card, each host port service can be sent to PCIE SWITCH chips;
and 4, each controller can realize connection and service exchange with the PCIE SWITCH chip by using the Multihost/partition function of PCIE SWITCH.
Based on this, in the shared HBA card mode, when the target controller fails, a new controller number is determined; and sending the access forwarding data to the controller corresponding to the new controller number according to the new controller number. The speed of fast switching access controllers is achieved.
Therefore, in the embodiment, the target controller is determined from the multiple controllers when the HBA card transmits the access forwarding data, and then the data is transmitted, instead of only specifying a single controller, so that the reliability of accessing the storage controller is improved.
In the following, a memory controller access apparatus provided in an embodiment of the present application is described, and a memory controller access apparatus described below and a memory controller access method described above may be referred to correspondingly.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a memory controller access device according to an embodiment of the present disclosure.
In this embodiment, the apparatus may include:
a request processing module 100, configured to process the received access request to obtain access forwarding data;
a target controller determining module 200, configured to determine a target controller from the multiple controllers according to a preset controller number; wherein, a plurality of controllers are connected with the HBA card;
and a data sending module 300, configured to send the access forwarding data to the target controller.
An embodiment of the present application further provides a server, including:
a memory for storing a computer program;
a processor for implementing the steps of the storage controller access method as described in the above embodiments when executing the computer program.
Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the storage controller access method according to the above embodiments are implemented.
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.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
A storage controller access method, a storage controller access apparatus, a server and a computer-readable storage medium provided by the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. 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.

Claims (10)

1. A storage controller access method, comprising:
the HBA card processes the received access request to obtain access forwarding data;
determining a target controller from the plurality of controllers according to a preset controller number; wherein the plurality of controllers are each connected to the HBA card;
and sending the access forwarding data to the target controller.
2. The storage controller access method of claim 1, wherein sending the access forwarding data to the target controller comprises:
the HBA card sends the access forwarding data to the target controller through the PCIE SWITCH chip.
3. The memory controller access method of claim 2, wherein the PCIE SWITCH chip is a PCIE SWITCH chip with a Multihost function.
4. The memory controller access method of claim 2, wherein the PCIE SWITCH chip is a PCIE SWITCH chip with a partition function.
5. The storage controller access method of claim 1, further comprising:
when the target controller fails, determining a new controller number;
and sending the access forwarding data to the controller corresponding to the new controller number according to the new controller number.
6. The storage controller access method of claim 5, wherein determining a new controller number when the target controller fails comprises:
and when the target controller fails, determining the new controller number according to the controller state.
7. The storage controller access method of claim 5, wherein determining a new controller number when the target controller fails comprises:
and when the target controller fails, determining the new controller number according to the data transmission performance.
8. A storage controller access device, comprising:
the request processing module is used for processing the received access request to obtain access forwarding data;
the target controller determining module is used for determining a target controller from the plurality of controllers according to a preset controller number; wherein the plurality of controllers are each connected to the HBA card;
and the data sending module is used for sending the access forwarding data to the target controller.
9. A server, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the storage controller access method of any of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the storage controller access method according to any one of claims 1 to 7.
CN202011343128.XA 2020-11-25 2020-11-25 Storage controller access method and related device Pending CN112463670A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011343128.XA CN112463670A (en) 2020-11-25 2020-11-25 Storage controller access method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011343128.XA CN112463670A (en) 2020-11-25 2020-11-25 Storage controller access method and related device

Publications (1)

Publication Number Publication Date
CN112463670A true CN112463670A (en) 2021-03-09

Family

ID=74808285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011343128.XA Pending CN112463670A (en) 2020-11-25 2020-11-25 Storage controller access method and related device

Country Status (1)

Country Link
CN (1) CN112463670A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115865803A (en) * 2023-03-03 2023-03-28 浪潮电子信息产业股份有限公司 IO request processing method, device, equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077083A (en) * 2014-07-01 2014-10-01 浪潮(北京)电子信息产业有限公司 New added storage method, device and system
CN104102515A (en) * 2014-07-18 2014-10-15 浪潮(北京)电子信息产业有限公司 Method and server for processing logical unit number of plug-in storage equipment
CN109271109A (en) * 2018-09-14 2019-01-25 郑州云海信息技术有限公司 A kind of date storage method and HBA card
CN110213065A (en) * 2018-02-28 2019-09-06 杭州宏杉科技股份有限公司 A kind of method and device of path switching
CN110874297A (en) * 2019-11-15 2020-03-10 江苏芯盛智能科技有限公司 Data access method, device and host

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077083A (en) * 2014-07-01 2014-10-01 浪潮(北京)电子信息产业有限公司 New added storage method, device and system
CN104102515A (en) * 2014-07-18 2014-10-15 浪潮(北京)电子信息产业有限公司 Method and server for processing logical unit number of plug-in storage equipment
CN110213065A (en) * 2018-02-28 2019-09-06 杭州宏杉科技股份有限公司 A kind of method and device of path switching
CN109271109A (en) * 2018-09-14 2019-01-25 郑州云海信息技术有限公司 A kind of date storage method and HBA card
CN110874297A (en) * 2019-11-15 2020-03-10 江苏芯盛智能科技有限公司 Data access method, device and host

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115865803A (en) * 2023-03-03 2023-03-28 浪潮电子信息产业股份有限公司 IO request processing method, device, equipment and readable storage medium
CN115865803B (en) * 2023-03-03 2023-08-22 浪潮电子信息产业股份有限公司 IO request processing method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN101710314B (en) High-speed peripheral component interconnection switching controller and realizing method thereof
US8200872B2 (en) Method for deterministic SAS discovery and configuration
CN110941576B (en) System, method and device for memory controller with multi-mode PCIE function
CN103154920B (en) Unified I/O adapter
CN113227991B (en) Alternative protocol selection
US9985893B2 (en) Load sharing method and apparatus, and board
CN110636139B (en) Optimization method and system for cloud load balancing
WO2009097005A2 (en) Fast write operations to a mirrored volume in a volume manager
CN112711550B (en) DMA automatic configuration module and system-on-chip SOC
CN111177065A (en) Multi-chip interconnection method and device
US9116881B2 (en) Routing switch apparatus, network switch system, and routing switching method
US20180181536A1 (en) Cpu interconnect apparatus and system, and cpu interconnect control method and control apparatus
EP2620876B1 (en) Method and apparatus for data processing, pci-e bus system and server
CN112463670A (en) Storage controller access method and related device
EP3876089A1 (en) Methods and systems for peer-to-peer data channels for storage devices
JP2003316521A (en) Storage controller
CN108121496B (en) Data storage method, device and system
CN116204448A (en) Multi-port solid state disk, control method and device thereof, medium and server
CN111352574A (en) Path switching method and device and computer readable storage medium
US20220147412A1 (en) Method for Implementing Storage Service Continuity in Storage System, Front-End Interface Card, and Storage System
CN112612741B (en) Multi-path server
EP3355525B1 (en) Computing apparatus, node device, and server
CN110851393B (en) USB conversion control board card with Aurora interface and method
CN113836058A (en) Method, device, equipment and storage medium for data exchange between board cards
US8732331B2 (en) Managing latencies in a multiprocessor interconnect

Legal Events

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

Application publication date: 20210309