Host-aware update write

By maintaining the mapping data of logical addresses and physical addresses in the storage system and using shadow logs, atomic multi-device operations are realized, which solves the data integrity problem of the software-defined storage system during update write operations and reduces the write I/O burden. Improved system performance and reliability.

CN112088366BActive Publication Date: 2024-09-03INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN201980030460.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-05-09
Filing Date
2019-04-25
Publication Date
2024-09-03
Estimated Expiration
2039-04-25

AI Technical Summary

Technical Problem

Software-defined storage systems cannot assume the existence of non-volatile storage when performing update write operations, resulting in exposed data integrity and high I/O load, increasing response time and throughput.

Method used

By maintaining the mapping data between the logical address and the physical address viewed by the host on the storage unit, atomic multi-device operations are implemented, and shadow logs and copy-on-write methods are used to reduce the write I/O burden and ensure data integrity.

Benefits of technology

It reduces the I/O burden of write operations, avoids data integrity exposure, and improves system reliability and response speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112088366B_ABST
    Figure CN112088366B_ABST
Patent Text Reader

Abstract

One embodiment provides a method that includes maintaining mapping data between a first set of logical addresses (e.g., logical block addresses or LBAs) viewed by a host and a first set of physical addresses (e.g., physical block addresses or PBAs) and a second set of physical addresses of the storage unit on a storage unit. A first logical address (e.g., LBA) of the first set of logical addresses corresponds to a first physical address (e.g., PBA) of the first set of physical addresses that maintains current data for the first logical address. The first logical address further corresponds to a second physical address (e.g., PBA) of the second set of physical addresses that maintains previous data for the first logical address. The method also includes receiving a command from the host at the storage unit to perform a multi-device operation involving the first logical address. The operation is performed atomically.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The present invention relates generally to storage systems and, more particularly, to systems and methods for implementing a host-aware update write protocol. Background Art

[0002] Hardware-based storage systems typically provide separate non-volatile storage for data protection against unintentional power loss. A typical use of such separate non-volatile storage is to implement a write-ahead log, which guarantees that missed updates can be applied to atomic read-modify-write operations associated with erasure codes. By contrast, software-defined storage systems that implement erasure coding for data protection cannot assume the presence of non-volatile storage and are therefore forced to use additional storage devices to implement these write-ahead logs, which increases the system-level I / O load, resulting in reduced throughput and increased response time. Summary of the invention

[0003] One embodiment provides a method that includes maintaining mapping data between a first set of logical addresses (e.g., logical block addresses or LBAs) viewed by a host and a first set of physical addresses (e.g., physical block addresses or PBAs) and a second set of physical addresses of the storage unit on a storage unit. A first logical address (e.g., LBA) in the first set of logical addresses corresponds to a first physical address (e.g., PBA) in the first set of physical addresses that maintains current data for the first logical address. The first logical address also corresponds to a second physical address (e.g., PBA) in the second set of physical addresses that maintains previous data for the first logical address. The method further includes receiving a command from the host at the storage unit to perform a multi-device operation involving the first logical address. The operation is performed atomically.

[0004] These and other aspects, features and advantages of the present invention will be understood with reference to the accompanying drawings and detailed description herein, and will be realized by means of the various elements and combinations particularly pointed out in the appended claims. It should be understood that the above general description and the following brief description of the drawings and detailed description of the present invention are exemplary and illustrative of the preferred embodiments of the present invention, rather than limiting the invention as claimed. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] The subject matter that is regarded as the invention is particularly pointed out and distinctly claimed in the claims at the conclusion of the specification. The foregoing and other objects, features and advantages of the invention will become apparent from the following detailed description taken in conjunction with the accompanying drawings, in which:

[0006] Figure 1A A conventional software-defined erasure coded storage system is shown in an initial state at time t0;

[0007] Figure 1Bshows the storage system at time t1;

[0008] Figure 1C shows the storage system at time t2;

[0009] Figure 1D shows the storage system at time t3;

[0010] Figure 1E shows the storage system at time t4;

[0011] Figure 1F shows the storage system at time t5;

[0012] Figure 2A An example framework for storage in one or more embodiments is shown;

[0013] Figure 2B Another example framework for storage in one or more embodiments is shown;

[0014] Figure 2C Yet another example framework for storage in one or more embodiments is shown;

[0015] Figure 3 is a flow chart illustrating an example process for implementing a host-aware update protocol to keep a single parity erasure code intact in one or more embodiments; and

[0016] Figure 4 is a high-level block diagram illustrating an information processing system for implementing an embodiment of the present invention.

[0017] The detailed description explains the preferred embodiments of the invention, together with advantages and features, by way of example with reference to the drawings. DETAILED DESCRIPTION

[0018] The present invention relates generally to storage systems, and more particularly to systems and methods for implementing a host-aware update write protocol. The method of one embodiment includes maintaining mapping data between a first set of logical addresses (e.g., logical block addresses or LBAs) viewed by a host and a first set of physical addresses (e.g., physical block addresses or PBAs) and a second set of physical addresses of the storage unit on a storage unit. A first logical address (e.g., LBA) of the first set of logical addresses corresponds to a first physical address (e.g., PBA) in the first set of physical addresses, the first physical address maintaining current data of the first logical address. The first logical address further corresponds to a second physical address (e.g., PBA) in the second set of physical addresses, the second physical address maintaining previous data of the first logical address. The method also includes receiving a command from the host at the storage unit to perform a multi-device operation involving the first logical address. The operation is performed atomically.

[0019] For purposes of this description, the term "erasure coded storage system" as used herein generally refers to a storage system that implements a general type of algorithm for data resiliency, such as, but not limited to, a storage system that implements any level of redundant array of independent disks (RAID).

[0020] Conventional software-defined storage systems that implement erasure coding for data protection cannot assume the presence of non-volatile storage. Figures 1A-1F An example sequence of steps for performing an update write operation on a conventional software defined erasure coded storage system 10 is shown.

[0021] Figure 1A The storage system 10 is shown in an initial state at time t0. The storage system 10 implements 3+P erasure code for data protection. The storage system 10 includes one or more non-volatile storage units 12 for maintaining data (e.g., data blocks and parity blocks). The storage system 10 also includes a volatile buffer 11 for maintaining data during input / output (I / O) operations on the one or more storage units 12. Figure 1A As shown, in the initial state, one or more storage units 12 hold data block D0, data block D1, data block D2 and a parity block DP calculated according to the parity equation (1) provided below:

