Storage configuration method, system and equipment and computer readable storage medium

By automatically pursuing the storage configuration process, obtaining and sending storage planning information, determining and mapping the storage space link method, a storage configuration without manual participation is realized, solving the problems of low configuration efficiency and low success rate in the existing technology, and improving the efficiency and success rate of storage configuration.

CN119690353APending Publication Date: 2025-03-25INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411980139.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-29
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

The existing storage configuration methods require manual operation, resulting in low configuration efficiency, high cost and prone to incorrect operations, resulting in configuration failure.

Method used

By obtaining storage planning information, it is sent to the target storage for automatic configuration; obtaining the storage configuration information of the target storage, determining the link between the target host and the target storage, and mapping the storage space to the target host based on the storage configuration information; finally, automatically configure the target host based on the host planning information so that it can apply the target storage.

Benefits of technology

It realizes automatic storage configuration without manual participation, avoids manual misoperation, and improves the efficiency and success rate of storage configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119690353A_ABST
    Figure CN119690353A_ABST
Patent Text Reader

Abstract

The invention discloses a storage configuration method, system and device and a computer readable storage medium, and relates to the technical field of storage. Sending the storage planning information to the target storage, so that the target storage is configured according to the storage planning information; obtaining storage configuration information of the target storage; determining a link mode between a target host and the target storage; according to the storage configuration information, mapping the storage space of the target storage to the target host according to the link mode; and obtaining host planning information, and configuring the target host according to the host planning information, so that the target host applies the target storage. According to the method, the storage space can be automatically mapped to the target host according to the link mode according to the storage configuration information obtained after the target storage configuration, so that the storage space mapping mode is matched with the link mode, the target host and the target storage are automatically configured, manual participation is not needed, and the configuration efficiency is improved. And the efficiency and the success rate of storage configuration are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of storage technology, and more specifically, to a storage configuration method, system, device, and computer-readable storage medium. Background Art

[0002] During the use of storage, manual configuration operations are required to complete the creation of the entire storage and initialize the disk. However, manual configuration is not only labor-intensive, resulting in high storage configuration costs, but also prone to errors during manual operations, resulting in storage configuration failures.

[0003] In summary, how to improve the efficiency and success rate of storage configuration is a problem that needs to be solved urgently by those skilled in the art. Summary of the invention

[0004] The purpose of this application is to provide a storage configuration method, which can solve the technical problem of how to improve the efficiency and success rate of storage configuration to a certain extent. This application also provides a storage configuration system, an electronic device and a computer-readable storage medium.

[0005] In order to achieve the above objectives, this application provides the following technical solutions:

[0006] A storage configuration method, comprising:

[0007] Get storage planning information;

[0008] Sending the storage planning information to the target storage so that the target storage is configured according to the storage planning information;

[0009] Obtaining storage configuration information of the target storage;

[0010] Determine a link mode between a target host and the target storage;

[0011] According to the storage configuration information, mapping the storage space of the target storage to the target host in accordance with the linking mode;

[0012] The host planning information is obtained, and the target host is configured according to the host planning information so that the target host applies the target storage.

[0013] In an exemplary embodiment, it further includes:

[0014] Get switch planning information;

[0015] The target switch is planned according to the switch planning information, so that the target host is connected to the target storage through the target switch.

[0016] In an exemplary embodiment, the acquiring storage planning information includes:

[0017] Acquire storage planning information, wherein the storage planning information includes storage strategy, cluster establishment strategy, communication address configuration information, and storage space configuration information;

[0018] The obtaining of host planning information includes:

[0019] Acquire host planning information, the host planning information including storage space verification method, path deployment method, simple network management protocol configuration information, network time protocol configuration information, and storage space usage information;

[0020] The acquiring of switch planning information includes:

[0021] The switch planning information is obtained, wherein the switch planning information includes flow monitoring information, error monitoring information, inspection strategy, and partition configuration information.

[0022] In an exemplary embodiment, it further includes:

[0023] Obtaining host configuration information of the target host;

[0024] Obtain switch configuration information of the target switch;

[0025] The storage configuration information, the host configuration information and the switch configuration information are saved to configure other newly added storage, other hosts and other switches according to the storage configuration information, the host configuration information and the switch configuration information.

[0026] In an exemplary embodiment, after acquiring the storage configuration information of the target storage, the method further includes:

