Storage system with disaster recovery function and method of operation thereof

The storage system addresses internal failure resilience by operating in recovery modes and redistributing data across functional devices, ensuring continued functionality and data integrity in the face of failures.

JP7539856B2Active Publication Date: 2024-08-26SAMSUNG ELECTRONICS CO LTD
View PDF 30 Cites 0 Cited by

Patent Information

Application Number
JP2021115930
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-12-01
Filing Date
2021-07-13
Publication Date
2024-08-26
Estimated Expiration
2041-07-13

AI Technical Summary

Technical Problem

Existing data storage systems lack resilience against internal failure conditions, such as temperature sensor failures or radiation-induced bit flips, leading to inoperability of storage devices and larger systems like RAID, necessitating recovery operations.

Method used

A storage system and method that operates in various recovery modes, maintaining partial or full functionality by switching to read-only mode, redistributing stripes, and using a mapping table to reroute data operations across functional storage devices, with a volume manager managing data redistribution in RAID-0 systems.

Benefits of technology

The system provides fault resiliency by maintaining partial or full functionality despite internal failures, ensuring data integrity and system availability through adaptive data management and recovery strategies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007539856000014
    Figure 0007539856000014
  • Figure 0007539856000003
    Figure 0007539856000003
  • Figure 0007539856000001
    Figure 0007539856000001
Patent Text Reader

Abstract

To provide a storage system with resilience to a failure and a method of operating the storage system.SOLUTION: The method of the present invention for operating a storage system including a first storage device and a second storage device has the steps of: determining that the first storage device is in a read-only state and the second storage device is in a reading / writing state; performing the writing operation of a first stripe to the storage system; performing a first reading operation of a second stripe from the storage system; and performing a second reading operation of the first stripe from the storage system. The step of performing the writing operation includes a step of writing a part of the first stripe to the second storage device, and a step of generating an entry in a mapping table for the first stripe.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to data storage systems, and more particularly to data storage systems configured to exhibit resilience in the presence of internal failure conditions, and methods of operation thereof. [Background technology]

[0002] This background description is intended to provide context only, and disclosure of any embodiment or concept in the background description does not constitute an admission that the embodiment or concept is prior art.

[0003] Storage devices and systems have wide applicability within a variety of data processing systems. Storage devices are complex enough to face a significant range of internal failure conditions, including temperature sensor failures or radiation-induced bit flips. If these failure conditions are not taken into account when designing a storage device or a system (e.g., a Redundant Array of Independent Disks (RAID)) using such a storage device, a single failure of the storage device can cause the entire storage device and possibly the larger system (such as a RAID) that includes the storage device to become inoperable.

[0004] Therefore, there is a need for a system and method of operation for recovery (restoration) operations of storage devices and systems including storage devices. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] U.S. Patent No. 7,451,346 [Patent Document 2] U.S. Patent No. 8,589,723 [Patent Document 3] U.S. Patent No. 8,769,535 [Patent Document 4] U.S. Pat. No. 9,710,317 [Patent Document 5] U.S. Patent No. 9,728,277 [Patent Document 6] U.S. Patent No. 9,830,236 [Patent Document 7] U.S. Patent No. 10,095,506 [Patent Document 8] U.S. Patent No. 10102082 [Patent Document 9] U.S. Pat. No. 10,263,842 [Patent Document 10] U.S. Patent No. 10445200 [Patent Document 11] U.S. Pat. No. 10,572,161 [Patent Document 12] US Patent Publication No. 20050120267 [Patent Document 13] US Patent Publication No. 20060143507 [Patent Document 14] US Patent Publication No. 20070101188 [Patent Document 15] US Patent Publication No. 20130047028 [Patent Document 16] US Patent Publication No. 20140195847 [Patent Document 17] US Patent Publication No. 20150100720 [Patent Document 18] US Patent Publication No. 20180011649 [Patent Document 19] US Patent Publication No. 20190377637 [Patent Document 20] US Patent Publication No. 20190384670 [Patent Document 21] US Patent Publication No. 20200135280 Summary of the Invention [Problem to be solved by the invention]

[0006] The present invention has been made in view of the above-mentioned conventional techniques, and an object of the present invention is to provide a storage system having failure recovery capability and an operating method thereof. [Means for solving the problem]

[0007] In one embodiment, a disaster recovery storage device operates in various recovery modes and can maintain partial functionality or return to full functionality despite an internal failure. One way in which a storage device can maintain partial functionality is to operate in a read-only mode in some circumstances, in which the storage device responds to read requests from the host, but returns an error message when it receives a write request from the host. In a RAID-0 storage system, the ability of a storage device to switch to operating in a read-only mode is accomplished by redistributing the stripes that make up the stripe for any write operations performed after the storage device switches to operating in a read-only mode.

[0008] In order to achieve the above-mentioned object, a method for operating a storage system including a first storage device and a second storage device according to one aspect of the present invention includes the steps of determining that the first storage device is in a read-only state and the second storage device is in a read / write state, performing a write operation (operation) of a first stripe to the storage system, performing a first read operation of a second stripe from the storage system, and performing a second read operation of the first stripe from the storage system, wherein the step of performing the write operation includes the steps of writing a portion of the first stripe to the second storage device and creating an entry in a mapping table for the first stripe, wherein the step of performing the first read operation includes the steps of reading a portion of the second stripe from the first storage device and the second storage device, and the step of performing the second read operation includes the steps of determining that the mapping table includes an entry for the first stripe and reading the portion of the first stripe from the second storage device.

[0009] The storage system may include a plurality of storage devices including the first storage device and the second storage device, and the step of determining that the second storage device is in a read / write state may include determining that one or more remaining storage devices, including the second storage device, that are not the first storage device, are in a read / write state, and the step of performing the write operation may include writing the first stripe to the remaining storage device. Performing the first read operation may include determining that the second stripe is open mapped within the plurality of storage devices, and reading the second stripe from the plurality of storage devices. The method may further include reassigning drive identification numbers to the remaining storage devices, each of the plurality of storage devices having an original drive identification number, the reassigning step including the steps of: assigning a respective original drive identification number to each storage device having an original drive identification number lower than an original drive identification number of the first storage device; and assigning a respective original drive identification number lower than 1 to each storage device having an original drive identification number higher than an original drive identification number of the first storage device. Performing the second read operation may include reading the first stripe from the remaining storage device; and reading a strip of the first stripe from the storage device at an address based on the mapping table. The method may further include reassigning drive identification numbers to the remaining storage devices, each of the plurality of storage devices having an original drive identification number, and the reassigning step may include assigning a respective original drive identification number to each storage device having an identification number lower than an original drive identification number of the first storage device. The reallocating step may further include assigning a respective original drive identification number less than one to each storage device having an original drive identification number greater than the first storage device's original drive identification number. The original drive identification number of the first storage device may be n, and reading a strip of the first stripe may include reading the strip from a storage device having the reassigned identification number n.

