Method for accessing storage system, electronic device and computer program product
By detecting the host connection protocol, determining and mapping the logical storage space, the protocol migration from the SCSI host to the NVMeoF host is realized, which solves the problems of complex protocol switching and resource waste in the existing technology, and improves the access efficiency and flexibility of the storage system.
Patent Information
- Application Number
- CN202011410723.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-04
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-12-04
AI Technical Summary
In the existing technology, the separation of the SCSI protocol and the NVMeoF protocol makes it difficult for users to switch a SCSI host to an NVMeoF host. LUN data needs to be copied. The process is cumbersome and error-prone, and the existing infrastructure cannot be fully utilized.
By detecting the host connection protocol, the source logical storage space is determined and mapped to the target logical storage space to realize migration between protocols, avoid data duplication and actual migration, and support dual-protocol or multi-protocol access to the storage system.
It reduces data path workload and resource consumption, reduces operational complexity and manual errors, enables flexible protocol switching, and improves the access speed and scalability of the storage system.
Smart Images

Figure CN114594901B
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of data processing, and more particularly, to a method for accessing a storage system, an electronic device, and a computer program product. Background Art
[0002] With the advancement of data storage technology, storage systems can provide larger storage space and smarter storage management. Currently, storage systems are designed to be simple, high-performance and economical. Such storage systems can support the next generation of storage media and have an architecture that can be expanded vertically and horizontally, a flexible consumption model and a high degree of simplicity. In a storage environment, one or more hosts can be connected to a storage system and can use appropriate protocols to access (e.g., read and write) data in the storage system. With the rapid development of information technology, new protocols based on new technologies have increased the access speed to storage systems. Therefore, it is expected to use new protocols to access storage systems. Summary of the invention
[0003] An embodiment of the present disclosure provides a solution for accessing a storage system.
[0004] In a first aspect of the present disclosure, a method for accessing a storage system is provided. The method includes determining a source logical storage space from a second set of logical storage spaces associated with a second protocol based on detecting that a first host configured to access the storage system using a first protocol is connected to the storage system. The second protocol is different from the first protocol. The method also includes determining a target logical storage space to which the source logical storage space is mapped from a first set of logical storage spaces associated with the first protocol. The method also includes allocating the target logical storage space to the first host so that the first host accesses the storage system via the target logical storage space.
[0005] In a second aspect of the present disclosure, an electronic device is provided. The electronic device includes a processor and a memory coupled to the processor, the memory having instructions stored therein, and the instructions, when executed by the processor, cause the device to perform an action. The action includes determining a source logical storage space from a second group of logical storage spaces associated with a second protocol based on detecting that a first host configured to access the storage system using a first protocol is connected to the storage system. The second protocol is different from the first protocol. The action also includes determining a target logical storage space to which the source logical storage space is mapped from a first group of logical storage spaces associated with the first protocol. The action also includes allocating the target logical storage space to the first host so that the first host accesses the storage system via the target logical storage space.
[0006] In a third aspect of the present disclosure, there is provided a computer program product tangibly stored on a computer readable medium and comprising machine executable instructions which, when executed, cause a machine to perform the method according to the first aspect.
[0007] This Summary is provided to introduce a selection of concepts in a simplified form that are further described in the Detailed Description below. This Summary is not intended to identify key features or essential features of the disclosure, nor is it intended to limit the scope of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the exemplary embodiments of the present disclosure in more detail in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present disclosure. In the accompanying drawings:
[0009] Figure 1 A schematic diagram illustrating an example environment in which embodiments of the present disclosure may be implemented;
[0010] Figure 2 A flowchart illustrating an example method of accessing a storage system according to an embodiment of the present disclosure is shown;
[0011] Figure 3 A schematic diagram showing allocation and deallocation of logical storage space according to some embodiments of the present disclosure is shown;
[0012] Figure 4 A schematic diagram showing allocation and deallocation of logical storage space according to some embodiments of the present disclosure; and
[0013] Figure 5 A block diagram of an example device that may be used to implement embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0014] The principles of the present disclosure will be described below with reference to several example embodiments shown in the accompanying drawings. Although preferred embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that these embodiments are described only to enable those skilled in the art to better understand and implement the present disclosure, and are not intended to limit the scope of the present disclosure in any way.
[0015] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0016] As briefly mentioned above, the host can use an appropriate protocol to access the storage system. The Small Computer System Interface (SCSI) protocol is a traditional protocol. A host that uses the SCSI protocol to access the storage system is also referred to as a "SCSI host." A SCSI host can access the storage system through front-end protocols such as Internet SCSI (iSCSI) and Fibre Channel.
[0017] The Non-Volatile Memory Host Controller Interface Specification (NVMe) protocol is a new protocol that can achieve access performance superior to the SCSI protocol. A host that uses the NVMe protocol to access a storage system is also referred to as an "NVMe host". The NVMe over Fabric (NVMeoF) protocol has been proposed to implement the extension of NVMe over the Peripheral Component Interconnect Express (PCIe) bus. An NVMe host can use the NVMeoF protocol to access a storage system over different transport layers such as Fibre Channel, Remote Direct Memory Access (RDMA), and Transmission Control Protocol (TCP) connections.
[0018] As a new access protocol for next-generation storage, NVMeoF is a promising technology. Although traditional SCSI hosts still dominate, more and more users are considering switching all or part of the access to storage systems using the SCSI protocol (also called "SCSI access") to accessing storage systems using NVMeoF (also called "NVMeoF access") to increase the access speed to storage systems.
[0019] However, in the current solution, the protocol stacks of the SCSI protocol and the NVMeoF protocol are separate, which makes it difficult for users to set up a new NVMeoF host to replace the existing SCSI protocol. To do this, users need to copy the data of the logical unit number (LUN) under the SCSI protocol from the SCSI-based storage array to the NVMeoF-based storage array. This replication involves access to dozens or even hundreds of LUNs and long-term replication of LUN data. Therefore, this solution is cumbersome, error-prone, and very expensive. In addition, after the replication, the existing SCSI-based infrastructure cannot be fully utilized.
[0020] An embodiment of the present disclosure proposes a scheme for accessing a storage system to solve one or more of the above-mentioned problems and other potential problems. In the scheme, if a first host configured to access the storage system using a first protocol is detected at the storage system as being connected to the storage system, one or more source logical storage spaces are determined from a second set of logical storage spaces associated with a second protocol. The second protocol is different from the first protocol. Next, a target logical storage space to which the source logical storage space is mapped is determined from a first set of logical storage spaces associated with the first protocol. Then, the determined target logical storage space is allocated to the first host so that the first host accesses the storage system via the target logical storage space.
[0021] The solution proposed here supports the use of dual or even multiple protocols to access the storage system. In this solution, the process of switching from using one protocol to access the storage system in whole or in part to using another protocol to access the storage system does not involve data duplication and substantial migration, thereby reducing the workload of the data path and saving time and storage system resources. In addition, this process does not involve cumbersome operations from the user, thereby reducing human errors. In this way, the storage system can be flexibly accessed using the appropriate protocol without cumbersome and time-consuming operations.
[0022] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
[0023] Figure 1 1 is a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. Figure 1 As shown, environment 100 generally includes storage system 101, host 110 and host 120. It should be understood that the architecture and functions in environment 100 are described for exemplary purposes only, and do not imply any limitation on the scope of the present disclosure. The embodiments of the present disclosure can also be applied to environments involving data protection systems with different structures and / or functions.
[0024] like Figure 1 As shown, host 110 and host 120 can access storage system 101. For example, host 110 and host 120 can write data to storage system 101 or read data from storage system 101. Host 110 and host 120 can access storage system 101 by connecting to corresponding ports of storage system 101. Figure 1In the example of FIG. 1 , the storage system 101 is shown as having a port 115 and a port 125. For example, an initiator (not shown) of the host 120 may be connected to the port 125 of the storage system 101, so that the host 120 may access the storage system 101 via a path between the initiator and the port 125. Similarly, an initiator (not shown) of the host 110 may be connected to the port 115 of the storage system 101, so that the host 110 may access the storage system 101 via a path between the initiator and the port 115.
[0025] The host 110 and the host 120 may use different protocols to access the storage system 101. In some embodiments, the host 110 may be configured to use the NVMeoF protocol to access the storage system 101, and the host 120 may be configured to use the SCSI protocol to access the storage system 101. Therefore, in such an embodiment, the host 110 may also be referred to as an NVMe host, the port 115 may also be referred to as an NVMe port, the host 120 may also be referred to as a SCSI host, and the port 125 may also be referred to as a SCSI port. In some other embodiments, the host 110 and the host 120 may use other suitable protocols to access the storage system 101. In this document, the host 110 may also be referred to as a "first host", and the protocol used by the host 110 may also be referred to as a "first protocol". Similarly, the host 120 may also be referred to as a "second host", and the protocol used by the host 120 may also be referred to as a "second protocol". Since the storage system 101 supports dual-protocol access, a unified protocol stack for the first protocol and the second protocol may be implemented in the storage system 101.
[0026] The storage system 101 may be constructed based on one or more storage disks or storage nodes. The storage disks used to construct the storage system 101 may be various types of storage disks, including but not limited to solid-state drives (SSDs), magnetic disks, optical disks, etc. A logical storage unit may be created in the storage system 101 to manage such storage disks. Figure 1 In the example of , the storage system 101 is shown to manage such storage disks by creating multiple storage volumes 150-1, 150-2, 150-3, 150-4, 150-5 (collectively or individually referred to as storage volumes 150 in this article for ease of description). A storage volume (or simply a volume) is a logical linear capacity space used to retain data together with defined service level agreements and data services (such as snapshots). Users of the storage system 101 can allocate and manage storage volumes according to business needs from the perspectives of capacity, performance, functionality, etc., without any knowledge of or binding to the front-end access protocol, such as the SCSI protocol or the NVMeoF protocol.
[0027] Logical storage units such as storage volume 150 are invisible to front-end hosts 110 and 120 and the protocols they use. To this end, when creating a storage volume 150, a logical storage space corresponding to the storage volume 150 may be created for host access.
[0028] like Figure 1 As shown, a group of logical storage spaces 130 associated with the first protocol can be created, which is also referred to as the first group of logical storage spaces 130 in this article. The first group of logical storage spaces 130 includes logical storage spaces 131, 132, 133, 134 and 135 corresponding to storage volumes 150-1, 150-2, 150-3, 150-4, and 150-5, respectively. The first group of logical storage spaces 130 can be accessed by the host 110 or other hosts using the first protocol. That is, when the host 110 is connected to the storage system 101, the storage system 101 can allocate one or more of the logical storage spaces 131, 132, 133, 134 and 135 to the host 110, as will be described in detail below.
[0029] Another set of logical storage spaces 140 associated with the second protocol may be created, which is also referred to herein as the second set of logical storage spaces 140. The second set of logical storage spaces 140 includes logical storage spaces 141, 142, 143, 144, and 145 corresponding to the storage volumes 150-1, 150-2, 150-3, 150-4, and 150-5, respectively. The second set of logical storage spaces 140 may be accessible to the host 120 or other hosts using the second protocol. That is, when the host 120 is connected to the storage system 101, the storage system 101 may allocate one or more of the logical storage spaces 141, 142, 143, 144, and 145 to the host 120.
[0030] Since the first protocol is different from the second protocol, the first group of logical storage spaces 130 and the second group of logical storage spaces 140 may be logical storage spaces of different types. In an embodiment where the first protocol is the NVMeoF protocol and the second protocol is the SCSI protocol, the first group of logical storage spaces 130 may be a group of namespaces (NS). For example, logical storage spaces 131, 132, 133, 134, and 135 may be NS1, NS5, NS7, NS17, and NS23, respectively. The second group of logical storage spaces 140 may be a group of LUNs. For example, logical storage spaces 141, 142, 143, 144, and 145 may be LUN0, LUN1, LUN2, LUN3, and LUN4, respectively.
[0031] It is understandable that the creation of the storage volume and logical storage space described above may be an offline process, that is, it may be implemented without a host connected to the storage system 101. Figure 1 The numbers of storage volumes, first group of logical storage spaces, and second group of logical storage spaces shown in FIG. 1 are merely exemplary.
[0032] The manager 105 in the storage system 101 is used to manage data access of hosts (such as hosts 110 and 120) to the storage system 101. The manager 105 can also be used to manage and maintain the storage volumes 150, logical storage spaces, the correspondence between the logical storage spaces and the storage volumes 150, the mapping between the first group of logical storage spaces 130 and the second group of logical storage spaces 140, and the like in the storage system 101.
[0033] It should be understood that although Figure 1 Only two hosts 110 and 120 are shown in the figure, but more hosts can access the storage system 101. In addition to the elements shown in the figure, other elements may also exist in the environment 100. In addition, although the host 110 and the host 120 are shown separately, the host 110 and the host 120 may be implemented at the same physical device.
[0034] Figure 2 2 is a flowchart of an exemplary method 200 for accessing a storage system according to an embodiment of the present disclosure. The method 200 may be performed by, for example, Figure 1 It should be understood that the method 200 may also include additional actions not shown and / or may omit the actions shown, and the scope of the present disclosure is not limited in this respect. Figure 1 The method 200 will be described in detail.
[0035] As mentioned above, you can create offline Figure 1 1 and the corresponding first group of logical storage spaces 130 and second group of logical storage spaces 140. In operation, initially, a host 120 configured to access the storage system 101 using a second protocol is connected to the storage system 101 through a port 125. Accordingly, the manager 105 allocates one or more logical storage spaces in the second group of logical storage spaces 140 associated with the second protocol to the host 120. For example, in an embodiment where the second protocol is a SCSI protocol, the manager 105 may allocate LUN0, LUN1, LUN2, LUN3, LUN4, etc. to the host 120. Thus, the host 120 may access the storage system 101 via LUN0, LUN1, LUN2, LUN3, LUN4 using the SCSI protocol.
[0036] The host 101 configured to access the storage system 101 using the first protocol is connected to the storage system 101 through the port 115. For example, a host bus adapter (HBA) supporting the first protocol can be added to the physical device implementing the host 110. Then, the host 110 can be connected to the storage system 101 using an initiator (not shown). The user may desire to at least partially switch or migrate the access to the storage system 101 using the second protocol to the access to the storage system 101 using the first protocol, which is also referred to as the migration of access between protocols. The following describes in detail how to implement such migration of access between protocols.
[0037] In block 210, the manager 105 determines one or more source logical storage spaces from the second set of logical storage spaces 140 associated with the second protocol based on detecting that the host 110 is connected to the storage system 101. The source logical storage space described herein refers to the logical storage space for which the migration of access is to be performed. For example, in an embodiment where the second protocol is the SCSI protocol, the manager 105 can determine one or more source LUNs for migration from LUN0, LUN1, LUN2, LUN3, LUN4, etc.
[0038] In some embodiments, the manager 105 may determine the source logical storage space according to a predetermined configuration. As an example, upon detecting that the host 110 is connected to the storage system 101, the manager 105 may determine all logical storage spaces in the first group of logical storage spaces 140 associated with the second protocol as source logical spaces for migration, so as to achieve full migration of access. As another example, upon detecting that the host 110 is connected to the storage system 101, the manager 105 may determine a predetermined number of logical storage spaces in the first group of logical storage spaces 140 as source logical storage spaces for migration, so as to achieve partial migration of access.
[0039] In some embodiments, the manager 105 may determine the source logical storage space for migration according to user input or user selection. For example, when detecting that the host 110 is connected to the storage system 101, the manager 105 may provide a user interface to the user and receive user input or user selection for the storage system 101.
[0040] In one embodiment, full migration of access may be supported. If the received user input specifies the host 120, the manager 105 may determine all logical storage spaces in the second set of logical storage spaces 140 that are allocated to the host 120 as source logical storage spaces for migration. In such an embodiment, the user only needs to specify the host 120 by entering or selecting identification information (e.g., ID) of the host 120 in the user interface. For example, in an embodiment where the first protocol is the NVMeoF protocol and the second protocol is the SCSI protocol, the user may enter the SCSI host ID of the host 120 in the user interface. Additionally, the user may also enter the NVMeoF qualified name (NQN) of the host 110 in the user interface. Thus, the manager 105 may determine all LUNs allocated to the host 120 as source logical storage spaces for migration to the host 110.
[0041] In one embodiment, partial migration of access may be supported. A user may select a logical storage space for migration from the second set of logical storage spaces 140 in a user interface. In other words, the user selection may specify one or more logical storage spaces in the second set of logical storage spaces 140. Accordingly, the manager 105 may determine the logical storage space specified by the user selection as the logical storage space for migration. For example, the user selection may specify logical storage spaces 142, 144, 145.
[0042] The partial migration supported by this embodiment can be used to protect and be compatible with existing storage systems. For example, there may be a situation where booting from a storage area network (SAN) using a second protocol (e.g., a SCSI protocol) is supported, while booting using a first protocol (e.g., an NVMeoF protocol) is not defined or supported. In this case, the user can select those logical storage spaces (e.g., LUNs) that are not used for booting from the first group of logical storage spaces 140 for migration. In this way, those logical storage spaces in the first group of logical storage spaces 140 that are used for booting will be maintained.
[0043] Continue to refer Figure 2. In box 220, the manager 105 determines the target logical storage space to which the source logical storage space is mapped from the first group of logical storage spaces 130 associated with the first protocol. The manager 105 can determine the target logical storage space based on the mapping between the first group of logical storage spaces 130 and the second group of logical storage spaces 140. In an embodiment of the present disclosure, such a mapping can be maintained or determined by the storage system 101 without user input or specification. Logical storage spaces corresponding to the same storage unit (e.g., storage volume 150) of the back end can be mapped to each other. For example, in an embodiment where the first protocol is the NVMeoF protocol and the second protocol is the SCSI protocol, the LUN and NS corresponding to the same storage volume 150 can be mapped to each other.
[0044] In some embodiments, the manager 105 may generate a mapping between the first logical storage space 130 and the second logical storage space 140 when creating the first logical storage space 130 and the second logical storage space 140 offline. Then, after determining the source logical storage space, the manager 105 may determine the target logical storage space according to the maintained mapping. Figure 1 In the example of , the maintained mapping may indicate that logical storage spaces 141, 142, 143, 144, 145 are respectively mapped to logical storage spaces 131, 132, 133, 145, 135. For example, if logical storage space 142 is determined as the source logical storage space for migration, manager 105 may determine logical storage space 132 as the target logical storage space for migration.
[0045] In some embodiments, the manager 105 may determine the target logical storage space for migration based on the correspondence between the first group of logical storage spaces 130 and the storage volume 150 and the correspondence between the second group of logical storage spaces 140 and the storage volume 150. Specifically, the manager 105 may determine the storage volume corresponding to the source logical storage space in the storage system 101. The manager 105 may then determine the logical storage space corresponding to the storage volume in the first group of logical storage spaces 130 as the target logical storage space. As an example, if the logical storage space 142 is determined as the source logical storage space for migration, the manager 105 may determine the storage volume 150-2 corresponding to the logical storage space 142, and may determine that the storage volume 150-2 in the first group of logical storage spaces 130 corresponds to the logical storage space 132. Thus, the logical storage space 132 may be determined as the target logical storage space for migration.
[0046] In block 230, the manager 105 allocates the target logical storage space to the first host 110, so that the first host 110 can access the storage system 101 via the target logical storage space. According to the implementation of the storage system 101, the manager 105 can allocate the target logical storage space to the first host 110 in any suitable manner for access by the first host 110.
[0047] In some embodiments, the manager 105 may generate identification information (also referred to as "target identification information") of a target logical storage space based on identification information of a source logical storage space (also referred to as "source identification information"). The manager 105 may use any suitable algorithm to generate target identification information from the source identification information, and the scope of the present disclosure is not limited in this respect. The manager 105 may then associate the target identification information of the target logical storage space with identification information of the host 110 (also referred to as "host identification information"). The source identification information and the target identification information may be any information that can uniquely identify the corresponding logical storage unit, such as a unit identifier, a unit name. The host identification information may be any information that can uniquely identify the host 110, such as a host name, a host identifier, and the like.
[0048] In some embodiments, the manager 105 may also deallocate the source logical storage space from the host 120. Thus, the host 120 will not be able to access the storage system 101 via the source logical storage space. For example, if the host 120 will not use the second protocol to access the source logical storage space after the migration, the manager 105 may deallocate the source logical storage space from the host 120.
[0049] The following will refer to Figure 3 and Figure 4 To describe the allocation of target logical storage space and the deallocation of source logical storage space. Figure 3 A schematic diagram 300 is shown of allocation and deallocation of logical storage space according to some embodiments of the present disclosure. Figure 4 Schematic diagram 400 of allocation and deallocation of logical storage space according to some embodiments of the present disclosure is shown. Figure 3 and Figure 4 In the example, the first protocol is the NVMeoF protocol and the second protocol is the SCSI protocol. Accordingly, the logical storage spaces 141, 142, 143, 144, 145 may be LUNs, such as LUN0, LUN1, LUN2, LUN3, LUN4. The logical storage spaces 131, 132, 133, 134, 135 may be NSs, such as NS1, NS5, NS7, NS17, NS23. Figure 3 and Figure 4As shown, host 120 may have a host ID, and host 110 may have an NQN. The NQN of host 120 may correspond to the initiator used by host 120 to connect to storage system 101.
[0050] In this example, the identification information of the first group of logical storage spaces 140 may be a World Wide Name (WWN). Figure 3 and Figure 4 As shown, logical storage spaces 141, 142, 143, 144, 145 may have WWN1, WWN2, WWN3, WWN4, WWN5, respectively. Initially, logical storage spaces 141, 142, 143, 144, 145 may be allocated to host 120. WWN1, WWN2, WWN3, WWN4, WWN5 may be associated with a host ID of host 120.
[0051] Figure 3 The scenario of full migration is shown. That is, logical storage spaces 141, 142, 143, 144, 145 are all determined as source logical storage spaces. Logical storage spaces 131, 132, 133, 134, 135 are correspondingly determined as target logical storage spaces. The manager 105 can generate a namespace globally unique identifier (NGUID) of the corresponding target logical storage space based on the WWN of each of the logical storage spaces 141, 142, 143, 144, 145. Figure 3 In the example of FIG. 1 , the manager 105 may generate NGUID1 of the logical storage space 131 based on WWN1 of the logical storage space 141, and associate NGUID1 with the NQN of the host 110. Similarly, NGUID2 of the logical storage space 132, NGUID3 of the logical storage space 133, NGUID4 of the logical storage space 134, and NGUID5 of the logical storage space 135 are respectively generated and associated with the NQN of the host 110. In this way, the logical storage spaces 131, 132, 133, 134, and 135, such as NS1, NS5, NS7, NS17, and NS23, may be allocated to the host 110.
[0052] like Figure 3 As indicated by the dashed box in , the WWN of each of the logical storage spaces 141, 142, 143, 144, 145 is disassociated from the host ID of the host 120. In this way, the logical storage spaces 141, 142, 143, 144, 145, such as LUN0, LUN1, LUN2, LUN3, LUN4, can be deallocated from the host 120.
[0053] In realizing Figure 3After the illustrated example migration, the host 110 can use the first protocol to access the storage system 101 via the logical storage spaces 131, 132, 133, 134, 135. Meanwhile, the host 120 will be prohibited from accessing the storage system 101 via the logical storage spaces 141, 142, 143, 144, 145.
[0054] and Figure 3 different, Figure 4 shows a partial migration scenario. Figure 4 In the example of , logical storage spaces 142, 143, and 145 are determined as source logical storage spaces. Logical storage spaces 132, 133, and 135 are correspondingly determined as target logical storage spaces. The manager 105 can generate an NGUID of the corresponding target logical storage space based on the WWN of each of the logical storage spaces 142, 143, and 145. Figure 4 In the example of FIG. 1 , the manager 105 can generate NGUID2 of the logical storage space 132 based on WWN2 of the logical storage space 142, and associate NGUID2 with the NQN of the host 110. Similarly, NGUID3 of the logical storage space 133 and NGUID5 of the logical storage space 135 are respectively generated and associated with the NQN of the host 110. In this way, the logical storage spaces 132, 133, 135, such as NS5, NS7, NS23, can be allocated to the host 110.
[0055] like Figure 4 As indicated by the dashed box in , the WWN of each of the logical storage spaces 142, 143, 145 is disassociated from the host ID of the host 120. In this way, the logical storage spaces 142, 143, 145, such as LUN1, LUN2, LUN4, can be deallocated from the host 120.
[0056] In realizing Figure 4 After the illustrated example migration, host 110 can access storage system 101 via logical storage spaces 132, 133, 135. Host 120 will be prohibited from accessing storage system 101 via logical storage spaces 142, 143, 145. Meanwhile, host 120 can still access storage system 101 via logical storage spaces 141 and 144.
[0057] The exemplary embodiments described above involve two protocols. It is understood that the embodiments of the present disclosure may also be implemented to support three or more protocols to access the storage system.
[0058] As can be seen from the above description, an embodiment of the present disclosure proposes a solution for accessing a storage system. The solution supports the use of dual protocols or even multiple protocols to access a storage system. In the solution, the process of switching from using one protocol to accessing a storage system to using another protocol does not involve data duplication and substantial migration, thereby reducing the workload of the data path and saving time and storage system resources. In addition, this process does not involve cumbersome operations from the user, thereby reducing human errors. In this way, the storage system can be accessed flexibly using a suitable protocol without cumbersome and time-consuming operations.
[0059] Figure 5 Schematic block diagram of an example device 500 that can be used to implement embodiments of the present disclosure is shown. Figure 1 The storage manager 120 shown may be implemented by the device 500. Figure 5 As shown, the device 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 502 or computer program instructions loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0060] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0061] The various processes and processing described above, such as method 200, may be performed by processing unit 501. For example, in some embodiments, method 200 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by CPU 501, one or more actions of method 200 described above may be performed.
[0062] The present disclosure may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.
[0063] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples (non-exhaustive list) of computer readable storage medium include: portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, such as a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination of the above. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (e.g., a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.
[0064] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0065] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0066] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0067] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0068] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0069] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0070] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for accessing a storage system, include: determining a source logical storage space from a second set of logical storage spaces associated with a second protocol different from the first protocol based on detecting that a first host configured to access the storage system using a first protocol is connected to the storage system; Determining, from a first set of logical storage spaces associated with the first protocol, a target logical storage space to which the source logical storage space is mapped; as well as Allocating the target logical storage space to the first host, so that the first host accesses the storage system via the target logical storage space; Wherein determining the target logical storage space to which the source logical storage space is mapped comprises: Determining a storage volume in the storage system corresponding to the source logical storage space; as well as A logical storage space in the first group of logical storage spaces corresponding to the storage volume is determined as the target logical storage space.
2. The method according to claim 1, wherein determining the source logical storage space include: receiving user input for the storage system; as well as If the user input specifies a second host that uses the second protocol to access the storage system, a logical storage space in the second group of logical storage spaces that is allocated to the second host is determined as the source logical storage space.
3. The method according to claim 1, wherein determining the source logical storage space include: receiving a user selection for the second set of logical storage spaces; as well as The logical storage space selected and specified by the user in the second group of logical storage spaces is determined as the source logical storage space.
4. The method according to claim 1, wherein the target logical storage space is allocated to the first host include: Generate target identification information of the target logical storage space based on the source identification information of the source logical storage space; as well as The target identifier is associated with the host identifier information of the first host.
5. The method according to claim 4, wherein the source identification information includes the World Wide Name (WWN) of the source logical storage space, the target identification information includes the Namespace Globally Unique Identifier (NGUID) of the target logical storage space, and the host identification information includes the Non-Volatile Memory Host Controller Interface Specification Qualified Name (NQN) of the first host.
6. The method according to claim 1, further comprising: include: The source logical storage space is de-allocated from a second host, the second host being configured to access the storage system using the second protocol.
7. The method of claim 1, wherein the first protocol comprises a Non-Volatile Memory Host Controller Interface Specification (NVMe) protocol, and the second protocol comprises a Small Computer System Interface (SCSI) protocol.
8. An electronic device, include: processor; as well as a memory coupled to the processor, the memory having instructions stored therein, the instructions, when executed by the processor, causing the device to perform actions, the actions comprising: determining a source logical storage space from a second set of logical storage spaces associated with a second protocol different from the first protocol based on detecting that a first host configured to access the storage system using a first protocol is connected to the storage system; determining, from a first set of logical storage spaces associated with the first protocol, a target logical storage space to which the source logical storage space is mapped; and Allocating the target logical storage space to the first host, so that the first host accesses the storage system via the target logical storage space; Wherein determining the target logical storage space to which the source logical storage space is mapped comprises: determining a storage volume in the storage system corresponding to the source logical storage space; and A logical storage space in the first group of logical storage spaces corresponding to the storage volume is determined as the target logical storage space.
9. The apparatus according to claim 8, wherein determining the source logical storage space include: receiving user input for the storage system; as well as If the user input specifies a second host that uses the second protocol to access the storage system, a logical storage space in the second group of logical storage spaces that is allocated to the second host is determined as the source logical storage space.
10. The apparatus according to claim 8, wherein determining the source logical storage space include: receiving a user selection for the second set of logical storage spaces; as well as The logical storage space selected and specified by the user in the second group of logical storage spaces is determined as the source logical storage space.
11. The device according to claim 8, wherein the target logical storage space is allocated to the first host include: Generate target identification information of the target logical storage space based on the source identification information of the source logical storage space; as well as The target identifier is associated with the host identifier information of the first host.
12. The device according to claim 11, wherein the source identification information includes a worldwide name (WWN) of the source logical storage space, the target identification information includes a namespace globally unique identifier (NGUID) of the target logical storage space, and the host identification information includes a non-volatile memory host controller interface specification qualified name (NQN) of the first host.
13. The apparatus of claim 8, wherein the action further include: The source logical storage space is de-allocated from a second host, the second host being configured to access the storage system using the second protocol.
14. The apparatus of claim 8, wherein the first protocol comprises a Non-Volatile Memory Host Controller Interface Specification (NVMe) protocol, and the second protocol comprises a Small Computer System Interface (SCSI) protocol.
15. A computer program product tangibly stored on a computer readable medium and comprising machine executable instructions which, when executed, cause a machine to perform the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Computer system accessing object storage system
CN103765370A
Computer system accessing object storage system
CN106168884A
System, method and apparatus for multiple-protocol-accessible OSD storage subsystem
US20070118676A1
Computer system accessing object storage system
US20130054889A1
Command communication via MPIO driver agnostic of underlying communication protocols
US20200314218A1