[0027] Displaying the storage configuration information;

[0028] Receiving modification information of the storage configuration information;

[0029] Modify the storage configuration information according to the modification information to obtain modified storage configuration information;

[0030] Generate storage update information corresponding to the modified storage configuration information;

[0031] The storage update information is sent to the target storage, so that the target storage performs configuration update according to the storage update information.

[0032] In an exemplary embodiment, mapping the storage space of the target storage to the target host in the linking manner includes:

[0033] storing the Internet Protocol address of the target host in the target storage;

[0034] Transmitting the Internet Protocol address of the target storage to the target host so that the target host and the target storage are linked via the Internet Protocol address;

[0035] Send the initiator name query command to the target host;

[0036] receiving an initiator name transmitted by the target host in response to the initiator name query instruction, wherein the initiator name of the target host is generated according to a small computer system interface;

[0037] Read the name of the initiator stored in the target storage;

[0038] Detecting whether the initiator name stored in the target storage is consistent with the initiator name of the target host;

[0039] In response to the initiator name stored in the target storage being consistent with the initiator name of the target host, the target host is controlled to access the storage space of the target storage and store it.

[0040] In an exemplary embodiment, mapping the storage space of the target storage to the target host in the linking manner includes:

[0041] Sending a globally unique node name query instruction to the target host;

[0042] receiving a globally unique node name transmitted by the target host in response to the globally unique node name query instruction;

[0043] Read the globally unique node name stored in the target storage;

[0044] In response to the target host being connected to the target storage via an optical fiber, detecting whether the globally unique node name stored in the target storage is consistent with the globally unique node name of the target host;

[0045] In response to the globally unique node name stored in the target storage being consistent with the globally unique node name of the target host, detecting whether the link between the target storage and the target host is stable;

[0046] In response to the link between the target storage and the target host being stable, controlling the target host to access the storage space of the target storage and save;

[0047] The target host is controlled to generate a block device corresponding to the storage space of the target storage, and the target host is controlled to generate an identifier of the block device based on a small computer system interface layer, so that the business layer of the target host operates the storage space of the target storage through the identifier.

[0048] A storage configuration system, comprising:

[0049] A first acquisition module is used to acquire storage planning information;

[0050] A first sending module, used for sending the storage planning information to the target storage, so that the target storage is configured according to the storage planning information;

[0051] A second acquisition module, used to acquire storage configuration information of the target storage;

[0052] A first determination module, used to determine the link mode between the target host and the target storage;

[0053] A first mapping module, configured to map the storage space of the target storage to the target host according to the linking mode according to the storage configuration information;

[0054] The first configuration module is used to obtain host planning information and configure the target host according to the host planning information so that the target host applies the target storage.

[0055] An electronic device, comprising:

[0056] Memory for storing computer programs;

[0057] A processor is used to implement the steps of any of the above storage configuration methods when executing the computer program.

[0058] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of any of the above storage configuration methods.

[0059] The present application provides a storage configuration method, which includes obtaining storage planning information; sending the storage planning information to the target storage so that the target storage is configured according to the storage planning information; obtaining the storage configuration information of the target storage; determining the linking mode between the target host and the target storage; mapping the storage space of the target storage to the target host according to the linking mode according to the storage configuration information; obtaining the host planning information, and configuring the target host according to the host planning information so that the target host applies the target storage. The present application can send the storage planning information to the target storage so that the target storage can be automatically configured according to the storage planning information, and can determine the linking mode between the target host and the target storage, and according to the storage configuration information obtained after the target storage is configured, automatically map the storage space to the target host according to the linking mode, so that the storage space mapping mode is adapted to the linking mode, so that the target host can successfully use the storage space after linking the target storage through the linking mode, and finally automatically configure the target host according to the host planning information, so that the target host can apply the target storage, realize automatic configuration of the target host and the target storage, without manual participation, avoid the situation of manual misoperation, and ensure that the target host can successfully use the storage space, thereby improving the efficiency and success rate of storage configuration. A storage configuration system, electronic device and computer-readable storage medium provided in this application also solve corresponding technical problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] 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 application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0061] Figure 1 A flowchart of a storage configuration method provided in an embodiment of the present application;

[0062] Figure 2 It is a schematic diagram of the connection between the management device, host, storage and switch;