[0022] DP=D0+D1+D2 (1),

[0023] Where + represents the exclusive OR (XOR) operation.

[0024] A parity stripe includes a group of data blocks and one or more parity blocks corresponding to the group of data blocks. For example, data blocks D0-D2 and parity block DP together form a parity stripe.

[0025] Figure 1B The storage system 10 at time t1 is shown. Assume that an update write operation is a multi-device operation issued by an external host system, and that a data block D0 in one or more storage units 12 needs to be updated with a new data block D0'. At time t1, in response to receiving the update write operation from the external host system, the storage system 10 reads the data block D0 from the one or more storage units 12 into the volatile buffer 11.

[0026] Figure 1C The storage system 10 is shown at time t2. In order to successfully complete the update write operation, the parity block DP must also be updated to a new parity block DP'. At time t2, the storage system 10 reads the parity block DP from one or more storage units 12 into the volatile buffer 110.

[0027] Figure 1DThe storage system 10 is shown at time t3. At time t3, the storage system 10 calculates a new parity block DP' according to the parity equation (2) provided below:

[0028] DP'=D0+D0'+DP (2)

[0029] Figure 1E The storage system 10 is shown at time t4. At time t4, the storage system 10 writes a new data block D0' to one or more storage units 120.

[0030] Figure 1F The storage system 10 is shown at time t5. At time t5, the storage system 10 writes a new parity block DP' to one or more storage units 120 to complete the update write operation.

[0031] The steps involving data block D0 and parity stripe DP are asynchronous, so Figures 1A-1F The sequence of steps shown in is one possible ordering.

[0032] If an unintentional power-off event occurs between time t4 and time t5, data integrity is exposed. Specifically, parity block DP may be damaged, resulting in an uncertain parity state from which the storage system 10 cannot recover. The uncertain parity state of parity block DP can be expressed according to expression (3) provided below:

[0033] DP! = D0' + D1 + D2 (3)

[0034] If the external host system retries the update write operation, the storage system 10 will provide an invalid new parity block DP' because the storage system 10 will calculate the new parity block DP' according to the parity equation (4) provided below:

[0035] DP'=D0'+D0'+DP (4)

[0036] Wherein, due to the characteristics of the XOR operation, the parity equation (4) is simplified to the parity equation (5) provided below:

[0037] DP'=DP (5)

[0038] If the steps performed at time t4 and t5 are reversed, similar data integrity exposure results in a power-off event. In addition, if a more complex parity equation is used to represent the parity block, there is a greater possibility of data integrity exposure. Therefore, the update write operation needs to be strengthened, and the multi-device operation needs to be atomic.

[0039] Software-defined systems are expected to exhibit properties required to recover from events such as power loss, such as atomicity and other properties associated with durability. For example, if an unintentional power loss occurs during an update write operation, the software-defined storage system must be able to recover to a consistent storage state and ensure correct erasure coding.

[0040] In conventional software-defined storage systems without non-volatile buffers, logs are used to achieve atomicity of data updates. Logs are usually stored in additional non-volatile storage units of the storage system. Replication can be implemented for data protection of logs to avoid data integrity exposure in power-off events.

[0041] One conventional method for achieving atomicity of data updates is write-ahead logging (ie, shadow logging), which involves using a write-ahead transaction log when updating parity blocks. Write-ahead logging results in high I / O amplification penalties.

[0042] For example, let d1', d2', ..., dN' represent a set of N logical addresses (e.g., logical block addresses or LBAs) of a new data block that needs to be atomically updated (i.e., atomically updated across non-volatile storage units). Let p1', p2', ..., pM' represent a set of M LBAs for a new parity block that corresponds to the N LBAs and also needs to be atomically updated. Let d1, d2, ..., dN and p1, p2, ..., pM represent the previous versions of the N LBAs and the M LBAs, respectively.

[0043] To update the write parity block, a read operation is required that involves reading the N LBAs and the previous versions of the M LBAs (i.e., d1, d2, ..., dN and p1, p2, ..., pM) from the non-volatile storage unit so that the M LBAs can be calculated from the N LBAs using the parity equation. These read operations require N+M block reads.

