Method and device for accessing at least one memory area of a SSD
Addresses the issue of memory area access during failover in multipath storage systems by modifying bitmaps using vendor-specific commands in multipath storage systems, enabling an alternative to data access between host systems and ensuring the reliability of data transfers .
Patent Information
- Application Number
- CN202111533010.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-12-16
- Filing Date
- 2021-12-15
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-12-15
AI Technical Summary
In multipath storage systems, memory areas such as Persistent Memory Region (PMR) or Controller Memory Buffer (CMB) areas cannot be effectively accessed during failover, especially when there is a lack of alternatives for data access between host systems. .
Modify the bitmap of the SSD controller by creating vendor-specific commands in a multipath system to access the memory region of the SSD controller associated with another host system from one host system and redirect reads based on the updated bitmap or write package.
It implements memory area access under failover conditions in multi-path systems, ensures reliable transmission and access of data between host systems, and provides an alternative access method to memory areas.
Smart Images

Figure CN114637708B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a storage medium device having a dynamic random access memory (DRAM) region, and more particularly, to a method and apparatus for accessing at least one memory region of a solid state drive (SSD) during a failover situation in a multipath system. Background Art
[0002] In a data center, a multipath storage system may provide an alternative method of accessing data along a particular path during a failover. However, there is no alternative method of accessing data from a memory region (such as, but not limited to, a Persistent Memory Region (PMR) / Controller Memory Buffer (CMB) region) during a failover. Figure 1 An architecture is shown in which a first host system accesses its own PMR / CMB area in a multipath storage system. There is no existing system and method for a first host system to access the PMR / CMB area of at least one second host system. For example, when the second host system cannot access its own PMR / CMB area due to a physical access failure of the second host system to a non-volatile memory express solid-state drive (NVMe-SSD), the first host system cannot access the PMR / CMB of the second host system. Figure 1 In the embodiment, the controller corresponding to the first host system may include controller 1 to controller M, and the controller corresponding to the second host system may include controller M+1 to controller N. For example, M may be an integer greater than 1, and N may be an integer greater than M.
[0003] Figure 2 is a flow chart (2000) illustrating a method for accessing a namespace area in a multi-path storage system according to the prior art disclosed herein.
[0004] At operation 202, the method includes: the second host system notifies the first host system of its physical access failure to the SSD using its own appropriate method. At operation 204, the first host system sends a namespace attachment command to the controller of the first host system to attach the namespace of the second host system to the controller of the first host system. At operation 206, the controller of the first host system receives the namespace attachment command and updates the controller to include a reference to the namespace of the second host system in the namespace mapping table. At operation 208, the method includes any further read commands or write commands. The first host system prepares a read command or a write command with a namespace ID of the second host system. At operation 210, it is emphasized that the first host system must set the appropriate namespace ID in the read command or the write command.
[0005] According to related art, in a multi-path system, during a failover situation, a namespace may be accessed across multiple hosts rather than across memory regions.
[0006] It would therefore be desirable to address the above-mentioned disadvantages or others, or at least provide a useful alternative. Summary of the invention
[0007] An aspect of one or more embodiments is to provide a method and apparatus for accessing at least one memory region of a solid state drive (SSD) during a failover situation in a multipath system.
[0008] Another aspect of one or more embodiments is receiving a message from a second host system in the multi-path storage system, wherein the message indicates to start accessing at least one memory region from at least one SSD controller of the plurality of SSD controllers associated with the second host system.
[0009] Another aspect of one or more embodiments is to create at least one vendor specific command to access the at least one memory region of the at least one SSD controller from the plurality of SSD controllers associated with the second host system.
[0010] Another aspect of one or more embodiments is to send the at least one vendor specific command to at least one SSD controller from a plurality of SSD controllers associated with a first host system to modify a bit map of the SSD controller, the bit map comprising a mapping between a base address register of the controller of the at least one SSD controller from the plurality of SSD controllers associated with a second host system and a unique controller identifier.
[0011] Another aspect of one or more embodiments is redirecting at least one of a read packet or a write packet received from a second host system to access the at least one memory region from the at least one SSD controller of the plurality of SSD controllers associated with the second host system based on an updated bitmap.
[0012] Another aspect of one or more embodiments is receiving a message from a second host system, wherein the message indicates to stop accessing the at least one memory region from the at least one SSD controller of the plurality of SSD controllers associated with the second host system.
[0013] Another aspect of one or more embodiments is to create at least one vendor specific command to stop access to at least one memory region of at least one SSD controller from the multiple SSD controllers associated with the second host system via an updated bit map, wherein the updated bit map also includes a unique identifier of the SSD controller.
[0014] Another aspect of one or more embodiments is sending the at least one vendor specific command to an SSD controller from the plurality of SSD controllers connected to the first host system.
[0015] Another aspect of one or more embodiments is to modify a bitmap of an SSD controller, the bitmap comprising a mapping between base address registers of controllers from the plurality of SSD controllers associated with the first host system and unique controller identifiers.
[0016] According to one aspect of an example embodiment, a method for accessing at least one memory area of at least one solid-state drive (SSD) including multiple SSD controllers is provided, wherein the multiple SSD controllers include a first SSD controller associated with a first host system in a multipath storage system and a second SSD controller in the multipath storage system, the second SSD controller is associated with the second host system, and the at least one memory area is associated with the second SSD controller, the method comprising: receiving a message from the second host system via the first host system during an access failure; sending at least one vendor-specific command to the first SSD controller via the first host system to modify a bit map of the first SSD controller; modifying the bit map via the first SSD controller; and redirecting, via the first host system, at least one of a read packet or a write packet received from the second host system to access the at least one memory area based on the modified bit map.
[0017] According to an aspect of example embodiments, there is provided an apparatus for accessing at least one memory area of at least one solid state drive (SSD) having a plurality of SSD controllers, the apparatus performing the above method.
[0018] According to one aspect of an example embodiment, a first host system in a multipath storage system is provided, the first host system being used to access at least one memory area of at least one solid-state drive (SSD) controller including a plurality of SSD controllers, wherein the plurality of SSD controllers include a first SSD controller associated with the first host system in the multipath storage system and a second SSD controller in the multipath storage system, and the second SSD controller is associated with the second host system, the first host system comprising: a processor; and a memory, wherein the processor is configured to execute instructions stored in the memory to provide a host-controller interface by: receiving a message from the second host system via the first host system during an access failure, sending at least one vendor-specific command via the first host system to the first SSD controller to modify a bit map of the first SSD controller, and redirecting, via the first host system, at least one of a read packet or a write packet received from the second host system to access the at least one memory area of the second SSD controller based on the modified bit map.
[0019] When considered in conjunction with the following description and accompanying drawings, the above and other aspects of the embodiments herein will be better appreciated and understood. However, it should be understood that the following description, although indicating example embodiments and many specific details thereof, is given by way of illustration and not limitation. Various changes and modifications may be made within the scope of the embodiments described herein without departing from the spirit of the embodiments herein, and the embodiments herein include all such modifications. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Example embodiments will be more clearly understood from the following brief description taken in conjunction with the accompanying drawings, in which:
[0021] Figure 1 An existing architecture according to the related art is shown, in which a first host system accesses its own permanent memory region (PMR) / controller memory buffer (CMB) region in a multi-path storage system;
[0022] Figure 2 is a flow chart showing a method for accessing a namespace in a multipath storage system according to the prior art;
[0023] Figure 3A , Figure 3B and Figure 3C shows a proposed architecture according to an embodiment in which a first host system accesses a PMR / CMB area of a second host system when the second host system cannot access its own PMR / CMB area in a multi-path storage system; and
[0024] Figure 4A and Figure 4B is a flow chart illustrating a method for enabling or disabling cross-PMR / CMB region access in a multi-path storage system according to an embodiment. DETAILED DESCRIPTION
[0025] The embodiments herein and their various features and advantageous details are explained more fully with reference to the non-limiting embodiments shown in the accompanying drawings and described in detail in the following description. The description of known components and processing techniques is omitted so as not to unnecessarily obscure the embodiments herein. In addition, because some embodiments can be combined with one or more other embodiments to form new embodiments, the various embodiments described herein are not necessarily mutually exclusive. Unless otherwise indicated, the term "or" as used herein represents a non-exclusive or. The examples used herein are intended only to facilitate understanding of the manner in which the embodiments herein can be practiced, and further enable those skilled in the art to practice the embodiments herein. Therefore, the examples should not be interpreted as limiting the scope of the embodiments herein.
[0026] As traditional in the art, embodiments can be described and illustrated according to the block of one or more systems of execution description.These blocks (which may be referred to as units or modules, etc.) are physically implemented by analog circuits or digital circuits (such as, logic gates, integrated circuits, microprocessors, microcontrollers, memory circuits, passive electronic components, active electronic components, optical components, hard-wired circuits, etc.), and can be optionally driven by firmware and software.For example, the circuit may be implemented in one or more semiconductor chips, or implemented on a substrate support member (such as, printed circuit boards, etc.).The circuit constituting the block may be implemented by dedicated hardware, or implemented by a processor (such as, one or more programmed microprocessors and associated circuits), or implemented by a combination of dedicated hardware for some functions of the execution block and a processor for other functions of the execution block.Without departing from the scope disclosed in the application, each block of the embodiment may be physically divided into two or more blocks that interact and separate.Similarly, without departing from the scope disclosed in the application, the block of the embodiment may be physically combined into more complex blocks.
[0027] The accompanying drawings are used to help easily understand various technical features, and it should be understood that the embodiments presented here are not limited by the accompanying drawings. Therefore, the present disclosure should be interpreted as extending to any changes, equivalents and substitutes other than those specifically set forth in the accompanying drawings. Although the terms first, second, etc. can be used to describe various elements here, these elements should not be limited by these terms. These terms are usually only used to distinguish an element from other elements.
[0028] Therefore, embodiments herein disclose methods and apparatus for accessing at least one memory region of a solid-state drive (SSD) during a failover situation in a multipath system. The method includes receiving a message from a second host system via a first host system in a multipath storage system, wherein the message indicates the start of accessing at least one memory region of at least one SSD controller from a plurality of SSD controllers associated with the second host system. In addition, the method includes creating at least one vendor specific command via the first host system, the at least one vendor specific command being used to access at least one memory region of at least one SSD controller from a plurality of SSD controllers associated with the second host system. In addition, the method includes sending at least one vendor specific command via the first host system to at least one SSD controller from a plurality of SSD controllers associated with the first host system to modify a bitmap (or, a bitmap table) of the SSD controller, the bitmap including a mapping between a base address register of at least one SSD controller from a plurality of SSD controllers associated with the second host system and a unique controller identifier. In addition, the method includes redirecting, by the SSD controller, at least one of a read packet and a write packet received from the second host system to access at least one memory region of at least one SSD controller from a plurality of SSD controllers associated with the second host system based on the updated bitmap. In one example, the method also includes detecting, by the second host system, an access failure.
[0029] Now refer to FIG. 3A to FIG. 4B Example embodiments are described.
[0030] Figure 3A , Figure 3B and Figure 3C An architecture according to an example embodiment is shown in which the first host system 100 accesses the PMR / CMB area of the second host system 200 when the second host system 200 cannot access its own PMR / CMB area in the multipath storage system 1000. In an example embodiment, the multipath storage system 1000 includes the first host system 100 and the second host system 200. The multipath storage system 1000 may also have more than one host group for the same function proposed between the first host system 100 and the second host system 200. The first host system 100 and the second host system 200 are examples of non-volatile memory express (NVMe) hosts.
[0031] exist Figure 3A In the multi-path storage system 1000 , the second host system 200 cannot access its own PMR / CMB area.
[0032] exist Figure 3B In the multipath storage system 1000, the first host system 100 is configured to receive a message from the second host system 200, wherein the message indicates the start of accessing at least one memory area (reference symbol "①") from at least one SSD controller of a plurality of SSD controllers associated with the second host system. In one example, the at least one memory area includes a base address register (BAR) memory. In addition, the first host system 100 is configured to create at least one vendor-specific command, the at least one vendor-specific command being used to access at least one memory area from at least one SSD controller of a plurality of SSD controllers associated with the second host system 200. In one embodiment, the at least one vendor-specific command includes a unique identifier associated with at least one SSD controller from a plurality of SSD controllers associated with the second host system 200. In addition, the first host system 100 is configured to send at least one vendor specific command to at least one SSD controller from the plurality of SSD controllers associated with the first host system 100 to modify a bit map of the SSD controller, the bit map including a mapping between a base address register of at least one SSD controller from the plurality of SSD controllers associated with the second host system 200 and a unique controller identifier (reference symbols "②" and "③"). In one example, at least one SSD controller from the plurality of SSD controllers associated with the first host system 100 may modify the bit map to map between a base address register of at least one SSD controller from the plurality of SSD controllers associated with the second host system 200 and a unique controller identifier. In addition, the SSD controller is configured to automatically redirect at least one of a read packet and a write packet received from the second host system 200 to access at least one memory region of at least one SSD controller from the plurality of SSD controllers associated with the second host system 200 based on the updated bit map (reference symbol "④").
[0033] exist Figure 3CIn the embodiment, the first host system 100 is configured to receive a message from the second host system 200, wherein the message indicates to stop accessing at least one memory area of at least one SSD controller from a plurality of SSD controllers associated with the second host system 200 (reference symbol “①”). In addition, the first host system 100 is configured to create at least one vendor specific command, the at least one vendor specific command being used to stop accessing at least one memory area of at least one SSD controller from a plurality of SSD controllers associated with the second host system 200 via an updated bitmap (the updated bitmap also includes a unique identifier of the SSD controller). In one embodiment, the at least one vendor specific command includes a unique identifier associated with at least one SSD controller from a plurality of SSD controllers associated with the first host system 100. In addition, the first host system 100 is configured to send at least one vendor specific command to an SSD controller from a plurality of SSD controllers connected to the first host system 100 (reference symbols “②” and “③”). Furthermore, the first host system 100 is configured to modify a bit map of the SSD controller, the bit map comprising a mapping between base address registers of controllers from a plurality of SSD controllers associated with the first host system 100 and a unique controller identifier (reference symbol “④”).
[0034] Figure 4A and Figure 4B is a flowchart illustrating a method for enabling or disabling cross-PMR / CMB area access in the multi-path storage system 1000 according to an example embodiment.
[0035] exist Figure 4A , the symbol "a" of operations 402a to 408a indicates a method for enabling cross-PMR / CMB region access. In operation 402a, the second host system 200 uses its own appropriate method to notify the first host system 100 about its physical access failure to the SSD. In operation 404a, the first host system 100 prepares a vendor-only command with the controller number of the second host system 200, and further sends the vendor-only command to the SSD controller corresponding to the first host system. In operation 406a, the SSD controller corresponding to the first host system 100 receives the vendor-only command and updates the information containing the controller number of the second host system 200 and its corresponding PMR / CMB base address register (BAR) region location in the bit map. In 408a, for any further memory reads or writes to the PMR / CMB BAR region of the first host system 100, the SSD controller refers to the bit map and reroutes its access to that region.
[0036] exist Figure 4B, the symbol "b" of operations 402b to 408b indicates a method for disabling cross-PMR / CMB area access. At 402b, the method includes: the second host system 200 notifies the first host system 100 to stop accessing its PMR / CMB area. At 404b, the method includes: the first host system 100 prepares a vendor unique command with its own controller number, and further sends the vendor unique command to its controller. At 406b, the method includes: the SSD controller corresponding to the first host system 100 receives the vendor unique command, and updates the information containing the controller number of the first host system 100 and its corresponding PMR / CMB BAR area location in the bit map. At 408b, the method includes: for any further memory reads or writes to the PMR / CMB BAR area of the first host system, the SSD controller corresponding to the first host system 100 refers to the bit map and reroutes its access to the area.
[0037] The embodiments disclosed herein may be implemented using at least one software program stored on a non-transitory computer-readable recording medium and executed by at least one hardware processor device to perform a network management function for controlling elements.
[0038] The foregoing description of the example embodiments will very fully reveal the general nature of the embodiments herein, so that others can easily modify and / or adapt such specific embodiments for various applications by applying current knowledge without departing from the overall concept, and therefore, such adjustments and modifications should and are intended to be understood as being within the meaning and scope of equivalents of the disclosed embodiments. It should be understood that the wording or terminology employed herein is for descriptive purposes rather than for limiting purposes. Therefore, although the embodiments herein have been described according to the example embodiments, those skilled in the art will recognize that the embodiments herein can be practiced with modifications within the spirit and scope of the embodiments as described herein.
Claims
1. A method for accessing at least one memory region of at least one solid state drive comprising a plurality of solid state drive controllers, in, The plurality of solid-state drive controllers include a first solid-state drive controller associated with a first host system in a multipath storage system and a second solid-state drive controller in the multipath storage system, the second solid-state drive controller being associated with a second host system, and the at least one memory region being associated with the second solid-state drive controller, the method comprising: receiving, via the first host system, a message from the second host system during an access failure; sending, by the first host system, at least one vendor specific command to the first solid-state drive controller to modify a bit map of the first solid-state drive controller; modifying, by the first solid-state drive controller, the bitmap; and At least one of a read packet and a write packet received from the second host system is redirected by the first host system to access the at least one memory region based on the modified bitmap.
2. The method according to claim 1, in, The at least one vendor specific command is configured to allow the first host system to access the at least one memory region.
3. The method according to claim 1, further comprising: include: The access failure is detected by the second host system.
4. The method according to claim 1, in, The step of modifying includes updating a bitmap to map between a base address register of the second solid state drive controller and the unique controller identifier.
5. The method according to claim 1, in, The first host system is configured to access the at least one memory region in response to the message.
6. The method according to claim 1, in, The at least one vendor specific command includes a unique identifier associated with the second solid state drive controller.
7. The method according to claim 4, further comprising: include: receiving, by the first host system, a second message from the second host system, wherein the second message is configured to cause the first host system to stop accessing the at least one memory region; creating, by the first host system, at least one second vendor specific command, the at least one second vendor specific command configured to cause the first solid-state drive controller to cease accessing the at least one memory region via the modified bitmap; sending, by the first host system, the at least one second vendor specific command to the first solid-state drive controller; and A bitmap associated with the first host system is modified by the first solid-state drive controller.
8. The method according to claim 7, in, The at least one second vendor specific command includes a unique identifier associated with the first solid-state drive controller.
9. The method according to any one of claims 1 to 8, in, The at least one memory region includes at least one of a permanent memory region and a controller memory buffer region.
10. The method according to claim 9, in, The at least one memory region includes a base register memory.
11. A non-transitory computer-readable storage medium storing instructions, which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 10.
12. A first host system in a multi-path storage system, the first host system being configured to access at least one memory region of at least one solid state drive comprising a plurality of solid state drive controllers, in, The plurality of solid-state drive controllers include a first solid-state drive controller associated with a first host system in a multipath storage system and a second solid-state drive controller in the multipath storage system, and the second solid-state drive controller is associated with a second host system, the first host system including: Processor; and Memory, Wherein, when the instructions stored in the memory are executed by the processor, the processor is configured to provide a host-controller interface by the following operations: receiving, by the first host system, a message from the second host system during the access failure, sending, by the first host system, at least one vendor specific command to the first solid-state drive controller to modify a bitmap of the first solid-state drive controller, and At least one of a read packet and a write packet received from the second host system is redirected by the first host system to access the at least one memory region of the second solid-state drive controller based on the modified bitmap.