[0063] Figure 3 A schematic diagram of the structure of a storage configuration system provided in an embodiment of the present application;

[0064] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0065] Figure 5 Another structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0066] 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 application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0067] See also Figure 1 , Figure 1 A flowchart of a storage configuration method provided in an embodiment of the present application.

[0068] A storage configuration method provided in an embodiment of the present application may include the following steps:

[0069] Step S101: Acquire storage planning information.

[0070] Step S102: Send the storage planning information to the target storage, so that the target storage is configured according to the storage planning information.

[0071] In actual applications, considering that users apply storage according to their own needs, and user needs are diverse, resulting in a variety of storage application types. For example, the volume size, volume quantity, and number of mapped hosts for storage divided by different users may be different. Therefore, in order to meet the different storage needs of users, it is necessary to obtain storage planning information. The storage planning information records the user's corresponding storage plan, and then sends the storage planning information to the target storage so that the target storage is automatically configured according to the storage planning information.

[0072] It should be noted that the content of the storage planning information obtained can be flexibly determined according to actual needs. For example, storage planning information can be obtained, and the storage planning information includes storage strategy, cluster establishment strategy, communication address configuration information, and storage space configuration information; among them, storage strategy can include single storage, two storage functions to realize 4-control cluster (four-control cluster strategy), two storages to realize 4-control dual active (dual active implementation strategy), two storages to realize remote assistance (remote replication strategy), 3 storages to realize 3DC function (dual active and remote replication recording strategy) and other strategies to ensure that storage realizes backup heterogeneous and other functional strategies; cluster establishment strategy refers to the strategy of building storage into a cluster; communication address configuration information includes IP (Internet Protocol) address configuration, etc.; storage space configuration information includes pool, volume, raid (Redundant Arrays of Independent Disks) configuration, etc.

[0073] In specific application scenarios, the content and format of the storage planning information can be flexibly determined as needed. For example, it can include:

[0074] StorageSerial: "xxxxxx" / / storage serial number;

[0075] serviceIPAddr: "1.2.3.4" / / Storage service IP address;

[0076] ClusterIPAddr: "2.3.4.5" / / Storage cluster IP address;

[0077] StoragePolicy: "base / AA / RC" basis, active-active, remote replication;

[0078] VolumeInfo: / / volume information, volume name, volume group, number of volumes;

[0079] hostInfo: / / host information, host group, host-mapped volume information, host port information IP / FC;

[0080] frontport: / / The port FC or IP address of the storage connected to the host;

[0081] rearport: / / Stores the rear port information.

[0082] Step S103: Obtain storage configuration information of the target storage.

[0083] Step S104: Determine the link mode between the target host and the target storage.

[0084] Step S105: According to the storage configuration information, the storage space of the target storage is mapped to the target host in a linking manner.

[0085] In actual applications, after the target storage is configured according to the storage planning information, the configuration of the target storage is determined. Considering that the target host uses the target storage, the space of the target storage needs to be mapped to the target host. Therefore, after the target storage is identified, such as after the target storage is configured and online, the storage configuration information of the target storage is obtained, and the storage space of the target storage is mapped to the target host according to the storage configuration information. The storage configuration information contains all storage information, such as capacity, front-end port, back-end port, host port information, etc., to clarify and ensure that the storage can map the space to the host side. It should be noted that there is a link method between the target host and the target storage, and this link method will affect the process of mapping the storage space to the target host, so the link method between the target host and the target storage can be determined, and according to the storage configuration information, the storage space of the target storage is mapped to the target host according to this link method.

