Storage array deployment method, device, storage system, electronic and computer equipment
Through the automated storage array deployment method, non-system disks are parsed and cleaned, and set to pass-through mode, which solves the problems of low storage array resource utilization and complex deployment, and improves efficiency and reliability.
Patent Information
- Application Number
- CN202411010708.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-26
AI Technical Summary
In storage arrays such as RAID, when the hard disk is set to array mode, storage resource utilization is low, and the deployment process is complicated, which is prone to abnormal deployment and low efficiency.
By parsing the array card identification of the storage array card, querying the information of each storage array card, determining and clearing non-system disks, and setting them to pass-through mode, the system can automate storage array deployment and improve deployment efficiency and resource utilization.
It improves the efficiency and reliability of storage array deployment, enhances the utilization of storage resources, avoids accidental cleaning of system disks, and ensures system stability.
Smart Images

Figure CN118535103B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a storage array deployment method, device, storage system, electronic and computer equipment. Background Art
[0002] In storage arrays such as RAID (Redundant Arrays of Independent Disks), in order to ensure the security of the data stored therein, when sub-units such as hard disks are set to array mode, there is a problem of reduced storage resources displayed to the outside, which easily leads to low storage resource utilization of the storage array. For example, when two 450G (gigabyte) hard disks are set to array mode, they only appear to the outside as a 450G storage sub-unit.
[0003] Therefore, business personnel are usually required to perform adaptive deployment of storage arrays. However, due to the high requirements on professional skills and experience of business personnel, and the complex and cumbersome operations during the deployment process, deployment anomalies and / or low deployment efficiency are prone to occur. Summary of the invention
[0004] Based on this, it is necessary to provide a storage array deployment method, a storage array deployment device, a storage system, an electronic device and a computer device to address the above technical problems, which can improve the storage deployment efficiency and help improve the storage resource utilization while ensuring reliability.
[0005] On the one hand, a storage array deployment method is provided, the storage array deployment method comprising: parsing an array card identifier of a storage array card associated with a system disk as a target identifier; querying array card information of each storage array card of the storage array, and filtering a storage array card carrying the target identifier from the array card information as a first storage array card; respectively determining whether a logical disk associated with the first storage array card is a system disk; in response to the logical disk associated with the first storage array card being a non-system disk, cleaning the non-system disk and setting it to a pass-through mode.
[0006] In one embodiment of the present application, cleaning non-system disks and setting them to pass-through mode includes: executing a first cleaning instruction to clean non-system disks; in response to all non-system disks associated with the first storage array card having completed cleaning, setting the first storage array card to hybrid mode; wherein the hybrid mode allows non-system disks to be in pass-through mode and system disks to be in array mode.
[0007] In one embodiment of the present application, executing the first cleaning instruction to clean the non-system disk includes: obtaining the array card category of the first storage array card as the target category; executing the first cleaning instruction matching the target category to clean the non-system disk of the first storage array card.
[0008] In one embodiment of the present application, the array card category includes a first category and a second category; executing a first cleanup instruction matching the target category includes: in response to the target category being the first category, executing a storcli cleanup instruction applicable to the first category; in response to the target category being the second category, executing an arcconf cleanup instruction applicable to the second category.
[0009] In one embodiment of the present application, after respectively determining whether the logical disk associated with the first storage array card is a system disk, the method further includes: in response to the logical disk associated with the first storage array being a system disk, retaining the data of the system disk; determining whether other unverified logical disks are system disks until the logical disks associated with the first storage array card are traversed; wherein the other unverified logical disks represent logical disks that are associated with the current first storage array card and have not been verified as system disks.
[0010] In one embodiment of the present application, determining whether the logical disk associated with the first storage array card is a system disk includes: obtaining a relative identifier of the current logical disk, and comparing it with the relative identifier of the system disk; in response to a match between the relative identifier of the current logical disk and one of the relative identifiers of the system disk, determining that the current logical disk is a system disk; otherwise, determining that the current logical disk is a non-system disk; obtaining the next logical disk as the current logical disk, and checking whether it is a system disk, until the logical disks of the first storage array card are traversed.
[0011] In one embodiment of the present application, the array card information includes a local bus address of the storage array card; and selecting a storage array card carrying a target identifier from the array card information as the first storage array card includes: respectively parsing the local bus address of each storage array card to obtain a bus number assigned to each storage array card by the local bus; comparing the storage array card bus number with the bus number of the system disk; and in response to a match between the two, determining that the storage array card is the first storage array card.
[0012] In one embodiment of the present application, the storage array deployment method also includes: obtaining a relative identifier of the system disk relative to the storage array; executing a first acquisition instruction using the relative identifier of the system disk to obtain local bus information of the system disk; and parsing the local bus information to obtain a bus number assigned to the system disk by the local bus.
[0013] In one embodiment of the present application, querying array card information of each storage array card of a storage array includes: obtaining the number of storage array cards in the storage array; executing a second information acquisition instruction on each storage array card to obtain array card information of each storage array card; wherein the array card information includes at least one of an array card type, a local bus address, and a storage array controller; recording the array card information of each storage array card to a preset file; wherein the number of array card information of the storage array cards recorded in the preset file matches the number of storage array cards in the storage array.
[0014] In one embodiment of the present application, obtaining the number of storage array cards in the storage array further includes: querying the responsive storage array cards through a first instruction, counting the number and determining that the array card category is the first category, and allowing the execution of the storcli obtain instruction to obtain the array card information; querying the responsive storage array cards through a second instruction, counting the number and determining that the array card category is the second category, and allowing the execution of the arcconf obtain instruction to obtain the array card information.
[0015] In one embodiment of the present application, the storage array deployment method also includes: cleaning up each logical disk associated with the second storage array card; wherein the logical disk associated with the second storage array card is a non-system disk; setting the second storage array card to a pass-through card mode to set all logical disks associated with it to a pass-through mode.
[0016] On the other hand, a storage array deployment device is provided, which includes: a deployment module and a connection module; the deployment module is used to implement the steps of the storage array deployment method in any of the above embodiments; the connection module is connected to the deployment module and the storage array, and the deployment module deploys the storage array through the connection module.
[0017] On the other hand, a storage system is provided, the storage system comprising: a storage array and a storage array deployment device as in the above embodiment; the storage array is connected to the storage array deployment device.
[0018] On the other hand, an electronic device is provided. The electronic device includes: a main body and a storage array arranged on the main body, and the storage array is connected to the storage array deployment device as in the above embodiment.
[0019] On the other hand, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the storage array deployment method in any one of the above embodiments when executing the computer program.
[0020] The above-mentioned storage array deployment method, storage array deployment device, storage system, electronic device and computer device, when deploying the storage array, parse the array card identifier of the storage array card associated with the system disk as the target identifier, so as to locate the storage array card in the storage array where the system card is deployed based on the target identifier, so as to distinguish the deployment mode of the non-system disk and the system disk when setting it, release the storage space of the non-system disk and set it to the pass-through mode, realize the automation of storage array deployment, improve the storage deployment efficiency and reliability, and improve the storage resource utilization while ensuring the system reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a flowchart of an embodiment of a storage array deployment method of the present application;
[0022] Figure 2 It is a flowchart of another embodiment of the storage array deployment method of the present application;
[0023] Figure 3 It is a structural schematic diagram of an embodiment of a storage array deployment device of the present application;
[0024] Figure 4 It is a structural diagram of an embodiment of a storage system of the present application;
[0025] Figure 5 It is a structural schematic diagram of an embodiment of the electronic device of the present application;
[0026] Figure 6 It is a structural diagram of an embodiment of a computer device of the present application. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0028] In order to solve the technical problems of low hard disk deployment efficiency and low storage resource utilization in related technologies, the present application provides a storage array deployment method, storage array deployment device, storage system, electronic equipment and computer equipment. The storage array deployment method includes: parsing the array card identification of the storage array card associated with the system disk as the target identification; querying the array card information of each storage array card in the storage array, and filtering the storage array card carrying the target identification from the array card information as the first storage array card; respectively judging whether the logical disk associated with the first storage array card is a system disk; in response to the logical disk associated with the first storage array card being a non-system disk, cleaning the non-system disk and setting it to pass-through mode. The specific structure and working principle of the present application are described in detail below.
[0029] See also Figure 1 , Figure 1 It is a flowchart of an embodiment of the storage array deployment method of the present application.
[0030] S101: parsing an array card identifier of a storage array card associated with a system disk as a target identifier.
[0031] In this embodiment, the system disk can be a system that controls and coordinates computers and external devices, supports the development and operation of application software, and is a collection of various programs that do not require user intervention. Alternatively, the system disk can be a hard disk partition with an operating system installed.
[0032] The storage array card associated with the system disk may indicate that at least part of the logical disks associated with the storage array card are system disks.
[0033] After obtaining the storage array to be deployed, the specific number, configuration information, array card information, etc. of the storage array cards are unknown. Therefore, the array card identifier of the storage array card where the system disk of the electronic device, host, etc. is located, that is, the target identifier, can be determined. In this way, it is possible to avoid directly cleaning all the logical disks of each storage array card, causing damage to the system disk or even causing the system to crash, that is, it can reduce the situation of mistaken cleaning, which is conducive to maintaining the stability of the system and improving the reliability of storage array deployment.
[0034] S102: querying array card information of each storage array card in the storage array, and selecting a storage array card carrying a target identifier from the array card information as a first storage array card.
[0035] In this embodiment, the storage array cards in the storage array may be identified to obtain relevant information of the storage array cards in the storage array.
[0036] When the array card information of the storage array card in the storage array is determined, the storage array card can be processed. The storage array card carrying the target identifier is selected from the array card information, that is, the storage array card associated with at least part of the logical disk as the system disk is selected as the first storage array card.
[0037] In other words, some of the logical disks associated with the first storage array card are system disks, and the remaining logical disks are non-system disks; or, all the logical disks associated with the first storage array card are system disks, which is not limited here.
[0038] Among them, non-system disk refers to a logical disk that does not support the system that controls and coordinates computers and external devices, supports the development and operation of application software, and various programs that do not require user intervention. Alternatively, a non-system disk can be a hard disk partition that does not have an operating system installed, that is, a logical disk.
[0039] S103: Determine whether the logical disk associated with the first storage array card is a system disk.
[0040] In this embodiment, after the first storage array card associated with the system disk is screened, each logical disk associated with the first storage array card can be identified / verified respectively to distinguish whether the several logical disks associated with it are system disks or non-system disks, so as to adaptively execute matching deployment strategies for the system disks and non-system disks.
[0041] S104: In response to the logical disk associated with the first storage array card being a non-system disk, clean up the non-system disk and set it to a pass-through mode.
[0042] In this embodiment, the pass-through mode is a data transmission mode. When the logical disk is configured as the pass-through mode, the data instruction can be directly transmitted to the logical disk through the intermediate processing device. In other words, in the pass-through mode, the control card can transmit instructions to the connected non-system disk, allowing the upper-layer business software or management software to directly access and control the hard disk as a non-system disk without the configuration of the intermediate virtual disk.
[0043] In response to the logical disk associated with the first storage array card being a non-system disk, it can be considered that the risk of cleaning it affecting system stability is relatively low, and the non-system disk can be cleaned and set to pass-through mode to release storage space of the non-system disk.
[0044] It can be seen that in this embodiment, the storage array card associated with the system disk can be reliably identified and used as the first storage array card, and by distinguishing whether the logical disk associated with the first storage array card is a system disk, the non-system disk associated with the first storage array card can be cleaned and set to the pass-through mode, which can release the storage space of the non-system disk and avoid the adverse consequences caused by cleaning the system disk. In other words, the present embodiment can locate the storage array card in the storage array where the system card is deployed based on the target identifier, so as to distinguish the deployment mode of the non-system disk and the system disk when setting it. The storage space of the non-system disk is released to increase the available storage resources, and the non-system disk is set to the pass-through mode, so as to realize the automation of storage array deployment, improve the efficiency and reliability of storage deployment, and improve the utilization rate of storage resources while ensuring the reliability of the system.
[0045] Furthermore, in this embodiment, the first cleaning instruction can be executed to clean the non-system disks. In response to the non-system disks associated with the first storage array card being cleaned, the first storage array card is set to a hybrid mode, wherein the hybrid mode allows the non-system disks to be in a pass-through mode and the system disks to be in an array mode.
[0046] That is to say, in this embodiment, the working mode of the first storage array card can be further set so that the first storage array card associated with the system disk can be compatible with the system disk in array mode and the non-system disk in pass-through mode, while ensuring the security and reliability of the system disk data, ensuring the stability of system operation, and at the same time freeing up the storage space of the non-system disk so that it can participate in distributed storage scheduling as a distributed storage node, for example, as a logical disk of the non-system disk can participate in hyper-converged distributed storage scheduling.
[0047] Among them, Hyper Converged Infrastructure (HCI) means that the same set of unit equipment not only has resources and technologies such as computing, network, storage and server virtualization, but also includes elements such as backup software, snapshot technology, deduplication, and online data compression. Multiple sets of unit equipment can be aggregated through the network to achieve modular seamless horizontal expansion (scale-out) and form a unified resource pool.
[0048] See also Figure 2 , Figure 2 It is a flowchart of another embodiment of the storage array deployment method of the present application.
[0049] In one embodiment, there may be multiple electronic devices such as hosts to deploy storage arrays, and the storage arrays deployed on each host and / or the storage arrays deployed on all hosts are deployed and managed. The working principle of the storage array deployment in this embodiment is described below by way of example.
[0050] The system disk information may be collected. Specifically, a relative identifier of the system disk relative to the storage array may be obtained. For example, the relative identifier may be a drive letter, a custom identifier, etc., which is not limited here.
[0051] For example, you can execute the "df ' / '| grep -w ' / ' | awk '{print $1}" command to obtain the drive letter corresponding to the host system root partition, so as to obtain the drive letter corresponding to the host system disk.
[0052] Furthermore, the first acquisition instruction can be executed using the relative identifier of the system disk to obtain the local bus information of the system disk. The local bus information of the system disk is parsed to obtain the bus number of the bus corresponding to the system disk. That is, the local bus information is parsed to obtain the bus number assigned by the local bus to the system disk.
[0053] For example, the drive letter of the system disk can be sda, which can refer to the first SATA (SerialATA, serial port) hard disk device in the host system; the storage array connects each hard disk through PCI (Peripheral Component Interconnect, a local bus protocol); the storage array can be RAID (Redundant Arrays of Independent Disks, disk array). In this case, you can execute the "udevadm info -q all -n / dev / sda | grep ID_PATH=pci" command to obtain the local bus information of the system disk in the host system through this command, and parse the PCI number (bus number) corresponding to the system disk from the output result.
[0054] As such, in this embodiment, relevant information of the system disk can be obtained, which is convenient for the subsequent deployment of the storage array, reducing the risk of affecting the stability of the system operation or even crashing the system due to misoperation of the system disk, thereby ensuring the reliability of the storage array deployment and the stability of the system operation.
[0055] Furthermore, information of the RAID card (ie, the storage array card in this embodiment) may be collected and a corresponding preset file may be formed.
[0056] In other words, the array card information set of the storage array card can be recorded as a preset file. For example, the preset file can be named raid_infos={}. Among them, raid_infos={} is a custom name.
[0057] Specifically, the number of storage array cards in the storage array can be obtained, and the array card information of each storage array card can be obtained respectively, and a preset file can be formed. In order to facilitate deployment based on the content recorded in the preset file, the cumbersome operation of repeatedly obtaining array card information during the deployment stage can be reduced. The information of the storage array card in the storage system can also be obtained to convert the processing of the logical disks one by one into the overall processing of the logical disks associated with the storage array card when possible, so that the efficiency of storage array deployment can be improved through a reasonable partitioning strategy. Among them, the array card information can include at least one of the array card type, the local bus address, and the storage array controller.
[0058] For example, the array card information may include the array card type; or, the array card information may include the local bus address of the storage array card; or, the array card information may include the storage array controller; or, the array card information may include at least one of the array card type, the local bus address, and the storage array controller. Other content forms of the array card information are not described here.
[0059] For example, the array card category of the storage array card may include a first category and a second category. Among them, the storage array card of the first category may support a first management method, and the storage array card of the second category may support a second management method, and the first management method and the second management method may have at least different management instructions. In this way, the management method applicable to the storage array card can be marked by the array card category. In other words, the present embodiment can be compatible with storage array cards applicable to different management methods to reduce the limitations of the storage array deployment, thereby improving the functionality of the storage array deployment strategy in the present embodiment, and also helping to enrich the application scenarios of the storage array deployment.
[0060] For example, the first management method may be management through the storcli instruction; the second management method may be management through the arcconf instruction; wherein arcconf and storcli are two storage management tools / management instructions.
[0061] In an alternative embodiment, the storage array card may also include support for other management tools / management instructions, which are not limited here.
[0062] As such, in this embodiment, the array card category of the storage array card can be identified so that different management instructions are applicable to storage array cards of different array card categories.
[0063] The number of storage array cards supporting the storcli command in the storage array may be queried through the storcli command to obtain the number of storage array cards of the first category.
[0064] For example, a "storcli show ctrlcount" command may be executed to obtain the number of storage array cards that can be managed by storcli.
[0065] The second information acquisition instruction is executed on each storage array card to obtain the array card information of each storage array card. For example, "storcli / ci 1 show| grep 'PCI Adderss'" command, where i 1 =0,1,…,y-1; y represents the number of storage array cards supporting the storcli command, that is, the number of storage array cards of the first category. The local bus address of each storage array card is obtained through the command, and the local bus address of each storage array card is respectively parsed to obtain the bus number assigned by the local bus to each storage array card.
[0066] The array card type, storage array controller, bus number, and bus address of the storage array card can be written into a preset file. For example, the array card information of the storage array card can be recorded in the preset file raid_infos(), and the recorded content can be shown as follows:
[0067] {'type':'storcli','controller': i 1 ,'pci_num':pci number}
[0068] Among them, type indicates the array card category of the storage array card; storcli indicates that the storage array card belongs to the first category and supports the storcli command; controller indicates the storage array controller; pci_num indicates the bus number field of the storage array card; and pci number indicates the bus number of the storage array card.
[0069] The number of storage array cards supporting the arcconf command in the storage array may be queried through the arcconf command to obtain the number of storage array cards of the second category.
[0070] For example, you can execute the command "arcconf list | grep 'Controllers found'" to obtain the number of storage array cards that can be managed by arcconf.
[0071] The second information acquisition instruction is executed for each storage array card to obtain the array card information of each storage array card. For example, "arcconf getconfig i 2 | grep 'PCI Adderss'" command, where i 2 =0,1,…,x-1; x represents the number of storage array cards that support the arcconf instruction, that is, the number of storage array cards of the second category. The local bus address of each storage array card (that is, PCI Adderss in the instruction) is obtained through the instruction, and the local bus address of each storage array card is parsed respectively to obtain the bus number assigned by the local bus to each storage array card.
[0072] The array card type, storage array controller, bus number, and bus address of the storage array card can be written into a preset file. For example, the array card information of the storage array card can be recorded in the preset file raid_infos(), and the recorded content can be shown as follows:
[0073] {'type':' arcconf','controller': i 2,'pci_num':pci number}
[0074] Among them, type indicates the array card category of the storage array card; arcconf indicates that the storage array card belongs to the second category and supports arcconf instructions; controller indicates the storage array controller; pci_num indicates the bus number field of the storage array card; and pci number indicates the bus number of the storage array card.
[0075] In this way, when all storage array cards in the storage array belong to the first category and / or the second category, information of each storage array card in the storage array can be collected and recorded in a preset file, and the number of array card information of the storage array cards recorded in the preset file matches the number of storage array cards in the storage array.
[0076] In short, in this embodiment, the first instruction can be used to query the responsive storage array cards, count the number and determine that the array card category is the first category, and the storcli get instruction can be executed to obtain the array card information. At the same time, the second instruction can also be used to query the responsive storage array cards, count the number and determine that the array card category is the second category, and the arcconf get instruction can be executed to obtain the array card information.
[0077] Furthermore, in this embodiment, the storage card mode can be set to clean up the non-system disk associated with the storage array card according to the relative identifier corresponding to the system disk, the bus number and the array card information of the storage array card, and set it to the hard disk pass-through mode to release the storage space of the logical disk as the non-system disk, which is beneficial to perform such as hyper-converged distributed storage scheduling.
[0078] Specifically, the array card information of each storage array card in the storage array may be queried, and a storage array card carrying a target identifier may be selected from the array card information to serve as the first storage array card.
[0079] As described in the above examples, the array card information of the storage array card includes the local bus address of the storage array card. The local bus address of each storage array card can be parsed to obtain the bus number assigned to each storage array card by the local bus.
[0080] The bus number of the storage array card is compared with the bus number of the system disk. In other words, the bus number of the system disk can be used as a target identifier to filter the storage array card associated with the system disk based on the target identifier.
[0081] In response to the bus number of the storage array card matching the bus number of at least one of the system disks, the storage array card is determined to be the first storage array card associated with the system disk, and when cleaning it, it is necessary to reduce the mistaken cleaning of the system disk. In response to the logical disk associated with the first storage array card being a non-system disk, the non-system disk is cleaned and set to a pass-through mode.
[0082] Specifically, it can be determined whether the logical disk associated with the first storage array card is a system disk.
[0083] For example, the relative identifier of the current logical disk may be obtained and compared with the relative identifier of the system disk.
[0084] In response to the relative identifier of the current logical disk matching one of the relative identifiers of the system disk, determining that the current logical disk is a system disk. Otherwise, determining that the current logical disk is a non-system disk;
[0085] The next logical disk is obtained as the current logical disk, and whether it is a system disk is checked until the logical disks of the first storage array card are traversed to complete the deployment of the storage array or even the storage system, thereby improving the automation of storage array deployment, and improving deployment efficiency and reliability.
[0086] Furthermore, in this embodiment, further consideration is made for the storage array card to be compatible with multiple management methods (for example, the storage array card is compatible with storcli and arcconf), so that the array card information of the storage array card can be filtered when it is collected, so as to reduce the situation where the array card information of the same storage array card is repeatedly recorded in the preset file. Specifically, the array card information of each storage array card is obtained by applying the second acquisition instruction of the first category. In response to the completion of acquiring the array card information of the storage array card of the first category, the array card information of each storage array card is acquired by applying the second acquisition instruction of the second category, and the currently acquired array card information is compared with the array card information recorded in the preset file. In response to the array card information that matches the current array card information in the preset file, the two are merged or / ignored.
[0087] Furthermore, when cleaning the logical disks of the non-system disks associated with the current storage array card, it is identified that the current storage array card has completed cleaning of the associated non-system disks that meet the preset number / there are traces of cleaning of the non-system disks, and it is determined that the current storage array card has completed cleaning, and there is no need to continue cleaning the current storage array card.
[0088] In this embodiment, the array card category of the first storage array card may be obtained as the target category.
[0089] Execute the first cleaning instruction matching the target category to clean up the non-system disk of the first storage array card. To implement the first cleaning instruction to clean up the non-system disk. That is, in response to the target category being the first category, execute the storcli cleaning instruction applicable to the first category. In response to the target category being the second category, execute the arcconf cleaning instruction applicable to the second category.
[0090] In response to the non-system disks associated with the first storage array card being cleaned up, the first storage array card is set to a hybrid mode; wherein the hybrid mode allows the non-system disks to be in a pass-through mode and the system disks to be in an array mode.
[0091] In response to the logical disk associated with the first storage array being a system disk, the data of the system disk is retained. Whether other unverified logical disks are system disks is determined until the logical disks associated with the first storage array card are traversed; wherein the other unverified logical disks represent logical disks that are associated with the current first storage array card and have not been verified to be system disks.
[0092] Furthermore, in response to the storage array card being the second storage array card, each logical disk associated with the second storage array card is cleaned up, and the second storage array card is set to a pass-through card mode, so that all logical disks associated with it are set to a pass-through mode. The logical disk associated with the second storage array card is a non-system disk.
[0093] In an alternative embodiment, a custom instruction may also be obtained; wherein the custom instruction includes device information of a custom device that is specified to be ignored for cleaning. The custom device may be a logical disk and / or a storage array card; when the custom device includes a logical disk, it is considered that the user specifies that the logical disk does not need to be cleaned; when the custom device includes a storage array card, it is considered that only the logical disks associated with the storage array card need not be cleaned. That is, the user may customize the logical disks and / or storage array cards that are not to be cleaned.
[0094] The device information included in the custom instruction is parsed, and the storage array card associated with the device information is used as the concerned array card. Based on the custom instruction, the cleaning of at least part of the logical disk associated with the concerned array card is ignored.
[0095] In layman's terms, when the custom indication indicates that the custom device is a logical disk, the storage array card containing the custom device is used as the first focus array card. When the storage array is deployed on the first focus array card, the data of the logical disk that is the custom device is retained and is not cleaned up. Other logical disks (i.e., non-system disks) of the first focus array card that can clear data are cleaned up.
[0096] When the custom device is indicated as a storage array card in the custom indication, the indicated storage array card is used as a second focus array card. When the storage array card for storage array deployment is the second focus array card, the logical disks associated with the second focus array card are not cleaned up, that is, the data of the logical disks associated with the second focus array card are retained.
[0097] The following is an example of a specific implementation of this embodiment. For example, the RAID cards recorded in raid_infos() can be processed in sequence according to the following process:
[0098] When the value corresponding to the 'type' field is storcli, it is considered that the storage array card belongs to the first category, and the RAID card can be processed using storcli related commands.
[0099] Specifically, the PCI number (bus number) of the RAID card is compared with the PCI number (bus number) corresponding to the system disk. If there is a system disk with the same PCI number as the RAID card, it means that the RAID card has an associated system disk, and the RAID card is the first storage array card; if there is no system disk with the same PCI number as the RAID card, it means that the RAID card has no associated system disk, and the RAID card is the second storage array card.
[0100] When the RAID card is determined to be the first storage array card, execute "storcli / ci 1 / vall show all" command, where i 1 is the value corresponding to the RAID card 'controller'. Through this command, you can obtain the drive letters and corresponding logical drive numbers of all logical drives on the RAID card.
[0101] Compare the drive letters of all logical disks on the RAID card with the drive letters of the system disk in turn. If the logical disk is determined to be a non-system disk, execute "storcli / ci 1 / vj 1 delete force" command to clean up the logical disk. 1 Indicates the logical disk number of the current non-system disk.
[0102] After cleaning all non-system logical disks on the RAID card, execute "storcli / ci 1 set jbod=onforce" command; jbod indicates hybrid mode. This command can be used to set the RAID card mode to hybrid mode. At the same time, execute "storcli / ci 1 / eall / sall set jbod force" command to set the non-system disk logical disk on the RAID card to pass-through mode.
[0103] When the RAID card is determined to be the second storage array card, execute "storcli / ci 1 The delete configforce command can be used to clear the configuration information of the RAID card. Furthermore, the storcli / ci 1 setjbod=on force" command to control the RAID card to switch to hybrid mode, and execute "storcli / ci 1 / eall / sall set jbod force" command to set the idle hard disk of the RAID card to pass-through mode.
[0104] When the value corresponding to the 'type' field is arcconf, the storage array card is considered to belong to the second category and arcconf-related commands can be used to process the raid card.
[0105] Specifically, the PCI number (bus number) of the RAID card is compared with the PCI number (bus number) corresponding to the system disk. If there is a PCI number of the system disk that is the same as the PCI number of the RAID card, it means that the RAID card has an associated system disk, and the RAID card is the first storage array card; if there is no PCI number of the system disk that is the same as the PCI number of the RAID card, it means that the RAID card has no associated system disk, and the RAID card is the second storage array card.
[0106] When the RAID card is determined to be the first storage array card, execute "arcconf getconfig i 2 ld" instruction, where i 2 is the value corresponding to the RAID card 'controller'. Through this command, you can obtain the drive letters and corresponding logical drive numbers of all logical drives on the RAID card.
[0107] Compare the drive letters of all logical disks on the RAID card with the drive letters of the system disk. If the logical disk is determined to be a non-system disk, execute "arcconf delete i 2 logicaldrive j 2 " command to clean up the logical disk. 2 Indicates the logical disk number of the current non-system disk.
[0108] After cleaning all non-system logical disks on the RAID card, execute "arcconf setcontrollermodei 2 3" command; 3 represents Mixed mode. This command can be used to set the RAID card mode to Mixed mode. Both logical disks and non-logical disks on the RAID card are displayed, so that the non-logical disks can be set as hard disk pass-through.
[0109] When the RAID card is determined to be the second storage array card, execute "arcconf delete i 2 "logicaldriveall" command to clear all logical disks on the RAID card. After clearing all logical disks other than system disks on the RAID card, you can execute "arcconf setcontrollermode i 2 2" command; 2 indicates HBA (pass-through) mode. This command can be used to set the RAID card mode to HBA mode and display all non-logical disks on the RAID card.
[0110] It can be seen that the present application can apply different deployment strategies to storage array cards associated with system disks and storage array cards not associated with system disks, respectively; and can also design different deployment strategies for system disks and non-system disks in the first storage array card (i.e., the storage array card associated with the system disk).
[0111] In summary, this embodiment can relatively accurately parse the hard disks on the RAID card in scenarios such as hyper-converged hosts, release all logical disks other than non-system disks on the RAID card, and set the idle hard disks to hard disk pass-through mode for use in deploying distributed storage. In this way, the system disk and the resource disk for distributed storage can share a RAID card, and there is no need to install an additional RAID card for the system disk. It can also reduce the tedious and error-prone work of manually cleaning up the logical disks of non-system disks on the RAID, which is conducive to reducing the workload of implementation personnel and improving the efficiency of storage array deployment and implementation delivery.
[0112] In layman's terms, this application can automatically clean up logical disks that are not system disks on the RAID card when deploying distributed storage on a hyper-converged platform, and make the released disks available for distributed storage in a hard disk pass-through manner. This ensures that the logical disks corresponding to the system disks are not affected as much as possible when cleaning up the logical disks of the RAID card. Through the collected array card information, it is possible to determine whether the system disk is the logical disk on the RAID card, and also to determine which RAID card the system disk is on, to avoid affecting the system disk when processing the RAID card later, thereby causing the system to crash.
[0113] Use arcconf and storcli, two RAID card management tools, to query all RAID cards on the host and record key information. In addition, when processing RAID cards, different processing procedures are refined for different scenarios. This is conducive to the storage array deployment method being applicable to different models and numbers of RAID cards on the host.
[0114] It should be understood that although Figure 1-Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0115] See also Figure 3 , Figure 3 It is a structural diagram of an embodiment of a storage array deployment device of the present application.
[0116] In one embodiment, the storage array deployment device includes a deployment module 11 and a connection module 12 .
[0117] The deployment module 11 is used to implement the steps of the storage array deployment method in any of the above embodiments.
[0118] The connection module 12 is connected to the deployment module 11 and the storage array, and the deployment module 11 deploys the storage array through the connection module 12 .
[0119] Specifically, the deployment module 11 can parse the array card identifier of the storage array card associated with the system disk as the target identifier; query the array card information of each storage array card of the storage array, and filter the storage array card carrying the target identifier from the array card information as the first storage array card; determine whether the logical disk associated with the first storage array card is the system disk; in response to the logical disk associated with the first storage array card being a non-system disk, clean up the non-system disk and set it to pass-through mode.
[0120] It can be seen that the storage array deployment device of this embodiment can reliably identify the storage array card associated with the system disk, use it as the first storage array card, and distinguish whether the logical disk associated with the first storage array card is a system disk, so as to clean up the non-system disk associated with the first storage array card and set it to the pass-through mode, thereby releasing the storage space of the non-system disk and avoiding the adverse consequences caused by cleaning the system disk. This can realize the automation of storage array deployment, improve storage deployment efficiency and reliability, and improve storage resource utilization while ensuring system reliability.
[0121] For the specific definition of the storage array deployment device, please refer to the definition of the storage array deployment method above, which will not be repeated here. Each module in the above storage array deployment device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0122] See also Figure 4 , Figure 4 It is a structural diagram of an embodiment of the storage system of the present application.
[0123] In one embodiment, the storage system includes a storage array 20 and a storage array deployment device 10 as in the above embodiment.
[0124] The storage array 20 is connected to the storage array deployment device 10 .
[0125] Optionally, in this embodiment, the number of the storage array 20 may be one or more, which is not limited herein. Figure 4 An example is shown in which a storage array deployment device 10 is connected to multiple storage arrays 20 respectively to realize the automation of deployment of multiple storage arrays 20, which is beneficial to improving storage resource utilization while ensuring data security, and is beneficial to deploying hyper-converged distributed storage between multiple storage arrays 20, which is beneficial to significantly improve the functionality, storage performance and reliability of the storage system.
[0126] See also Figure 5 , Figure 5 It is a structural schematic diagram of an embodiment of the electronic device of the present application.
[0127] In one embodiment, the electronic device includes a main body 30 and a storage array 20 disposed in the main body 30 .
[0128] Optionally, the storage array 20 can be connected to a storage array deployment device such as in the above embodiment to be deployed through the storage array deployment device to release storage space of logical disks / hard disks that are not used as system disks, so as to improve storage resource utilization while ensuring system operation reliability.
[0129] For example, the electronic device may be a computer host, a server, a NAS (Network Attached Storage) device, etc., which is not limited here.
[0130] Optionally, a storage array deployment device for deploying the storage array 30 may be provided in the main body 30 of the electronic device, or an independent platform, device, etc. may be used as the storage array deployment device so that the storage array 30 can be configured when it is connected to the storage array 30.
[0131] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the steps of the storage array deployment method described above are implemented, which will not be described in detail here.
[0132] See also Figure 6 , Figure 6 It is a structural diagram of an embodiment of a computer device of the present application.
[0133] In one embodiment, the computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown in the example.
[0134] The computer device includes a processor, a memory, a network interface and a database connected through a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a storage array deployment method is implemented.
[0135] Those skilled in the art will understand that Figure 6 The structure shown as an example is merely a block diagram of a portion of the structure related to the present application solution, and does not constitute a limitation on the computer device to which the present application solution is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0136] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0137] S101: parsing an array card identifier of a storage array card associated with a system disk as a target identifier.
[0138] S102: querying array card information of each storage array card in the storage array, and selecting a storage array card carrying a target identifier from the array card information as a first storage array card.
[0139] S103: Determine whether the logical disk associated with the first storage array card is a system disk.
[0140] S104: In response to the logical disk associated with the first storage array card being a non-system disk, clean up the non-system disk and set it to a pass-through mode.
[0141] In one embodiment, when cleaning a non-system disk and setting it to a pass-through mode, the processor further implements the following steps when executing a computer program: executing a first cleaning instruction to clean the non-system disk; in response to the non-system disks associated with the first storage array card having all been cleaned, setting the first storage array card to a hybrid mode; wherein the hybrid mode allows the non-system disk to be in a pass-through mode and the system disk to be in an array mode.
[0142] In one embodiment, when executing the first cleaning instruction to clean the non-system disk, the processor further implements the following steps when executing the computer program: obtaining the array card category of the first storage array card as the target category; executing the first cleaning instruction matching the target category to clean the non-system disk of the first storage array card.
[0143] In one embodiment, the array card category includes a first category and a second category; when executing a first cleaning instruction matching the target category, the processor further implements the following steps when executing the computer program: in response to the target category being the first category, executing a storcli cleaning instruction applicable to the first category; in response to the target category being the second category, executing an arcconf cleaning instruction applicable to the second category.
[0144] In one embodiment, after determining respectively whether the logical disk associated with the first storage array card is a system disk, the processor further implements the following steps when executing the computer program: in response to the logical disk associated with the first storage array being a system disk, retaining the data of the system disk; determining whether other unverified logical disks are system disks until the logical disks associated with the first storage array card are traversed; wherein the other unverified logical disks represent logical disks that are associated with the current first storage array card and have not been verified as system disks.
[0145] In one embodiment, when determining whether the logical disk associated with the first storage array card is a system disk, the processor further implements the following steps when executing the computer program: obtaining a relative identifier of the current logical disk and comparing it with the relative identifier of the system disk; in response to a match between the relative identifier of the current logical disk and one of the relative identifiers of the system disk, determining that the current logical disk is a system disk; otherwise, determining that the current logical disk is a non-system disk; obtaining the next logical disk as the current logical disk, and checking whether it is a system disk, until the logical disks of the first storage array card are traversed.
[0146] In one embodiment, the array card information includes a local bus address of the storage array card; when a storage array card carrying a target identifier is selected from the array card information and used as the first storage array card, the processor further implements the following steps when executing the computer program: respectively parsing the local bus address of each storage array card to obtain a bus number assigned to each storage array card by the local bus; comparing the storage array card bus number with the bus number of the system disk; and in response to a match between the two, determining that the storage array card is the first storage array card.
[0147] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining a relative identifier of the system disk relative to the storage array; using the relative identifier of the system disk to execute a first acquisition instruction to obtain local bus information of the system disk; parsing the local bus information to obtain a bus number assigned by the local bus to the system disk.
[0148] In one embodiment, the array card information of each storage array card of the storage array is queried, and the processor further implements the following steps when executing the computer program: obtaining the number of storage array cards in the storage array; executing the second information acquisition instruction on each storage array card to obtain the array card information of each storage array card; wherein the array card information includes at least one of the array card type, the local bus address, and the storage array controller; recording the array card information of each storage array card to a preset file; wherein the number of the array card information of the storage array cards recorded in the preset file matches the number of storage array cards in the storage array.
[0149] In one embodiment, the number of storage array cards in the storage array is obtained, and the processor further implements the following steps when executing the computer program: querying the responsive storage array cards through the first instruction, counting the number and determining that the array card category is the first category, and allowing the storcli acquisition instruction to be executed on them to obtain the array card information; querying the responsive storage array cards through the second instruction, counting the number and determining that the array card category is the second category, and allowing the arcconf acquisition instruction to be executed on them to obtain the array card information.
[0150] In one embodiment, when the processor executes the computer program, the following steps are also implemented: cleaning up each logical disk associated with the second storage array card; wherein the logical disk associated with the second storage array card is a non-system disk; setting the second storage array card to a pass-through card mode, so as to set all the logical disks associated with it to a pass-through mode.
[0151] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0152] S101: parsing an array card identifier of a storage array card associated with a system disk as a target identifier.
[0153] S102: querying array card information of each storage array card in the storage array, and selecting a storage array card carrying a target identifier from the array card information as a first storage array card.
[0154] S103: Determine whether the logical disk associated with the first storage array card is a system disk.
[0155] S104: In response to the logical disk associated with the first storage array card being a non-system disk, clean up the non-system disk and set it to a pass-through mode.
[0156] In one embodiment, when cleaning a non-system disk and setting it to a pass-through mode, the computer program further implements the following steps when executed by the processor: executing a first cleaning instruction to clean the non-system disk; in response to the non-system disks associated with the first storage array card having completed cleaning, setting the first storage array card to a hybrid mode; wherein the hybrid mode allows the non-system disk to be in a pass-through mode and the system disk to be in an array mode.
[0157] In one embodiment, when executing the first cleaning instruction to clean the non-system disk, the computer program also implements the following steps when executed by the processor: obtaining the array card category of the first storage array card as the target category; executing the first cleaning instruction matching the target category to clean the non-system disk of the first storage array card.
[0158] In one embodiment, the array card category includes a first category and a second category; when executing a first cleaning instruction matching the target category, the computer program further implements the following steps when executed by the processor: in response to the target category being the first category, executing a storcli cleaning instruction applicable to the first category; in response to the target category being the second category, executing an arcconf cleaning instruction applicable to the second category.
[0159] In one embodiment, after determining respectively whether the logical disk associated with the first storage array card is a system disk, the computer program further implements the following steps when executed by the processor: in response to the logical disk associated with the first storage array being a system disk, retaining the data of the system disk; determining whether other unverified logical disks are system disks until the logical disks associated with the first storage array card are traversed; wherein the other unverified logical disks represent logical disks that are associated with the current first storage array card and have not been verified as system disks.
[0160] In one embodiment, when determining whether the logical disk associated with the first storage array card is a system disk, the computer program further implements the following steps when executed by the processor: obtaining a relative identifier of the current logical disk and comparing it with a relative identifier of the system disk; in response to a match between the relative identifier of the current logical disk and one of the relative identifiers of the system disk, determining that the current logical disk is a system disk; otherwise, determining that the current logical disk is a non-system disk; obtaining the next logical disk as the current logical disk, and checking whether it is a system disk, until the logical disks of the first storage array card are traversed.
[0161] In one embodiment, the array card information includes a local bus address of the storage array card; when a storage array card carrying a target identifier is selected from the array card information and used as the first storage array card, the computer program further implements the following steps when executed by the processor: respectively parsing the local bus address of each storage array card to obtain a bus number assigned to each storage array card by the local bus; comparing the storage array card bus number with the bus number of the system disk; and in response to a match between the two, determining that the storage array card is the first storage array card.
[0162] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining a relative identifier of the system disk relative to the storage array; executing a first acquisition instruction using the relative identifier of the system disk to obtain local bus information of the system disk; parsing the local bus information to obtain a bus number assigned by the local bus to the system disk.
[0163] In one embodiment, the array card information of each storage array card in the storage array is queried, and the computer program further implements the following steps when executed by the processor: obtaining the number of storage array cards in the storage array; executing the second information acquisition instruction on each storage array card to obtain the array card information of each storage array card; wherein the array card information includes at least one of the array card type, the local bus address, and the storage array controller; recording the array card information of each storage array card to a preset file; wherein the number of the array card information of the storage array cards recorded in the preset file matches the number of storage array cards in the storage array.
[0164] In one embodiment, the number of storage array cards in a storage array is obtained, and when the computer program is executed by the processor, the following steps are further implemented: querying the responsive storage array cards through a first instruction, counting the number and determining that the array card category is the first category, and allowing the storcli get instruction to be executed on them to obtain the array card information; querying the responsive storage array cards through a second instruction, counting the number and determining that the array card category is the second category, and allowing the arcconf get instruction to be executed on them to obtain the array card information.
[0165] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: cleaning up each logical disk associated with the second storage array card; wherein the logical disk associated with the second storage array card is a non-system disk; setting the second storage array card to a pass-through card mode, so as to set all the logical disks associated with it to a pass-through mode.
[0166] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0167] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0168] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application.
Claims
1. A storage array deployment method, characterized in that: The storage array deployment method comprises: Parse the array card identifier of the storage array card associated with the system disk as the target identifier; querying array card information of each storage array card of the storage array, and selecting a storage array card carrying the target identifier from the array card information as a first storage array card; respectively determining whether the logical disk associated with the first storage array card is a system disk; In response to the logical disk associated with the first storage array card being a non-system disk, the non-system disk is cleaned and set to a pass-through mode.
2. The storage array deployment method according to claim 1, characterized in that: The cleaning of the non-system disk and setting it to pass-through mode comprises: Execute a first cleaning instruction to clean the non-system disk; In response to the non-system disks associated with the first storage array card being cleaned up, the first storage array card is set to a hybrid mode; wherein the hybrid mode allows the non-system disks to be in a pass-through mode and the system disks to be in an array mode.
3. The storage array deployment method according to claim 2, characterized in that: The executing the first cleaning instruction to clean the non-system disk comprises: Obtaining the array card category of the first storage array card as the target category; A first cleaning instruction matching the target category is executed to clean the non-system disk of the first storage array card.
4. The storage array deployment method according to claim 3, characterized in that: The array card categories include a first category and a second category; The executing a first cleaning instruction matching the target category comprises: In response to the target category being the first category, executing a storcli cleanup instruction applicable to the first category; In response to the target category being the second category, an arcconf cleanup instruction applicable to the second category is executed.
5. The storage array deployment method according to claim 1, characterized in that: The respectively determining whether the logical disk associated with the first storage array card is a system disk comprises: In response to the logical disk associated with the first storage array being the system disk, retaining data of the system disk; It is judged whether other unverified logical disks are system disks until the logical disks associated with the first storage array card are traversed; wherein the other unverified logical disks represent logical disks that are associated with the current first storage array card and have not been verified to be system disks.
6. The storage array deployment method according to claim 1, characterized in that: The determining whether the logical disk associated with the first storage array card is a system disk comprises: Obtaining the relative identifier of the current logical disk, and comparing it with the relative identifier of the system disk; In response to a match between the relative identifier of the current logical disk and one of the relative identifiers of the system disk, determining that the current logical disk is the system disk; otherwise, determining that the current logical disk is the non-system disk; The next logical disk is obtained as the current logical disk, and whether it is a system disk is checked until the logical disks of the first storage array card are traversed.
7. The storage array deployment method according to claim 1, characterized in that: The array card information includes the local bus address of the storage array card; The step of filtering the storage array card carrying the target identifier from the array card information as the first storage array card comprises: Respectively analyzing the local bus address of each storage array card to obtain the bus number assigned by the local bus to each storage array card; Comparing the storage array card bus number with the system disk bus number; In response to a match between the two, it is determined that the storage array card is the first storage array card.
8. The storage array deployment method according to claim 7, characterized in that: The storage array deployment method further includes: Obtaining a relative identifier of the system disk relative to the storage array; Execute a first acquisition instruction using the relative identifier of the system disk to acquire local bus information of the system disk; The local bus information is parsed to obtain a bus number of the local bus allocated to the system disk.
9. The storage array deployment method according to claim 1, characterized in that: The querying of the array card information of each storage array card of the storage array includes: Obtaining the number of storage array cards in the storage array; Executing the second information acquisition instruction on each of the storage array cards respectively to respectively acquire the array card information of each storage array card; wherein the array card information includes at least one of the array card type, the local bus address, and the storage array controller; Recording the array card information of each storage array card into a preset file; wherein the number of the array card information of the storage array cards recorded in the preset file matches the number of storage array cards in the storage array.
10. The storage array deployment method according to claim 9, characterized in that: The obtaining the number of storage array cards in the storage array further comprises: Query the responsive storage array cards through the first command, count the number and determine that the array card category is the first category, and obtain the array card information by allowing the execution of the storcli get command; The second instruction is used to query the responsive storage array cards, count the number and determine that the array card category is the second category, and allow the arcconf acquisition instruction to be executed to obtain the array card information.
11. The storage array deployment method according to claim 1, characterized in that: The storage array deployment method further includes: Cleaning up each logical disk associated with the second storage array card; wherein the logical disk associated with the second storage array card is a non-system disk; The second storage array card is set to a pass-through card mode, so that all logical disks associated with the second storage array card are set to the pass-through mode.
12. A storage array deployment device, characterized in that: The storage array deployment device comprises: A deployment module, used to implement the steps of the storage array deployment method according to any one of claims 1 to 11; A connection module is connected to the deployment module and the storage array, and the deployment module deploys the storage array through the connection module.
13. A storage system, characterized in that: The storage system comprises: The storage array deployment device as claimed in claim 12; A storage array is connected to the storage array deployment device.
14. An electronic device, characterized in that: The electronic device comprises: A main body and a storage array arranged on the main body, wherein the storage array is connected to the storage array deployment device as described in claim 12.
15. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the storage array deployment method described in any one of claims 1 to 11 are implemented.
Citation Information
Patent Citations
Method, device and system for managing simply-configured memory array
CN101719106A
Method, apparatus for managing redundant array of independent disks (RAID), and computer program product
CN110737401A