[0010] In order to achieve the above-mentioned object, a system for storing data according to one aspect of the present invention includes a first storage device, a second storage device, and a processing circuit coupled to the first storage device and the second storage device, wherein the processing circuit is configured to determine that the first storage device is in a read-only state and the second storage device is in a read / write state, perform a write operation for a first stripe, perform a first read operation for a second stripe, and perform a second read operation for the first stripe, wherein performing the write operation includes writing a portion of the first stripe to the second storage device and generating an entry in a mapping table for the first stripe, performing the first read operation includes reading a portion of the second stripe from the first storage device and the second storage device, and performing the second read operation includes determining that the mapping table includes an entry for the first stripe and reading the portion of the first stripe from the second storage device.

[0011] The system may include a plurality of storage devices including the first storage device and the second storage device, and determining that the second storage device is in a read / write state may include determining that one or more remaining storage devices, including the second storage device, that are not the first storage device are in a read / write state, and performing the write operation may include writing the first stripe to the remaining storage devices. Performing the first read operation may include determining that the second stripe is open mapped in the multiple storage devices and reading the second stripe from the multiple storage devices. The processing circuitry may be further configured to reallocate drive identification numbers to the remaining storage devices, each of the plurality of storage devices having an original drive identification number, and the reallocating may include assigning each storage device having an original drive identification number lower than the original drive identification number of the first storage device a respective original drive identification number, and assigning each storage device having an original drive identification number higher than the original drive identification number of the first storage device a respective original drive identification number lower than one. Performing the second read operation may include reading the first stripe from the remaining storage device and reading strips of the first stripe from the storage device at addresses based on the mapping table. The processing circuitry may be further configured to reallocate drive identification numbers to the remaining storage devices, each of the plurality of storage devices having an original drive identification number, and the reallocating may include assigning a respective original drive identification number to each storage device having an identification number that is lower than an original drive identification number of the first storage device. The processing circuitry may be further configured to assign a respective original drive identification number less than one to each storage device having an original drive identification number greater than an original drive identification number of the first storage device. The original drive identification number of the first storage device may be n, and reading a strip of the first stripe may include reading the strip from a storage device having the reassigned identification number n.

[0012] In order to achieve the above-mentioned object, a system for storing data according to another aspect of the present invention includes a first storage device, a second storage device, and a processing means coupled to the first storage device and the second storage device, the processing means being configured to determine that the first storage device is in a read-only state and the second storage device is in a read / write state, perform a write operation for a first stripe, perform a first read operation for a second stripe, and perform a second read operation for the first stripe, performing the write operation includes writing a portion of the first stripe to the second storage device and generating an entry in a mapping table for the first stripe, performing the first read operation includes reading a portion of the second stripe from the first storage device and the second storage device, and performing the second read operation includes determining that the mapping table includes an entry for the first stripe and reading the portion of the first stripe from the second storage device.

[0013] The system may include a plurality of storage devices including the first storage device and the second storage device, and determining that the second storage device is in a read / write state may include determining that one or more remaining storage devices, including the second storage device, that are not the first storage device are in a read / write state, and performing the write operation may include writing the first stripe to the remaining storage devices. Performing the first read operation may include determining that the second stripe is open mapped in the multiple storage devices and reading the second stripe from the multiple storage devices. The processing means may be further configured to reallocate drive identification numbers to the remaining storage devices, each of the plurality of storage devices having an original drive identification number, and the reallocating may include assigning each storage device having an original drive identification number lower than the original drive identification number of the first storage device a respective original drive identification number, and assigning each storage device having an original drive identification number higher than the original drive identification number of the first storage device a respective original drive identification number lower than one. Effect of the Invention

[0014] In accordance with the present invention, a RAID system is provided having a fault-resilient storage device that can operate in a variety of recovery modes and maintain partial functionality or return to full functionality despite an internal failure. [Brief description of the drawings]

[0015] [Figure 1] 1 is a block diagram of a data storage system according to one embodiment of the present invention. [Figure 2A] 4 is a table showing failure states of a storage device according to an embodiment of the present invention. [Figure 2B] 4 is a table of operation modes of a storage device according to an embodiment of the present invention. [Figure 2C] 4 is a table of commands sent by a host to a storage device according to one embodiment of the present invention. [Figure 2D] 4 is a table illustrating a hierarchical structure of recovery (restoration) modes according to one embodiment of the present invention. [Figure 3A] 4 is a flow chart for a first method of operation of a disaster resilient storage device according to one embodiment of the present invention. [Figure 3B] 4 is a flow chart for a second method of operation of a disaster resilient storage device according to an embodiment of the present invention. [Figure 4]FIG. 2 is a schematic data layout diagram of a storage device according to an embodiment of the present invention. [Figure 5A] 4 is a flow chart for a first method of operating a storage device in a read-only mode for disaster recovery according to an embodiment of the present invention. [Figure 5B] 11 is a flow chart for a second method of operating a storage device in a read-only mode for disaster recovery according to an embodiment of the present invention. [Figure 6A] FIG. 2 is a schematic data layout diagram of a RAID-0 system performing a write operation according to an embodiment of the present invention. [Figure 6B] 2 is a schematic data layout diagram of a RAID-0 system performing a read operation according to an embodiment of the present invention. [Figure 6C] 2 is a schematic data layout diagram of a RAID-0 system performing remapping and write operations according to an embodiment of the present invention; FIG. [Figure 7A] 4 is a flow chart for a first method of operation of a RAID-0 storage system in accordance with an embodiment of the present invention. [Figure 7B] 4 is a flow chart for a second method of operation of a RAID-0 storage system in accordance with an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, specific examples of the embodiments of the present invention will be described in detail with reference to the drawings.

[0017] The drawings provided herein are for the purpose of illustrating embodiments, and other embodiments not expressly disclosed are not excluded from the scope of the invention. These and other features and advantages of the present invention will be appreciated and understood with reference to the specification, claims, and drawings.

[0018] The detailed description set forth below in conjunction with the drawings is intended to illustrate example embodiments of memory resource management systems and methods provided in accordance with the present invention, and is not intended to represent the only manner in which the present invention may be constructed and utilized. The following description presents features of the present invention in conjunction with the illustrated embodiment. However, it should be understood that the same or equivalent functions and structures may be accomplished by other embodiments that are also intended to be within the scope of the present invention. Like reference numerals in the drawings herein refer to like components or features.

[0019] In one embodiment, a fault-resilient storage device operates in various recovery modes and can maintain partial functionality or return to full functionality despite an internal fault. For example, in response to a temperature sensor failure, the storage device operates at a reduced speed or at a reduced speed for write operations, or performs few write operations. In response to a temporary fault that may cause errors in the storage medium, the storage device reformats the storage medium. In response to a temporary fault that does not cause errors, the storage device power cycles. One way that a storage device can maintain partial functionality is to operate in a read-only mode in some circumstances, in which the storage device responds to read requests from the host, but returns an error message when it receives a write request from the host. Also, data due to expire is moved to a rescue space, so that data is not lost due to expiration. In a RAID-0 storage system, the ability of a storage device to switch to operating in a read-only mode is accomplished by redistributing the stripes that make up the stripe for any write operations that are performed after the storage device has switched to operating in a read-only mode.