[0086] In a specific application scenario, in the process of mapping the storage space of the target storage to the target host, considering that the host can link the storage through the Internet protocol, the storage space of the target storage can be mapped to the target host through the Internet protocol, that is, when the link mode is the Internet protocol link, the target storage can be logged in, such as logging in to the target storage through an account and password; the Internet protocol address of the target host is stored in the target storage, and the Internet protocol address of the target storage is transmitted to the target host, so that the target host and the target storage can be linked to each other through the Internet protocol address; then, an initiator name query instruction is sent to the target host, such as sending an initiator name query instruction to the target host after the target host is linked to the target storage, etc., and the initiator name transmitted by the target host in response to the initiator name query instruction is received, and the initiator name of the target host is configured according to the Internet Small Computer System Interface (ISI). The initiator name stored in the target storage is generated by the target storage interface (ISCSI); the initiator name stored in the target storage is read, that is, the initiator name of the host to which the storage needs to be linked needs to be stored in the target storage in advance; it is detected whether the initiator name stored in the target storage is consistent with the initiator name of the target host, and the initiator name comparison result sent by the target storage can be received. If the initiator name comparison result indicates that the initiator name stored in the target storage is consistent with the initiator name of the target host, it can be determined that the initiator name stored in the target storage is consistent with the initiator name of the target host, otherwise it can be determined that the initiator name stored in the target storage is inconsistent with the initiator name of the target host; in response to the initiator name stored in the target storage being consistent with the initiator name of the target host, it indicates that the target storage agrees to link to the target host. At this time, the target host and the target storage have completed the link, and the target host can be controlled to access the storage space of the target storage and save it. For example, the target host is controlled to obtain the volume attributes such as the size of the storage space by accessing the space of the target storage. The target host saves the information of the storage volume and waits for the use of the business party.

[0087] From the implementation process, it can be seen that, in the process of the target host connecting to the target storage through the Internet Protocol address, the present application can receive the initiator name transmitted by the target host in response to the initiator name query instruction, and read the initiator name stored in the target storage; and only when the initiator name stored in the target storage is consistent with the initiator name of the target host, the storage space of the target storage is mapped to the target host, thereby realizing the verification of the process of the target host connecting to the target storage with the help of the initiator name of the target host, ensuring the security and accuracy of the link between the target host and the target storage, so that the storage space of the target storage can be mapped to the target host more safely and accurately.

[0088] In a specific application scenario, in the process of mapping the storage space of the target storage to the target host, considering that the host can connect to the storage through an optical fiber, the optical fiber link can be used to complete the mapping of the storage space to the target host, that is, when the link mode is an optical fiber link, a globally unique node name (WWPN) query instruction can be sent to the target host; the globally unique node name transmitted by the target host in response to the globally unique node name query instruction is received; the globally unique node name stored in the target storage is read, that is, the globally unique node name of the target host to which the target storage needs to be connected needs to be stored in the target storage in advance; in response to the target host connecting to the target storage through an optical fiber, whether the globally unique node name stored in the target storage is consistent with the globally unique node name of the target host is detected; in response to the target storage storing If the globally unique node name of the target storage is consistent with the globally unique node name of the target host, it is detected whether the link between the target storage and the target host is stable, and the query result of the target storage on the target host through the address discovery instruction can be received. If the query result indicates that the target host exists, it can be determined that the link between the target storage and the target host is stable. If the query result indicates that the target host does not exist, it can be determined that the link between the target storage and the target host is unstable; in response to the link between the target storage and the target host being stable, the target host is controlled to access the storage space of the target storage and save it; the target host is controlled to generate a block device corresponding to the storage space of the target storage, and the target host is controlled to generate an identifier of the block device based on the small computer system interface layer, so that the business layer of the target host can operate the storage space of the target storage through the unique identifier.

[0089] From this implementation process, it can be seen that in the process of the target host connecting to the target storage through the optical fiber, the present application can receive the globally unique node name transmitted by the target host after responding to the globally unique node name query instruction, and read the globally unique node name stored in the target storage; and only when the globally unique node name stored in the target storage is consistent with the globally unique node name of the target host and the link between the target storage and the target host is stable, the storage space of the target storage is mapped to the target host, thereby realizing the verification of the process of the target host connecting to the target storage with the help of the globally unique node name of the target host, ensuring the security and accuracy of the link between the target host and the target storage, so that the storage space of the target storage can be mapped to the target host more safely and accurately; in addition, the target host is also controlled to generate a block device corresponding to the storage space of the target storage, and the target host is controlled to generate an identifier of the block device based on the small computer system interface layer, so that the business layer of the target host can uniquely operate the storage space of the target storage through this identifier, thereby improving the efficiency of the target host application storage space.

[0090] Step S106: Acquire host planning information, and configure the target host according to the host planning information so that the target host applies the target storage.

[0091] In actual applications, the host is used to interact with users to store and process data under user operations. Users have various ways of operating the host. Therefore, in order to make the host meet the user's usage requirements, it is necessary to obtain the host planning information and configure the target host according to the host planning information so that the target host can apply the target storage.