[0044] In order to achieve atomicity of update writes, multiple blocks of log records are written before new data blocks and new parity blocks are written to non-volatile storage units. The log record includes new data blocks and new parity blocks (i.e., d2', ..., dN' and p1', p2', ..., pM'). The log record may include embedded new data and parity values ​​as part of the log record itself, or include pointers to blocks allocated from shadow block areas managed by the implementation. In either case, N+M blocks of log records and / or shadow block areas need to be written. In addition, C mirror copies of the log record are required to protect the log record itself from data loss, where C is a value selected to match the fault tolerance of the erasure code implemented by the storage system. As a result, logging before writing results in a write amplification factor of C(N+M) writes.

[0045] New data blocks and parity blocks can be written to non-volatile storage only when they are safely written to the log record. Therefore, the total I / O amplification factor for atomic update writes using write-ahead logging is the sum of N+M block reads and C(N+M) writes.

[0046] Since the data blocks and parity blocks are not synchronized, the parity blocks may be corrupted (ie, indeterminate parity state).

[0047] One embodiment provides a system and method for write reduction (i.e., reducing write I / O burden) on a storage system that uses a shadow log in combination with a write-ahead transaction log to maintain data integrity through atomicity when the underlying storage uses a copy-on-write (COW) approach. Without such data protection, data integrity exposure may occur if there is an unexpected power loss. One embodiment applies to flash storage and COW file systems, such as ZFS. One embodiment avoids the additional write operations typically required to provide resilience for shadow copies and write-ahead transaction logs.

[0048] A COW storage unit, such as flash memory, has an internal translation layer that maintains metadata information for mapping ("mapping data") a set of logical addresses (e.g., LBAs) seen by an external host system to a set of physical addresses (e.g., physical block addresses or PBAs) of the storage unit. Since flash storage generally does not support in-place updates for write operations, maintaining the mapping data internally allows the storage unit to support garbage collection of fully erased blocks.

[0049] Figure 2A An example framework 50 for storage in one or more embodiments is shown. The example framework 50 includes a software defined storage system 100 and an external host system 60 connected to the storage system 100.

[0050] In one embodiment, the storage system 100 is a storage array including one or more non-volatile storage cells 120 (e.g., COW storage cells) for maintaining data (e.g., data blocks and parity blocks). The storage system 100 also includes an I / O unit 130 configured to exchange data with the host system 60, such as receiving commands (e.g., read commands, write commands, etc.). The storage system 100 also includes a volatile buffer 110 for maintaining data during an I / O operation performed on one or more storage cells 120 in response to the received command. In one embodiment, the storage system 100 implements erasure codes for data protection (i.e., an erasure coded storage system).

[0051] In one embodiment, the host system 60 views data stored on the one or more storage units 120 as a virtualized address space of LBAs without knowing the boundaries of the one or more storage units 120 or the details of the erasure code implemented by the storage system 100. The host system 60 includes an I / O unit 61 configured to exchange data with the storage system 100, such as issuing commands (e.g., read commands, write commands, etc.). The host system 60 can issue commands to the virtualized address space without knowing that a write command may involve additional update write operations to keep the erasure code intact.

[0052] In one embodiment, the storage system 100 further includes a controller / virtualization unit 140 configured to identify, for an LBA of a virtualized address space as seen by the host system 60, one or more portions of one or more storage units 120 that contain data blocks and parity blocks corresponding to the LBA. The controller / virtualization unit 140 maps logical addresses of the virtualized address space to physical addresses of the one or more storage units 120 (e.g., maps the LBA of the virtualized address space to the PBA of the one or more storage units 120 that contain the corresponding data blocks and parity blocks). In another embodiment, the controller / virtualization unit 140 is instead implemented on the host system 60 (e.g., Figure 2B In another embodiment, the controller / virtualization unit 140 is implemented on another external system, such as the controller system 80 (eg, Figure 2C shown).

[0053] Compared to conventional software-defined storage systems, the framework 50 supports modifications to the behavior of the storage system 100 and modifications to the I / O interface with the host system 60 to achieve a reduction in the number of additional write operations required. Specifically, the framework 50 extends the mapping metadata maintained in the internal translation layer 121 of at least one storage unit 120. The extended mapping metadata includes, but is not limited to, previous version mapping information 125, which identifies and tracks one or more previous version copies of one or more LBAs (i.e., LBAs of data blocks or parity blocks). The framework 50 also provides one or more new I / O interfaces implemented by the controller / virtualization unit 140 and one or more storage units 120 to facilitate processing and management of previous version mapping information.

[0054] The internal translation layer 121 of the storage unit 120 is configured to implement the following functions: (1) a function for determining the PBA of the storage unit 120 associated with the LBA, and (2) a function for retrieving a free PBA of the storage unit 120 for a write operation.

[0055] The framework 50 supports a host-aware model in which most functions are performed in storage, and a host management approach in which the necessary information to provide new functions is available and actionable at the host level.

[0056] In one embodiment, unlike conventional software-defined storage systems, an LBA may correspond to multiple PBAs. For example, an LBA may correspond to a first PBA that maintains a data block and a second PBA that maintains a previous version copy of the data block. Although embodiments of previous version mapping information described in detail later herein identify and track a single previous version copy of one or more LBAs, the previous version mapping information may identify and track multiple previous version copies of one or more LBAs.

[0057] The previous version mapping information may be stored on at least one storage unit 120 in a variety of ways, such as but not limited to a hash table, a key-value store, a database, etc. Since the total number of previous version copies is expected to be significantly less than the total number of available LBAs, in one embodiment, the previous version copies may be stored separately, such as using a sparse data structure for efficient storage, thereby eliminating the requirement to have an entry in the previous version mapping information for the previous version copy of each LBA.

[0058] In one embodiment, management of previous version mapping information on storage unit 120 is achieved by including, for an LBA, a first pointer to a first PBA that maintains a current version copy of the data of the LBA (i.e., a current data block or a current parity block), and a second pointer to a second PBA that maintains a previous version copy of the data of the LBA (i.e., a previous data block or a previous parity block). As described in detail later herein, maintaining previous version mapping information on at least one storage unit 120 facilitates tracking the state of internal operations of at least one storage unit 120 to facilitate data recovery after a power loss event.

[0059] Table 1 below provides example entries of LBAs included in the previous version mapping information on the storage unit 120 in one or more embodiments.

[0060]

[0061]

[0062] As shown in Table 1 provided above, the entry includes a plurality of fields. The plurality of fields include, but are not limited to, one or more of the following: an optional ID field containing a local identifier for the entry (e.g., an address in a storage array) for use in internal management of the entry, (2) an LBA field containing an LBA of the virtualized address space as seen / viewed by the host system 60, (3) a current PBA field containing a PBA of the storage unit 120 containing a current version copy of the data of the LBA, (4) a previous PBA field containing a different PBA of the storage unit 120 containing a previous version copy of the data of the LBA, (5) a global write complete (gwc) field containing a gwc flag indicating whether the write operation is complete, (6) a transaction sequence number (tsn) field containing a tsn that is unique among all entries included in the previous version mapping information on the storage unit 120, and (7) a host-defined metadata (hmd) field containing a hmd.

[0063] If the entry is empty, the LBA field may instead maintain a NULL value to mark the entry as empty. If a current version copy of the data for the LBA is not assigned, the Current PBA field may instead maintain a NULL value. If a previous version copy of the data for the LBA is not assigned, the Previous PBA field may instead maintain a NULL value.

[0064] For purposes of this description, let the term "data unit" refer generally to a portion of a storage unit 120 that includes one or more PBAs, which contain one or more data blocks. Let the term "parity unit" refer generally to a portion of a storage unit 120 that includes one or more PBAs, which contain one or more parity blocks. Let the term "affected data unit" refer generally to a data unit that contains a data block that needs to be updated with a write to successfully complete an outstanding command. Let the term "affected parity unit" refer generally to a parity unit that contains a parity block that needs to be updated with a write to successfully complete an outstanding command.

[0065] In one embodiment, hmd identifies one or more LBAs of one or more data blocks involved in the outstanding update write operation, and one or more affected data units containing the one or more data blocks. In another embodiment, hmd can be used to store other host-specific information related to the write operation.

[0066] In one embodiment, LBAs of data that are not part of an outstanding update write operation do not need to have an entry in the previous version mapping information on storage unit 120 .

[0067] Maintaining the previous version mapping information on at least one storage unit 120 ensures atomic write operations to the storage system 100 .

[0068] In one embodiment, the storage system 100 implements a single parity erasure code. In another embodiment, the storage system 100 implements erasure codes using a more complex parity equation / arrangement.

[0069] Figure 2B Another example framework 51 for storage in one or more embodiments is shown. In the framework 51, the controller / virtualization unit 140 and the volatile buffer 110 are implemented on the host system 60 instead.

[0070] Similar to the framework 50 described above, the framework 51 supports modifications to the behavior of the storage system 100 and modifications to the I / O interface with the host system 60 to achieve a reduction in the number of additional write operations required. The framework 51 provides one or more new I / O interfaces implemented by the controller / virtualization unit 140 and one or more storage units 120 via the I / O units 61 and 130, respectively, to facilitate processing and management of previous version mapping information. The framework 51 supports both a host-aware model in which most functions are performed in storage and a host management method in which the necessary information for providing new functions is available and operable at the host level.

[0071] Figure 2C Another example framework 52 for storage in one or more embodiments is shown. In the architecture 52, the controller / virtualization unit 140 and the volatile buffer 110 are instead implemented on another external system, such as the controller system 80, which also includes a first I / O unit 81 configured to exchange data with the host system 60, and a second I / O unit 82 configured to exchange data with the storage system 100.

[0072] Similar to the framework 50 described above, the framework 52 supports modifications to the behavior of the storage system 100 and modifications to the I / O interface with the host system 60 to achieve a reduction in the number of additional write operations required. The framework 52 provides one or more new I / O interfaces implemented by the controller / virtualization unit 140 and one or more storage units 120 via the I / O units 82 and 130, respectively, to facilitate processing and management of previous version mapping information. The framework 52 supports both a host-aware model in which most functions are performed in storage and a host management method in which the necessary information for providing new functions is available and operable at the host level.

[0073] Figure 34 is a flow chart illustrating an example process 400 for implementing a host-aware update protocol to keep a single parity erasure code intact in one or more embodiments. Process block 401 includes the host system 60 issuing a write command to the virtualized address space. For example, assume that the host system 60 issues a write command (e.g., write(b, d0')) to write a new data block d0' to LBA b of the virtual address space. In one embodiment, the write command may refer to a range of consecutive LBAs.

[0074] Processing block 402 includes the controller / virtualization unit 140 identifying each affected data unit and each affected parity unit, and each LBA corresponding to each affected data unit and each affected parity unit, wherein each affected data unit and each affected parity unit requires an update write to successfully complete the write command. In process block 402, the controller / virtualization unit 140 identifies that an update write operation is required to successfully complete the write command.

[0075] For example, assume that the controller / virtualization unit 140 identifies that the affected data unit is data unit 0 with corresponding LBAn, and the affected parity unit is parity unit 3 with corresponding LBA m. The controller / virtualization unit 140 issues a read command (e.g., read(0,n)) on data unit 0 with corresponding LBA n to retrieve the current data block d0 (i.e., the current version copy), and issues another read command (e.g., read(3,m)) on parity unit 3 with corresponding LBA m to retrieve the current parity block p0 (i.e., the current version copy). The controller / virtualization unit 140 then calculates a new parity block P0', where P0'=d0+d0'+p0.

[0076] Process block 403 includes the controller / virtualization unit 140 incrementing the current transaction sequence number tn. The transaction sequence number tn corresponds to the outstanding update write operation. Process block 403 also includes the controller / virtualization unit 140 creating a transaction record tr. The transaction record tr includes a list of each affected data unit, each LBA corresponding to each affected data unit, and optionally includes a timestamp. For example, assume that the controller / virtualization unit 140 creates a transaction record tr including data unit 0, LBA n, and a timestamp time (e.g., createtr(0, n, time)).

[0077] Process block 404 includes the controller / virtualization unit 140 initiating an update write operation on each affected data unit and each affected parity unit that needs to be updated to successfully complete the write command. For example, assume that the controller / virtualization unit 140 initiates an update write operation on each of the following items: data unit 0 with corresponding LBA n is used to write a new data block d0' (e.g., write(0, n, d0', update, tn, tr)), and parity unit 3 with corresponding LBA m is used to write a new parity block p0' (e.g., write(3, m, p0', update, tn, tr)). The controller / virtualization unit 140 issues a write command to each affected data unit and each affected parity unit in parallel. Each write command issued includes the following parameters: an update write flag update is set to indicate that the write command is an update write operation, a transaction sequence number tn, and a transaction record tr.