[0020] FIG. 1 is a block diagram of a data storage system according to one embodiment of the present invention, illustrating a computing system including a host 105 coupled to one or more storage devices 110 (or "drives"). The storage devices 110 are coupled to the host 105 via a volume manager 115 (described in more detail below) as shown, or directly to the host 105. In some embodiments, the storage devices 110 experience an internal failure condition, and the storage devices exhibit various recovery operations, described in more detail below, to mitigate the system-level impact of the failure condition. Each storage device 110 is a solid-state drive (SSD) and includes a controller 120 (or "control circuitry") and a storage medium 125 (e.g., NAND flash memory). The smallest erasable unit of a storage device 110 is called a "block," and the smallest writable unit of a storage device 110 is called a "page." Each storage device 110 has any one of a number of form factors suitable for persistent storage devices, including but not limited to 2.5 inch, 1.8 inch, MO-297, MO-300, M.2, and EDSFF (Enterprise and Data Center SSD Form Factor), has an electrical interface that is any one of a number of interfaces suitable for persistent storage devices, including PCI (Peripheral Component Interconnect), PCIe (PCI express), SCSI (Ethernet, Small Computer System Interface), SATA (Serial AT Attachment), and SAS (Serial Attached SCSI), and is connected to host 105 via the interface.

[0021] Storage medium 125 has a retention period (which depends on the usage history of storage medium 125 and varies accordingly within storage medium 125), and data stored longer than the retention period (i.e., data that has an age beyond the retention period) is said to be unreliable and expired. Data is stored on storage medium 125 using an error correcting code, possibly a block code. When reading data from storage medium 125, decoding is attempted by reading a quantity of raw data, called a code block, from storage medium 125. If an attempt fails, an additional attempt (retry of the read) is made. Depending on usage, if a portion of storage medium 125, e.g., a block, degrades to a point where the retention period becomes unacceptably short, the block is classified as a "bad block." To prevent such a situation from rendering the entire storage medium 125 unusable, a spare space called "bad block management spare space" exists (e.g., contained in each flash memory die or each flash memory plane), and the controller 120 or other controller within the flash memory die or plane begins using the spare blocks and stops using the bad blocks.

[0022] FIG. 2A is a table of failure states for a storage device according to an embodiment of the present invention, and FIG. 2B is a table of operating modes for the storage device. FIG. 2C is a table of commands sent by a host to the storage device, and FIG. 2D is a table showing a hierarchy of recovery modes. FIG. 2A shows a table of failure states (or "failure conditions") labeled with their respective case identifiers ("case IDs"). Case 1 is any failure state in which the storage device 110 is no longer able to perform read or write operations and cannot be resolved by power cycling the power source or reformatting the storage media. The state in which the storage device 110 operates in this manner has various sub-states, each corresponding to a different failure mechanism, for example. Such a condition or failure state (storage device 110 can no longer perform read or write operations and cannot be resolved by power cycling the power or reformatting the storage medium) may be caused, for example, by a damaged portion of the controller firmware (in which case the controller reboots in a safe mode in which the damaged commands are not executed) or by a failure of the processing circuitry of storage device 110 (e.g., a failure of the processing circuitry that manages interaction with the storage medium but is not responsible for communication with host 105). When this type of failure condition occurs, storage device 110 responds with an error message to any read or write commands from host 105.

[0023] Case 2 is any fault condition in which (i) storage device 110 can no longer perform read or write operations, but (ii) can be restored by power cycling storage device 110's power source or reformatting the storage medium. Such a fault condition can occur, for example, due to a program execution error in controller 120 of storage device 110 (e.g., an out-of-range pointer as a result of a bit flip in controller 120's random access memory (RAM), or an incorrect command as a result of a bit flip). If the program execution error has not caused controller 120 to write incorrect data to storage medium 125 (e.g., a program execution error occurred after the most recent write by the controller to the storage medium), power cycling the storage device's power source is sufficient to restore storage device 110 to normal operation, and reformatting storage medium 125 is sufficient to restore storage device 110 to normal operation if the program execution error has caused controller 120 to write erroneous data to storage medium 125.

[0024] Case 3 is any failure condition that can be mitigated by operating storage device 110 in a read-only mode and reformatting storage medium 125 but not restoring full functionality. Examples of such failures include (i) a temperature sensor failure, and (ii) a portion of storage medium 125 being converted to a read-only mode. In the case of a temperature sensor failure, the failure is detected by determining that the temperature sensor reading is out of range (e.g., exceeds a critical temperature), in which case the risk of overheating storage device 110 may be reduced by avoiding write operations, which consume more power than read operations. The transition of a portion of storage medium 125 to a read-only mode occurs for flash memory storage medium 125, for example, when a flash memory plane or die runs out of bad block management spare space that is used for runtime bad block management. For example, when the storage device 110 attempts to perform a read operation, but fails to decode a data item, determines that the block storing the data is a bad block, and moves the data from the bad block to the bad block management spare space, the storage device 110 determines that the remaining bad block management spare space is smaller than a critical size and accordingly insufficient to ensure the reliability of the plane or die. The storage device 110 then determines that bad block management is no longer being performed and switches to a read-only mode. The operation of the read-only mode is described in more detail below. As used herein, a "data item" is any amount of data that is processed in one operation, for example, the data resulting from decoding a code block is a data item.

[0025] Case 4 is any failure condition that is mitigated by operating storage device 110 in write-through mode. For example, if the power backup capacitor of storage device 110 fails, the device will complete the write to storage medium 125 before sending a command completion to host 105 in response to any write command received from the host, so that if power fails before the write to storage medium 125 is completed, the host will not be falsely informed that the record completed successfully. Operating in write-through mode results in reduced performance (in terms of throughput and latency).

[0026] Case 5 is any fault condition that is mitigated by operating storage device 110 in a manner that reduces power dissipation. For example, in the case of a temperature sensor failure, storage device 110 may operate in a read-only mode as described above, or may reduce the rate at which operations (e.g., write operations, which consume more power than read operations) are performed to reduce power dissipation in storage device 110. For example, storage device 110 may perform a first write to a storage medium, then wait for an interval corresponding to reduced performance (the rate at which write operations are performed is reduced due to the wait) before performing another write to the storage medium (e.g., 1 second).

[0027] Case 6 is any failure condition that can be mitigated by operating storage device 110 in a read-only mode and where reformatting storage medium 125 restores full functionality. The third column of the table in Figure 2A indicates for each case whether valid user data is available and whether storage device 110 will return to full functionality by, for example, reformatting storage medium 125.

[0028] 2A, in some embodiments, three levels of disaster resiliency are achieved by storage device 110: full recovery mode, partial recovery mode, and vulnerable mode. In full recovery mode, storage device 110 operates in a "self-healing" manner, whereby storage device 110 can restore full functionality (although user data may be lost from the device) by reconfiguring operations such as power cycling or formatting storage medium 125.

