Disk array card configuration method and device, equipment, medium and product
The configuration management of RAID cards is solved through the preset command line interface tool and the NVMe protocol, and the problem of incompatibility of existing RAID card configuration tools is solved, achieving rapid and accurate RAID card configuration and compatibility improvement.
Patent Information
- Application Number
- CN202411345258.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2024-12-31
AI Technical Summary
The existing RAID card configuration management tools have a wide range of commands and lack of unified standards, which makes it incompatible with custom protocols of various manufacturers, making it difficult to achieve fast and accurate RAID card configuration.
The preset command line interface tool is used to parse the configuration commands, and the NVMe protocol is used to configure the disk array card. Configuration management is implemented by building target submission commands and completing commands to ensure the display and processing of configuration results.
It realizes an efficient and universal RAID card configuration method, reduces the number of commands, improves the fast accuracy and compatibility of configurations, and uses the NVMe protocol to transfer faster and more practical.
Smart Images

Figure CN119225654A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of storage management, and in particular to a configuration method, device, equipment, medium and product of a disk array card. Background Art
[0002] Traditional RAID (Redundant Array of Independent Disks) cards are PCIe (Peripheral Component Interconnect express, a high-speed serial computer expansion bus standard) devices on computer systems. They are connected to the host through the PCIe bus and use the manufacturer's customized SCSI (Small Computer System Interface) protocol to exchange commands in the upper layer business to achieve the interaction of configuration data between the host and the RAID card. CLI (Command Line Interface) is a text-based command line interface that interacts with computer programs or operating systems by entering commands to complete corresponding operations.
[0003] The RAID card CLI configuration management tool is a configuration management software developed on the host's operating system. Users can configure and manage the RAID card by entering specified commands. Due to the complexity of the RAID card configuration management functions, the mainstream RAID card CLI configuration management tools on the market have developed nearly hundreds of CLI commands. Since there is no unified standard protocol in the industry to define RAID card configuration tools, most command definitions require the expansion of the manufacturer-defined communication protocol used by the upper-layer business between the host and the RAID card. The commands developed in this way are numerous and have poor scalability. New CLI commands need to be developed for the addition or modification of RAID card functions, and the upper-layer business communication between the host and the RAID card needs to be expanded to use the manufacturer-defined command protocol to achieve it. Due to the differences in the management commands and upper-layer business communication protocols customized by each manufacturer, the communication interface between the RAID card controller and the host configuration management tool is incompatible with each other.
[0004] In summary, how to provide an efficient and universal RAID card configuration method to quickly and accurately configure the RAID card is a problem that needs to be solved at present. Summary of the invention
[0005] In view of this, the purpose of the present invention is to provide a disk array card configuration method, device, equipment, medium and product, which can provide an efficient and universal RAID card configuration method to quickly and accurately configure the RAID card. The specific scheme is as follows:
[0006] In a first aspect, the present application discloses a method for configuring a disk array card, which is applied to a preset command line interface tool, comprising:
[0007] Parsing the acquired configuration command that meets the preset command line format to obtain configuration parameter information;
[0008] Re-encapsulating the first target area of the first original management command in the NVMe protocol using the configuration parameter information to construct a target submission command;
[0009] Sending the target submission command to the disk array card, so that the disk array card performs corresponding configuration operations on the target attributes of the target business object based on the target submission command;
[0010] Obtain a target completion command based on the NVMe protocol sent by the disk array card after completing the configuration operation, and display the attribute configuration result in a command line interface; wherein the target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol.
[0011] Optionally, the preset command line format includes a first part for defining function parameters of the command, a second part for defining operation object parameters of the command, and a third part for defining attribute configuration parameters of the command.
[0012] Optionally, the function parameter is any one of a query function parameter and a configuration function parameter; wherein the query function parameter corresponds to a query command, and the configuration function parameter corresponds to any one of an add command, a modify command and a delete command.
[0013] Optionally, the business objects in the disk array card include a controller, an array, a physical disk and a logical volume;
[0014] Correspondingly, the operation object parameter corresponds to any one of the objects in the controller, the array, the physical disk and the logical volume, and the attribute configuration parameter corresponds to the attribute value of any one of the business objects in the disk array card.
[0015] Optionally, parsing the acquired configuration command that satisfies a preset command line format to obtain configuration parameter information includes:
[0016] Obtaining configuration commands issued by the user through the command line interface;
[0017] If the configuration command satisfies the preset command line format, the configuration command is parsed to obtain target function parameters, target operation object parameters and target attribute configuration parameters.
[0018] Optionally, the first original management command is a submission queue entry in an Admin queue, and the first target area includes an operation code field, a target control area, and a target data area;
[0019] Correspondingly, the step of repackaging the first target area of the first original management command in the NVMe protocol by using the configuration parameter information to construct a target submission command includes:
[0020] setting the opcode field of the submission queue entry using the target function parameter;
[0021] The target function parameter and the target operation object parameter are written into the target control area of the submission queue entry, and the target attribute configuration parameter is written into the target data area of the submission queue entry.
[0022] Optionally, the target control area is the CDW10 field to the CDW15 field in the submission queue entry structure, and the target data area is the data pointer field in the submission queue entry structure.
[0023] Optionally, writing the target function parameter and the target operation object parameter into the target control area of the submission queue entry includes:
[0024] Determine the space size of the data buffer area applied in advance for storing the attribute configuration result, and determine the target identification number corresponding to the target operation object parameter according to the pre-established correspondence between the operation object and the identification number;
[0025] The space size is written into the CDW10 field, the target function parameter and the target operation object parameter are written into the CDW12 field, and the target identification number is written into the CDW13 field.
[0026] Optionally, the configuration method of the disk array card further includes:
[0027] Using the data buffer area to receive the attribute configuration result sent by the disk array card after performing a corresponding configuration operation on the target attribute of the target business object based on the target submission command;
[0028] Accordingly, the displaying of the attribute configuration result in the command line interface includes:
[0029] The attribute configuration result read from the data buffer area based on the target completion command is displayed in a command line interface.
[0030] Optionally, the disk array card encapsulates the attribute configuration result based on the JSON data format, and writes the encapsulated attribute configuration result into the data cache area.
[0031] Optionally, the process in which the disk array card performs a corresponding configuration operation on a target attribute of a target business object based on the target submission command includes:
[0032] The target control area is parsed by the disk array card to determine the target business object of this operation based on the target operation object parameter, and the operation command of this operation is determined based on the target function parameter; wherein the operation command is any one of a query command, an add command, a modify command and a delete command;
[0033] The target data area is parsed by the disk array card to determine the target attribute of this configuration based on the target attribute configuration parameter, so as to perform a configuration operation corresponding to the operation command on the target attribute of the target business object.
[0034] Optionally, writing the target attribute configuration parameter into the target data area of the submission queue entry includes:
[0035] The target attribute configuration parameters are encapsulated in the target data area of the submission queue entry based on the JSON data format.
[0036] Optionally, the second original management command is a completion queue entry in the Admin queue, and the second target area includes a status field and a CDW0 field.
[0037] Optionally, the process of repackaging the second target area of the second original management command in the NVMe protocol includes:
[0038] Writing the execution status information of the target submission command into the status field; wherein the execution status information includes first status information for indicating successful execution and second status information for indicating failed execution;
[0039] The data length of the attribute configuration result obtained by the disk array card after completing the configuration operation is written into the CDW0 field.
[0040] In a second aspect, the present application discloses a method for configuring a disk array card, which is applied to the disk array card, and the method comprises:
[0041] Obtain a target submission command sent by a preset command line interface tool; wherein the target submission command is a command obtained by the command line interface tool repackaging and constructing the first target area of the first original management command in the NVMe protocol using configuration parameter information, and the configuration parameter information is information obtained by the command line interface tool after parsing the obtained configuration command that meets the preset command line format;
[0042] Based on the target submission command, a corresponding configuration operation is performed on the target attribute of the target business object, and after completing the configuration operation, a target completion command constructed based on the NVMe protocol is sent to the command line interface tool, so that the command line interface tool displays the attribute configuration result in the command line interface; wherein, the target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol.
[0043] In a third aspect, the present application discloses a disk array card configuration device, which is applied to a preset command line interface tool, and the device includes:
[0044] A parsing module, used to parse the acquired configuration command that meets the preset command line format to obtain configuration parameter information;
[0045] A command construction module, used to repackage the first target area of the first original management command in the NVMe protocol by using the configuration parameter information to construct a target submission command;
[0046] A submission command sending module, used for sending the target submission command to the disk array card, so that the disk array card performs corresponding configuration operations on the target attributes of the target business object based on the target submission command;
[0047] A completion command acquisition module is used to obtain a target completion command constructed based on the NVMe protocol and sent by the disk array card after completing the configuration operation, and display the attribute configuration result in a command line interface; wherein the target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol.
[0048] In a fourth aspect, the present application discloses a configuration device for a disk array card, which is applied to a disk array card, and the device comprises:
[0049] A submission command acquisition module, used to acquire a target submission command sent by a preset command line interface tool; wherein the target submission command is a command obtained by the command line interface tool repackaging and constructing the first target area of the first original management command in the NVMe protocol using configuration parameter information, and the configuration parameter information is information obtained by the command line interface tool parsing the acquired configuration command that meets the preset command line format;
[0050] A configuration module, used to perform corresponding configuration operations on target attributes of a target business object based on the target submission command;
[0051] A completion command sending module is used to send a target completion command constructed based on the NVMe protocol to the command line interface tool after completing the configuration operation, so that the command line interface tool displays the attribute configuration result in the command line interface; wherein, the target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol.
[0052] In a fifth aspect, the present application discloses an electronic device, including:
[0053] Memory, used to store computer programs;
[0054] The processor is used to execute the computer program to implement the steps of the above-disclosed disk array card configuration method.
[0055] In a sixth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the disk array card configuration method disclosed above are implemented.
[0056] In a seventh aspect, the present application discloses a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the aforementioned method for configuring a disk array card.
[0057] It can be seen that the present application parses the obtained configuration command that meets the preset command line format through a preset command line interface tool to obtain configuration parameter information; uses the configuration parameter information to repackage the first target area of the first original management command in the NVMe protocol to construct a target submission command; sends the target submission command to the disk array card, so that the disk array card performs corresponding configuration operations on the target attributes of the target business object based on the target submission command; obtains the target completion command constructed based on the NVMe protocol sent by the disk array card after completing the configuration operation, and displays the attribute configuration result in the command line interface; wherein the target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol.
[0058] Beneficial effects: A preset command line format is set in the present application. After the command line interface tool obtains the configuration command, if it satisfies the preset command line format, the configuration command is parsed to obtain the configuration parameter information. Further, the command line interface tool needs to use the configuration parameter information to construct a target submission command, specifically to re-encapsulate the first target area of the first original management command in the NVMe protocol using the configuration parameter information, that is, the present application fills the configuration parameter information into the first target area of the first original management command to realize the customization of the first original management command, and the present application adopts the mainstream NVMe protocol transmission in the storage field, the command transmission rate is faster, the NVME driver has been integrated in the mainstream operating system kernel, and it is more practical. The command line interface tool sends the constructed target submission command to the disk array card, so that the disk array card performs corresponding configuration operations on the target attributes of the target business object based on the target submission command. That is, the present application realizes the configuration management of the disk array card by constructing a target submission command through the command line interface tool to configure the attributes of a business object in the disk array card. In addition, after completing the configuration operation, the disk array card will send a target completion command based on the NVMe protocol. The target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol. After receiving the target completion command, the command line interface tool displays the attribute configuration result in the command line interface, thereby realizing the complete disk array card configuration process. In this way, the present application realizes the configuration management of the disk array card using the original management command of the NVME protocol under the command line interface tool. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0060] Figure 1 This is an architectural diagram of a configuration method applicable to a disk array card disclosed in this application;
[0061] Figure 2 A flow chart of a configuration method of a disk array card disclosed in this application;
[0062] Figure 3 A flowchart of a specific method for configuring a disk array card disclosed in this application;
[0063] Figure 4 A flow chart of another method for configuring a disk array card disclosed in this application;
[0064] Figure 5 A schematic diagram of the configuration device structure of a disk array card disclosed in this application;
[0065] Figure 6 This is a schematic diagram of the structure of another configuration device of a disk array card disclosed in this application;
[0066] Figure 7 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0067] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0068] The RAID card CLI configuration management tool is a configuration management software developed on the host's operating system. Users can configure and manage the RAID card by entering specified commands. Due to the complexity of the RAID card configuration management functions, the mainstream RAID card CLI configuration management tools on the market have developed nearly hundreds of CLI commands. Since there is no unified standard protocol in the industry to define RAID card configuration tools, most command definitions require the expansion of the manufacturer-defined communication protocol used by the upper-layer business between the host and the RAID card. The commands developed in this way are numerous and have poor scalability. New CLI commands need to be developed for the addition or modification of RAID card functions, and the upper-layer business communication between the host and the RAID card needs to be expanded to use the manufacturer-defined command protocol to achieve it. Due to the differences in the management commands and upper-layer business communication protocols customized by each manufacturer, the communication interface between the RAID card controller and the host configuration management tool is incompatible with each other.
[0069] To this end, the embodiments of the present application disclose a disk array card configuration method, device, equipment, medium and product, which can provide an efficient and universal RAID card configuration method to quickly and accurately configure the RAID card.
[0070] Figure 1 This is an architecture diagram of a configuration method for a disk array card disclosed in an embodiment of the present application, wherein the configuration command issued by the user on the command line interface is the command issued by the host, and the RAID card operation can be abstracted as the command line interface tool in the host and the RAID controller interacting with the JSON data information of the operation object to read and set the attribute value of the RAID object and complete the RAID management operation. Each attribute operation interaction is called a RAID management command operation.
[0071] On the host side, after the command line interface tool is successfully installed on the operating system, the user uses the defined command line format to issue configuration commands, which are then parsed and encapsulated into custom commands in the corresponding NVMe Admin command set by the command line interface tool, namely the target submission command described below, and then the NVME driver provided by the operating system is called to send the command to the RAID card through the PCIE bus.
[0072] On the RAID card side, after the chip firmware receives the command from the host, it parses the command according to the protocol, executes the command and returns a completion command, which is finally returned to the host through the bus. The host driver returns the returned completion command to the command line interface tool, and the command line interface tool displays the configuration results on the command line interface.
[0073] See also Figure 2 As shown, the embodiment of the present application discloses a method for configuring a disk array card, which is applied to a preset command line interface tool, and the method includes:
[0074] Step S11: parsing the acquired configuration command that meets the preset command line format to obtain configuration parameter information.
[0075] In this embodiment, the command line interface tool predefines a preset command line format, and after obtaining the configuration command, if it meets the preset command line format, the command line interface tool parses the configuration command to obtain configuration parameter information. Specifically, the command line interface tool is a RAID-CLI configuration tool.
[0076] Specifically, the preset command line format includes a first part for defining the function parameters of the command, a second part for defining the operation object parameters of the command, and a third part for defining the attribute configuration parameters of the command. In this embodiment, the command line format of RAID-CLI is defined as follows:
[0077] raidcli <command> <[object]> <args>];
[0078] It should be pointed out that the raidcli command line format mainly consists of three parts: command part <command> , object part <[object]>, parameter part [ <args>].
[0079] The definitions of each part are as follows:
[0080] 1. Command part <command> :verb + [object | property]. It is used to define the function parameters of the command, that is, the main function to be performed, which is identified by a combination of a verb + object / property.
[0081] Wherein, the function parameter is any one of the query function parameter and the configuration function parameter; wherein, the query function parameter corresponds to the query command, and the configuration function parameter corresponds to any one of the add command, modify command and delete command. It can be understood that in the RAID-CLI configuration tool, commands are mainly divided into query commands and configuration commands, corresponding to the query function and configuration function, namely, the functions of adding, modifying, deleting and querying the RAID card. Wherein, the definition of verb is shown in Table 1:
[0082] Table 1 Definition of verb
[0083]
[0084] In addition to the main functions mentioned in Table 1, its functions can also be expanded, such as "start: start an operation", "stop: stop an operation", "suspend: pause an operation", "resume: resume a suspended operation", "expand: expand the size of the volume", "import: import external configuration to disk", etc.
[0085] 2. Object part <[object]>: / kx; k represents the abbreviation of the object, and x represents the identification value of the operation object.
[0086] First of all, it should be pointed out that the business objects in the disk array card include but are not limited to controllers, arrays, physical disks and logical volumes; accordingly, the operation object parameters correspond to any object in the controller, array, physical disk and logical volume, and the attribute configuration parameters correspond to the attribute values of any business object in the disk array card.
[0087] It can be understood that in the RAID card system, according to the division of the operation business objects in the RAID card, four business objects are defined, namely, controller, array, logical volume and physical disk. The ID (identification number) of each business object type is shown in Table 2:
[0088] Table 2 Business object ID classification
[0089]
[0090] Furthermore, in the RAID card system, the characteristics and status of each object can be represented by a series of attributes, so a unique ID is also defined for the attributes of each object. Among them, for the controller, its attributes may include version number, serial number, controller type, number of controllers, etc.; for the physical disk, its attributes may include disk identification, disk type, disk status, disk capacity, etc.; for the array, its attributes may include identification, level, name, status, etc.; for the logical volume, its attributes may include identification, name, capacity, status, etc.; as shown in Table 3:
[0091] Table 3 Classification of object attribute IDs
[0092]
[0093] The RAID card CLI supports the command descriptions of the objects in Table 4 to define the business objects operated by the command. If there is no object, it represents a system command, including system help commands, query RAID card version commands, and system show commands.
[0094] Table 4 Command description
[0095]
[0096] 3. Parameters <args>]:[--key= <value> | -k <value>]; When describing a parameter, [] means that the parameter is optional, --key= <value>Indicates that the value of the parameter key is the full description of value, -k <value>The value of the parameter key is an abbreviation of value. When entering command parameters, both formats are supported. The parameter key of the command can correspond to the attributes of the four business objects in the RAID card. When the NVME custom command data area is encapsulated, the key can directly correspond to the ID of the object attribute. Therefore, when configuring one or some attributes, the attributes of these objects can be carried as command parameters for configuration. The host manages and controls the RAID system by reading or setting the attribute values of the object. Therefore, the configuration management function of the RAID card is the configuration management function of the above four object attributes.
[0097] Step S12: Repackage the first target area of the first original management command in the NVMe protocol using the configuration parameter information to construct a target submission command.
[0098] In this embodiment, the command line interface tool needs to use configuration parameter information to construct a target submission command, specifically, use the configuration parameter information to re-encapsulate the first target area of the first original management command in the NVMe (Non-Volatile Memory express, non-volatile memory host controller interface specification) protocol, that is, this application fills the configuration parameter information into the first target area of the first original management command to achieve customization of the first original management command, and this application adopts the mainstream NVMe protocol transmission in the storage field, the command transmission rate is faster, the NVME driver has been integrated in the mainstream operating system kernel, and it is more practical.
[0099] Step S13: sending the target submission command to the disk array card, so that the disk array card performs corresponding configuration operations on the target attributes of the target business object based on the target submission command.
[0100] In this embodiment, the command line interface tool calls the driver interface provided by the host operating system to send the constructed target submission command to the disk array card, so that the disk array card performs corresponding configuration operations on the target attributes of the target business object based on the target submission command. Specifically, the RAID-CLI configuration tool issues commands to manage the configuration of the RAID card, that is, the host completes the configuration management and control functions of the RAID card system by reading or setting the attribute value of the object. That is, the present application realizes the configuration management of the disk array card by constructing a target submission command through the command line interface tool to configure the attributes of a business object in the disk array card.
[0101] Step S14: Obtain a target completion command constructed based on the NVMe protocol and sent by the disk array card after completing the configuration operation, and display the attribute configuration result in the command line interface; wherein the target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol.
[0102] In this embodiment, after completing the configuration operation, the disk array card will send a target completion command based on the NVMe protocol. The target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol. After receiving the target completion command, the command line interface tool displays the attribute configuration result in the command line interface, thereby realizing a complete disk array card configuration process. In this way, the present application realizes the configuration management of the disk array card using the original management command of the NVME protocol under the command line interface tool.
[0103] It can be seen that the present application parses the obtained configuration command that meets the preset command line format through a preset command line interface tool to obtain configuration parameter information; uses the configuration parameter information to repackage the first target area of the first original management command in the NVMe protocol to construct a target submission command; sends the target submission command to the disk array card, so that the disk array card performs corresponding configuration operations on the target attributes of the target business object based on the target submission command; obtains the target completion command constructed based on the NVMe protocol sent by the disk array card after completing the configuration operation, and displays the attribute configuration result in the command line interface; wherein the target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol.
[0104] Beneficial effects: A preset command line format is set in the present application. After the command line interface tool obtains the configuration command, if it satisfies the preset command line format, the configuration command is parsed to obtain the configuration parameter information. Further, the command line interface tool needs to use the configuration parameter information to construct a target submission command, specifically to re-encapsulate the first target area of the first original management command in the NVMe protocol using the configuration parameter information, that is, the present application fills the configuration parameter information into the first target area of the first original management command to realize the customization of the first original management command, and the present application adopts the mainstream NVMe protocol transmission in the storage field, the command transmission rate is faster, the NVME driver has been integrated in the mainstream operating system kernel, and it is more practical. The command line interface tool sends the constructed target submission command to the disk array card, so that the disk array card performs corresponding configuration operations on the target attributes of the target business object based on the target submission command. That is, the present application realizes the configuration management of the disk array card by constructing a target submission command through the command line interface tool to configure the attributes of a business object in the disk array card. In addition, after completing the configuration operation, the disk array card will send a target completion command based on the NVMe protocol. The target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol. After receiving the target completion command, the command line interface tool displays the attribute configuration result in the command line interface, thereby realizing the complete disk array card configuration process. In this way, the present application realizes the configuration management of the disk array card using the original management command of the NVME protocol under the command line interface tool.
[0105] See also Figure 3 As shown, the embodiment of the present application discloses a specific method for configuring a disk array card. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, it includes:
[0106] Step S21: Obtain the configuration command issued by the user through the command line interface. If the configuration command meets the preset command line format, parse the configuration command to obtain target function parameters, target operation object parameters and target attribute configuration parameters.
[0107] In this embodiment, the user issues a configuration command in the command line interface. If the configuration command meets the preset command line format, the command line interface tool parses the configuration command to obtain target function parameters, target operation object parameters and target attribute configuration parameters.
[0108] Step S22: Use the target function parameters to set the operation code field of the submission queue entry, write the target function parameters and the target operation object parameters into the target control area of the submission queue entry, and write the target attribute configuration parameters into the target data area of the submission queue entry to construct a target submission command.
[0109] In this embodiment, it should be pointed out that the upper-layer service communication of the RAID card adopts the management commands customized by the NVMe protocol. The RAID card NVMe management commands belong to the manufacturer-defined command type in the NVMe Admin command set. These commands can only be submitted to the NVMe Admin queue. The NVMe standard defines the SQE (Submission Queue Entry) structure and CQE (Completion Queue Entry) structure of the basic manufacturer-defined commands.
[0110] The first original management command mentioned above is a submission queue entry in the Admin queue, and the first target area specifically includes an operation code field, a target control area, and a target data area.
[0111] Correspondingly, when the first target area of the first original management command in the NVMe protocol is repackaged using configuration parameter information such as target function parameters, target operation object parameters and target attribute configuration parameters, the operation code field of the submission queue entry is set using the target function parameters, the target function parameters and the target operation object parameters are written into the target control area of the submission queue entry, and the target attribute configuration parameters are written into the target data area of the submission queue entry to construct the target submission command.
[0112] The target control area is specifically the CDW10 field to the CDW15 field in the submission queue entry structure, and the target data area is specifically the data pointer field in the submission queue entry structure. CDW (Command Descriptor Word) is a command descriptor word.
[0113] The structure of the submission queue entry is shown in Table 5:
[0114] Table 5 Structure of a submission queue entry
[0115]
[0116] From the above content, we can know that the principles of building custom commands are:
[0117] The Operation Code (OPC) field defines the classification identifier of the extended command, which is used to indicate whether it is a query command or a configuration command. Query commands correspond to query commands, and configuration commands correspond to add, delete, and modify commands.
[0118] CDW10 to CDW15 define the control area of the command, define the operation object of the command, the operation command type, the data area size and other parameters. The operation object includes various business objects defined by the Raid card, and the operation type includes actions such as adding, deleting, modifying and checking the Raid card. CDW10 defines the size of the data cache area for storing data, CDW12 defines the operation object and operation type of the command, and CDW13 defines the identifier of the operation object of the command. In other words, the control area is used to encapsulate the command part and the operation object part of the CLI command.
[0119] DPTR defines the data area of the object. The operation attributes of the operation or query object will be encapsulated in the area to facilitate the transmission of object attribute information. In other words, the data area is used to encapsulate the parameter part of the CLI command.
[0120] Specifically, the above-mentioned writing of the target function parameter and the target operation object parameter into the target control area of the submission queue entry includes: determining the space size of the data buffer area for storing the attribute configuration result applied in advance, and determining the target identification number corresponding to the target operation object parameter according to the correspondence relationship between the operation object and the identification number established in advance; writing the space size into the CDW10 field, writing the target function parameter and the target operation object parameter into the CDW12 field, and writing the target identification number into the CDW13 field. That is, the present application writes the space size of the data buffer area for storing the attribute configuration result applied in advance into the CDW10 field, writes the target function parameter and the target operation object parameter into the CDW12 field, and writes the target identification number corresponding to the target operation object parameter determined according to the correspondence relationship between the operation object and the identification number established in advance into the CDW13 field, thereby completing the construction of the target submission command.
[0121] Furthermore, the writing of the target attribute configuration parameters into the target data area of the submission queue entry includes: encapsulating the target attribute configuration parameters in the target data area of the submission queue entry based on the JSON data format. It should be noted that the data information encapsulation format in the PRPs adopted in the DPTR in the NVMe custom command adopts the JSON mode encapsulation, so the attributes of the object are represented in the JSON data format in the data structure, and each attribute of each object defines a unique ID as the key, and the value of the attribute is the value corresponding to the key.
[0122] Step S23: sending the target submission command to the disk array card, so that the disk array card performs corresponding configuration operations on the target attributes of the target business object based on the target submission command.
[0123] Step S24: obtaining a target completion command constructed based on the NVMe protocol and sent by the disk array card after completing the configuration operation, and displaying the attribute configuration result in a command line interface; wherein the target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol.
[0124] In this embodiment, the second original management command is a completion queue entry in the Admin queue, and the second target area includes a status field and a CDW0 field.
[0125] Therefore, the process of repackaging the second target area of the second original management command in the NVMe protocol includes: writing the execution status information of the target submission command into the status field; wherein the execution status information includes first status information for characterizing successful execution and second status information for characterizing failed execution; and writing the data length of the attribute configuration result obtained by the disk array card after completing the configuration operation into the CDW0 field.
[0126] The structure of the completion queue entry is shown in Table 6:
[0127] Table 6 Completion Queue Entry Structure
[0128]
[0129] Therefore, the execution status information of the target submission command is written into the command result status field, that is, whether the configuration command is executed successfully or failed, and the data length of the attribute configuration result is written into the CDW0 field.
[0130] Furthermore, the above method also includes: using the data cache to receive the attribute configuration result sent by the disk array card after performing the corresponding configuration operation on the target attribute of the target business object based on the target submission command; correspondingly, the attribute configuration result is displayed in the command line interface, including: displaying the attribute configuration result read from the data cache based on the target completion command in the command line interface. That is, the command line interface tool will use the pre-applied data cache to receive the attribute configuration result transmitted by the disk array card. When receiving the target completion command based on the NVMe protocol sent by the disk array card after completing the configuration operation, if it is necessary to display the attribute configuration result in the command line interface, the attribute configuration result of the corresponding length is read from the data cache based on the data length in the target completion command, and displayed in the command line interface.
[0131] The disk array card encapsulates the attribute configuration result based on the JSON data format, and writes the encapsulated attribute configuration result into the data buffer area. That is, the disk array card constructs the returned attribute configuration result into a JSON data structure, writes it into the data buffer area pre-applied by the command line interface tool, and writes the execution status of the command into the CQE.
[0132] Specifically, the process in which the disk array card performs a corresponding configuration operation on the target attribute of the target business object based on the target submission command includes: parsing the target control area by the disk array card to determine the target business object of this operation based on the target operation object parameter, and determining the operation command of this operation based on the target function parameter; wherein the operation command is any one of a query command, an add command, a modify command and a delete command; parsing the target data area by the disk array card to determine the target attribute of this configuration based on the target attribute configuration parameter, so as to perform the configuration operation corresponding to the operation command on the target attribute of the target business object. That is, after the disk array card obtains the target submission command, it parses the target control area to determine the target business object of this operation based on the target operation object parameter, and determines the operation command of this operation based on the target function parameter, that is, determines whether the operation command is a query command, an add command, a modify command and a delete command, and further, it is necessary to parse the target data area to determine the target attribute of this configuration based on the target attribute configuration parameter, so as to perform the configuration operation corresponding to the operation command on the target attribute of the target business object.
[0133] For more specific processing procedures of the above steps S23 and S24, reference may be made to the corresponding contents disclosed in the above embodiments, which will not be described in detail here.
[0134] It can be seen that this application forms a set of basic principles for command naming based on the encapsulation type format of the NVMe Admin custom command and the RAID card configuration management. The commands are divided into a control area and a data area. The control area encapsulates the operation object, operation type and object identification parameters; the data area encapsulates the attribute information of the configuration or query object. The data area uses the object attribute template method to encapsulate and parse the data in JSON format, making the NVME command definition more extensible. In this way, this application only needs to expand the original management command of NVMe Admin, and implement the configuration of the RAID card by defining an attribute or attribute combination belonging to the operation object. The object attribute is added or modified. The NVMe Admin custom command only needs to add or modify the attribute in the JSON data encapsulated in the DPTR data area. The NVME protocol does not need to be expanded or modified, and the protocol is highly compatible and extensible. Moreover, after the traditional hundreds of commands are defined and implemented through this solution, the number of commands is reduced by about 10 times, and the newly added configuration features of the RAID card are equivalent to the newly added object attributes of the system. The CLI command only needs to expand some parameters to achieve strong extensibility.
[0135] See also Figure 4 As shown, the embodiment of the present application discloses a configuration method of a disk array card, which is applied to the disk array card. The method includes:
[0136] Step S31: Obtain a target submission command sent by a preset command line interface tool; wherein the target submission command is a command obtained by the command line interface tool repackaging and constructing the first target area of the first original management command in the NVMe protocol using configuration parameter information, and the configuration parameter information is information obtained by the command line interface tool after parsing the obtained configuration command that meets the preset command line format.
[0137] Step S32: Based on the target submission command, perform corresponding configuration operations on the target attributes of the target business object, and after completing the configuration operation, send a target completion command constructed based on the NVMe protocol to the command line interface tool, so that the command line interface tool can display the attribute configuration results in the command line interface; wherein, the target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol.
[0138] It can be seen that in this application, the disk array card obtains the target submission command sent by the preset command line interface tool, which is a command obtained by the command line interface tool using the configuration parameter information to re-encapsulate and construct the first target area of the first original management command in the NVMe protocol. That is, the command line interface tool fills the configuration parameter information into the first target area of the first original management command to realize the customization of the first original management command, and this application adopts the mainstream NVMe protocol transmission in the storage field, the command transmission rate is faster, and the NVME driver has been integrated in the mainstream operating system kernel, which is more practical. The configuration parameter information is the information obtained by the command line interface tool after parsing the configuration command that meets the preset command line format, that is, the preset command line format is set in this application, and after the command line interface tool obtains the configuration command, if it meets the preset command line format, the configuration command is parsed to obtain the configuration parameter information. The disk array card performs corresponding configuration operations on the target attributes of the target business object based on the obtained target submission command, that is, this application is to realize the configuration management of the disk array card by constructing a target submission command through the command line interface tool to configure the attributes of a business object in the disk array card. In addition, after completing the configuration operation, the disk array card will send a target completion command based on the NVMe protocol. The target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol. After receiving the target completion command, the command line interface tool displays the attribute configuration result in the command line interface, thereby realizing the complete disk array card configuration process. In this way, the present application realizes the configuration management of the disk array card using the original management command of the NVME protocol under the command line interface tool.
[0139] See also Figure 5 As shown, the embodiment of the present application discloses a configuration device for a disk array card, which is applied to a preset command line interface tool, and the device includes:
[0140] Parsing module 01, used to parse the acquired configuration command that meets the preset command line format to obtain configuration parameter information;
[0141] A command construction module 02, configured to repackage the first target area of the first original management command in the NVMe protocol using the configuration parameter information to construct a target submission command;
[0142] A submission command sending module 03 is used to send the target submission command to the disk array card, so that the disk array card performs corresponding configuration operations on the target attributes of the target business object based on the target submission command;
[0143] The completion command acquisition module 04 is used to obtain the target completion command constructed based on the NVMe protocol sent by the disk array card after completing the configuration operation, and display the attribute configuration result in the command line interface; wherein the target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol.
[0144] It can be seen that the present application parses the obtained configuration command that meets the preset command line format through a preset command line interface tool to obtain configuration parameter information; uses the configuration parameter information to repackage the first target area of the first original management command in the NVMe protocol to construct a target submission command; sends the target submission command to the disk array card, so that the disk array card performs corresponding configuration operations on the target attributes of the target business object based on the target submission command; obtains the target completion command constructed based on the NVMe protocol sent by the disk array card after completing the configuration operation, and displays the attribute configuration result in the command line interface; wherein the target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol.
[0145] Beneficial effects: A preset command line format is set in the present application. After the command line interface tool obtains the configuration command, if it satisfies the preset command line format, the configuration command is parsed to obtain the configuration parameter information. Further, the command line interface tool needs to use the configuration parameter information to construct a target submission command, specifically to re-encapsulate the first target area of the first original management command in the NVMe protocol using the configuration parameter information, that is, the present application fills the configuration parameter information into the first target area of the first original management command to realize the customization of the first original management command, and the present application adopts the mainstream NVMe protocol transmission in the storage field, the command transmission rate is faster, the NVME driver has been integrated in the mainstream operating system kernel, and it is more practical. The command line interface tool sends the constructed target submission command to the disk array card, so that the disk array card performs corresponding configuration operations on the target attributes of the target business object based on the target submission command. That is, the present application realizes the configuration management of the disk array card by constructing a target submission command through the command line interface tool to configure the attributes of a business object in the disk array card. In addition, after completing the configuration operation, the disk array card will send a target completion command based on the NVMe protocol. The target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol. After receiving the target completion command, the command line interface tool displays the attribute configuration result in the command line interface, thereby realizing the complete disk array card configuration process. In this way, the present application realizes the configuration management of the disk array card using the original management command of the NVME protocol under the command line interface tool.
[0146] Since the embodiments of the device part correspond to the embodiments of the method part, the embodiments of the device part refer to the description of the embodiments of the method part, which will not be described here. Moreover, the invention has the same beneficial effects as the configuration method of the disk array card mentioned above.
[0147] See also Figure 6 As shown, the embodiment of the present application discloses a configuration device for a disk array card, which is applied to a disk array card, and the device includes:
[0148] A submission command acquisition module 11 is used to acquire a target submission command sent by a preset command line interface tool; wherein the target submission command is a command obtained by the command line interface tool repackaging and constructing the first target area of the first original management command in the NVMe protocol using configuration parameter information, and the configuration parameter information is information obtained by the command line interface tool after parsing the acquired configuration command that meets the preset command line format;
[0149] A configuration module 12, configured to perform corresponding configuration operations on target attributes of a target business object based on the target submission command;
[0150] The completion command sending module 13 is used to send a target completion command constructed based on the NVMe protocol to the command line interface tool after completing the configuration operation, so that the command line interface tool displays the attribute configuration result in the command line interface; wherein, the target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol.
[0151] It can be seen that in this application, the disk array card obtains the target submission command sent by the preset command line interface tool, which is a command obtained by the command line interface tool using the configuration parameter information to re-encapsulate and construct the first target area of the first original management command in the NVMe protocol. That is, the command line interface tool fills the configuration parameter information into the first target area of the first original management command to realize the customization of the first original management command, and this application adopts the mainstream NVMe protocol transmission in the storage field, the command transmission rate is faster, and the NVME driver has been integrated in the mainstream operating system kernel, which is more practical. The configuration parameter information is the information obtained by the command line interface tool after parsing the configuration command that meets the preset command line format, that is, the preset command line format is set in this application, and after the command line interface tool obtains the configuration command, if it meets the preset command line format, the configuration command is parsed to obtain the configuration parameter information. The disk array card performs corresponding configuration operations on the target attributes of the target business object based on the obtained target submission command, that is, this application is to realize the configuration management of the disk array card by constructing a target submission command through the command line interface tool to configure the attributes of a business object in the disk array card. In addition, after completing the configuration operation, the disk array card will send a target completion command based on the NVMe protocol. The target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol. After receiving the target completion command, the command line interface tool displays the attribute configuration result in the command line interface, thereby realizing the complete disk array card configuration process. In this way, the present application realizes the configuration management of the disk array card using the original management command of the NVME protocol under the command line interface tool.
[0152] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Specifically, it may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the configuration method of the disk array card executed by the electronic device disclosed in any of the aforementioned embodiments.
[0153] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0154] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0155] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222 and data 223, etc. The storage method can be temporary storage or permanent storage.
[0156] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, and it can be Windows, Unix, Linux, etc. In addition to including a computer program that can be used to complete the configuration method of the disk array card executed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can also further include a computer program that can be used to complete other specific tasks. In addition to data transmitted from an external device received by the electronic device, the data 223 can also include data collected by its own input and output interface 25.
[0157] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the steps of the disk array card configuration method disclosed in any of the aforementioned embodiments are implemented.
[0158] Furthermore, an embodiment of the present application also discloses a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the disk array card configuration method disclosed in any of the aforementioned embodiments.
[0159] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0160] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0161] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in 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 removable disk, a compact disc read-only memory (CD-ROM), or any other form of storage medium known in the art.
[0162] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0163] The configuration method, device, equipment, medium and product of a disk array card provided by the present invention are introduced in detail above. The principle and implementation mode of the present invention are described in detail by using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be understood as limiting the present invention.< / value> < / value> < / value> < / value> < / args> < / args> < / args>
Claims
1. A method for configuring a disk array card, characterized in that: Applied to a preset command line interface tool, the method comprises: Parsing the acquired configuration command that meets the preset command line format to obtain configuration parameter information; Re-encapsulating the first target area of the first original management command in the NVMe protocol using the configuration parameter information to construct a target submission command; Sending the target submission command to the disk array card, so that the disk array card performs corresponding configuration operations on the target attributes of the target business object based on the target submission command; Obtain a target completion command based on the NVMe protocol sent by the disk array card after completing the configuration operation, and display the attribute configuration result in a command line interface; wherein the target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol.
2. The method for configuring a disk array card according to claim 1, characterized in that: The preset command line format includes a first part for defining function parameters of the command, a second part for defining operation object parameters of the command, and a third part for defining attribute configuration parameters of the command.
3. The method for configuring a disk array card according to claim 2, wherein: The function parameter is any one of a query function parameter and a configuration function parameter; wherein the query function parameter corresponds to a query command, and the configuration function parameter corresponds to any one of an add command, a modify command and a delete command.
4. The method for configuring a disk array card according to claim 2, wherein: The business objects in the disk array card include controller, array, physical disk and logical volume; Correspondingly, the operation object parameter corresponds to any one of the objects in the controller, the array, the physical disk and the logical volume, and the attribute configuration parameter corresponds to the attribute value of any one of the business objects in the disk array card.
5. The method for configuring a disk array card according to claim 2, wherein: The step of parsing the acquired configuration command that meets the preset command line format to obtain configuration parameter information includes: Obtaining configuration commands issued by the user through the command line interface; If the configuration command satisfies the preset command line format, the configuration command is parsed to obtain target function parameters, target operation object parameters and target attribute configuration parameters.
6. The method for configuring a disk array card according to claim 5, characterized in that: The first original management command is a submission queue entry in the Admin queue, and the first target area includes an operation code field, a target control area, and a target data area; Correspondingly, the step of repackaging the first target area of the first original management command in the NVMe protocol by using the configuration parameter information to construct a target submission command includes: setting the opcode field of the submission queue entry using the target function parameter; The target function parameter and the target operation object parameter are written into the target control area of the submission queue entry, and the target attribute configuration parameter is written into the target data area of the submission queue entry.
7. The method for configuring a disk array card according to claim 6, characterized in that: The target control area is the CDW10 field to the CDW15 field in the submission queue entry structure, and the target data area is the data pointer field in the submission queue entry structure.
8. The method for configuring a disk array card according to claim 7, characterized in that: The step of writing the target function parameter and the target operation object parameter into the target control area of the submission queue entry includes: Determine the space size of the data buffer area applied in advance for storing the attribute configuration result, and determine the target identification number corresponding to the target operation object parameter according to the pre-established correspondence between the operation object and the identification number; The space size is written into the CDW10 field, the target function parameter and the target operation object parameter are written into the CDW12 field, and the target identification number is written into the CDW13 field.
9. The method for configuring a disk array card according to claim 8, characterized in that: Also includes: Using the data buffer area to receive the attribute configuration result sent by the disk array card after performing a corresponding configuration operation on the target attribute of the target business object based on the target submission command; Accordingly, the displaying of the attribute configuration result in the command line interface includes: The attribute configuration result read from the data buffer area based on the target completion command is displayed in a command line interface.
10. The method for configuring a disk array card according to claim 9, characterized in that: The disk array card encapsulates the attribute configuration result based on the JSON data format, and writes the encapsulated attribute configuration result into the data buffer area.
11. The method for configuring a disk array card according to claim 6, characterized in that: The process in which the disk array card performs a corresponding configuration operation on a target attribute of a target business object based on the target submission command includes: The target control area is parsed by the disk array card to determine the target business object of this operation based on the target operation object parameter, and the operation command of this operation is determined based on the target function parameter; wherein the operation command is any one of a query command, an add command, a modify command and a delete command; The target data area is parsed by the disk array card to determine the target attribute of this configuration based on the target attribute configuration parameter, so as to perform a configuration operation corresponding to the operation command on the target attribute of the target business object.
12. The method for configuring a disk array card according to claim 6, characterized in that: The step of writing the target attribute configuration parameter into the target data area of the submission queue entry comprises: The target attribute configuration parameters are encapsulated in the target data area of the submission queue entry based on the JSON data format.
13. The method for configuring a disk array card according to claim 1, characterized in that: The second original management command is a completion queue entry in the Admin queue, and the second target area includes a status field and a CDW0 field.
14. The method for configuring a disk array card according to claim 13, characterized in that: The process of repackaging the second target area of the second original management command in the NVMe protocol includes: Writing the execution status information of the target submission command into the status field; wherein the execution status information includes first status information for indicating successful execution and second status information for indicating failed execution; The data length of the attribute configuration result obtained by the disk array card after completing the configuration operation is written into the CDW0 field.
15. A method for configuring a disk array card, characterized in that: Applied to a disk array card, the method comprises: Obtain a target submission command sent by a preset command line interface tool; wherein the target submission command is a command obtained by the command line interface tool repackaging and constructing the first target area of the first original management command in the NVMe protocol using configuration parameter information, and the configuration parameter information is information obtained by the command line interface tool after parsing the obtained configuration command that meets the preset command line format; Based on the target submission command, a corresponding configuration operation is performed on the target attribute of the target business object, and after completing the configuration operation, a target completion command constructed based on the NVMe protocol is sent to the command line interface tool, so that the command line interface tool displays the attribute configuration result in the command line interface; wherein, the target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol.
16. A configuration device for a disk array card, characterized in that: Applied to a preset command line interface tool, the device comprises: A parsing module, used to parse the acquired configuration command that meets the preset command line format to obtain configuration parameter information; A command construction module, used to repackage the first target area of the first original management command in the NVMe protocol by using the configuration parameter information to construct a target submission command; A submission command sending module, used for sending the target submission command to the disk array card, so that the disk array card performs corresponding configuration operations on the target attributes of the target business object based on the target submission command; A completion command acquisition module is used to obtain a target completion command constructed based on the NVMe protocol and sent by the disk array card after completing the configuration operation, and display the attribute configuration result in a command line interface; wherein the target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol.
17. A configuration device for a disk array card, characterized in that: Applied to a disk array card, the device comprises: A submission command acquisition module, used to acquire a target submission command sent by a preset command line interface tool; wherein the target submission command is a command obtained by the command line interface tool repackaging and constructing the first target area of the first original management command in the NVMe protocol using configuration parameter information, and the configuration parameter information is information obtained by the command line interface tool parsing the acquired configuration command that meets the preset command line format; A configuration module, used to perform corresponding configuration operations on target attributes of a target business object based on the target submission command; A completion command sending module is used to send a target completion command constructed based on the NVMe protocol to the command line interface tool after completing the configuration operation, so that the command line interface tool displays the attribute configuration result in the command line interface; wherein, the target completion command is a command obtained by repackaging the second target area of the second original management command in the NVMe protocol.
18. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the steps of the disk array card configuration method according to any one of claims 1 to 15.
19. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the steps of the disk array card configuration method as described in any one of claims 1 to 15 are implemented.
20. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the disk array card configuration method according to any one of claims 1 to 15 are implemented.
Citation Information
Cited By
Control data interaction method and device, computer program product, equipment and medium
CN120029963A