[0078] After the controller / virtualization unit 140 issues a write command to each affected data unit and each affected parity unit, the controller / virtualization unit 140 proceeds to process block 405 to wait for a write completion notification from each affected data unit and each affected parity unit. While the controller / virtualization unit 140 waits in process block 405, data unit 0 performs the steps of process blocks 421-425, and parity unit 3 performs the steps of process blocks 441-445. The steps of process blocks 421-425 are asynchronous with the steps of process blocks 441-445 (i.e., completion of process blocks 425 and 445 may occur in any order).

[0079] Process block 421 includes data unit 0 determining the PBA of data unit 0 corresponding to LBA n (e.g., getPBA(n)) in response to receiving a write command from controller / virtualization unit 140. For example, assume that data unit 0 determines through its internal translation layer that PBA j corresponds to LBA n. Process block 421 also includes data unit 0 performing a lookup search of its previous version mapping information (maintained in its internal translation layer) to retrieve an entry vme for LBA n. d (e.g. vmap_find(n)). d Identifies and tracks previous version copies of LBAn. If the find search is successful, the entry vme is returned d Process block 421 also includes determining the state of PBA j and entry vme d For update writes (e.g., updw_check(j, vme d )) is valid. If the state of PBA j and entry vme dFor updates and writes that are invalid, the error recovery process can be called. If the state of PBA j and entry vme d For update write valid, data unit 0 proceeds to process block 422.