[0029] In partial recovery mode, storage device 110 operates at a lower performance, smaller capacity, or reduced functionality when a fault condition exists. For example, as described above, when a power backup capacitor fails, all writes are completed (i.e., command completion is sent to host 105) only after data is recorded to storage medium 125 (i.e., synchronous writes are performed), slowing operation of storage device 110 and reducing its performance accordingly. In such a situation, user data is preserved. Storage device 110 operates at a lower capacity when the spare space for bad block management run time bad block (RTBB) is exhausted. In such a situation, the affected die of storage device 110 is removed from the disk space, reducing the overall disk capacity. User data in the lost space is lost. For example, when a set of IO determinism or a zone of a zoned namespace can no longer accept new data to be written, the set or zone is removed from the disk space, but the remaining disk space remains available for read and write operations. User data for the zone or set will be lost.

[0030] When storage device 110 switches to a read-only mode rather than allowing write operations, storage device 110 operates with reduced capabilities. Storage device 110 operates in two types of read-only modes: a sustainable read-only mode (referred to as the "first read-only mode") and a non-sustainable read-only mode (referred to as the "second read-only mode"). In the sustainable read-only mode, storage device 110 continues to service read requests beyond the retention period of storage medium 125. When operating in the sustainable read-only mode is not feasible, for example when there is not enough unused storage space to set up a rescue space, the non-sustainable read-only mode is used (described in more detail below). When switching to the non-sustainable read-only mode, storage device 110 sends a notification to host 105 that storage device 110 is operating in the second (non-sustainable) read-only mode and that data items stored in storage device 110 are allowed to expire (e.g., their respective retention periods expire). In the non-sustainable read-only mode, the storage device 110 continues to service read requests for the duration of the retention period of the storage medium 125, but if the storage device 110 encounters a data integrity problem (e.g., as detected by one or more failed attempts to decode data during a read operation), the storage device 110 reports the data region as not valid. A storage device 110 operating in the vulnerable mode is unable to perform read or write operations, as described above, and performs a graceful exit, continues to receive commands from the host, and returns an error.

[0031] In one embodiment, five logical block address (LBA) space types are defined, referred to as (i) committed space (P), (ii) degraded performance space (UP), (iii) read-only space (RO), (iv) volatile read-only space (VRO), and (v) inaccessible space (IA). Committed (P) space is an LBA space that contains valid data that can be read and written in a normal manner without performance penalty. Degraded performance (UP) space is an LBA space that contains valid data that can be read and written in a normal manner but with degraded performance (e.g., degraded write performance). Read-only (RO) space is an LBA space that contains valid data that is read-only. Storage device 110 responds with an error message to a write command from a host that is directed to such types of LBA space. Data in read-only spaces is valid for a period that exceeds the retention period. Volatile read-only (VRO) space is read-only, and storage device 110 responds with an error message to a write command from a host that is directed to such types of LBA space. Data on these types of LBA spaces is valid temporarily and becomes invalid upon expiration, i.e., when the age of the data in storage medium 125 reaches the retention period of storage medium 125. Inaccessible (IA) space is an LBA space that contains invalid data that is not accessible to the host. The table of FIG. 2B shows the combinations of types of LBA spaces present on storage device 110 in each of the failure states identified in the first column of the table. The modes identified with an asterisk (*) support the host using a get feature command to retrieve detailed information for an LBA space. FIG. 2C shows a discussion of the "get feature" command communicated to storage device 110 to query storage device 110 for its status and the values ​​of associated parameters ("IOPS" means input and output operations per second).

[0032] The table in FIG. 2D shows nonvolatile memory express (NVMe) commands that the host 105 can use to query the storage device 110 about its status, and a hierarchy of enumerated constants that the storage device 110 can use to respond within categories of disaster recovery features.

[0033] 3A is a flow chart for a first method of operation of a fault resilient storage device according to one embodiment of the present invention, illustrating a method of operating in a fault recovery mode in some embodiments. In step 305, the host 105 sends or receives data to or from the storage device, in step 310, the host 105 determines whether an error has occurred in the storage device, in step 315, the storage device 110 performs internal diagnostics to determine its fault recovery state (e.g., full recovery, partial recovery, or vulnerable mode), in step 320, the storage device 110 changes its performance, capacity, or capability (e.g., transitions to read-only mode) based on the diagnostics, in step 325, the storage device 110 posts the status in response to a request from the host 105 based on an application programming interface (API), and in step 330, the host 105 routes data of a given type to the storage device 110 or to another storage device 110 at a given bandwidth based on the status. 3B is a flow chart for a second method of operating a fault resilient storage device in accordance with an embodiment of the present invention, detailing the method of operating in a fault recovery mode, in which the storage device determines in step 335 that it is in a first fault state from which it can be recovered by power cycling or formatting the storage medium, in step 340 that it is in a second fault state from which it can be partially restored by operating the storage device at reduced performance, at reduced capacity, or in a read-only mode, and in step 345 operating the storage device at reduced performance, at reduced capacity, or in a read-only mode.

[0034] Numerous embodiments and variations on the disclosed embodiments are also contemplated. A Field Programmable Gate Array (FPGA) or embedded processor performs internal block checks and sends asynchronous updates to the host 105 on the status of the storage device 110. Events occur and are sent to the host 105 (e.g., temperature or other parameters internal to the device). The host 105 polls the storage device 110 on a predefined schedule if no device driver features are present to provide notifications. The FPGA or embedded processor monitors the historical performance of the storage device 110 and uses machine learning to provide predictive analysis (e.g., likelihood of being in a given failure recovery state). Commands are introduced into the NVMe specification, for example, to extend the telemetry information of the NVMe specification (to report the status of the storage device 110). An embodiment is implemented, for example, in an Ethernet storage device or a key-value (KV) storage device.

[0035] In one embodiment, the host (i) transmits different data types based on the state of storage device 110 (e.g., file types such as images, video, text, or high or low priority data) (e.g., high priority or real-time data may not be recorded to a device considered in a partially vulnerable mode), (ii) reduces the transmission rate when storage device 110 is in a partially vulnerable and lower performance state, (iii) transmits a reduced amount of data when storage device 110 is in a partially vulnerable and low capacity state, and (iv) transmits different data types based on the state of storage device 110 when storage device 110 is in a partially vulnerable and unsustainable read-only mode. In some cases, it may read data at maximum speed and store the data elsewhere to not exceed the retention period (in such a situation, the host calculates the required data rate based on the amount of data to copy and the retention period), (v) ignore the "read" of data from the vulnerable storage device 110 because the data has errors and simply delete the data received by the host 105, and (vi) temporarily reroute read / write inputs and outputs to the cache of a power-cycled or formatted fully restored storage device 110 based on messages that control the timing of such events between the host and the storage device 110. An FPGA on a partially vulnerable SSD with reduced capacity filters incoming data writes and writes only a portion of the data to the storage device 110. In some cases, filtering includes compression. Such an FPGA may receive various types of data from the host 105 (e.g., file types such as images, videos, text, or high or low priority data) and filter them depending on the state of the storage device 110. For example, the FPGA may determine that high priority data should not be recorded to the storage device 110 in a partially vulnerable mode. The FPGA sends a rejection message to the host 105 providing the reason for the rejection. Alternatively, the FPGA filters certain types of data (e.g., image data) for recording to the partial restoration low-capacity state storage device 110.For example, if the storage device 110 loses performance (eg, operates at a reduced write speed), latency-sensitive reads and writes may be rejected.