[0092] In a specific application scenario, a single host can be connected to a single storage, but there are multiple hosts using the storage at the same time. In this case, a switch is needed to connect the host to the storage. Therefore, the switch planning information needs to be obtained. The target switch is planned according to the switch planning information so that the target host can connect to the target storage through the target switch. In this way, the specific method of connecting the host to the storage through the switch can be determined by setting the switch planning information. Assuming that the storage configuration method of the present application is implemented through a management device, the management device and the host, switch and storage can be connected through cables, and the connection method can be as follows: Figure 2 As shown, the management device can be a device independent of the host, storage and switch, or a device in a server, etc.

[0093] It should be noted that the host planning information is used to plan the host, and the switch planning information is used to plan the switch. The content of the host planning information and the switch planning information can be flexibly determined according to the specific application scenario. For example, the host planning information can be obtained, and the host planning information includes storage space verification mode, path deployment mode, Simple Network Management Protocol (SNMP) configuration information, Network Time Protocol (NTP) configuration information, storage space usage information, etc.; among which, the storage space verification mode is used by the host to verify the storage space to ensure that the host can clearly understand the correctness of the information in the storage space; the path deployment mode includes multi-path deployment and parameter optimization, etc., and in the process of multi-path deployment of the host, the multi-path software can be transferred to the host through scp (Secure Copy), and the installation command can be executed through ssh (Secure Shell) to install the multi-path, and SNMP and NTP can also be deployed in this way; the storage space usage information can include host 3DC planning, etc. The switch planning information can be obtained, and the switch planning information includes traffic monitoring information, error monitoring information, inspection strategy, zone configuration information, etc. In addition, after completing the configuration of the target host, target storage and target switch, it is necessary to realize the connection between the target host and the target switch, and realize the connection between the target storage and the target switch, so as to ensure that the target host can interact with the target storage through the target switch.

[0094] In actual applications, considering that users may need to perform the same configuration on newly added storage and hosts, in order to meet such needs of users, the host configuration information of the target host can also be obtained; the switch configuration information of the target switch can be obtained; the storage configuration information, host configuration information and switch configuration information can be saved. In this way, when it is necessary to configure the storage and hosts in batches, it is only necessary to configure the other newly added storage, other newly added hosts and other newly added switches according to the storage configuration information, host configuration information and switch configuration information, and other storage, other hosts and other switches with the same configuration as the target host, target storage and target switch can be obtained.

[0095] In actual applications, as storage is used, user services may change, which may change the way users apply storage. In order to respond to changes in user storage applications in a timely manner, after obtaining the storage configuration information of the target storage, the storage configuration information can also be displayed; the modification information of the storage configuration information is received; the storage configuration information is modified according to the modification information to obtain the modified storage configuration information; the storage update information corresponding to the modified storage configuration information is generated; and the storage update information is sent to the target storage so that the target storage is updated according to the storage update information. Accordingly, the mapping between the storage space of the target storage and the target host needs to be updated according to the latest storage configuration information of the target storage, so that the target host can apply the updated target storage.

[0096] In actual applications, when configuring the target host according to the host planning information, it is necessary to consider that the host-side business will affect the configuration of the target host. For example, when the target host adopts virtualization, virtualization requires that the system of the created host and the data disk used by the host are both storage volumes. Therefore, it is necessary to control the virtualization process according to the distribution of disk space and the impact of frequent creation of disks on storage performance during use. Therefore, the target host can be configured according to the business type of the target host, that is, the business type of the target host is obtained; in response to the business type being a cloud platform, the target host is controlled to add a business layer in the middle layer of the storage layer to create a volume. This business layer is used to implement storage operations such as creating volumes, deleting volumes, and creating snapshots. Among them, creating volumes in the target storage, formatting operations of volumes, performance provided by volumes, and snapshot copying of volumes all require CPU (Central Processing Unit, central processing unit) resources. Therefore, the action of creating volumes needs to refer to the storage utilization efficiency, such as determining the speed of creating volumes by obtaining the performance parameters of the target storage; in response to the business type being a database, considering that the database itself can load balance the stored volumes, it is necessary to consider the usability of the storage volumes and the size consistency of the storage volumes. At this time, the usage of the volumes needs to be verified, that is, it is necessary to control the target host to directly read the first nK data of the volume and analyze whether the first nk is the disk header information written by the database. If so, the target host is controlled to reorder the disks of the target storage through udev.