[0080] Process block 422 includes data unit 0 retrieving a free PBA k of data unit 0 for use as a target PBA to write a new data block d0' (e.g., getReePBA()). If data unit 0 cannot retrieve a free PBA, an error recovery process may be invoked. Process block 422 also includes data unit 0 adding a new entry for LBA n to its previous version mapping information (e.g., add_vmap(n, NULL, j, tn, tr)). For example, the new entry includes the following fields with the following assigned values: a current PBA field assigned a null value, (2) a previous PBA field assigned j, (3) a tsn field assigned tn, (4) an hmd field assigned tr, and (5) a cleared (i.e., unset) gwc field. Adding the new entry saves both the current data block d0 stored in PBA j and associated with LBA n from being erased or reused, thereby making it available for data recovery operations (e.g., in the event of a power outage). Since no data block is written, adding the new entry results in only a small atomic table update.

[0081] Process block 423 includes data unit 0 writing a new data block d0' to a free PBA k (eg, write (k, d0')).

[0082] Process block 424 includes data unit 0 updating the entry in its previous version mapping information corresponding to LBA n and including transaction sequence number tn by assigning k to the current PBA field of the entry (e.g., set_vmap_curr(n, tn, k)). This update is an atomic table update that occurs only after the new data block d0' is written to PBA k.

[0083] Process block 425 includes data unit 0 issuing a write completion notification to controller / virtualization unit 140 acknowledging completion of the write command it received from controller / virtualization unit 140 .

[0084] Process block 441 includes parity check unit 3 determining a PBA of parity check unit 3 that corresponds to LBA m (e.g., getPBA(m)) in response to receiving a write command from controller / virtualization unit 140. For example, assume that parity check unit 3 determines through its internal translation layer that PBA f corresponds to LBA m. Process block 441 also includes parity check unit 3 performing a lookup search of its previous version mapping information (maintained in its internal translation layer) to retrieve entry vme for LBA m. p (e.g. vmap_find(m)). Entry vmep Identifies and tracks the previous version copy of LBA m. If the lookup search is successful, the entry vme is returned p Process block 441 also includes determining PBA f and entry vme p The status of the update write (for example, updw_check(f, vme p )) is valid. If the state of PBA f and entry vme p For updates and writes that are invalid, the error recovery process can be called. If the state of PBA f and entry vme p If the update write is valid, parity unit 3 proceeds to process block 442 .

[0085] Process block 442 includes parity unit 3 retrieving a free PBA g of parity unit 3 to use as a target PBA to write a new parity block p0' (e.g., getreePBA()). If parity unit 3 cannot retrieve a free PBA, an error recovery process may be invoked. Process block 442 also includes parity unit 3 adding a new entry for LBA m to its previous version mapping information (e.g., add_vmap(m, NULL, f, tn, tr)). For example, the new entry includes the following fields with the following assigned values: a current PBA field assigned a NULL value, (2) a previous PBA field assigned f, (3) a tsn field assigned tn, (4) a hmd field assigned tr, and (5) a cleared (i.e., unset) gwc field. Adding the new entry saves the current parity block p0 stored in PBA f and associated with LBA m from being erased or reused, thereby making it available for data recovery operations (e.g., in the event of a power outage). Since no data blocks are written, adding new entries results in only a small atomic table update.

[0086] Process block 443 includes parity unit 3 writing a new parity block p0' to a free PBAg (eg, write (g, p0')).

[0087] Process block 444 includes parity unit 3 updating the entry in its previous version mapping information corresponding to LBA m and including transaction sequence number tn by assigning g to the current PBA field of the entry (e.g., set_vmp_curr(m, tn, f)). This update is an atomic table update that occurs only after the new parity block p0' is written to PBA g.

[0088] Process block 445 includes the parity unit 3 issuing a write completion notification to the controller / virtualization unit 140 acknowledging the completion of the write command it received from the controller / virtualization unit 140 .

[0089] Process block 405 includes the controller / virtualization unit 140 implementing a barrier synchronization (“barrier sync”) operation by waiting for write completion notifications from data unit 0 and parity unit 3 to confirm that outstanding write commands issued to data unit 0 and parity unit 3 are completed. In one embodiment, additional write commands to the affected unit (i.e., the affected data unit or the affected parity unit) are blocked until the controller / virtualization unit 140 receives the write completion notification from the affected unit. In one embodiment, if the previous version mapping information maintained on the affected unit identifies and tracks multiple previous version copies of the LBA, additional write commands to the affected blocks (i.e., data blocks and parity blocks) of the affected parity stripe are blocked once a limit on the total number of previous version copies is reached.

[0090] Process block 406 includes the controller / virtualization unit 140 issuing a global write completion command to each affected unit in response to receiving a write completion notification from each affected unit. For example, assume that the controller / virtualization unit 140 issues a global write completion command to each of the following affected units: data unit 0 having corresponding LBA n (e.g., global_wcomp(0,n,tn)), and parity unit 3 having corresponding LBA m (e.g., global_wcomp(3,m,tn)). Each global write command issued includes a transaction sequence number tn as a parameter.

[0091] After the controller / virtualization unit 140 issues a global write command to each affected unit, the controller / virtualization unit 140 proceeds to process block 407 to wait for a global write completion notification from each affected unit. While the controller / virtualization unit 140 waits in process block 407, data unit 0 performs the steps of process blocks 426-427, and parity unit 3 performs the steps of process blocks 446-447. The steps of process blocks 426-427 are asynchronous with the steps of process blocks 446-447 (i.e., completion of process blocks 427 and 447 may occur in any order).

[0092] Process block 426 includes data unit 0 updating an entry in its previous version mapping information corresponding to LBA n and including transaction sequence number tn by setting a gwc flag (e.g., set_vmp_gwc(n, tn)) of the entry in response to receiving a global write command from controller / virtualization unit 140. After setting the gwc flag, data unit 0 proceeds to process block 427.

[0093] Process block 427 includes data unit 0 issuing a global write completion notification to controller / virtualization unit 140 acknowledging that the global write completion command it received from controller / virtualization unit 140 has completed.