[0036] In one embodiment, as described above, storage device 110 operates in one of two read-only modes, referred to as the “sustainable” (or “first”) read-only mode and the “non-sustainable” (or “second”) read-only mode. In the non-sustainable read-only mode, storage device 110 simply rejects any write commands received from host 105 and either (i) performs read commands for unexpired data or (ii) attempts to perform all read commands, and accordingly returns the data generated by a successful decoding attempt and an error code (e.g., an indication that the data item cannot be read, e.g., 0) if the decoding is unsuccessful.

[0037] In the sustainable read-only mode, the storage device 110 services external read requests beyond the retention period of the storage medium 125. The storage device 110 cannot take any action in response to any write command from the host 105, except returning an error message, but writes to the storage medium 125 for internal purposes, as described below. To enable data storage after the retention period, the storage device 110 allocates a space called a "rescue space" to which data that is about to expire (e.g., data that has an age that exceeds a critical age based on the retention period of the storage medium 125 (e.g., 80% of the retention period of the storage medium 125)) is moved, and accordingly, the expiration of the data is postponed by the retention period of the rescue space. When data in the rescue space is scheduled to expire, it is moved again within the rescue space as frequently as necessary to prevent data loss. In some embodiments, the storage device 110 moves data before expiration, for example, by utilizing low load periods to perform such movements. As mentioned above, the transition to the sustainable read-only mode is triggered by the exhaustion of the spare space for bad block management. In such a situation, the affected plane or die becomes read-only and is removed from the physical address space of the storage device 110 as all data stored therein is relocated to the rescue space.

[0038] Storage device 110 responds to read commands from host 105 across the entire LBA space. Since the physical space of storage device 110 is reduced (e.g., because a portion of storage medium 125 has become read-only and that data has been moved (or moved) to a rescue space) but the logical space of the device is not changed, storage device 110 returns 0 (zero) when host 105 sends a read command within LBA space that cannot be mapped to PBA (Physical Block Address) space.

[0039] Rescue space is allocated from overprovisioned space or unused space of storage device 110. If an IO deterministic set or zone of a zoned namespace is not writable, the set or zone becomes read-only and is removed from the physical address space once all data has been relocated. Rescue space is dynamically generated using namespaces. One or more namespaces are used for user data and additional namespaces are generated for rescue space. When storage device 110 switches to a sustainable read-only mode, one or more namespaces for user data are reduced in size and the size of the namespace for rescue space is increased.

[0040] When the size of the area of ​​storage medium 125 affected by a failure (e.g., the area where the spare space for bad block management has been exhausted) exceeds the size of the available rescue space, storage device 110 may move only the earliest expiring data (e.g., the oldest data), or only data tagged as important or related to a certain file type (e.g., image, video, document), or move data of a contiguous type (e.g., all data related to a file) and leave the other data. The set of file types considered important can be user configurable. In one embodiment using KV storage device 110, the importance of the data is compressed or encoded in key value pairs.

[0041] In one embodiment, storage device 110 determines that the amount of available rescue space is less than a critical size and accordingly insufficient to support operation in a sustainable read-only mode, and as a result storage device 110 switches to a non-sustainable read-only mode. Such a determination is made when a failure is first detected, or storage device 110 initially switches to the sustainable read-only mode when a failure is first detected, and after a period of time rescue space is consumed such that the available rescue space is reduced below the critical size (e.g., due to continued expiration of data in the failed portion of storage medium 125), storage device 110 switches from the sustainable read-only mode to the non-sustainable read-only mode. When switching from the sustainable read-only mode to the non-sustainable read-only mode, storage device 110 notifies host 105 of such a transition, and host 105 attempts to copy as much data as possible from the storage device to another storage device before the data expires.

[0042] In some cases, data may be lost for periods of more than a day or an hour. Thus, the FPGA of storage device 110 monitors attributes of data on the drive (e.g., stale, tagged, sequential, or file type) to facilitate transfer when storage device 110 switches to a sustainable read-only mode. The FPGA queues data based on priority or orders data for transfer to rescue space, and compresses data as it moves to rescue space. One embodiment is embodied, for example, in an Ethernet storage device or a key-value (KV) storage device.

[0043] FIG. 4 is a schematic data layout diagram of a storage device according to an embodiment of the present invention, showing a schematic data layout diagram of storage device 110 in some embodiments. Block lifetime table 405 lists the retention period for each block in storage device 110, and mapping table 410 lists the mapping from logical block addresses to physical block addresses. When storage device 110 switches to sustainable read-only mode, storage device 110 copies data in failed used space 415 (physical space affected by the failure condition) to rescue space 420. Data in normal used space 425 is treated as if storage device 110 was in normal operating mode (instead of in sustainable read-only mode). Because the failure condition results in a loss of physical space, there is a corresponding reduction in the size of used LBA space 430, and some of the previously available LBA space becomes unused LBA space 435. Firmware 440 executed by controller 120 moves data and updates the tables as described above.

[0044] 5A is a flow chart of a first method of operating a storage device in a read-only mode for disaster recovery according to an embodiment of the present invention, and illustrates a method of switching to a sustainable read-only mode in some embodiments. In step 505, the host 105 transmits data to and receives data from the storage device, in step 510, the host 105 determines whether an error has occurred in the storage device, in step 515, the storage device 110 performs an internal diagnosis to switch to a sustainable read-only mode, in step 520, the optional FPGA monitors the nature of valid data on the storage device 110 (e.g., based on data type or age), in step 525, the storage device 110 relocates valid data to a rescue space when the age of the data approaches the retention period, and in step 530, the storage device 110 optionally sends information about the status and contents of the rescue space to the host 105, which flushes the data. FIG. 5B is a flow chart of a second method of operating a storage device in a read-only mode for disaster recovery according to an embodiment of the present invention, illustrating details of the method of operating in a sustainable read-only mode. The method includes, in step 535, determining that the storage device is in a partially recoverable failure state by operating the storage device in a first read-only mode, and, in step 540, determining that the age of a first data item stored in a page of the storage device has exceeded a critical age and operating the storage device in the first read-only mode by copying the first data item to a rescue space of the storage device.

