CN115061687A - Case management method, device, equipment and medium - Google Patents

Case management method, device, equipment and medium Download PDF

Info

Publication number
CN115061687A
CN115061687A CN202210907537.0A CN202210907537A CN115061687A CN 115061687 A CN115061687 A CN 115061687A CN 202210907537 A CN202210907537 A CN 202210907537A CN 115061687 A CN115061687 A CN 115061687A
Authority
CN
China
Prior art keywords
preset
command
management command
chassis management
type
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
CN202210907537.0A
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 CN202210907537.0A priority Critical patent/CN115061687A/en
Publication of CN115061687A publication Critical patent/CN115061687A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • 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/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • 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 case management method, a device, equipment and a medium, which relate to the technical field of computer storage systems, and the method comprises the following steps: receiving a case management command sent by a business system of a preset storage array in a first protocol type through a preset front-end protocol unit, and judging the command type of the case management command; if the command type of the case management command is a first type, processing the case management command by using a first processor in a preset front-end protocol unit; if the command type of the chassis management command is the second type, the chassis management command is forwarded to a preset core logic unit by using a preset front-end protocol unit, so that the received chassis management command is converted into the second protocol type by using a second processor by the preset core logic unit for processing. The invention can redefine the realization method and the function of the case management firmware, reduce the research and development cost, quickly promote the project and improve the competitive power of the product.

Description