[0097] From this implementation process, it can be seen that when the business type of this application is a cloud platform, the target host can be controlled to add a business layer in the middle layer of the storage layer to create a volume, and this business layer is used to implement storage operations such as creating volumes, deleting volumes, and creating snapshots to ensure that the target host can manage the volumes of the target storage through the business layer; when the business type is a database, it is necessary to control the target host to directly read the first nK data of the volume, and analyze whether the first nk is the disk header information written by the database to determine whether the disk is reused to reduce the risk of data overwriting. If so, the target host is controlled to reorder the disks of the target storage through udev. In this way, even if the order of disk online changes, because the disk has a unique UUID (Universally Unique Identifier), udev can still recognize the UUID to create a database to use multi-path disk symbols to ensure the application stability of the database to the target storage.

[0098] The present application provides a storage configuration method, which includes obtaining storage planning information; sending the storage planning information to the target storage so that the target storage is configured according to the storage planning information; obtaining the storage configuration information of the target storage; determining the linking mode between the target host and the target storage; mapping the storage space of the target storage to the target host according to the linking mode according to the storage configuration information; obtaining the host planning information, and configuring the target host according to the host planning information so that the target host applies the target storage. The present application can send the storage planning information to the target storage so that the target storage can be automatically configured according to the storage planning information, and can determine the linking mode between the target host and the target storage, and according to the storage configuration information obtained after the target storage is configured, automatically map the storage space to the target host according to the linking mode, so that the storage space mapping mode is adapted to the linking mode, so that the target host can successfully use the storage space after linking the target storage through the linking mode, and finally automatically configure the target host according to the host planning information, so that the target host can apply the target storage, realize automatic configuration of the target host and the target storage, without manual participation, avoid the situation of manual misoperation, and ensure that the target host can successfully use the storage space, thereby improving the efficiency and success rate of storage configuration.

[0099] See also Figure 3 , Figure 3 A schematic diagram of the structure of a storage configuration system provided in an embodiment of the present application.

[0100] A storage configuration system provided in an embodiment of the present application may include:

[0101] A first acquisition module 101 is used to acquire storage planning information;

[0102] A first sending module 102 is used to send storage planning information to a target storage so that the target storage is configured according to the storage planning information;

[0103] The second acquisition module 103 is used to acquire storage configuration information of the target storage;

[0104] A first determination module 104, used to determine a link mode between a target host and the target storage;

[0105] A first mapping module 105 is used to map the storage space of the target storage to the target host in a link manner according to the storage configuration information;

[0106] The first configuration module 106 is used to obtain host planning information and configure the target host according to the host planning information so that the target host applies the target storage.

[0107] A storage configuration system provided in an embodiment of the present application may further include:

[0108] The first planning module is used to obtain switch planning information; and plan the target switch according to the switch planning information, so that the target host is connected to the target storage through the target switch.

[0109] In a storage configuration system provided by an embodiment of the present application, a first acquisition module may include:

[0110] A first acquisition unit is used to acquire storage planning information, where the storage planning information includes storage strategy, cluster establishment strategy, communication address configuration information, and storage space configuration information;

[0111] The first configuration module may include:

[0112] A second acquisition unit is used to acquire host planning information, the host planning information includes storage space verification mode, path deployment mode, simple network management protocol configuration information, network time protocol configuration information, storage space usage information;

[0113] The first planning module may include:

[0114] The third acquisition unit is used to acquire switch planning information, where the switch planning information includes flow monitoring information, error monitoring information, inspection strategy, and partition configuration information.

[0115] A storage configuration system provided in an embodiment of the present application may further include:

[0116] The third acquisition module is used to obtain the host configuration information of the target host;

[0117] A fourth acquisition module, used to acquire switch configuration information of a target switch;

[0118] The first saving module is used to save storage configuration information, host configuration information and switch configuration information, so as to configure other newly added storage, other hosts and other switches according to the storage configuration information, host configuration information and switch configuration information.

[0119] A storage configuration system provided in an embodiment of the present application may further include:

[0120] A first display module, configured to display the storage configuration information after the second acquisition module acquires the storage configuration information of the target storage;