[0045] In one embodiment, as described above, a RAID-0 system including an array of storage devices 110 and a volume manager 115 is configured to accommodate transitioning any one of the storage devices 110 of the RAID-0 system to a read-only mode (e.g., a sustainable read-only mode). In normal operation, the volume manager 115 is responsible for striping data across the array of storage devices 110, e.g., writing any one of each stripe (each stripe being composed of such strips) to each storage device 110 in the array of storage devices 110. In such a system, when any storage device in the array of storage devices 110 transitions to a read-only mode (or "read-only state"), the RAID-0 system transitions to an operational mode (called "emergency mode") and a volume manager 115 for the array of storage devices 110 (i) allocates rescue space on each of the remaining unaffected storage devices 110 (which are in a read / write state) for the metadata and user data recovered from the failed storage device 110, and (ii) maintains a mapping table (called an "emergency mapping table"). The rescue space on each storage device 110 stores n strips, where n=R / (strip size), R=C / M, and C is the capacity of each of the storage devices in the array of storage devices 110. The volume manager 115 may be embodied in the host (e.g., in hardware, software, firmware, or a combination of hardware, software, and firmware) or in the RAID-0 system's raid controller (e.g., housed in an enclosure separate from the host). In some embodiments, the volume manager 115 is implemented in an FPGA. The RAID-0 system is self-contained and virtualizes an array of storage devices 110 such that from the host's perspective, the RAID-0 system behaves like a single storage device 110.In general, a volume manager is a processing circuit (described in more detail below) that is configured (eg, by suitable software or firmware) to perform the operations described herein as being performed by the volume manager.

[0046] When the RAID-0 system is operating in emergency mode and a write command is received from the host 105 requesting to write a stripe to the array of storage devices 110, the volume manager 115 checks the emergency mapping table to determine whether the stripe is "registered" or not, i.e., whether an entry has already been created for the stripe. If no entry has been created (i.e., the stripe is "open mapped" or not registered), the volume manager 115 creates an entry in the emergency mapping table to indicate the location where the stripe that would normally be written to the failed storage device 110 (the storage device 110 that has been converted to read-only mode) would be written. If the emergency mapping table already contains an entry for the stripe, the entry is used to determine the location where the stripe that would normally be written to the failed storage device 110 would be written. FIG. 6A is a schematic data layout diagram of a RAID-0 system performing a write operation according to one embodiment of the present invention. In any case, the volume manager 115 records strips 605 that would normally be written to the failed storage device 110 in the rescue space of other storage devices 110 by recording each strip in the array of storage devices 110, as shown in FIG. 6A.

[0047] When a read command is received requesting to read a stripe from an array of storage devices 110, the volume manager 115 checks the emergency mapping table to determine whether an entry has been created for the stripe. Figure 6B is a schematic data layout diagram of a RAID-0 system performing a read operation according to an embodiment of the present invention. If no entry has been created, the volume manager 115 reads the stripe as in normal operation, reading a strip from each of the storage devices 110 including the failed storage device 110, as shown in Figure 6B. If the emergency mapping table contains an entry for the stripe, the entry is used to determine the location from which the strip would normally be read from the failed storage device 110.

[0048] Remapping of strips that would normally be written to a failed storage device 110 may be accomplished, for example, as follows: Each storage device 110 in the array of storage devices 110 has a drive identification number (or "drive ID") that is a number between 0 and M-1, where M is the number of storage devices 110 in the array of storage devices 110. The volume manager 115 reallocates the drive identification numbers, for example by assigning each storage device 110 in the array of storage devices 110 an alternate drive identification number that is used to fulfill read or write operations to registered stripes (read operations to unregistered stripes may continue to use the original drive identification number). The following formula is used to generate the alternate drive identification number:

[0049] If drive ID < faulty drive ID

[0050] New Drive ID = Drive ID

[0051] If not,

[0052] New Drive ID = ((Drive ID-1) + (M-1)) mod (M-1)

[0053] According to the effect of this formula, (i) each storage device having an original drive identification number lower than the original drive identification number of the failed storage device is assigned a respective original drive identification number lower than 1, and (ii) each storage device having an original drive identification number higher than the original drive identification number of the first storage device is assigned a respective original drive identification number lower than 1.

[0054] Using the alternate drive number, the target drive to which the strip that would normally be written to the failed storage device 110 is written is identified using the formula "Target Drive ID=sid%(M-1)", where Target Drive ID is the identification number of the alternate drive to the target drive, sid is the strip identifier of the strip that would normally be written to the failed storage device 110, and "%" is the modulo operator.

[0055] 6C is a schematic data layout diagram of a RAID-0 system performing remapping and write operations according to an embodiment of the present invention, showing a RAID-0 system having four storage devices 110 (i.e., M=4) with drive 1 converted to read-only mode. The target drive ID to which drive 1 is written is implicitly determined by the following formula:

[0056] Target Drive ID = Strip ID %(M-1) = 1,

[0057] That is, the target drive is the storage device 110 having the alternative drive identification number 1 (i.e., drive 2). Within the drive, the rescue space is divided into strips (called "rescue strips" or "R-strips") of the same size as the strip size. The emergency mapping table includes an entry (1, 0) (the first element is the stripe ID (stripe 1) and the second element is the R-strip ID of the target drive). Thus, the entry (1, 0) in the emergency mapping table means that strip (1, 1) is mapped to R-strip (1, 0).

[0058] The RAID-0 system is configured to accommodate transitions to a sustainable or unsustainable read-only mode by one or more of the array of storage devices 110. When switching to a non-sustainable read-only mode, the registered strips of the failed storage device 110 are durably written to the rescue space of the other devices. When switching to a non-sustainable read-only mode, for example, the volume manager 115 moves all data from the failed storage device 110 to unaffected storage devices 110 before the data expires, fast enough. The server calculates the speed based on the amount of data and the time remaining before the data expires.

[0059] FIG. 7A is a flow chart for a first method of operation of a RAID-0 storage system according to one embodiment of the present invention, illustrating a method of operating a RAID-0 system. In step 705, the storage device 110 of the RAID-0 system has a failure and switches to read-only mode; in step 710, the affected storage device 110 performs internal diagnostics and determines that its failure recovery state is partially restored and read-only; in step 715, the volume manager 115 determines that the affected storage device 110 is in read-only mode ("functioning normally") and reassigns the ID of the unaffected storage device; in step 720, the volume manager 115 receives the write operation and adds an entry to the temporary mapping table to indicate that the strip of the affected device is redirected to the target (unaffected) storage device 110 and the entire strip is written to the target (unaffected) rescue space based on the new drive ID of the unaffected storage device; and in step 725, the volume manager 115 receives a read command from the host 105 and reads all strips of the stripe from the functioning unaffected storage device 110 of the RAID system while reading the strip of the affected storage device from the rescue space of the target (unaffected) storage device.

[0060] 7B is a flow chart of a second method of operating a RAID-0 storage system according to an embodiment of the present invention, showing details of the method of operating a RAID-0 storage system, the method including determining in step 730 that the first storage device is in a read-only state and the second storage device is in a read / write state, performing a write operation for the first stripe to the storage system by writing a portion of the first stripe to the second storage device and creating an entry in a mapping table for the first stripe in step 735, performing a first read operation for the second stripe from the storage system by reading a portion of the second stripe from the first storage device and the second storage device in step 740, and determining that the mapping table includes an entry for the first stripe and performing a second read operation for the first stripe from the storage system by reading the portion of the first stripe from the second storage device in step 745.