Case management method, device, equipment and medium
Technical Field
The present invention relates to the field of computer storage systems, and in particular, to a method, an apparatus, a device, and a medium for managing a chassis.
Background
out-Of-band enclosure management firmware and systems exist in storage arrays, JBOD9 JBOD (i.e., Just a Bunch Of Disks, disk cluster, disk continuous bundle array), JBOF (i.e., Just a Bunch Of flash, flash cluster), FBOF (Fabricius attached Just a Bunch Of flash) products. In the unified storage array, an independent head system without a disk, and the general out-of-band chassis Management firmware is a BMC (i.e., a Baseboard Management Controller); in the storage array with the disk, the general out-of-band Enclosure management firmware is an mCPU (Central Processing Unit) built in a BMC (bulk computer system) or SES (SCSI Enclosure Service) expander/PCIe (PCI-Express) switch chip. The JBOD common out-of-band chassis management firmware is SES expander. The FBOF general-purpose out-of-band case management firmware may be a built-in mCPU in an mCPU/DPU built-in BMC/SES expander/PCIe switch chip, or the like.
In the above scenario, the firmware managed by the out-of-band chassis is of various types, and a firmware developer needs to develop and adapt the chassis management function in a plurality of different chip and operating system environments. This approach has the following significant drawbacks: 1) a plurality of firmware research and development teams are needed to respectively complete the development of the management function of the out-of-band chassis on different chips such as a BMC (baseboard management controller), an SES (secure expansion Unit), a PCIe switch, a DPU (Data Processing Unit) and a smart NIC (smart NIC), so that the labor consumption is huge; 2) when chips with the same functions of different manufacturers are replaced, firmware case management code transplantation is carried out firstly, so that the chip replacement period is delayed, and the stability of a supply chain is influenced; 3) development of firmware of the out-of-band chassis management chip is carried out on a plurality of chips, the project research and development period is long, and the project research and development cost is huge.
Therefore, in the management process of the out-of-band box, how to avoid the situations of tedious process of firmware development, long project development period and huge project development cost is a problem to be solved in the field.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a chassis management method, device, apparatus, and medium, which can redefine the implementation method and function of chassis management firmware, reduce research and development costs, quickly advance projects, and improve product competitive power. The specific scheme is as follows:
in a first aspect, the present application discloses a chassis management method, including:
receiving a case management command sent by a business system of a preset storage array in a first protocol type through a preset front-end protocol unit, and judging the command type of the case management command;
if the command type of the case management command is a first type, processing the case management command by using a first processor in the preset front-end protocol unit;
if the command type of the chassis management command is a second type, the preset front-end protocol unit is used for forwarding the chassis management command to a preset core logic unit, so that the preset core logic unit converts the received chassis management command into the second protocol type by using a second processor for processing.
Optionally, the receiving, by the preset front-end protocol unit, the chassis management command sent by the service system of the preset storage array in the first protocol type includes:
and receiving a chassis management command sent by a first protocol type by a first substrate management controller chip or SAS expander mCPU or PCIe switch mCPU or smart NIC mCPU in a service system of the target storage array through a first preset out-of-band chassis management information interface in a preset front-end protocol unit in a preset management system of the preset storage array.
Optionally, the receiving, by the preset front-end protocol unit, the chassis management command sent by the service system of the preset storage array in the first protocol type includes:
receiving a chassis management command sent by an SES protocol from an SAS expander mCPU in a service system of a target storage array through a first preset out-of-band chassis management information interface in a preset front-end protocol unit in a JBOD (just a bunch of disks) connected to the current preset storage array in advance;
or, receiving a chassis management command sent by a PCIe switch mCPU in a business system of a target storage array according to an NVMe-MI protocol or MRPC protocol through a second preset out-of-band chassis management information interface in a preset front-end protocol unit in PCIe JBOF connected to the current preset storage array in advance;
or, receiving a chassis management command sent by a smartNIC or DPU mCPU in a service system of a target storage array in a first protocol type through a third preset out-of-band chassis management information interface in a preset front-end protocol unit in the FBOF which is connected to the preset storage array in advance.
Optionally, the forwarding, by using the preset front-end protocol unit, the chassis management command to a preset core logic unit, so that the preset core logic unit converts the received chassis management command into a second protocol type by using a second processor for processing, includes:
and forwarding the case management command to a preset embedded chip by using the preset front-end protocol unit so that the preset embedded chip converts the received case management command into a second protocol type by using a second processor in the chip for processing.
Optionally, the forwarding, by using the preset front-end protocol unit, the chassis management command to a preset embedded chip, so that the preset embedded chip converts the received chassis management command into a second protocol type by using a second processor in the chip, and the processing includes:
and forwarding the case management command to a second baseboard management controller chip by using the preset front-end protocol unit, so that the second baseboard management controller chip converts the received case management command into a second protocol type by using a second processor in the chip for processing.
Optionally, after the preset core logic unit converts the received chassis management command into a second protocol type by using a second processor for processing, the method includes:
determining target information corresponding to the case management command;
sending a target information acquisition request to the preset front-end protocol unit, and receiving target information returned by the preset front-end protocol unit aiming at the target information acquisition request;
and processing the case management command based on the target information.
Optionally, the forwarding the chassis management command to a preset core logic unit by using the preset front-end protocol unit includes:
forwarding the case management command to a preset core logic unit through a preset first channel by using the preset front-end protocol unit;
correspondingly, the sending a target information acquisition request to the preset front-end protocol unit and receiving target information returned by the preset front-end protocol unit for the target information acquisition request includes:
and sending a target information acquisition request to the preset front-end protocol unit through a preset second channel, and receiving target information returned by the preset front-end protocol unit aiming at the target information acquisition request through the preset second channel.
In a second aspect, the present application discloses a chassis management device, including:
the command receiving module is used for receiving a case management command which is sent by a business system of a preset storage array in a first protocol type through a preset front-end protocol unit and judging the command type of the case management command;
a first command processing module, configured to process the chassis management command by using a first processor in the preset front-end protocol unit if the command type of the chassis management command is a first type;
and the second command processing module is configured to forward the chassis management command to a preset core logic unit by using the preset front-end protocol unit if the command type of the chassis management command is a second type, so that the preset core logic unit converts the received chassis management command into a second protocol type by using a second processor for processing.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the chassis management method.
In a fourth aspect, the present application discloses a computer storage medium for storing a computer program; wherein the computer program when executed by a processor implements the steps of the chassis management method disclosed above.
The method comprises the steps that a case management command sent by a business system of a preset storage array in a first protocol type is received through a preset front-end protocol unit, and the command type of the case management command is judged; if the command type of the case management command is a first type, processing the case management command by using a first processor in the preset front-end protocol unit; if the command type of the chassis management command is a second type, the preset front-end protocol unit is used for forwarding the chassis management command to a preset core logic unit, so that the preset core logic unit converts the received chassis management command into the second protocol type by using a second processor for processing. Therefore, the management function body logic of the out-of-band case is abstracted and divided into the preset front-end protocol unit and the preset core logic unit, wherein the preset front-end protocol unit is used as a front end, the preset core logic unit is used as a rear end, and the management work of the out-of-band case is finished by using the double CPUs, so that the stability of the management function body logic of the out-of-band case is realized. And the preset front-end protocol unit is responsible for external protocol service, minimizes the working content, transfers the protocol conversion work to the preset core logic unit for protocol conversion, and the whole case management process does not need to change along with the change of the case form, thereby being convenient for quality stability and saving development manpower.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, 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 chassis management method provided in the present application;
fig. 2 is a flowchart of a specific case management method provided in the present application;
fig. 3 is a schematic structural diagram of a chassis management device provided in the present application;
fig. 4 is a block diagram of an electronic device provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the prior art, in the management process of the out-of-band box, the situations of complicated firmware development process, long project research and development period and huge project research and development cost can occur. In the application, the method and the function for realizing the chassis management firmware can be redefined, the research and development cost is reduced, the project is rapidly promoted, and the competitive power of products is improved.
The embodiment of the invention discloses a case management method, which comprises the following steps of:
step S11: and receiving a case management command sent by a service system of a preset storage array in a first protocol type through a preset front-end protocol unit, and judging the command type of the case management command.
The invention divides the management function of the out-of-band case into two parts: a front-end protocol processing unit and a core logic unit. The two units are respectively provided with an independent processor, wherein the front-end protocol processing unit is provided with an mCPU (preferably SAS expander, PCIe switch, DPU, smart NIC and the like) and is responsible for responding to an external protocol interface and receiving commands; the core logic unit is generally a dedicated embedded chip (preferably, a BMC chip) and serves as a protocol executing party to implement specific commands and policies. On different product forms, the invention completes the abstraction and solidification of main functions through two units, and only the matching protocol adaptation for different physical channels is left in the change.
In this embodiment, the preset storage array includes a management system and a service system, the service system is a party for generating and sending commands, and the management system includes the front-end protocol processing unit and a core logic unit, and is configured to process the commands sent by the service system.
When the chassis management command generated by the service system in the preset storage array is a command for the preset storage array, the service system sends the command to the management system when sending the command. When the case management command is a command for a JBOD connected with a preset storage array, the service system sends the command in a protocol type corresponding to the JBOD, and similarly, when the case management command is a command for a PCIe JBOF connected with the preset storage array, the service system sends the command in a protocol type corresponding to the PCIe JBOF; when the chassis management command is a command for an FBOF connected to a preset storage array, the service system sends the command in a protocol type corresponding to the FBOF. Specifically, the receiving, by a preset front-end protocol unit, a chassis management command sent by a service system of a preset storage array in a first protocol type includes: and receiving a chassis management command sent by a first protocol type by a first substrate management controller chip or SAS expander mCPU or PCIe switch mCPU or smart NIC mCPU in a service system of a target storage array through a first preset out-of-band chassis management information interface in a preset front-end protocol unit in a preset management system of the preset storage array.
The receiving, by the preset front-end protocol unit, a chassis management command sent by a service system of a preset storage array in a first protocol type includes: receiving a chassis management command sent by an SES protocol from an SAS expander mCPU in a service system of a target storage array through a first preset out-of-band chassis management information interface in a preset front-end protocol unit in a JBOD (just a bunch of disks) connected to the current preset storage array in advance; or, receiving a chassis Management command sent by a PCIe switch mCPU in a service system of a target storage array according to an NVMe-MI (Management Interface) Protocol or an MRPC (Media Resource Control Protocol) Protocol through a second preset out-of-band chassis Management information Interface in a preset front-end Protocol unit in a PCIe JBOF that is connected to the current preset storage array in advance; or, receiving a chassis management command sent by a smartNIC or DPU mCPU in a service system of a target storage array in a first protocol type through a third preset out-of-band chassis management information interface in a preset front-end protocol unit in the FBOF which is connected to the preset storage array in advance.
That is to say, in this embodiment, the default storage array may use, but is not limited to, BMC/SAS expander mCPU/pci switch mCPU/smart NIC mCPU for chassis management; due to physical networking limitation, JBOD can only use SAS expander mCPU as an uplink communication channel, and the chassis management function can only use an SES protocol through the SAS expander; PCIe JBOF can only use PCIe Switch mCPU as an uplink communication channel due to the limitation of physical networking, and the chassis management function can only use the NVMe-MI/MRPC protocol through the PCIe Switch mCPU; due to the limitation of physical networking, the FBoF can only use smartNIC/DPU mCPU as an uplink communication channel, and the chassis management function can only pass through smartNIC/DPU mCPU. In addition, in this embodiment, the first predetermined out-of-band enclosure management information interface, the second predetermined out-of-band enclosure management information interface, and the third predetermined out-of-band enclosure management information interface are all in the predetermined front-end protocol unit, and are completed by a dedicated mCPU channel and a dedicated protocol, and are responsible for functional interaction between other systems of the storage device and the external storage cross-system interface.
In the application, the uplink channel managed by the out-of-band case is limited by physical networking and can not be changed randomly, the protocol is influenced by the industry mainstream protocol, and the standard/mainstream protocol is proposed in consideration of the adaptation workload and the industry compatibility. Therefore, the scheme diversifies the selection of the front-end uplink channel protocol and does not limit the uplink channel. However, in the back-end default core logic unit proposed in the present invention, the core logic of the chassis management is not strongly coupled to the upstream protocol provider, but is solidified by using a dedicated embedded chip (including but not limited to BMC) firmware (hereinafter referred to as out-of-band chassis management core logic unit).
In this embodiment, the chassis management command may be a plurality of commands such as sensor information acquisition, fault detection, fault report, information acquisition protocol support, chassis heat dissipation policy, firmware upgrade, hard disk information out-of-band management, interface card information out-of-band management, lighting, configuration, Log (Log) collection, and the like, which is not limited herein.
Step S12: and if the command type of the case management command is a first type, processing the case management command by using a first processor in the preset front-end protocol unit.
In this embodiment, the service system may directly send the chassis management command to the preset front-end protocol unit, and the front-end protocol unit may determine, based on a preset determination rule, whether the unit may independently execute the chassis management command after receiving the chassis management command, and if the unit may independently execute the chassis management command, the unit may determine the chassis management command as the first type, and may directly execute the chassis management command without forwarding the chassis management command to the preset core logic unit.
Step S13: if the command type of the chassis management command is a second type, the preset front-end protocol unit is used for forwarding the chassis management command to a preset core logic unit, so that the preset core logic unit converts the received chassis management command into the second protocol type by using a second processor for processing.
In this embodiment, if the front-end protocol unit receives the chassis management command, it determines whether the unit can execute the chassis management command alone based on a preset determination rule, and if the unit cannot execute alone, the front-end protocol unit needs to forward the command to the preset core logic unit for execution according to a downlink protocol requirement. The preset core logic unit carries out protocol conversion in the subsequent process, and converts the protocol conversion into a format which can be processed by the unit, thereby completing the management functions of the chassis such as out-of-band information acquisition, configuration, upgrading, Log collection, lighting and the like. In a specific embodiment, the format may be converted into a protocol format including, but not limited to, IPMI (Intelligent Platform Management Interface), SES, MRPC, NVME-MI, and the like, which is not limited herein.
It should be noted that the first type of command in this embodiment is relatively small in the actual implementation process, and in most cases, the chassis management command received by the front-end protocol unit cannot be executed alone. That is, in most cases, the preset frontend protocol unit will forward the chassis management command to the preset core logic unit for execution. In the forwarding process, protocol conversion processing is not carried out on the case management command in principle, and protocol conversion is reserved for a downstream core logic unit.
In the method, a case management command sent by a business system of a preset storage array in a first protocol type is received through a preset front-end protocol unit, and the command type of the case management command is judged; if the command type of the case management command is a first type, processing the case management command by using a first processor in the preset front-end protocol unit; if the command type of the chassis management command is a second type, the preset front-end protocol unit is used for forwarding the chassis management command to a preset core logic unit, so that the preset core logic unit converts the received chassis management command into the second protocol type by using a second processor for processing. Therefore, the management function body logic of the out-of-band case is abstracted and divided into the preset front-end protocol unit and the preset core logic unit, wherein the preset front-end protocol unit is used as a front end and uses mCPU, the preset core logic unit is used as a rear end and uses a special embedded chip, and the double CPUs finish the management work of the out-of-band case, so that the stability of the management function body logic of the out-of-band case is realized. And the preset front-end protocol unit is responsible for external protocol service, minimizes the working content, transfers the protocol conversion work to the preset core logic unit for protocol conversion, and the whole case management process does not need to change along with the change of the case form, thereby being convenient for quality stability and saving development manpower.
Fig. 2 is a flowchart of a specific enclosure management method according to an embodiment of the present disclosure. Referring to fig. 2, the method includes:
step S21: and receiving a case management command sent by a service system of a preset storage array in a first protocol type through a preset front-end protocol unit, and judging the command type of the case management command.
For a more specific processing procedure of step S21, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
Step S22: and if the command type of the case management command is a first type, processing the case management command by using a first processor in the preset front-end protocol unit.
For a more specific processing procedure of step S22, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
Step S23: if the command type of the chassis management command is a second type, the chassis management command is forwarded to a preset core logic unit through a preset first channel by using the preset front-end protocol unit, so that the preset core logic unit converts the received chassis management command into the second protocol type by using a second processor for processing.
In this embodiment, the forwarding the chassis management command to a preset core logic unit by using the preset front-end protocol unit so that the preset core logic unit converts the received chassis management command into a second protocol type by using a second processor for processing may include: and forwarding the case management command to a preset embedded chip by using the preset front-end protocol unit so that the preset embedded chip converts the received case management command into a second protocol type by using a second processor in the chip for processing. In this embodiment, the forwarding the chassis management command to a preset embedded chip by using the preset front-end protocol unit so that the preset embedded chip converts the received chassis management command into a second protocol type by using a second processor in the chip to process the received chassis management command may include: and forwarding the case management command to a second baseboard management controller chip by using the preset front-end protocol unit, so that the second baseboard management controller chip converts the received case management command into a second protocol type by using a second processor in the chip for processing.
It is understood that, in this embodiment, the preset front-end protocol unit is a dedicated embedded chip, preferably a BMC chip, but includes but is not limited to the BMC chip.
Step S24: and determining target information corresponding to the case management command.
In this embodiment, after the preset core logic unit receives the chassis management command and performs protocol conversion on the command, the corresponding execution of the chassis management command may be performed, and in some specific embodiments, a small amount of execution needs to be carried by the preset front-end protocol processing unit, that is, the preset core logic unit may request the preset front-end protocol unit for target information, so as to execute the chassis management command by using the target information. At this time, the preset core logic unit, i.e., the dedicated embedded chip firmware, may serve as an initiator of the information acquisition protocol, and the preset front-end protocol processing unit may serve as a responder of the protocol.
Step S25: and sending a target information acquisition request to the preset front-end protocol unit through a preset second channel, and receiving target information returned by the preset front-end protocol unit aiming at the target information acquisition request through the preset second channel.
It should be noted that, in this embodiment, the first channel of the preset front-end protocol unit for forwarding the chassis management command and the interaction channel of the preset core logic unit for processing the chassis management command are not the same channel, that is, the first channel is used when the preset front-end protocol unit forwards the command, and the second channel is used when the subsequent preset core logic unit processes the command and is no longer shared with the first channel for forwarding the command.
Step S26: and processing the case management command based on the target information.
In this embodiment, after the preset core logic unit acquires the target information from the preset front-end protocol unit, the preset core logic unit may continue to execute the chassis management command by using the target information.
In this embodiment, a preset front-end protocol unit receives a chassis management command sent by a service system of a preset storage array in a first protocol type, and determines a command type of the chassis management command; if the command type of the case management command is a first type, processing the case management command by using a first processor in the preset front-end protocol unit; if the command type of the chassis management command is a second type, the chassis management command is forwarded to a preset core logic unit through a preset first channel by using the preset front-end protocol unit, so that the received chassis management command is converted into the second protocol type by using a second processor by the preset core logic unit for processing; determining target information corresponding to the case management command; and sending a target information acquisition request to the preset front-end protocol unit through a preset second channel, and receiving target information returned by the preset front-end protocol unit aiming at the target information acquisition request through the preset second channel. (ii) a And processing the case management command based on the target information. Therefore, the logic of the management function body of the out-of-band case is abstractly solidified to an independent embedded chip, and the interaction process of the embedded chip and the preset front-end protocol unit of the front end and the forwarding process of the preset front-end protocol unit to the command do not use the same channel, so that the stability of the logic of the management function body of the out-of-band case is realized, the change along with the change of the form of the case is not needed, and the quality is stable, and the development labor is saved. When the SAS expander, the PCIe switch, the DPU, the smart NIC and other chips are used for replacement, only an external protocol processing part needs to be transplanted, the replacement speed is high, the cost is low, the stability of a supply chain is facilitated, the development cost of the whole project is low, the period is short, the SAS expander, the PCIe switch, the DPU, the smart NIC and other chips can be quickly pushed to the market, and the product competitiveness is improved.
Referring to fig. 3, an embodiment of the present application discloses a chassis management device, which may specifically include:
the command receiving module 11 is configured to receive, through a preset front-end protocol unit, a chassis management command sent by a service system of a preset storage array in a first protocol type, and determine a command type of the chassis management command;
a first command processing module 12, configured to, if the command type of the chassis management command is a first type, process the chassis management command by using a first processor in the preset front-end protocol unit;
the second command processing module 13 is configured to forward the chassis management command to a preset core logic unit by using the preset front-end protocol unit if the command type of the chassis management command is the second type, so that the preset core logic unit converts the received chassis management command into the second protocol type by using a second processor for processing.
In the method, a case management command sent by a business system of a preset storage array in a first protocol type is received through a preset front-end protocol unit, and the command type of the case management command is judged; if the command type of the case management command is a first type, processing the case management command by using a first processor in the preset front-end protocol unit; if the command type of the chassis management command is a second type, the preset front-end protocol unit is used for forwarding the chassis management command to a preset core logic unit, so that the preset core logic unit converts the received chassis management command into the second protocol type by using a second processor for processing. Therefore, the management function body logic of the out-of-band case is abstracted and divided into the preset front-end protocol unit and the preset core logic unit, wherein the preset front-end protocol unit is used as a front end, the preset core logic unit is used as a rear end, and the management work of the out-of-band case is finished by using the double CPUs, so that the stability of the management function body logic of the out-of-band case is realized. In the invention, the whole case management process does not need to change along with the change of the case form, thereby being convenient for stable quality and saving development labor.
In some embodiments, the command receiving module 11 includes:
the first command receiving unit is used for receiving a chassis management command sent by a first substrate management controller chip or SAS expander mCPU or PCIe switch mCPU or smart NIC mCPU in a service system of a target storage array in a first protocol type through a first preset out-of-band chassis management information interface in a preset front-end protocol unit in a preset management system of the preset storage array.
In some embodiments, the command receiving module 11 includes:
the second command receiving unit is used for receiving a chassis management command sent by an SES protocol from an SAS expander mCPU in a service system of a target storage array through a first preset out-of-band chassis management information interface in a preset front-end protocol unit in the JBOD which is connected to the preset storage array at present;
or, the third command receiving unit is configured to receive, through a second preset out-of-band enclosure management information interface in a preset front-end protocol unit in the PCIe JBOF that is connected to the current preset storage array in advance, an enclosure management command sent by the NVMe-MI protocol or the MRPC protocol from the PCIe switch mCPU in the service system of the target storage array;
or, the fourth command receiving unit is configured to receive, through a third preset out-of-band enclosure management information interface in a preset front-end protocol unit in the FBOF that is connected to the preset storage array in advance, an enclosure management command that is sent by the first protocol type by a smartNIC or a DPU mCPU in the service system of the target storage array.
In some specific embodiments, the second command processing module 13 includes:
and the first command forwarding unit is used for forwarding the case management command to a preset embedded chip by using the preset front-end protocol unit so that the preset embedded chip converts the received case management command into a second protocol type by using a second processor in the chip for processing.
In some specific embodiments, the first command forwarding unit includes:
and the second command forwarding unit is used for forwarding the chassis management command to a second baseboard management controller chip by using the preset front-end protocol unit, so that the second baseboard management controller chip converts the received chassis management command into a second protocol type by using a second processor in the chip for processing.
In some embodiments, the chassis management apparatus further includes:
the target information determining unit is used for determining target information corresponding to the case management command;
a request sending unit, configured to send a target information acquisition request to the preset front-end protocol unit, and receive target information returned by the preset front-end protocol unit for the target information acquisition request;
and the information application unit is used for processing the case management command based on the target information.
In some specific embodiments, the second command processing module 13 includes:
the first channel application unit is used for forwarding the case management command to a preset core logic unit through a preset first channel by utilizing the preset front-end protocol unit;
correspondingly, the request sending unit includes:
and the second channel application unit is used for sending a target information acquisition request to the preset front-end protocol unit through a preset second channel and receiving target information returned by the preset front-end protocol unit aiming at the target information acquisition request through the preset second channel.
Further, an electronic device is also disclosed in the embodiments of the present application, fig. 4 is a block diagram of the electronic device 20 shown in the exemplary embodiments, and the content in the diagram cannot be considered as any limitation to the scope of the application.
Fig. 4 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present disclosure. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a display 24, an input-output interface 25, a communication interface 26, and a communication bus 27. The memory 22 is configured to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the chassis management method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide a working voltage for each hardware device on the electronic device 20; the communication interface 26 can create a data transmission channel between the electronic device 20 and an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the storage 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., the resources stored thereon may include an operating system 221, a computer program 222, virtual machine data 223, etc., and the virtual machine data 223 may include various data. The storage means may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device on the electronic device 20 and the computer program 222, and may be Windows Server, Netware, Unix, Linux, or the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the chassis management method performed by the electronic device 20 disclosed in any of the foregoing embodiments.
Further, the present application discloses a computer-readable storage medium, wherein the computer-readable storage medium includes a Random Access Memory (RAM), a Memory, a Read-Only Memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a magnetic disk, or an optical disk or any other form of storage medium known in the art. Wherein the computer program when executed by a processor implements the chassis management method disclosed above. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, which are not described herein again.
In the present specification, the embodiments are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same or similar parts between 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 technical solution. 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.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above detailed description is provided for the case management method, apparatus, device, and storage medium provided by the present invention, and specific examples are applied herein to explain the principles and embodiments of the present invention, and the descriptions of the above embodiments are only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A chassis management method, comprising:
receiving a case management command sent by a business system of a preset storage array in a first protocol type through a preset front-end protocol unit, and judging the command type of the case management command;
if the command type of the case management command is a first type, processing the case management command by using a first processor in the preset front-end protocol unit;
if the command type of the chassis management command is a second type, the preset front-end protocol unit is used for forwarding the chassis management command to a preset core logic unit, so that the preset core logic unit converts the received chassis management command into the second protocol type by using a second processor for processing.
2. The chassis management method according to claim 1, wherein the receiving, by the pre-set front-end protocol unit, the chassis management command sent by the service system of the pre-set storage array in the first protocol type includes:
and receiving a chassis management command sent by a first protocol type by a first substrate management controller chip or SAS expander mCPU or PCIe switch mCPU or smart NIC mCPU in a service system of the target storage array through a first preset out-of-band chassis management information interface in a preset front-end protocol unit in a preset management system of the preset storage array.
3. The chassis management method according to claim 1, wherein the receiving, by the pre-set front-end protocol unit, the chassis management command sent by the service system of the pre-set storage array in the first protocol type includes:
receiving a chassis management command sent by an SES protocol from an SAS expander mCPU in a service system of a target storage array through a first preset out-of-band chassis management information interface in a preset front-end protocol unit in a JBOD (just a bunch of disks) connected to the current preset storage array in advance;
or, receiving a chassis management command sent by a PCIe switch mCPU in a business system of a target storage array by an NVMe-MI protocol or MRPC protocol through a second preset out-of-band chassis management information interface in a preset front-end protocol unit in PCIe JBOF connected to the current preset storage array in advance;
or, receiving a chassis management command sent by a smartNIC or DPU mCPU in a service system of a target storage array in a first protocol type through a third preset out-of-band chassis management information interface in a preset front-end protocol unit in the FBOF which is connected to the preset storage array in advance.
4. The chassis management method according to claim 1, wherein the forwarding, by the preset frontend protocol unit, the chassis management command to a preset core logic unit, so that the preset core logic unit converts the received chassis management command into a second protocol type for processing by using a second processor, includes:
and forwarding the case management command to a preset embedded chip by using the preset front-end protocol unit so that the preset embedded chip converts the received case management command into a second protocol type by using a second processor in the chip for processing.
5. The chassis management method according to claim 4, wherein the forwarding, by the preset front-end protocol unit, the chassis management command to a preset embedded chip, so that the preset embedded chip converts the received chassis management command into a second protocol type for processing by using a second processor in the chip, includes:
and forwarding the case management command to a second baseboard management controller chip by using the preset front-end protocol unit, so that the second baseboard management controller chip converts the received case management command into a second protocol type by using a second processor in the chip for processing.
6. The chassis management method according to any one of claims 1 to 5, wherein after converting the received chassis management command into the second protocol type by the preset core logic unit using the second processor for processing, the method includes:
determining target information corresponding to the case management command;
sending a target information acquisition request to the preset front-end protocol unit, and receiving target information returned by the preset front-end protocol unit aiming at the target information acquisition request;
and processing the case management command based on the target information.
7. The chassis management method according to claim 6, wherein the forwarding the chassis management command to a predetermined core logic unit using the predetermined front-end protocol unit comprises:
forwarding the case management command to a preset core logic unit through a preset first channel by using the preset front-end protocol unit;
correspondingly, the sending a target information acquisition request to the preset front-end protocol unit and receiving target information returned by the preset front-end protocol unit for the target information acquisition request includes:
and sending a target information acquisition request to the preset front-end protocol unit through a preset second channel, and receiving target information returned by the preset front-end protocol unit aiming at the target information acquisition request through the preset second channel.
8. A chassis management device, comprising:
the command receiving module is used for receiving a case management command which is sent by a business system of a preset storage array in a first protocol type through a preset front-end protocol unit and judging the command type of the case management command;
a first command processing module, configured to process the chassis management command by using a first processor in the preset front-end protocol unit if the command type of the chassis management command is a first type;
and the second command processing module is configured to forward the chassis management command to a preset core logic unit by using the preset front-end protocol unit if the command type of the chassis management command is the second type, so that the preset core logic unit converts the received chassis management command into the second protocol type by using a second processor for processing.
9. An electronic device comprising a processor and a memory; wherein the processor, when executing the computer program stored in the memory, implements the chassis management method of any of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the chassis management method of any of claims 1 to 7.
CN202210907537.0A 2022-07-29 2022-07-29 Case management method, device, equipment and medium Pending CN115061687A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210907537.0A CN115061687A (en) 2022-07-29 2022-07-29 Case management method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210907537.0A CN115061687A (en) 2022-07-29 2022-07-29 Case management method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115061687A true CN115061687A (en) 2022-09-16