[0094] Process block 446 includes the parity unit 3 updating an entry in its previous version mapping information corresponding to LBAm and including the transaction sequence number tn by setting a gwc flag of the entry (e.g., set_vmp_gwc(m, tn)) in response to receiving a global write command from the controller / virtualization unit 140. After setting the gwc flag, the parity unit 3 proceeds to process block 447.

[0095] Process block 447 includes the parity unit 3 issuing a global write completion notification to the controller / virtualization unit 140 acknowledging the completion of the global write completion command it received from the controller / virtualization unit 140 .

[0096] Process block 407 includes the controller / virtualization unit 140 waiting for global write completion notifications from data unit 0 and parity unit 3, confirming the completion of outstanding global write commands issued to data unit 0 and parity unit 3. In one embodiment, the controller / virtualization unit 140 implements a barrier synchronization operation during process block 407.

[0097] Process block 408 includes the controller / virtualization unit 140 issuing a host write completion notification (e.g., host_writecomp(b)) of LBA b of the virtualized address space to the host system 60 in response to receiving the global write completion notification from each affected unit. Process block 408 also includes the controller / virtualization unit 140 issuing a release command to each affected unit to release an entry in its previous version mapping information, which corresponds to the LBA corresponding to the affected unit and includes a transaction sequence number tn, so that the update write operation is hardened. For example, assume that the controller / virtualization unit 140 issues a release command to each of the following affected units: data unit 0 having corresponding LBA n (e.g., free_vmap(0,n,tn)), and parity unit 3 having corresponding LBA m (e.g., free_vmap(3,m,tn)). Each release command issued includes the transaction sequence number tn as a parameter.

[0098] After the controller / virtualization unit 140 issues a release command to each affected unit, the controller / virtualization unit 140 proceeds to process block 409 to wait for a release completion notification from each affected unit. While the controller / virtualization unit 140 waits in process block 409, data unit 0 performs the steps of process blocks 428-429, and parity unit 3 performs the steps of process blocks 448-449. The steps of process blocks 428-429 are asynchronous with the steps of process blocks 448-449 (i.e., the completion of process blocks 429 and 449 may occur in any order).

[0099] Process block 428 includes data unit 0 removing the entry in its previous version mapping information corresponding to LBA n and including transaction sequence number tn (eg, rem_vmap(n, tn)) in response to receiving a release command from controller / virtualization unit 140 .

[0100] Process block 449 includes data unit 0 issuing a release completion notification to controller / virtualization unit 140 acknowledging completion of the release command it received from controller / virtualization unit 140 .

[0101] Process block 448 includes the parity unit 3 removing the entry in its previous version mapping information corresponding to LBAm and including the transaction sequence number tn (eg, rem_vmap(m, tn)) in response to receiving a release command from the controller / virtualization unit 140 .

[0102] Process block 449 includes the parity check unit 3 issuing a release completion notification to the controller / virtualization unit 140 , confirming that the release command it received from the controller / virtualization unit 140 is complete.

[0103] Process block 409 includes the controller / virtualization unit 140 waiting for release completion notifications from data unit 0 and parity unit 3, confirming the completion of outstanding release commands issued to data unit 0 and parity unit 3. In one embodiment, the controller / virtualization unit 140 implements a barrier synchronization operation during process block 409.

[0104] Process block 410 is the end of process 400 .

[0105] If the storage system 100 implements erasure codes with more complex parity equations / arrangements, then the host-aware update write protocol is implemented in a similar manner to the process 400 described above.

[0106] Table 2 below provides entries in the previous version mapping information on data unit 0 corresponding to LBA n during some process blocks of process 400 .

[0107] Table 2

[0108]

[0109] Table 3 below provides entries in the previous version mapping information on parity unit 3 corresponding to LBA m during some process blocks of process 400 .

[0110] Table 3

[0111]

[0112] As shown in Tables 2-3 provided above, in process block 405, via a barrier synchronization operation, the order of steps performed by data unit 0 is synchronized only with the order of steps performed by parity unit 3. Except for this particular point in time, the state of data unit 0 relative to the state of parity unit 3 at other points in time is arbitrary.

[0113] As shown in Table 2, during process blocks 421 and 428, the previous version mapping information for data unit 0 does not include an entry for LBA n. As shown in Table 3, during process blocks 441 and 448, the previous version mapping information for parity unit 3 does not include an entry for LBA m.

[0114] Table 4 below provides a list of different possible states of the affected units in one or more embodiments.

[0115] Table 4

[0116] state describe 501 No pending / uncompleted write operations 502 Can be revoked 503 The original write operation can be completed (redo) 504 Need to clean up 505 One or more other affected units may need to be cleaned up. - Invalid status

[0117] In one or more embodiments, Table 5 below provides information indicating the status of data unit 0 and parity unit 3 during some process blocks of process 400 .

[0118]

[0119] As shown in Table 5 provided above, when data unit 0 and parity unit 3 execute the steps of process boxes 424 and 441 respectively, the overall status of the storage system 100 (i.e., the status of data unit 0 and parity unit 3) is 503 (i.e., the original write operation can be completed (redo)).

[0120] When recovering from a power failure event, the storage system 100 needs to determine the state of each LBA. In one embodiment, in order to recover the storage system 100 after a power failure event, the state of each LBA corresponding to each affected unit can be determined based on the state information and the previous version mapping information, such as the previous version mapping information included in Tables 2-3 and the state information included in Table 5. For example, if the previous version mapping information on data unit 0 does not include an entry for LBA n, and the previous version mapping information on parity unit 3 does not include an entry for LBA m (i.e., data unit 0 is executing the steps of process box 421 or 428, and parity unit 3 is executing the steps of process box 441 or 448), the overall state of the storage system 100 (i.e., the state of data unit 0 and the state of parity unit 3) is 501 (i.e., there is no pending / incomplete write operation).

[0121] If the overall state of the storage system 100 (i.e., the state of data unit 0 and the state of parity unit 3) is 502 (i.e., undo is possible), the previous version mapping information about data unit 0 and the previous version mapping information about parity unit 3 include the previous version copy but not the current version copy. In this state, by restoring the previous version copy of the LBA to the current version copy of the LBA, the write operation can be undone to a state where a consistent parity stripe exists. In one embodiment, the previous version copy of the LBA can be restored by removing the entry corresponding to the LBA from the previous version mapping information. If the host system 60 does not receive a host write completion notification from the controller / virtualization unit 140 after issuing a write command, the host system 60 may retry the write command.