[0061] Various devices described herein, such as the host 105 or the controller 120, are or include processing circuits. The term "processing circuit" or "controller means" is used herein to mean any combination of hardware, firmware, and software employed to process data or digital signals. The hardware of a processing circuit includes, for example, application specific integrated circuits (ASICs), general purpose or special purpose central processing units (CPUs), digital signal processors (DSPs), graphics processing units (GPUs), and programmable logic devices such as field programmable gate arrays (FPGAs). In a processing circuit, as used herein, each function is configured to perform that function, i.e., performed by hard-wired hardware, or by more general purpose hardware such as a CPU configured to execute commands stored in a non-transitory storage medium. A processing circuit may be fabricated on a single printed circuit board (PCB) or distributed on one or more interconnected PCBs. A processing circuit may include other processing circuits, for example a processing circuit may include two processing circuits, i.e., an FPGA, and a CPU, interconnected on a PCB.

[0062] As used herein, "a portion of" means "at least a portion" of an object, and thus means all or less than all of the object. Thus, a "portion" of an object includes the entire object as a special case; that is, the entire object is an example of a portion of the object. The term "or" as used herein should be interpreted as "and / or," e.g., "A or B" means any one of "A," "B," or "A and B."

[0063] The background provided in the Background section of the specification is included only to set context, and the contents of this section are not admitted to be prior art. Any component or combination of components described (e.g., in any system diagram contained herein) may be used to perform any one of the operations of any flowchart contained herein, with the caveat that (i) the operations are by way of example and may include various additional steps not explicitly covered, and (ii) the chronological order of the operations may be changed.

[0064] As used herein, when a method (e.g., an adjustment) or a first quantity (e.g., a first variable) is referred to as being "based on" a second quantity (e.g., a second variable), this means that the second quantity influences an input to the method or the first quantity, but for example, the second quantity is an input (e.g., the only input or one of one or more inputs) to a function that calculates the first quantity, or the first quantity has the same value as the second quantity or can be the same as the second quantity (e.g., stored in the same location or position in memory).

[0065] However, it will be understood that although the terms "first," "second," "third," etc. are used herein to describe various elements, components, regions, layers, and / or sections, these elements, components, regions, layers, and / or sections are not limited by these terms. These terms are used only to distinguish one element, component, region, layer, or section from another element, component, region, layer, or section. Thus, a first element, component, region, layer, or section described herein could be referred to as a second element, component, region, layer, or section without departing from the spirit and scope of the inventive concept.

[0066] Spatially relative terms such as "beneath," "below," "lower," "under," "above," "upper," and the like, are used for convenience of description to describe the relationship that exists of one element or feature to another element or feature as illustrated in the drawings. It should be understood that such spatially relative terms are intended to include other orientations of the device in use or operation in addition to the orientation illustrated in the drawings. For example, if the device in the drawings were turned over, elements described as "below," "below," or "below" the other element or feature would now be oriented "above" the other device or feature. Thus, the example terms "below" and "below" include both an orientation of top and bottom. The device may be otherwise oriented (e.g., rotated 90 degrees or in other orientations) and the spatially relative descriptors used herein should be interpreted accordingly. Furthermore, when a layer is described as being between two layers, it will be understood that this may be the only layer between the two layers, or that there may be one or more intervening layers.

[0067] The terms used in this specification are intended to describe specific embodiments and are not intended to limit the present invention. The terms "substantially," "about," and similar terms used in this specification are used as terms of approximations, not terms of degree, and are intended to take into account the inherent deviation of measured or calculated values ​​that can be recognized by those skilled in the art.

[0068] As used herein, the singular forms "a" and "an" are intended to include the plural forms unless the context clearly indicates otherwise. It will also be understood that, as used herein, the terms "comprises" and / or "comprising" specify the presence of the referenced 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. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items. A phrase such as "at least one of," when preceding a list of elements, modifies the entire list of elements and does not modify the individual elements of the list. It should be noted that, in describing embodiments of the present invention, the term "may" refers to "one or more embodiments of the present invention." Additionally, the term "exemplary" is intended to provide an example or illustration, for example. As used herein, the terms "use," "using," and "used" are considered synonymous with the terms "utilize," "utilizing," and "utilized," respectively.

[0069] When a component or layer is described as "located on," "connected to," "coupled to," or "adjacent to" another component or layer, it means that the component or layer is directly located, connected, coupled, or adjacent to the other component or layer, and there are one or more intervening components or layers. In contrast, when a component or layer is described as "directly on," "directly connected to," "directly coupled to," or "adjacent to" another component or layer, there are no intervening components or layers.

[0070] Any numerical range recited herein is intended to include all subranges of the same numerical precision contained within the recited range. For example, a range "1.0 to 10.0" or a range "between 1.0 and 10.0" includes all subranges between (and including) the recited minimum of 1.0 and the recited maximum of 10.0, i.e., having a minimum value equal to or greater than 1.0 and a maximum value equal to or less than 10.0, such as a range of 2.4 to 7.6. Any maximum limitation recited herein is intended to include all lower numerical limitations contained therein, and any minimum limitation recited herein is intended to include all higher numerical limitations contained therein.

[0071] Although the embodiments of the present invention have been described in detail above with reference to the drawings, the present invention is not limited to the above-described embodiments and can be modified in various ways without departing from the technical spirit of the present invention. [Explanation of symbols]

[0072] 105 Host 110 Storage device 115 Volume Manager 120 Controller 125 Storage Media 405 Block Lifetime Table 410 Mapping Table 415 Disabled Use Space 420 Rescue Space 425 Normal Use Space 430 LBA space used 435 unused LBA space 440 Firmware (F / W)

Claims

1. 1. A method of operating a storage system including a first storage device and a second storage device, comprising: determining that the first storage device associated with a first identifier is in a read-only state and that the second storage device associated with a second identifier is in a read / write state; in response to determining that the first storage device is in the read-only state, assigning a third identifier to the second storage device; performing a write operation of a first stripe to the storage system; performing a first read operation of a second stripe from the storage system; performing a second read operation of the first stripe from the storage system; The step of performing a write operation includes: identifying the third identifier; writing a portion of the first stripe to the second storage device based on identifying the third identifier; creating an entry in a mapping table for the first stripe; performing the first read operation includes reading a portion of the second stripe from the first storage device and the second storage device; The step of performing the second read operation includes: determining that the mapping table includes an entry for the first stripe; and reading a portion of the first stripe from the second storage device.

2. the storage system includes a plurality of storage devices including the first storage device and the second storage device; determining that the second storage device is in a read / write state includes determining that one or more remaining storage devices, including the second storage device, that are not the first storage device are in a read / write state; 2. The method of claim 1, wherein performing the write operation comprises writing the first stripe to the remaining storage device.

3. The step of performing the first read operation includes: determining that the second stripe is open mapped within the plurality of storage devices; and reading the second stripe from the plurality of storage devices.