[0121] A first receiving module, used for receiving modification information of storage configuration information;

[0122] A first modification module, used to modify the storage configuration information according to the modification information to obtain the modified storage configuration information;

[0123] A first generating module, used to generate storage update information corresponding to the modified storage configuration information;

[0124] The second sending module is used to send the storage update information to the target storage, so that the target storage performs configuration update according to the storage update information.

[0125] In a storage configuration system provided by an embodiment of the present application, a first mapping module may include:

[0126] A first storage unit, used to store the Internet Protocol address of the target host into a target storage;

[0127] A first transmission unit, used for transmitting the Internet Protocol address of the target storage to the target host, so that the target host and the target storage are linked through the Internet Protocol address;

[0128] A first sending unit, used for sending an initiator name query instruction to a target host;

[0129] A first receiving unit, used for receiving the initiator name transmitted by the target host in response to the initiator name query instruction, wherein the initiator name of the target host is generated according to the small computer system interface;

[0130] A first reading unit, used for reading the name of the initiator stored in the target storage;

[0131] The first detection unit is used to detect whether the initiator name saved in the target storage is consistent with the initiator name of the target host; in response to the initiator name saved in the target storage being consistent with the initiator name of the target host, the target host is controlled to access the storage space of the target storage and save it.

[0132] In a storage configuration system provided by an embodiment of the present application, a first mapping module may include:

[0133] A second sending unit is used to send a globally unique node name query instruction to a target host;

[0134] A second receiving unit, used for receiving a globally unique node name transmitted by a target host in response to a globally unique node name query instruction;

[0135] A second reading unit is used to read the globally unique node name stored in the target storage;

[0136] A second detection unit is used for detecting whether the globally unique node name stored in the target storage is consistent with the globally unique node name of the target host in response to the target host connecting to the target storage through the optical fiber; detecting whether the link between the target storage and the target host is stable in response to the globally unique node name stored in the target storage being consistent with the globally unique node name of the target host; and controlling the target host to access the storage space of the target storage and save it in response to the link between the target storage and the target host being stable;

[0137] The first control unit is used to control the target host to generate a block device corresponding to the storage space of the target storage, and control the target host to generate an identifier of the block device based on the small computer system interface layer, so that the business layer of the target host operates the storage space of the target storage through the identifier.

[0138] The present application also provides an electronic device and a computer-readable storage medium, both of which have the corresponding effects of the storage configuration method provided in the embodiment of the present application. Figure 4 , Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0139] An electronic device provided in an embodiment of the present application includes a memory 201 and a processor 202. The memory 201 stores a computer program. When the processor 202 executes the computer program, the steps of the storage configuration method described in any of the above embodiments are implemented.

[0140] See also Figure 5, another electronic device provided in the embodiment of the present application may also include: an input port 203 connected to the processor 202, for transmitting commands input from the outside to the processor 202; a display unit 204 connected to the processor 202, for displaying the processing results of the processor 202 to the outside; a communication module 205 connected to the processor 202, for realizing communication between the electronic device and the outside. The display unit 204 can be a display panel, a laser scanning display, etc.; the communication method adopted by the communication module 205 includes but is not limited to mobile high-definition link technology (Mobile High-Definition Link, MHL), Universal Serial Bus (Universal Serial Bus, USB), High-Definition Multimedia Interface (High-DefinitionMultimedia Interface, HDMI), wireless connection: wireless fidelity technology (WIreless Fidelity, WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, and communication technology based on IEEE802.11s.

[0141] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the storage configuration method described in any of the above embodiments are implemented.

[0142] The computer-readable storage medium involved in this application includes random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs (Compact Disc Read-Only Memory), or any other form of storage medium known in the technical field.

[0143] A computer program product provided in an embodiment of the present application includes a computer program / instruction, which, when executed by a processor, implements the steps of the storage configuration method described in any of the above embodiments.

[0144] For the description of the relevant parts of a storage configuration system, an electronic device, and a computer-readable storage medium provided in the embodiments of the present application, please refer to the detailed description of the corresponding parts in a storage configuration method provided in the embodiments of the present application, which will not be repeated here. In addition, the parts of the above technical solutions provided in the embodiments of the present application that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail to avoid excessive elaboration.

[0145] It should also 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 "include", "comprise" 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, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0146] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A storage configuration method, characterized in that: include: Get storage planning information; Sending the storage planning information to the target storage so that the target storage is configured according to the storage planning information; Obtaining storage configuration information of the target storage; Determine a link mode between a target host and the target storage; According to the storage configuration information, mapping the storage space of the target storage to the target host in accordance with the linking mode; The host planning information is obtained, and the target host is configured according to the host planning information so that the target host applies the target storage.