[0122] If the overall state of the storage system 100 (i.e., the state of the data unit 0 and the state of the parity unit 3) is 503 (i.e., the original write operation may be completed), the previous version mapping information about the data unit 0 and the previous version mapping information about the parity unit 3 include the previous version copy of the LBA and the current version copy of the LBA. In this state, the write command can be completed by recalculating a new parity block.

[0123] If the overall state of the storage system 100 (i.e., the state of data unit 0 and the state of parity unit 3) is 504 (i.e., flush required), the storage system 100 contains a consistent parity stripe, thereby maintaining the integrity of the erasure coding implemented by the storage system 100. In this state, only flushing is required to remove the associated entries from the previous version mapping information. Each affected unit can return a global write completion notification to the storage system 100.

[0124] If the overall status of the storage system 100 (i.e., the status of data unit 0 and the status of parity unit 3) is 505 (i.e., one or more other affected units may need to be purged), then some but not all affected units have completed purging. Each affected unit needs to be purged with a pending release command.

[0125] In one embodiment, each framework 50, 51, and 52 provides one or more new I / O interfaces to facilitate processing and management of previous version mapping information. For example, one or more new I / O interfaces may include a method for implementing and managing Figure 3 The command set of the host-aware update write protocol shown in . Table 6 below provides an example implementation of the command set in one or more embodiments.

[0126] Table 6

[0127]

[0128]

[0129]

[0130]

[0131] For example, in the framework 50, the command set is implemented by the controller / virtualization unit 140 and the one or more storage units 120. As another example, in the framework 51, the command set is implemented by the controller / virtualization unit 140 and the one or more storage units 120 through the I / O units 61 and 130, respectively. As yet another example, in the framework 52, the command set is implemented by the controller / virtualization unit 140 and the one or more storage units 120 through the I / O units 82 and 130, respectively.

[0132] Each framework 50, 51 and 52 is applicable to any situation where update write operations need to be atomic across different storage units including file systems, databases, etc.

[0133] Figure 4 is a high-level block diagram illustrating an information handling system 300 for implementing one embodiment of the present invention. The computer system includes one or more processors, such as processor 302. Processor 302 is connected to a communication infrastructure 304 (eg, a communication bus, cross-over bar, or network).

[0134] The computer system may include a display interface 306 that forwards graphics, text, and other data from the communication infrastructure 304 (or from a frame buffer not shown) for display on a display unit 308. The computer system also includes a main memory 310, preferably a random access memory (RAM), and may also include an auxiliary memory 312. The auxiliary memory 312 may include, for example, a hard disk drive 314 and / or a removable storage drive 316, which represents, for example, a floppy disk drive, a tape drive, or an optical disk drive. The removable storage drive 316 reads from and / or writes to a removable storage unit 318 in a manner known to those of ordinary skill in the art. The removable storage unit 318 represents, for example, a floppy disk, a compact disk, a magnetic tape, or an optical disk, etc., which is read and written by the removable storage drive 316. As will be appreciated, the removable storage unit 318 includes a computer-readable medium having computer software and / or data stored therein.

[0135] In alternative embodiments, the secondary memory 312 may include other similar means for allowing computer programs or other instructions to be loaded into the computer system. Such means may include, for example, a removable storage unit 320 and an interface 322. Examples of such means may include program packages and package interfaces (such as found in video game devices), removable memory chips (such as EPROM or PROM) and associated slots, and other removable storage units 320 and interfaces 322 that allow software and data to be transferred from the removable storage unit 320 to the computer system.

[0136] The computer system may also include a communication interface 324. The communication interface 324 allows software and data to be transferred between the computer system and external devices. Examples of the communication interface 324 may include a modem, a network interface (e.g., an Ethernet card), a communication port, or a PCMCIA slot and card, etc. The software and data transmitted via the communication interface 324 are in the form of signals, which may be, for example, electronic, electromagnetic, optical, or other signals that can be received by the communication interface 324. These signals are provided to the communication interface 324 via a communication path (i.e., channel) 326. The communication path 326 carries the signals and may be implemented using wires or cables, optical fibers, telephone lines, cellular phone links, RF links, and / or other communication channels.

[0137] The present invention may be a system, method and / or computer program product. The computer program product may include a computer-readable storage medium on which computer-readable program instructions are loaded for causing a processor to implement various aspects of the present invention. A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. The computer-readable storage medium may 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 of computer-readable storage media (a non-exhaustive list) include: portable computer disks, hard disks, 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 punch cards or raised structures in grooves on which instructions are stored, and any suitable combination of the above. Computer-readable storage media as used herein are not to be interpreted as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., light pulses through fiber optic cables), or electrical signals transmitted through wires.

[0138] 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.

[0139] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, integrated circuit configuration data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, Smalltalk, C++, etc., and procedural programming languages ​​such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely 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 entirely 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 personalized 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 invention.

[0140] Various aspects of the present invention are described herein with reference to the flow charts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.

[0141] These computer-readable program instructions can be provided to a processor 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 processor 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.

[0142] 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.

[0143] 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 invention. 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.

[0144] From the above description, it can be seen that the present invention provides a system, a computer program product and a method for implementing an embodiment of the present invention. The present invention also provides a non-transient computer-usable storage medium for implementing an embodiment of the present invention. The non-transient computer-usable storage medium has a computer-readable program, wherein the program causes the computer to implement the steps of the present invention according to the embodiments described herein when it is processed on the computer. The reference to the singular element in the claim is not intended to mean "one and only one", unless explicitly stated as such, but to mean "one or more". All structural and functional equivalents of the elements of the above-mentioned exemplary embodiments that are currently known or will be known to a person of ordinary skill in the art are intended to be included in the present claim. The claim elements herein should not be interpreted according to the provisions of the sixth paragraph of Section 112 of 35 U.S.C., unless the element is explicitly stated using "means for" or "step for".