4. reassigning drive identification numbers to the remaining storage devices; the third identifier is an identification number of a drive that has been reassigned to the second storage device, each of the plurality of storage devices has an original drive identification number; the second identifier is an identification number of an original drive for the second storage device, The reallocating step comprises: assigning a respective original drive identification number to each of the plurality of storage devices having an original drive identification number that is lower than an original drive identification number of the first storage device; and assigning to each of the plurality of storage devices having an original drive identification number greater than an original drive identification number of the first storage device a respective original drive identification number that is one number smaller.

5. The step of performing the second read operation includes: reading the first stripe from the remaining storage device; and reading a strip of the first stripe from a storage device at an address based on the mapping table.

6. reassigning drive identification numbers to the remaining storage devices; each of the plurality of storage devices has an original drive identification number; 6. The method of claim 5, wherein the reassigning step includes the step of assigning a respective original drive identification number to each storage device having an identification number lower than an original drive identification number of the first storage device.

7. 7. The method of claim 6, wherein the reassigning step further comprises the step of assigning to each storage device having an original drive identification number greater than the first storage device's original drive identification number a respective original drive identification number that is one less.

8. 7. The method of claim 6, wherein an original drive identification number of the first storage device is n, and reading a strip of the first stripe includes reading the strip from a storage device having the reassigned identification number n.

9. A system for storing data, comprising: A first storage device; A second storage device; a processing circuit coupled to the first storage device and the second storage device; The processing circuitry includes: determining that the first storage device associated with a first identifier is in a read-only state and that the second storage device associated with a second identifier is in a read / write state; assigning a third identifier to the second storage device in response to determining that the first storage device is in the read-only state; Perform a write operation on the first stripe; performing a first read operation of the second stripe; logic for causing the processing circuitry to perform a second read operation of the first stripe; The logic for causing the processing circuit to perform the write operation comprises: Identifying the third identifier; writing a portion of the first stripe to the second storage device based on the logic that causes the processing circuitry to identify the third identifier; the logic causing the processing circuit to create an entry in a mapping table for the first stripe; the logic for causing the processing circuitry to perform the first read operation includes the logic for causing the processing circuitry to read a portion of the second stripe from the first storage device and the second storage device; The logic for causing the processing circuit to perform the second read operation comprises: determining that the mapping table includes an entry for the first stripe; the logic causing the processing circuitry to read a portion of the first stripe from the second storage device.

10. a plurality of storage devices including the first storage device and the second storage device; the logic for causing the processing circuitry to determine that the second storage device is in a read / write state includes logic for causing the processing circuitry to determine that one or more remaining storage devices, including the second storage device, that are not the first storage device are in a read / write state; 10. The system of claim 9, wherein the logic for causing the processing circuitry to perform the write operation comprises the logic for causing the processing circuitry to write the first stripe to the remaining storage device.

11. The logic for causing the processing circuit to perform the first read operation, comprising: determining that the second stripe is open mapped within the plurality of storage devices; 11. The system of claim 10, further comprising the logic that causes the processing circuitry to read the second stripe from the plurality of storage devices.

12. the logic further causes the processing circuitry to reallocate drive identification numbers to the remaining storage devices; the third identifier is an identification number of a drive that has been reassigned to the second storage device, each of the plurality of storage devices has an original drive identification number; the second identifier is an identification number of an original drive for the second storage device, The logic for causing the processing circuitry to reallocate comprises: assigning a respective original drive identification number to each of the plurality of storage devices having an identification number smaller than an original drive identification number of the first storage device; 11. The system of claim 10, further comprising the logic for causing the processing circuit to assign an original drive identification number that is one number less to each of the plurality of storage devices having an original drive identification number that is greater than an original drive identification number of the first storage device.

13. The logic for causing the processing circuit to perform the second read operation, comprising: reading the first stripe from the remaining storage device; 11. The system of claim 10, further comprising the logic for causing the processing circuitry to read strips of the first stripe from one of the plurality of storage devices at addresses based on the mapping table.

14. the logic further causes the processing circuitry to reallocate drive identification numbers to the remaining storage devices; each of the plurality of storage devices has an original drive identification number; 14. The system of claim 13, wherein the logic for reallocating to the processing circuitry includes logic for causing the processing circuitry to assign a respective original drive identification number to each of the plurality of storage devices having an identification number that is lower than an original drive identification number of the first storage device.

15. 15. The system of claim 14, wherein the logic further comprises logic that causes the processing circuit to assign each of the plurality of storage devices having an original drive identification number greater than an original drive identification number of the first storage device a respective original drive identification number that is one less.

16. 15. The system of claim 14, wherein an original drive identification number of the first storage device is n, and reading a strip of the first stripe includes reading the strip from a storage device having the reassigned identification number n.

17. A system for storing data, comprising: A first storage device; A second storage device; a processing means coupled to the first storage device and the second storage device; The processing means includes: determining that the first storage device associated with a first identifier is in a read-only state and that the second storage device associated with a second identifier is in a read / write state; assigning a third identifier to the second storage device in response to determining that the first storage device is in the read-only state; Perform a write operation on the first stripe; performing a first read operation of the second stripe; configured to perform a second read operation of the first stripe; Performing the write operation includes: Identifying the third identifier; writing a portion of the first stripe to the second storage device based on identifying the third identifier; creating an entry in a mapping table for the first stripe; performing the first read operation includes reading a portion of the second stripe from the first storage device and the second storage device; Performing the second read operation includes: determining that the mapping table includes an entry for the first stripe; reading a portion of the first stripe from the second storage device.

18. a plurality of storage devices including the first storage device and the second storage device; determining that the second storage device is in a read / write state includes determining that one or more remaining storage devices, including the second storage device, that are not the first storage device, are in the read / write state; 20. The system of claim 17, wherein performing the write operation comprises writing the first stripe to the remaining storage device.

19. Performing the first read operation includes: determining that the second stripe is open mapped within the plurality of storage devices; 20. The system of claim 18, further comprising reading the second stripe from the plurality of storage devices.

20. the processing means is further configured to reallocate drive identification numbers to the remaining storage devices; the third identifier is an identification number of a drive that has been reassigned to the second storage device, each of the plurality of storage devices has an original drive identification number; the second identifier is an identification number of an original drive for the second storage device, The reallocating step comprises: assigning a respective original drive identification number to each of the plurality of storage devices having an identification number smaller than an original drive identification number of the first storage device; 20. The system of claim 18, further comprising: assigning to each of the plurality of storage devices having an original drive identification number greater than an original drive identification number of the first storage device a respective original drive identification number that is one number less.

Citation Information

Patent Citations

  • Processing device, processing method, processing program and management device

    JP2013246479A

  • Storage control system and storage control program

    JP2021089625A

  • Intelligent sparing of flash drives in data storage systems

    US10082965B1

  • Virtualized file server data sharing

    US10095506B2

  • Method and system for providing automated self-healing virtual assets

    US10102082B2