2. The method according to claim 1, characterized in that Also includes: Get switch planning information; The target switch is planned according to the switch planning information, so that the target host is connected to the target storage through the target switch.

3. The method according to claim 2, characterized in that The obtaining of storage planning information includes: Acquire storage planning information, wherein the storage planning information includes storage strategy, cluster establishment strategy, communication address configuration information, and storage space configuration information; The obtaining of host planning information includes: Acquire host planning information, the host planning information including storage space verification method, path deployment method, simple network management protocol configuration information, network time protocol configuration information, and storage space usage information; The acquiring of switch planning information includes: The switch planning information is obtained, wherein the switch planning information includes flow monitoring information, error monitoring information, inspection strategy, and partition configuration information.

4. The method according to claim 3, characterized in that: Also includes: Obtaining host configuration information of the target host; Obtain switch configuration information of the target switch; The storage configuration information, the host configuration information and the switch configuration information are saved to configure other newly added storage, other hosts and other switches according to the storage configuration information, the host configuration information and the switch configuration information.

5. The method according to claim 3, characterized in that: After acquiring the storage configuration information of the target storage, the method further includes: Displaying the storage configuration information; Receiving modification information of the storage configuration information; Modify the storage configuration information according to the modification information to obtain modified storage configuration information; Generate storage update information corresponding to the modified storage configuration information; The storage update information is sent to the target storage, so that the target storage performs configuration update according to the storage update information.

6. The method according to claim 1, characterized in that Mapping the storage space of the target storage to the target host according to the linking method includes: storing the Internet Protocol address of the target host in the target storage; Transmitting the Internet Protocol address of the target storage to the target host so that the target host and the target storage are linked via the Internet Protocol address; Send the initiator name query command to the target host; receiving an initiator name transmitted by the target host in response to the initiator name query instruction, wherein the initiator name of the target host is generated according to a small computer system interface; Read the name of the initiator stored in the target storage; Detecting whether the initiator name stored in the target storage is consistent with the initiator name of the target host; In response to the initiator name stored in the target storage being consistent with the initiator name of the target host, the target host is controlled to access the storage space of the target storage and store it.

7. The method according to claim 1, characterized in that Mapping the storage space of the target storage to the target host according to the linking method includes: Sending a globally unique node name query instruction to the target host; receiving a globally unique node name transmitted by the target host in response to the globally unique node name query instruction; Read the globally unique node name stored in the target storage; In response to the target host being connected to the target storage via an optical fiber, detecting whether the globally unique node name stored in the target storage is consistent with the globally unique node name of the target host; In response to the globally unique node name stored in the target storage being consistent with the globally unique node name of the target host, detecting whether the link between the target storage and the target host is stable; In response to the link between the target storage and the target host being stable, controlling the target host to access the storage space of the target storage and save; The target host is controlled to generate a block device corresponding to the storage space of the target storage, and the target host is controlled to generate an identifier of the block device based on a small computer system interface layer, so that the business layer of the target host operates the storage space of the target storage through the identifier.

8. A storage configuration system, characterized in that: include: A first acquisition module is used to acquire storage planning information; A first sending module, used for sending the storage planning information to the target storage, so that the target storage is configured according to the storage planning information; A second acquisition module, used to acquire storage configuration information of the target storage; A first determination module, used to determine the link mode between the target host and the target storage; A first mapping module, configured to map the storage space of the target storage to the target host according to the linking mode according to the storage configuration information; The first configuration module is used to obtain host planning information and configure the target host according to the host planning information so that the target host applies the target storage.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the storage configuration method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the storage configuration method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Storage pool planning method, device and equipment and computer readable storage medium

    CN109669631A

  • Configuration information generation method and device of storage product and readable storage medium

    CN112463438A

  • Host system cloning method and device

    CN117075812A

  • Storage link setting method and device of FC-SAN (Fiber Channel Storage Area Network) and electronic equipment

    CN118802965A