[0145] The terminology used herein is for the purpose of describing specific embodiments only and is not intended to limit the present invention. As used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that the terms "comprises" and / or "comprising", when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0146] The corresponding structures, materials, actions and equivalents of all means or step-plus-function elements in the following claims are intended to include any structure, material or action for performing a function in combination with other claimed elements as specifically claimed. The description of the present invention has been given for the purpose of illustration and description, but the description is not exhaustive or limits the present invention to the disclosed form. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the present invention. The embodiments are selected and described in order to best explain the principles and practical applications of the present invention, and to enable other persons of ordinary skill in the art to understand the various embodiments of the present invention with various modifications, which are suitable for the specific purposes contemplated.

Claims

1. A method comprising: maintaining mapping data between a first set of logical addresses viewed by a host and a first set of physical addresses and a second set of physical addresses of the storage unit on a storage unit, wherein a first logical address in the first set of logical addresses corresponds to a first physical address in the first set of physical addresses maintaining current data of the first logical address, and the first logical address also corresponds to a second physical address in the second set of physical addresses maintaining previous data of the first logical address, the mapping data being included in extended mapping metadata of a logical block address, the extended mapping metadata being maintained in an internal translation layer of the storage unit, the storage unit comprising a plurality of data units and a plurality of check units, the storage unit implementing check erasure coding; as well as A write command is received at the storage unit from the host, which is issued in parallel to a data unit among the multiple data units and a check unit among the multiple check units based on an update write flag to perform a multi-device operation involving the first logical address, wherein the operation implements a host-aware update write protocol to keep the check erasure code intact, and the operation is performed atomically. The method of claim 1 , wherein the operation is an update write operation.

3. The method of claim 2, wherein the mapping data identifies and tracks one or more previous version copies of the first logical address, and for each previous version copy of the first logical address, the mapping data includes maintaining a corresponding physical address of the previous version copy. The method of claim 2 , wherein the mapping data includes a transaction sequence number for the update write operation.

5. The method of claim 2, wherein the mapping data includes host-defined metadata indicating each storage unit involved in the update write operation.

6. A method according to claim 4, wherein the operation is completed in response to the host receiving the following notifications indicating multi-device atomicity from the storage unit: a notification confirming that the update write on the storage unit is complete, a notification confirming that a global write completion mark is set, and a notification confirming that the entry in the mapping data corresponding to the first logical address and including the transaction sequence number is removed from the mapping data.

7. The method of claim 1, wherein the current data comprises a current data block and the previous data comprises a previous data block.

8. The method of claim 1, wherein the current data comprises a current parity block and the previous data comprises a previous parity block.

9. A system comprising: at least one processor; as well as a non-transitory processor-readable memory device storing instructions that, when executed by the at least one processor, cause the at least one processor to perform operations comprising: maintaining mapping data between a first set of logical addresses viewed by a host and a first set of physical addresses and a second set of physical addresses of the storage unit on a storage unit, wherein a first logical address in the first set of logical addresses corresponds to a first physical address in the first set of physical addresses maintaining current data of the first logical address, and the first logical address also corresponds to a second physical address in the second set of physical addresses maintaining previous data of the first logical address, the mapping data being included in extended mapping metadata of a logical block address, the extended mapping metadata being maintained in an internal translation layer of the storage unit, the storage unit comprising a plurality of data units and a plurality of check units, the storage unit implementing check erasure coding; as well as A write command is received at the storage unit from the host, which is issued in parallel to a data unit among the multiple data units and a check unit among the multiple check units based on an update write flag to perform a multi-device operation involving the first logical address, wherein the operation implements a host-aware update write protocol to keep the check erasure code intact, and the operation is performed atomically.

10. The system of claim 9, wherein the operation is an update write operation.

11. The system of claim 10, wherein the mapping data identifies and tracks one or more previous version copies of the first logical address, and for each previous version copy of the first logical address, the mapping data includes a corresponding physical address at which the previous version copy is maintained.

12. The system of claim 10, wherein the mapping data includes a transaction sequence number for the update write operation.

13. The system of claim 10, wherein the mapping data includes host-defined metadata indicating each storage unit involved in the update write operation.

14. A system according to claim 12, wherein the operation is completed in response to the host receiving the following notifications from the storage unit indicating multi-device atomicity: a notification confirming that the update write on the storage unit is complete, a notification confirming that a global write completion flag is set, and a notification confirming that an entry in the mapping data corresponding to the first logical address and including the transaction sequence number is removed from the mapping data.

15. The system of claim 9, wherein the current data comprises a current data block and the previous data comprises a previous data block.

16. The system of claim 9, wherein the current data comprises a current parity block and the previous data comprises a previous parity block.

17. A computer program product comprising a computer-readable hardware storage medium having program code embodied therein, the program code being executable by a computer to implement a method comprising: maintaining mapping data between a first set of logical addresses viewed by a host and a first set of physical addresses and a second set of physical addresses of the storage unit on a storage unit, wherein a first logical address in the first set of logical addresses corresponds to a first physical address in the first set of physical addresses maintaining current data of the first logical address, and the first logical address also corresponds to a second physical address in the second set of physical addresses maintaining previous data of the first logical address, the mapping data being included in extended mapping metadata of a logical block address, the extended mapping metadata being maintained in an internal translation layer of the storage unit, the storage unit comprising a plurality of data units and a plurality of check units, the storage unit implementing check erasure coding; as well as A write command is received at the storage unit from the host, which is issued in parallel to a data unit among the multiple data units and a check unit among the multiple check units based on an update write flag to perform a multi-device operation involving the first logical address, wherein the operation implements a host-aware update write protocol to keep the check erasure code intact, and the operation is performed atomically.

18. The computer program product of claim 17, wherein the operation is an update write operation.

19. The computer program product of claim 18, wherein the mapping data identifies and tracks one or more previous version copies of the first logical address, and for each previous version copy of the first logical address, the mapping data includes maintaining a corresponding physical address of the previous version copy.

20. The computer program product of claim 18, wherein the mapping data includes a transaction sequence number for the update write operation.

Citation Information

Patent Citations

  • Access method of flash memory and flash memory device

    CN101826053A

  • Using logical to physical map for direct user space communication with data storage device

    CN104885062A

  • Distributed flash memory transaction processing method

    CN105005535A

  • Efficient redundant array of independent disks (RAID) write hole solutions

    US20170123995A1

  • Identification for reservation of replacement storage devices for a logical volume to satisfy its intent

    US7487308B1