Family

ID=83207334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210907537.0A Pending CN115061687A (en) 2022-07-29 2022-07-29 Case management method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115061687A (en)

Similar Documents

Publication Publication Date Title
CN111984395B (en) Data migration method, system and computer readable storage medium
EP3029912B1 (en) Remote accessing method and corresponding system
CN105049268A (en) Distributed computing resource allocation system and task processing method
CN105573819A (en) Method for obtaining disk capacity information of virtual machine directly through host machine
CN104360883A (en) Method and system for configuring Raid (Redundant array of independent disks)
CN104113576A (en) Method and device for updating client
CN107526616B (en) Method and device for writing and reading data of BMC by host
CN104461698A (en) Dynamic virtual disk mounting method, virtual disk management device and distributed storage system
CN110837488B (en) Message transmission method and device
CN102750249B (en) The method that host computer communicates with slave computer, Apparatus and system
CN111582824B (en) Cloud resource synchronization method, device, equipment and storage medium
WO2021190659A1 (en) System data acquisition method and apparatus, and medium and electronic device
CN111124437A (en) Bare computer resource configuration information acquisition method, system and equipment based on OpenStack
CN105162667A (en) Method and device for configuration of virtual machine
CN113297124B (en) Device enumeration method, device, system and storage medium
CN115061687A (en) Case management method, device, equipment and medium
CN111274192A (en) Multi-BMC management system and blade server
JP7429792B2 (en) Data transmission methods, terminals and computer-readable storage media
CN103577382A (en) Method and device for configuring node controller
CN114817134A (en) Snapshot task monitoring method, device, equipment and medium
CN109039711B (en) Hardware accelerator replacement method and device and server
CN101261568A (en) Method and apparatus for managing memory apparatus
CN114116671A (en) Database migration method, system, server and storage medium
CN112069108A (en) Flexible server configuration system and method based on PCIE Switch
CN109240610B (en) Method and system for realizing butt joint of distributed object storage service quota

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