Method and apparatus for page cache management
By employing page cache management methods and real-time migration technology, the problem of data recovery in storage device failure scenarios is solved, enabling seamless virtual machine migration and persistent data storage, thereby improving the reliability and efficiency of fault recovery storage devices.
Patent Information
- Application Number
- CN202110629458.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-01-27
- Filing Date
- 2021-06-07
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2041-06-07
AI Technical Summary
When faced with internal failures, especially temperature sensor failures or bit flips caused by radiation, storage devices suffer reduced read and write efficiency and cannot effectively restore their functionality.
By identifying the inaccessible and accessible spaces of the fault recovery storage device, and using page cache management methods, data read and write operations are determined. Virtual machine data is migrated to the second storage device in real time, and data transfer and error handling are performed on the fault recovery storage device to ensure persistent data storage.
When a storage device fails, it can maintain some capabilities, enable real-time migration of virtual machines, reduce service interruptions, ensure data reliability and integrity, and support partial recovery of the storage device's functions during fault recovery.
Smart Images

Figure CN113934571B_ABST
Abstract
Description
[0001] This application claims priority and benefit to the following patent applications: (1) U.S. Provisional Patent Application No. 63 / 051,158, filed July 13, 2020, entitled “Fault Resilient Storage Device and Interfaces”; (2) U.S. Provisional Patent Application No. 63 / 052,854, filed July 16, 2020, entitled “Fault Resilient Drive with Sustainable Read-only Feature”; (3) U.S. Provisional Patent Application No. 63 / 057,744, filed July 28, 2020, entitled “Fault Resilient RAID-0 Method Using Fault Resilient Drives”; and (4) System and Device for Data Recovery for Ephemeral Storage, filed January 27, 2021. U.S. Patent Application No. 17 / 159,913, entitled "Storage". The entire contents of all applications identified in this paragraph are incorporated herein by reference. Technical Field
[0002] One or more aspects of embodiments of this disclosure relate to data storage systems, and more specifically, to data storage systems and apparatus configured to provide data recovery, for example, in the context of ephemeral storage. Background Technology
[0003] This background section is intended to provide background information only, and the disclosure of any embodiments or concepts in this section does not constitute an admission that the embodiments or concepts are prior art.
[0004] Storage devices and systems have broad applicability in a wide range of data processing systems. In some embodiments, a storage device can be used to host at least some aspects related to virtual machines (VMs), which may represent an emulation of a computer system. A VM may include implementations involving specialized hardware, software, and / or combinations thereof. Furthermore, a storage device may be complex enough to encounter a wide range of internal failure conditions, including, for example, temperature sensor failure or bit flips caused by radiation. Such failure conditions may reduce the efficiency of performing specific operations on or using the storage device.
[0005] Therefore, there is a need for a system and method for recovery operations related to storage devices and / or systems containing storage devices. Summary of the Invention
[0006] In some embodiments, a method for page cache management is described. The method may include: confirming a storage device failure associated with a fault-tolerant storage device; determining that a first region associated with the fault-tolerant storage device includes inaccessible space, and determining that a second region associated with the fault-tolerant storage device includes accessible space; confirming a read command for data on a second storage device, and determining, based on the read command, first data from local memory of the second storage device requested by the read operation; determining, based on the read command, second data from the second region requested by the read operation; obtaining the second data from the second region; and scheduling the transfer of the second data from the fault-tolerant storage device to the second storage device. The method may further include: determining, based on the read command, third data from inaccessible space of the fault-tolerant storage device requested by the read operation; and, based on the determination of the third data, returning an error from the fault-tolerant storage device to the second storage device.
[0007] In another embodiment, the method may further include: confirming a write command for data in a fault recovery storage device; writing at least a portion of the data to the page cache of a host device; determining that the portion of the data includes dirty data, and writing the dirty data to persistent memory of a second storage device; and determining that the portion of the data includes clean data associated with inaccessible space, and writing the clean data to persistent memory of the second storage device.
[0008] In various embodiments, data transfer may include live migration of at least one virtual machine from a fault recovery storage device to a second storage device. In some embodiments, the first data includes at least a portion of data cached at local memory. In various embodiments, the local memory includes dynamic random access memory (DRAM), and the first data is identified as coming from a page cache. In some embodiments, the data includes data associated with at least one virtual machine on the host device. In various embodiments, device failure includes the fault recovery storage device operating in a partially read-only mode, wherein the fault recovery storage device operates with reduced performance or reduced capacity. In some embodiments, at least one of the fault recovery storage device or the second storage device includes a solid-state drive.
[0009] In various embodiments, an apparatus for page cache management is described. The apparatus may include: at least one memory device storing computer-executable instructions; and at least one processor configured to access the at least one memory device, wherein the at least one processor is configured to execute the computer-executable instructions to: confirm a storage device failure associated with a fault-tolerant storage device; determine that a first region associated with the fault-tolerant storage device includes inaccessible space, and determine that a second region associated with the fault-tolerant storage device includes accessible space; confirm a read command for data on a second storage device, and determine, based on the read command, first data from local memory of the second storage device requested by the read operation; determine, based on the read command, second data from the second region requested by the read operation; obtain the second data from the second region; and schedule the transfer of the second data from the fault-tolerant storage device to the second storage device.
[0010] In various embodiments, the at least one processor may also be configured to execute computer-executable instructions to: determine, based on a read command, third data from inaccessible space requested by a read operation from a fault-recovery storage device; and, based on the determination of the third data, return an error from the fault-recovery storage device to a second storage device. The at least one processor may also be configured to execute computer-executable instructions to: confirm a write command for data in the fault-recovery storage device; write at least a portion of the data to the page cache of the host device; determine that the portion of the data includes dirty data and write the dirty data to persistent memory of the second storage device; and determine that the portion of the data includes clean data associated with the inaccessible space and write the clean data to persistent memory of the second storage device.
[0011] In another embodiment, data transfer may include a live migration of at least one virtual machine from a fault-tolerant storage device to a second storage device. In some embodiments, the first data may include at least a portion of data cached at local memory. In various embodiments, the local memory includes DRAM, and the first data is identified as coming from a page cache, wherein the data includes data related to at least one virtual machine on the host device. In some embodiments, a storage device failure may include the fault-tolerant storage device operating in a partially read-only mode, wherein the fault-tolerant storage device operates with reduced performance or reduced capacity.
[0012] In various embodiments, a non-transitory computer-readable medium is described. The non-transitory computer-readable medium may store computer-executable instructions that, when executed by a processor, cause the processor to perform operations including: confirming a storage device failure associated with a fault-tolerant storage device; determining that a first region associated with the fault-tolerant storage device includes inaccessible space, and determining that a second region associated with the fault-tolerant storage device includes accessible space; confirming a read command for data on a second storage device, and determining, based on the read command, first data from local memory of the second storage device requested by the read operation; determining, based on the read command, second data from the second region requested by the read operation; obtaining the second data from the second region; and scheduling the transfer of the second data from the fault-tolerant storage device to the second storage device.
[0013] The non-transitory computer-readable medium may also include computer-executable instructions for: determining, based on a read command, third data from inaccessible space of the fault-recovery storage device requested by a read operation; and, based on the determination of the third data, returning an error from the fault-recovery storage device to a second storage device.
[0014] The non-transitory computer-readable medium further includes computer-executable instructions for: confirming a write command for data in the fault-tolerant storage device; writing at least a portion of the data to the page cache of the host device; determining that the portion of the data includes dirty data and writing the dirty data to persistent memory of the second storage device; and determining that the portion of the data includes clean data associated with inaccessible space and writing the clean data to persistent memory of the second storage device. In another embodiment, data transfer may include live migration of at least one virtual machine from the fault-tolerant storage device to the second storage device.
[0015] As noted, in some embodiments, the system, method, and apparatus may include a fault-recovery storage device. Despite an internal failure, the fault-recovery storage device may be able to operate in various recovery modes while retaining partial capability, or may be able to revert to full functionality. For example, one way the storage device may retain partial capability is by operating in read-only mode in some cases, in which the storage device may respond to read requests from the host, but return an error message if the storage device receives a write request from the host. Attached Figure Description
[0016] The accompanying drawings provided herein are for illustrative purposes only; other embodiments, which may not be explicitly described, are not excluded from the scope of this disclosure.
[0017] These and other features and advantages of this disclosure will be appreciated and understood by referring to the specification, claims and drawings, wherein:
[0018] Figure 1 This is a block diagram of a data storage system according to an embodiment of the present disclosure, illustrating the context in which the disclosed system can operate;
[0019] Figure 2A This is a table of failure states of a storage device according to embodiments of the present disclosure, showing various failure modes that a fault-recovering storage device may face, for example, during live migration of a VM.
[0020] Figure 2B This is a table of operating modes of a storage device according to embodiments of the present disclosure, which can represent different states of a fault-recovery storage device during live migration.
[0021] Figure 2C It is a table of commands sent from a host to a storage device according to embodiments of this disclosure;
[0022] Figure 2D This is a table illustrating the hierarchy of recovery modes according to embodiments of this disclosure;
[0023] Figure 3A This is a flowchart of a first operation method of a fault recovery storage device according to an embodiment of the present disclosure;
[0024] Figure 3B This is a flowchart of a second operation method of a fault recovery storage device according to an embodiment of the present disclosure;
[0025] Figure 4A A diagram illustrating a method for performing a live virtual machine migration using a storage device, according to a disclosed example embodiment;
[0026] Figure 4B Another diagram is shown for performing a live virtual machine migration using a fault-recovery storage device, according to a disclosed example embodiment.
[0027] Figure 5 This is a flowchart of a method for performing live virtual machine migration using a fault-tolerant storage device according to a disclosed example embodiment; and
[0028] Figure 6 This is a flowchart of a method for performing example operations related to page cache management, according to a disclosed example embodiment. Detailed Implementation
[0029] The specific embodiments described below with reference to the accompanying drawings are intended as exemplary descriptions of systems and methods for restoring operations of storage devices and systems including storage devices provided in this disclosure, and are not intended to represent the only forms that can be constructed or utilized with respect to this disclosure. This description, in conjunction with the illustrated embodiments, illustrates the features of this disclosure. However, it should be understood that the same or equivalent functions and structures may be implemented by different embodiments, which are also intended to be included within the scope of the disclosure. As indicated elsewhere herein, the same element reference numerals are intended to indicate the same elements or features.
[0030] In some embodiments, the disclosed system can be used to perform virtual machine (VM) recovery from a faulty storage device (hereinafter referred to as...). Figure 1 (Further described in the context of Figure 3) Live migration to another storage device. Specifically, migration can refer to the process of moving a running virtual machine from one physical host to another physical host (e.g., with a supporting storage device) with little or no service interruption. Furthermore, live migration (further described below) can refer to the process of moving a running virtual machine or application between different physical machines (e.g., computing devices including storage devices) without disconnecting clients or applications. In some embodiments, at least a portion of the virtual machine's memory, storage devices, and network connectivity may be transferred from the source device to the destination device.
[0031] In various embodiments, the disclosed system may include a storage device that supports the operation of a VM, and may also support live migration of the VM between a source device and a destination device. In some aspects, the disclosure may refer to both a source device and a destination device, which may mean a device that includes a storage device (such as a fault-tolerant storage device) that can be used to store at least some of the data and information associated with the VM. It should be understood that terms such as source device, source storage device, destination device, and / or destination storage device are used interchangeably herein without departing from the scope of the disclosure.
[0032] In some embodiments, as indicated, the storage device may further include a fault-recovery storage device that experiences a failure and is transitioned to a degraded operating mode (e.g., a read-only operating mode or a partially ready operating mode, as further described below). In some aspects, such a fault-recovery storage device may be configured to operate on a server on the source side and may perform at least partially operations (e.g., storage-related operations) to support virtual machines. Therefore, the disclosed system is configured to allow live migration of virtual machines, at least partially hosted on a fault-recovery storage device, to a second device (e.g., a second storage device). Specifically, the disclosed system may use methods involving examining data on a combination of source device working (e.g., volatile) memory, secondary storage devices (e.g., fault-recovery storage device non-volatile memory), and destination device working (e.g., volatile) memory and secondary storage devices (e.g., second storage device non-volatile memory). Furthermore, it should be understood that the terms "working memory" and "volatile memory," as well as "secondary storage device," "persistent memory," and "non-volatile memory," are used interchangeably herein without departing from the scope of the disclosure.
[0033] As described above, the disclosed system can be configured to operate in conjunction with a fault-recovery storage device to perform aspects of live migration of VMs from the fault-recovery storage device to a second device (e.g., a destination device). In some embodiments, despite an internal failure, the fault-recovery storage device may be able to operate in various recovery modes and retain partial capability or return to full functionality. For example, in response to a temperature sensor failure, the storage device may operate at a reduced rate, or operate at a reduced rate for write operations, or the storage device may completely stop performing write operations. In response to a transient failure that may have damaged the storage medium, the storage device may reformat the storage medium. In response to a transient failure that has not damaged the storage medium, the storage device may cycle power. In some cases, one way the storage device can retain partial capability is by operating in read-only mode, in which the storage device can respond to read requests from the host, and return an error message if the storage device receives a write request from the host. It may also move data that is about to expire to a rescue area so that the data is not lost due to expiration.
[0034] In various embodiments, for a non-fault-recoverable storage device that does not experience a failure, the storage device can perform live migration of the VM by copying an image of the data from the storage device associated with the source device to the storage device associated with the destination device (e.g., using a memory copy operation). In some aspects (as combined below) Figure 4A(Further illustrated and described), in this scenario, during live migration, a portion of the data may remain in volatile memory (e.g., DRAM), while another portion of the data may be written to an auxiliary storage device (e.g., a second storage device). For example, some clean (C) data, dirty (D) data (e.g., data that has been accessed and modified but not yet written to the auxiliary storage device), and / or evicted data (e.g., data that may have been discarded or may be discarded) may remain in volatile memory during live migration. Thus, in the case of live migration without storage device failure, the disclosed system can complete the writing of data from the source device to the disk of the destination device. After performing the live migration, the disclosed system can release the source device (e.g., after performing a partial or complete memory copy from the source device to the destination device). Furthermore, if another device (e.g., a device running an application associated with the source device and / or the destination device) needs to access data on the auxiliary storage device of the destination device, the disclosed system can be configured to allow remote disk access over the associated network (e.g., via remote disk access to the destination device). However, if the source device experiences a failure, the migration process can be prohibited, at least because in some systems the underlying disk may be unresponsive (even if the volatile memory has at least a portion of the data), and therefore the migration will not continue without additional technology.
[0035] However, as further described herein, in various embodiments, if the source device includes a fault recovery storage device and the fault recovery storage device has been configured to a read-only operating mode, the disclosed system may maintain access to some levels of the source device (e.g., access to the source device's non-volatile memory and / or a portion of its volatile memory) to read some data and transfer that data to the destination device to continue migration processing.
[0036] In another embodiment, the disclosed system can be configured to perform live migration of virtual machines even if the source device is not in a fully read-only operating mode, but in a partially read-only operating mode (e.g., an operating mode where the storage device has reduced performance for read operations). In some embodiments, the disclosed system can be configured to perform a specific opportunistic recovery operation related to data on a fault-recovery source device that has experienced a failure and is in a partially read-only operating mode (e.g., when in read-only operating mode, the storage device operates with lower performance, smaller capacity, or less capability). For example, the disclosed system can be configured to recover data written to a faulty region of memory (e.g., non-volatile memory) associated with a fault recovery device by using information residing in volatile memory (e.g., DRAM) if data was recently written within a predetermined duration (e.g., causing the short-term storage applicability of the various embodiments described herein). Specifically, the disclosed system can be configured to use DRAM information associated with the source device and / or destination device to perform this aspect of live migration.
[0037] In various embodiments, as noted, the disclosed system can be used in the context of performing live migration of virtual machines, which will now be described in more detail. Some example operations for live migration of virtual machines may include at least some of the following operations. In some aspects, the disclosed system may first perform live migration setup processing. During live migration setup, the disclosed system may configure a source device (e.g., a storage device including or accessing a fault recovery storage device) to establish a connection with a destination device to transfer virtual machine configuration data to the destination device. The disclosed system may set up the virtual machine on the destination device, and memory may be allocated to the destination virtual machine. Furthermore, the disclosed system may perform various checks (such as verifying that the host and / or hypervisor associated with the destination device can receive the source virtual machine) (e.g., the disclosed system may determine that various parameters (such as memory, disk connectivity, and / or combinations thereof) are sufficient).
[0038] In another embodiment, the disclosed system can perform various transfers of memory pages from a source device to a destination device according to the various embodiments described herein. In one embodiment, the disclosed system can allocate memory to a migrating virtual machine being copied over a network to the destination device during this phase of live migration (e.g., by performing aspects of the methods described herein). This memory may be referred to as a “working set” of the migrating virtual machine. In some aspects, memory pages may be 4KB or any suitable size. The disclosed system can be configured to allow the migrating virtual machine to continue running. In some embodiments, the disclosed system can be configured to configure a hypervisor to repeat the memory copying process. In some examples, each repetition may require copying a smaller number of modified pages. After the working set is copied to the destination server, the modified pages may be transferred according to the aspects of the methods described herein.
[0039] In this state, live migration of a publicly disclosed system may include memory copying processing, which copies retained modified memory pages to a destination server according to the methods described herein. In some embodiments, the source device may transfer specific information, such as the device state of the CPU and virtual machines, to the destination device. In some aspects, the faster the source device transfers modified pages from the working set of the virtual machines being migrated, the faster the live migration can be completed. Furthermore, the number of pages transferred may be based on the activity level of virtual machines accessing and modifying memory pages. After the modified memory pages are copied to the destination server, the destination device may have the latest working set of virtual machines.
[0040] In some examples, during this phase of live migration, control over storage associated with the virtual machine (such as any virtual storage files or physical storage attached via a virtual adapter) can be transferred to the destination device. Furthermore, the exposed system allows the virtual machine to be online on the destination device. The destination device now has access to the virtual machine's working set, as well as access to the storage devices used by the virtual machine.
[0041] In some embodiments, the disclosed system can be used in conjunction with hyperscale environments (e.g., data centers). In some aspects, various hyperscale environments are configured to use transient storage devices, where the storage device provides storage space for a specific period of time while virtual machines are active. In some embodiments, for example, compared to primary storage devices, the disclosed system may be suitable for operation in such environments (e.g., hyperscale environments using transient storage devices and methods). This may be because, for example, in primary storage devices, the system may not be configured to be readable during a failure. However, transient storage devices can store temporary data in volatile memory. Therefore, the disclosed system can be configured to operate with newer data that may be discarded while the failed storage device is running. In this case, the disclosed system may be able to find data written to volatile memory (e.g., DRAM) that has not been corrupted.
[0042] The disclosure will now describe some aspects of the background in which storage systems, including fault recovery storage devices for live migration of virtual machines, can be used. Specifically, Figure 1 A computing system according to a disclosed example embodiment is illustrated, showing an example network in which systems and methods for performing live migration of temporary storage devices may operate. As shown, the system may include a host 105 connected to one or more storage devices 110 (or “drives”). Storage devices 110 may be connected to host 105 via a volume manager 115 as shown, or the storage devices may be directly connected to host 105. In some embodiments, storage devices 110 may experience internal failure conditions, and storage devices may exhibit various recovery behaviors as discussed in further detail below to mitigate the system-level impact of failure conditions. A given storage device 110 may be a solid-state drive (SSD), and storage device 110 may include a controller 120 (or “control circuitry”) and storage medium 125 (e.g., NAND flash memory). The smallest erasable unit in storage device 110 may be referred to as a “block”, and the smallest writable unit in storage device 110 may be referred to as a “page”. Each storage device 110 may have a form factor suitable for any one of a plurality of form factors for persistent storage devices, including but not limited to 2.5”, 1.8”, MO-297, MO-300, M.2, and Enterprise and Data Center SSD form factor (EDSFF), and the form factor may have an electrical interface through which it can connect to the host 105, which is any one of a plurality of interfaces suitable for persistent storage devices, including Peripheral Component Interconnect (PCI), PCIe, Ethernet, Small Computer System Interface (SCSI), Serial AT Accessory (SATA), and Serial Attached SCSI (SAS).
[0043] Now, some further details about the storage device are provided. In some aspects, storage medium 125 may have a retention period (which may depend on the usage history of storage medium 125 and thus vary within storage medium 125); data that has been stored longer than the retention period (i.e., data with a lifespan exceeding the retention period) may become unreliable and may be referred to as expired. Error-correcting codes may be used to store data in storage medium 125, and the error-correcting codes may be block codes. When data is read from storage medium 125, a certain amount of raw data, referred to as a code block, may be read from storage medium 125 and an attempt may be made to decode it. If the attempt fails, another attempt may be made (read retry). During use, a portion of storage medium 125 (e.g., a block) may deteriorate to the point that the retention period becomes unacceptably short, and that block may be classified as a "bad block". To prevent this situation from rendering the entire storage medium 125 inoperable, a reserved space called a "bad block management reserved space" may exist (e.g., included in each flash die or in each flash plane), and the controller 120 or another controller inside the flash die or flash plane may start using blocks in the reserved space and stop using bad blocks.
[0044] This disclosure will now describe some further details regarding various failure states associated with fault-tolerant storage devices that can be used for live migration of virtual machines. Specifically, fault-tolerant storage devices can withstand a wide variety of failures and can continue to operate within a combined... Figure 1 Operations are performed within the network shown and described to execute live migration of virtual machines. Some of these failures are described below.
[0045] Specifically, Figure 2AThis is a table of fault conditions (or "fault states") related to the fault-recovery storage device, each fault condition being labeled with a condition identifier ("condition ID"). Condition 1 is any fault condition in which the storage device 110 is no longer able to perform read or write operations and cannot be resolved by power-on or reformatting the storage medium. The state of the storage device 110 in this manner may have various sub-states, where, for example, each sub-state corresponds to a different fault mechanism. Such a state or fault condition (the storage device 110 is no longer able to perform read or write operations and cannot be resolved by power-on or reformatting the storage medium) may be caused, for example, by a part of the controller's firmware becoming corrupted (in which case the controller can be rebooted into safe mode, where corrupted instructions are not executed) or by a failure of the processing circuitry in the 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 the host 105). When this type of fault condition occurs, the storage device 110 may use error messages to respond to any read or write commands from the host 105.
[0046] Case 2 is any of the following failure conditions: (i) a failure condition in which the storage device 110 is no longer able to perform read or write operations, and (ii) a failure condition that can be recovered by restarting the power supply to the storage device 110 or by reformatting the storage medium. Such a failure condition may be caused, for example, by a program execution error in the controller 120 of the storage device 110 (e.g., an out-of-range pointer due to a bit flip in the random access memory (RAM) of the controller 120, or an incorrect instruction due to a bit flip). If the program execution error has not yet caused the controller 120 to write incorrect data to the storage medium 125 (e.g., if the program execution error has occurred since the controller's most recent write to the storage medium), restarting the power supply to the storage device may be sufficient to restore the storage device 110 to normal operation; if the program execution error has caused the controller 120 to write erroneous data to the storage medium 125, reformatting the storage medium 125 may be sufficient to restore the storage device 110 to normal operation.
[0047] Case 3 is any failure condition that can be mitigated by operating storage device 110 in read-only mode and that reformatting storage medium 125 will not restore full functionality. Examples of such failures include (i) a temperature sensor failure and (ii) a portion of storage medium 125 being converted to read-only mode. In the case of a temperature sensor failure, the failure can be detected by determining that the temperature sensor reading is out of range (e.g., has exceeded a threshold temperature), and in such a case, the risk of overheating of storage device 110 can be reduced by avoiding write operations that may consume more power than read operations. For example, with flash memory storage medium 125, a portion of storage medium 125 may be converted to read-only mode if the flash memory plane or die runs out of bad block management reserve space used for runtime bad block management. For example, storage device 110 may make an unsuccessful attempt to decode a data item while attempting to perform a read operation, determine that the block storing the data is a bad block, and determine that the remaining bad block management reserve space is less than a threshold size and therefore insufficient to ensure the reliability of the plane or die when moving the data from the bad block to the bad block management reserve space. Then, storage device 110 can determine that bad block management is no longer being performed and switch to read-only mode. The operation of read-only mode is discussed in further detail below. As used herein, a "data item" is any amount of data processed in an operation; for example, data resulting from decoding a block of code can be a data item.
[0048] Case 4 is any failure condition that can be mitigated by operating storage device 110 in write-through mode. For example, if the power backup capacitor in storage device 110 fails, the device can complete the write to storage medium 125 before sending a command completion message to host 105 in response to any write command received from the host, so that if the power supply fails before the write to storage medium 125 has been completed, the host will not be incorrectly notified of successful write completion. Operating in write-through mode can result in a decrease in performance (in terms of throughput and latency).
[0049] Case 5 is any failure condition that can be mitigated by operating the storage device 110 in a way that reduces power consumption. For example, in the event of a temperature sensor failure, the storage device 110 can operate in read-only mode as described above, or the storage device 110 can reduce the rate at which it performs operations (e.g., write operations that may consume more power than read operations) to reduce power consumption in the storage device 110. For example, the storage device 110 can perform a first write to the storage medium, then wait for an interval corresponding to reduced performance (waiting causes a reduction in the rate at which write operations are performed), and then perform another (e.g., a second) write to the storage medium.
[0050] Case 6 is any failure condition that can be mitigated by operating storage device 110 in read-only mode and restoring full functionality by reformatting storage medium 125. For each case, Figure 2A The third column of the table indicates whether valid user data remains available, and whether storage device 110 can return to full functionality, for example, by reformatting storage medium 125.
[0051] like Figure 2A As illustrated in the examples listed, in some embodiments, storage device 110 can achieve three levels of fault recovery (full recovery mode, partial recovery mode, and vulnerable mode). In full recovery mode, storage device 110 can operate using "self-healing" features, and (although user data in the device may be lost) storage device 110 may be able to restore full functionality by resetting operations such as power restart or formatting storage medium 125.
[0052] In partial recovery mode, storage device 110 may operate with lower performance, smaller capacity, or reduced capability when a fault condition exists. For example, as described above, if the power backup capacitor fails, all writes can be completed (i.e., command completion can be sent to host 105) only after data is written to storage medium 125 (i.e., only synchronous writes can be performed), thus slowing down the operation of storage device 110 and reducing its performance. In this case, user data may be preserved. If the reserved space for bad block management—Runtime Bad Blocks (RTBBs)—is exhausted, storage device 110 may operate with a smaller capacity. In this case, affected dies in storage device 110 can be excluded from disk space, and the overall disk capacity can be reduced. User data on lost space may be lost. For example, if a set or zone in a partition namespace in IO determinism can no longer accept new data writes, that set or zone can be excluded from disk space, but the remaining disk space remains available for read and write operations. User data on that zone or set may be lost.
[0053] If storage device 110 disallows write operations and switches to read-only mode, storage device 110 can operate with reduced capabilities. Storage device 110 may be able to operate in two types of read-only modes: persistent read-only mode and non-persistent read-only mode. In persistent read-only mode, storage device 110 can continue to serve read requests outside the retention period of storage medium 125. In non-persistent read-only mode, storage device 110 can continue to serve read requests during the retention period of storage medium 125, and if storage device 110 encounters a data integrity problem (e.g., a data integrity problem detected by one or more unsuccessful attempts to decode data during a read operation), storage device 110 can report invalid data areas. As described above, storage device 110 operating in vulnerable mode may be unable to perform read or write operations and can perform a graceful exit, thereby continuing to receive commands from the host and returning errors.
[0054] The following provides some further details of an example internal storage device (e.g., a fault-tolerant storage device). In some embodiments, five logical block address (LBA) space types may be defined, referred to as (i) Execution (P) space, (ii) Unperforming (UP) space, (iii) Read-Only (RO) space, (iv) Volatile Read-Only (VRO) space, and (v) Inaccessible (IA) space. An Execution (P) space may be an LBA space containing valid data that can be read and written normally without sacrificing performance. An Unperforming (UP) space may be an LBA space containing valid data that can be read and written normally but with reduced performance (e.g., reduced write performance). A Read-Only (RO) space may be an LBA space containing valid data that is read-only. Storage device 110 may respond to write commands from the host to this type of LBA space using error messages. Data in a Read-Only space may remain valid for a period exceeding the retention period. Volatile Read-Only (VRO) space can be read-only, and storage device 110 can respond to write commands from the host to this type of LBA space using error messages. Data in this type of LBA space may be temporarily valid and may become invalid upon its expiration (i.e., when the lifetime of the data in storage medium 125 reaches the retention period of storage medium 125). Inaccessible (IA) space can be an LBA space containing invalid data that cannot be accessed by the host. Figure 2B The table represents the combination of LBA space types that may exist in storage device 110 for each fault condition identified in the first column. Patterns identified by an asterisk (*) allow the host to obtain detailed information about the LBA space using the get feature command. Figure 2CThe arguments of the “Get Features” command are shown. The “Get Features” command can be passed to storage device 110 to query storage device 110 for values of its status and related parameters (“IOPS” means input and output operations per second).
[0055] Figure 2D The representation indicates that host 105 can use to query storage device 110 for non-volatile memory fast (NVMe) commands about its status, and the hierarchy of enumerated constants that storage device 110 can use to respond.
[0056] In various embodiments, as described above, the disclosed system may include a fault-recovery storage device that can be configured to operate in read-only mode. However, in some practical situations, the disclosed system may find additional utility for applications where read-only mode may not provide sufficient Quality of Service (QoS). Therefore, even in the event of a device failure, a particular application may benefit from the operation of the fault-recovery storage device (e.g., in partial write mode), and this situation may include a partial fault-recovery operation mode. For example, the disclosed system may be configured to (e.g., report the status of the storage device to a host) and perform a graceful exit of the fault-recovery storage device when the device becomes unresponsive. However, there may be situations where the fault-recovery storage device is in an invalid state but the device remains operational and responsive. In some cases, where a portion of the data stored on the fault-recovery storage device may be inaccessible while other portions of the device are accessible, the fault-recovery storage device may still be responsive (e.g., to host requests). Instead of completely disabling the fault-recovery storage device, the disclosed system may be configured to continue allowing certain operations to continue (e.g., on accessible areas of the fault-recovery storage device and / or with data that has been written and may therefore still be valid). Therefore, in the event of a failure, the exposed system can be configured to allow the failover storage device to (e.g., report to a second storage device and / or the host's hypervisor) which regions and / or data blocks associated with the device are valid. Such valid data can be used for live migration of virtual machines between storage devices.
[0057] In a further embodiment, the disclosed system can be configured to disable one or more dies within the fault recovery storage device without disabling other dies in the fault recovery storage device. Therefore, the disclosed system can be configured to isolate faulty regions and provide the host (or other requesting device) with information about which regions (e.g., logical block address (LBA) spaces / regions) associated with the fault recovery storage device are invalid and which regions are valid.
[0058] Systems, methods, and apparatus are further described herein, illustrating how to recover data on a system including a fault-recovery storage device when the fault-recovery storage device provides information relating to valid (e.g., accessible) and invalid (e.g., inaccessible) areas of the fault-recovery storage device. As noted, the disclosed system can be configured to operate in a system running virtual machines. In some embodiments, the disclosed system may encounter a failure related to a device running and / or storing data associated with a failed virtual machine. Therefore, the disclosed system can be configured to migrate the virtual machine to another device and migrate the data associated with the virtual machine to a second storage device. In some embodiments, as described in various ways herein, a given storage device in the source machine may experience a failure, and therefore, if the device is a fault-recovery storage device, the fault-recovery storage device can switch to a fault-recovery operation mode.
[0059] Figure 3A This is a flowchart of a method for operating a fault-recovery storage device in fault-recovery mode in some embodiments. At 305, host 105 sends data or receives data from the storage device; at 310, host 105 determines whether an error has occurred in the storage device; at 315, storage device 110 performs internal diagnostics and determines its fault-recovery status (e.g., fully recovered, partially recovered, or vulnerable); at 320, storage device 110 modifies its performance, capacity, or capability based on the diagnostics (e.g., switches to read-only mode); at 325, storage device 110 publishes its status based on an application programming interface (API) according to a request from host 105; at 330, host 105 routes data of a given type to storage device 110 or a different storage device with a given bandwidth based on the status.
[0060] Figure 3B This is a flowchart illustrating details of a method for operating in a fault recovery mode. The method includes: at 335, the storage device determining that it is in a first fault state recoverable by power-on restart of the storage device or by formatting the storage medium; at 340, the storage device determining that it is in a second fault state recoverable by operating the storage device with reduced performance, reduced capacity, or in read-only mode; and at 345, operating the storage device with reduced performance, reduced capacity, or in read-only mode.
[0061] Multiple embodiments and variations of the embodiments disclosed herein can also be constructed. A field-programmable gate array (FPGA) or embedded processor can perform internal block checks and send asynchronous updates about the status of storage device 110 to host 105. Events (e.g., temperature or other parameters within the device) can occur and be sent to host 105. If no device driver feature is available to provide notification, host 105 can poll storage device 110 according to a predetermined schedule. The FPGA or embedded processor can monitor the historical performance of storage device 110 and use machine learning to provide predictive analytics (e.g., the probability of being in a given fault recovery state). Commands can be introduced in the NVMe specification; for example, telemetry information from the NVMe specification can be extended (to report the status of storage device 110). Some embodiments can be implemented in, for example, Ethernet storage devices or key-value (KV) storage devices.
[0062] Figure 4A This diagram illustrates a live virtual machine migration using a storage device, according to a disclosed example embodiment. Diagram 400 includes a source device 402 and a destination device 408. In some embodiments, source device 402 may include a storage device (e.g., a solid-state drive, SSD). In another embodiment, source device 402 may include a non-volatile memory component 404 and a volatile memory component 406. In one embodiment, volatile memory 406 may include an in-memory working set that actively processes pages associated with data blocks being processed by source device 402. As shown, some pages may be marked as evicted (E), clean (C), dirty (D), and / or flushed (F) (not shown). In another embodiment, non-volatile memory 404 may include pages associated with data persistently stored on local storage devices (e.g., NAND) of source device 402. As illustrated in the example of diagram 400, some pages may be marked as occupying inaccessible (I) space of source device 402. Furthermore, because destination device 408 may include non-volatile memory 410 and volatile memory 413, destination device 408 has a similar structure to source device 402. Similarly, in one embodiment, the volatile memory 413 of destination device 408 may include an in-memory working set that can actively process pages associated with data blocks being processed by destination device 408. In another embodiment, non-volatile memory 410 may include pages associated with data persistently stored on local storage devices (e.g., NAND) of destination device 408.
[0063] In some embodiments, Figure 400 illustrates an example operation 405 for virtual machine migration, for example, in the case of a post-copy operation. In such an operation 405, a portion of the data in volatile memory 406 on the source device 402 side may be persistently saved to non-volatile memory 404 of the source device 402. Specifically, as an example, some of the evicted pages and clean pages may be persistently saved to inaccessible space associated with non-volatile memory 404. In another embodiment, as an example, dirty pages in volatile memory 406 may be in the process of being written to non-volatile memory 404 when the source device 402 experiences a failure. In another embodiment, if the source device 402 cannot recover from the failure, operation 405 will result in a potentially unsuccessful migration of data from the source device 402 to the destination device 408. Specifically, as illustrated by example, if the system attempts a second time to read pages from the non-volatile memory 404 of the source device 402 that relate to some evicted blocks at the volatile memory 413 of the destination device 408, such an operation may fail at least because the source device 402 has already experienced a failure. Furthermore, if the system attempts to read pages from the non-volatile memory 404 of the source device 402 that relate to some clean pages at the volatile memory 413 of the destination device 408, such an operation may fail because the volatile memory 413 of the destination device 408 may have discarded clean pages. Moreover, at least because the source device 402 has already experienced a failure, the destination device 408 cannot recover the corresponding pages from the non-volatile memory 404 of the source device 402. Therefore, as shown, only a portion of the pages residing in the volatile memory 413 of the destination device 408 (e.g., the dirty blocks shown in Figure 400) can be persistently saved (or written back) to the local storage device (i.e., the non-volatile memory 410 of the destination device 408).
[0064] It should be understood that although the above description is provided in the context of a post-copy operation, similar principles can be applied to other operations during the live migration of a virtual machine from source device 402 to destination device 408. Specifically, a post-copy operation for virtual machine migration may include some of the following operations. First, post-copy can be initiated by pausing the virtual machine at the source device. In some examples, a subset of the virtual machine's execution state (e.g., CPU state, registers, and / or pageable memory, etc.) may be transferred to the destination device. The virtual machine may then be resumed at the destination device. In one embodiment, the source device may push the remaining memory pages of the virtual machine to the destination device (e.g., perform pre-paging). At the destination device, if the virtual machine attempts to access a page that has not yet been transferred, such an operation may generate a page fault. These faults may be caught at the destination device and redirected to the source device, which can respond using the faulted pages. In some aspects, pre-paging can dynamically adapt the page transfer order to network faults by actively pushing pages near the last fault. In some aspects, post-copy can be used to send a given page at a time over the network. Conversely, if pages are repeatedly soiled at the source device during migration, pre-copy can transfer the same pages multiple times. On the other hand, pre-copy can preserve the latest state of the virtual machine at the source device during migration. In contrast, in the case of post-copy, the state of the virtual machine can be distributed across both the source and destination devices. If the destination device fails during migration, pre-copy can recover the virtual machine, while post-copy may not be able to.
[0065] like Figure 4BAs shown, Figure 401 includes a fault recovery source device 412 and a destination device 418. In some embodiments, the fault recovery source device 412 may include a fault recovery storage device (such as a fault recovery SSD). In another embodiment, the fault recovery source device 412 may include a non-volatile memory component 414 and a volatile memory component 416. In one embodiment, the volatile memory 416 may include an in-memory working set that actively processes pages associated with data blocks being processed by the fault recovery source device 412. As shown, some pages may be marked as evicted (E), clean (C), dirty (D), and / or flushed (F) (not shown), and this particular page structure is copied from the case in Figure 400, making it advantageous for comparing device operation between the two cases for this example. In another embodiment, the non-volatile memory 414 may include pages associated with data persistently stored on local storage devices (e.g., NAND) of the fault recovery source device 412. As shown in the example of Figure 401, some pages may be marked as occupying inaccessible (I) space of the fault recovery source device 412. Furthermore, because destination device 418 may include non-volatile memory 420 and volatile memory 422, destination device 418 may have a similar structure to fault recovery source device 412. Similarly, in one embodiment, volatile memory 422 may include an in-memory working set that actively processes pages associated with data blocks being processed by destination device 418. In another embodiment, non-volatile memory 420 may include pages associated with data persistently stored on local storage devices (e.g., NAND) of destination device 418. Additionally, non-volatile memory 420 may include pages recovered from fault recovery source device 412 and other pages recovered from volatile memory 422 of destination device 418. For example, it can be demonstrated that, based on corresponding pages in volatile memory 422 of destination device 418, both clean and dirty pages can be written back (i.e., saved to) non-volatile memory 420 of destination device 418 (in operation 415). Furthermore, as shown in the example, due to the read-only operation state of the fault recovery source device 412, a specific read-only (R) page of the accessible portion of the non-volatile memory 414 of the fault recovery source device 412 can be read from the non-volatile memory 414 of the fault recovery source device 412.
[0066] It should be understood that although the above description is provided in the context of a pre-copy operation, similar principles can be applied to other operations during the live migration of a virtual machine from a fault-recovery source device 412 to a destination device 418. Furthermore, for explanation, pre-copy can refer to at least some of the following operations: In a pre-copy memory migration, the hypervisor copies memory pages from the source device to the destination device while the virtual machine continues to run on the source device. If some memory pages change during this process (e.g., memory pages become "dirty"), the memory pages can be re-copyed until the rate of re-copying pages exceeds the page dirtying rate. Furthermore, the virtual machine can then be stopped on the original host associated with the source device, the remaining dirty pages can be copied to the destination device, and the virtual machine can be resumed on the destination device.
[0067] Figure 5 This is a description of an exemplary flowchart illustrating aspects of live migration of virtual machines according to a disclosed example embodiment. Specifically, flowchart 500 illustrates some example operations related to live migration of virtual machines between a fault recovery source device 501 and a destination device 503, each having a source manager and a destination manager, respectively. Although reference is made to SSDs below, it should be understood that SSDs and storage devices are used interchangeably herein.
[0068] In box 502, the disclosed system may determine whether the SSD (e.g., a fault-tolerant SSD) is available. If the result determined in box 502 is that the SSD is available, then in box 504, the disclosed system may determine whether the SSD is operating in fault-tolerant mode. On the other hand, if the result determined in box 502 is that the SSD is unavailable, then in box 506, the disclosed system may return an error.
[0069] The disclosed system can recover data from the fail-safe SSD via operation 507. In box 508, the disclosed system can determine whether the logical block address (LBA) corresponding to the retrieved data belongs to the inaccessible space associated with the fail-safe SSD. If the result determined in box 508 is "yes," then in box 506, the disclosed system can return an error. Conversely, if the result determined in box 508 is that the LBA does not belong to the inaccessible space of the fail-safe SSD, then in box 510, the disclosed system can read from the accessible space associated with the fail-safe SSD.
[0070] In box 512, the disclosed system can determine whether the SSD in the storage device system has experienced a failure. If "No", the disclosed system can continue operating in box 518. If "Yes", the disclosed system can continue operating in box 514, where the disclosed system can determine whether the SSD is a fault-recovery SSD. If "No", the disclosed system can continue operating in box 518. If "Yes", in box 516, the disclosed system can obtain and determine LBA space type information associated with the faulty memory sector of the fault-recovery SSD, and optionally, in box 508, it can determine whether the faulty memory sector in the fault-recovery SSD includes an LBA of inaccessible space and / or in box 538 (on the destination device, as further described below), it can determine whether the LBA belongs to inaccessible space (of the source device). The disclosed system can further proceed to box 518 as described below.
[0071] In box 518, the disclosed system can release page cache flushing operations associated with the SSD (fail-safe SSD or regular SSD) to allow for subsequent live migration processing, as shown in box 520.
[0072] In box 526, the disclosed system determines whether the operations related to the live migration processing include a read operation. If "No," then in box 527, the disclosed system writes the data block related to the write operation to the page cache. If "Yes," then in box 528, the disclosed system determines whether the data block exists in the page cache of the destination device (e.g., in the volatile memory of the destination device). Furthermore, if the result determined in box 528 is that the data block is not in the page cache of the destination device, the disclosed system can proceed to the operation in box 524 as described below. If the result determined in box 528 is that the data block is in the page cache of the destination device, the disclosed system can proceed to box 530, in which the disclosed system reads data from the page cache of the destination device.
[0073] In box 524, the disclosed system can determine whether a data block for a read operation (e.g., the read operation in box 526) can be found on a local disk (e.g., the non-volatile memory of the destination device). If "no", then in box 522, the disclosed system can read the data block from a remote disk (e.g., continuing the operation on the source device by starting the example operation in box 502, as described above). On the other hand, if a data block for a read operation can be found on a local disk, then in box 531, the disclosed system can read the data block from the local disk (e.g., the non-volatile memory of the destination device).
[0074] As noted, in box 538, the disclosed system can determine whether the LBA associated with a data block belongs to inaccessible space (associated with the non-volatile memory of the source device). If "no", then in box 536, the disclosed system can discard the data block and / or page. If "yes", then the disclosed system can recover the data block from the DRAM (e.g., volatile memory) associated with the destination device via operation 539, and can continue writing these blocks to the local disk (e.g., the non-volatile memory of the destination device) in box 534. Furthermore, in box 532, the disclosed system can determine whether the data block and / or page involved in the operation described in box 538 is dirty. If the disclosed system determines that the data block and / or page is dirty, then in box 534, the disclosed system can write the data block to the local disk (e.g., the non-volatile memory of the destination device).
[0075] In some embodiments, flowchart 500 describes how the disclosed system migrates virtual machines from a source server (e.g., a server) to a destination device (e.g., a server). The above describes some example operations, and a more general overview and discussion of these operations are now provided.
[0076] As described above, virtual machine migration performed by some systems may not include inspection operations on data residing in one or more associated volatile memories (e.g., DRAM) in the destination or source device. In some embodiments, the disclosed system can be used to recover storage device information (e.g., virtual machine-related data to be migrated) by using information that has been at least temporarily stored in volatile memory under certain conditions (e.g., opportunistically, as described below).
[0077] In some embodiments, when a failure occurs, the disclosed system can effectively freeze operations associated with virtual machines running on a link including the failed device, and the disclosed system can, for example, initiate migration processing on the source device with the failure. In various embodiments, the source device may include a fault recovery storage device, which may also provide information (e.g., LBA fault recovery space information) to the operating system (OS) / hypervisor associated with the source device. Therefore, the disclosed system can transfer virtual machines to the destination device and can notify the corresponding hypervisor which portions of the storage device associated with the virtual machine are valid and invalid. Furthermore, if a portion of the storage device is invalid, the disclosed system can be configured to perform operations to recover data from volatile memory on either the source or destination device. Thus, during migration, the virtual machine can be executed and perform I / O.
[0078] If a read operation exists at the destination device, the disclosed system can determine whether the requested data already exists in the volatile memory (e.g., DRAM) of the destination device. If so, the disclosed system can read the data from the relevant page cache. On the other hand, if the disclosed system determines that the requested data does not exist in the volatile memory of the destination device, the disclosed system can determine where to obtain the data. Specifically, if the data does not exist on the local disk of the destination device, the data may reside on the local disk of the source device; therefore, the disclosed system can check the source device to find the data. Specifically, if disk migration between the source and destination devices has been completed, the disclosed system can check the local disk of the source device to find the data. However, accessing the data may depend on which memory region of the source device is being accessed. For example, if data is being requested from a faulty region of the source device, the data may be considered invalid, in which case the disclosed system can be configured to reject the request for data and return an error. On the other hand, if the requested data is not on a faulty region but on a valid and accessible region of the source device's memory, the source device can provide the data. Therefore, a source device that may include fault-recoverable storage devices, despite having a fault, can be readable.
[0079] In another embodiment, if the operation requested from the source device is not a read operation (e.g., the operation is a write operation), the failure state of the source device is less relevant, and the disclosed system is configured to write the data. Specifically, the disclosed system may be configured to first write the data to the page cache, and if the data is dirty, the disclosed system may later write the data to the disk of the destination device. In another embodiment, if the data is not dirty, the disclosed system may be configured to discard the data (e.g., the disclosed system does not need to write the data again). If the data block associated with the data is clean, this may mean that the data is available on the corresponding disk associated with the source or destination storage device. However, after a virtual machine migration due to a failure, the disclosed system may not be able to determine whether the data exists on a given disk. For example, the disclosed system may have already read the data, and the data may still be in DRAM that has not been updated. Furthermore, because the read LBA is now invalid on the source machine that has experienced a failure, the underlying disk may be unavailable. Therefore, the disclosed system is configured to move the virtual machine to the destination device to recover the data.
[0080] In some embodiments, some example live migration operations may be applicable to devices with a fault-free read-only operation mode. If the storage device is not configured for read-only mode, the data may reside on DRAM; however, if the data is dirty, the exposed system can still recover the data from the area being accessed on the source machine for write operations. If the source device fails but the data blocks are clean, the exposed system may be configured to write the data blocks to disk to recover the data. If there is no failure, the data may be considered clean during virtual machine migration, and therefore the exposed system can read the data from a local (e.g., destination) or remote (e.g., source) device. Thus, as described above, it will be readily apparent that a high degree of integration can exist between the hypervisor / OS and the storage devices (e.g., source and destination devices).
[0081] Figure 6 This is an illustration of an exemplary flowchart of example page cache management operations according to disclosed example embodiments. In various embodiments, methods for determining storage device failures associated with a fault-tolerant storage device are described. At block 602, the disclosed system may determine to perform a data transfer from the fault-tolerant storage device to a second storage device. For example, as part of a live migration process, the disclosed system may determine to move data related to virtual machines associated with the fault-tolerant storage device to the second storage device.
[0082] In box 604, the disclosed system can determine that a first region associated with a fault-tolerant storage device includes inaccessible space, and determines that a second region associated with a fault-tolerant storage device includes accessible space. Specifically, as described herein in various ways, inaccessible space may include portions of NAND that are inaccessible due to physical failures (e.g., bad circuitry, bad chips, damage, excessive rewrites, etc.). As noted, a fault-tolerant storage device may experience a failure, but still includes operable memory within the accessible space (e.g., the entire memory of the fault-tolerant device is not uniformly damaged due to the failure). The accessible space can be used in conjunction with live migration processing to migrate virtual machine-related pages from the fault-tolerant storage device to a destination device (e.g., a second storage device).
[0083] At block 606, the disclosed system can determine a read command for data in the second storage device and, based on the read command, determine first data from local memory of the second storage device requested by the read operation. In some embodiments, the local memory may include volatile memory (such as DRAM associated with the second storage device).
[0084] In other embodiments, the disclosed system can determine write commands for data from the fault-tolerant storage device. Therefore, the disclosed system can write at least a portion of the data to the page cache of the host device (e.g., the host device associated with the second storage device and / or the fault-tolerant storage device). Furthermore, the disclosed system can determine that this portion of the data includes dirty data, and the disclosed system can be configured to write the dirty data to the persistent memory (e.g., non-volatile memory) of the second storage device. Additionally, the disclosed system can determine that this portion of the data includes clean data associated with inaccessible space, and the disclosed system can write the clean data to the persistent memory (e.g., non-volatile memory) of the second storage device.
[0085] At block 608, the disclosed system can determine second data from a second region requested by a read operation based on a read command. In some embodiments, the read command for the second data may include accessible space of a fault-recovery storage device. At block 610, the disclosed system can obtain the second data from the second region.
[0086] In box 612, the disclosed system can determine, based on a read command, third data requested by a read operation from inaccessible space of the fault-tolerant storage device. In box 614, the disclosed system can return an error from the fault-tolerant storage device to the second storage device based on the determination of the third data. This may be because the requested third data is in inaccessible space of the fault-tolerant storage device.
[0087] The various elements described herein (such as host 105 or controller 120) may be or may include processing circuitry. The term "processing circuitry" or "means for processing" is used herein to refer to any combination of hardware, firmware, and software for processing data or digital signals. Processing circuitry hardware may include, 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 processing circuitry, as used herein, each function is performed by hardware configured (i.e., hardwired) to perform said function, or by more general-purpose hardware (such as a CPU) configured to execute instructions stored in a non-transitory storage medium. Processing circuitry may be fabricated on a single printed circuit board (PCB) or distributed across several interconnected PCBs. Processing circuitry may include other processing circuitry; for example, processing circuitry may include two processing circuits (FPGA and CPU) interconnected on a PCB.
[0088] As used herein, “part” means “at least some” of the thing, and thus can mean less than or all of the thing. Therefore, as a special case, “part” of the thing includes the whole thing (i.e., the whole thing is an example of a part of the thing). As used herein, the term “or” should be interpreted as “and / or”, such that, for example, “A or B” means either “A” or “B” or “A and B”.
[0089] The background art provided in the Background section of this disclosure is included only to illustrate the background, and the content of this section is not to be acknowledged as prior art. Any component or combination of components described (e.g., in any system diagram included herein) may be used to perform one or more operations in any flowchart included herein. Furthermore, (i) the operations are example operations and may involve various additional steps not explicitly covered, and (ii) the timing order of the operations may be changed.
[0090] As used herein, when a method (e.g., adjustment) or a first quantity (e.g., a first variable) is referred to as “based on” a second quantity (e.g., a second variable), this means that the second quantity is an input to the method or affects the first quantity (e.g., the second quantity may be an input to a function that computes the first quantity (e.g., a unique input or one of several inputs), or the first quantity may be equal to the second quantity, or the first quantity may be the same as the second quantity (e.g., stored in the same one or more locations in memory)).
[0091] It will be understood that although the terms “first,” “second,” “third,” etc., may be used herein to describe various elements, components, regions, layers, and / or portions, these elements, components, regions, layers, and / or portions should not be limited by these terms. These terms are used only to distinguish one element, component, region, layer, or portion from another. Therefore, without departing from the spirit and scope of the inventive concept, the first element, first component, first region, first layer, or first portion discussed herein may be referred to as a second element, second component, second region, second layer, or second portion.
[0092] For ease of description, spatial relative terms (such as "below," "under," "below," "below," "below," "above," and "above") are used herein to describe the relationship of one element or feature as shown in the accompanying drawings to one or more other elements or features. It will be understood that, in addition to the orientations depicted in the drawings, such spatial relative terms are intended to include different orientations of the device in use or operation. For example, if the device in the drawings is flipped, an element described as "below," "below," or "below" another element or feature will be "above" said other element or feature. Therefore, the example terms "below" and "below" can include both orientations of "above" and "below." The device may be otherwise oriented (e.g., rotated 90 degrees or in other orientations), and the spatial relative descriptors used herein should be interpreted accordingly. Furthermore, it will be understood that when a layer is referred to as "between" two layers, it can be the only layer between the two layers, or one or more intermediate layers may exist.
[0093] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the inventive concept. As used herein, the terms “substantially,” “about,” and similar terms are used as approximate terms rather than terms of degree and are intended to take into account the inherent biases of measurements or calculations that will be recognized by those skilled in the art.
[0094] As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. It will also be understood that when the terms “comprising” and / or “including” are used in this specification, they indicate the presence of the stated features, integrals, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integrals, steps, operations, elements, components, and / or groups thereof. As used herein, the term “and / or” includes any and all combinations of one or more of the associated listed items. Expressions such as “at least one of…” modify the entire list of elements when following a list, without modifying any individual element in the list. Furthermore, the use of “may” in describing embodiments of the inventive concept means “one or more embodiments of this disclosure.” Additionally, the term “exemplary” is intended to indicate an example or illustration. As used herein, the term “use” and variations thereof may be considered synonymous with the term “utilize” and variations thereof.
[0095] It will be understood that when a component or layer is referred to as being "on" another component or layer, "connected to", "bonded to", or "adjacent to" another component or layer, it may be directly on, connected to, bonded to, or adjacent to the other component or layer, or one or more intermediate components or layers may be present. Conversely, when a component or layer is referred to as being "directly on" another component or layer, "directly connected to", "directly bonded to", or "immediately adjacent to" another component or layer, no intermediate components or layers are present.
[0096] Any numerical ranges listed herein are intended to include all subranges of the same numerical precision falling within the listed range. For example, the range “1.0 to 10.0” or “between 1.0 and 10.0” is intended to include all subranges between the listed minimum value 1.0 and the listed maximum value 10.0 (and includes both the listed minimum value 1.0 and the listed maximum value 10.0) (i.e., all subranges having a minimum value equal to or greater than 1.0 and a maximum value equal to or less than 10.0 (e.g., 2.4 to 7.6). Any maximum numerical limit listed herein is intended to include all lower numerical limits falling within it, and any minimum numerical limit listed in this specification is intended to include all higher numerical limits falling within it.
[0097] Although exemplary embodiments of systems and methods for restoring storage devices and systems including storage devices for live virtual machine migration have been specifically described and illustrated herein, many modifications and variations will be apparent to those skilled in the art. Therefore, it should be understood that systems and methods for restoring storage devices and systems including storage devices for live virtual machine migration constructed in accordance with the principles of this disclosure may be implemented in ways different from those specifically described herein. The invention is also defined in the appended claims and their equivalents.
Claims
1. A method for page cache management, comprising: Confirm the storage device failure related to the fault recovery storage device; The first region associated with the fault recovery storage device is determined to include inaccessible space, and the second region associated with the fault recovery storage device is determined to include accessible space; Confirm the read command for data in the second storage device, and determine the first data from the local memory of the second storage device requested by the read operation based on the read command; Based on the read command, determine the second data from the second region requested by the read operation; Obtain second data from the second region; and Schedule the transfer of second data from the fault recovery storage device to the second storage device.
2. The method according to claim 1, wherein, The method further includes: Based on the read command, determine the third data from the inaccessible space of the fault-recovery storage device requested by the read operation; and Based on the determination of the third data, the error is returned from the fault recovery storage device to the second storage device.
3. The method according to claim 1, further comprising: Confirm the write command for data in the fault recovery storage device; Write at least a portion of the data to the host device's page cache; The determination that at least a portion of the data includes dirty data, and the dirty data is written to the persistent memory of the second storage device; and The determination of at least a portion of the data includes clean data associated with inaccessible space, and the clean data is written to the persistent memory of the second storage device.
4. The method according to claim 1, wherein, The transfer of the second data includes the live migration of at least one virtual machine from the fault recovery storage device to the second storage device.
5. The method according to claim 1, wherein, The first data includes at least a portion of the data cached in local memory.
6. The method according to claim 1, wherein, Local memory includes DRAM, and the first data is identified as coming from the page cache.
7. The method according to any one of claims 1 to 6, wherein, The data includes data related to at least one virtual machine on the host device.
8. The method according to any one of claims 1 to 6, wherein, Storage device failures include fault recovery storage devices operating in a partially read-only mode, where the fault recovery storage device operates with reduced performance or reduced capacity.
9. The method according to any one of claims 1 to 6, wherein, At least one of the fault recovery storage device and the second storage device includes a solid-state drive.
10. An apparatus for page cache management, comprising: At least one memory device storing computer-executable instructions; and At least one processor is configured to access the at least one memory device, wherein the at least one processor is configured to execute computer-executable instructions to: Confirm the storage device failure related to the fault recovery storage device; The first region associated with the fault recovery storage device is determined to include inaccessible space, and the second region associated with the fault recovery storage device is determined to include accessible space; Confirm the read command for data in the second storage device, and determine the first data from the local memory of the second storage device requested by the read operation based on the read command; Based on the read command, determine the second data from the second region requested by the read operation; Obtain second data from the second region; and Schedule the transfer of second data from the fault recovery storage device to the second storage device.
11. The apparatus according to claim 10, wherein, The at least one processor is further configured to execute computer-executable instructions to: Based on the read command, determine the third data from the inaccessible space of the fault recovery storage device requested by the read operation; and Based on the determination of the third data, the error is returned from the fault recovery storage device to the second storage device.
12. The apparatus according to claim 10, wherein, The at least one processor is further configured to execute computer-executable instructions to: Confirm the write command for data in the fault recovery storage device; Write at least a portion of the data to the host device's page cache; The data is determined to include at least a portion of dirty data, and the dirty data is written to the persistent memory of the second storage device; and The determination of at least a portion of the data includes clean data associated with inaccessible space, and the clean data is written to the persistent memory of the second storage device.
13. The apparatus according to claim 10, wherein, Data transfer includes the live migration of at least one virtual machine from a fault recovery storage device to a second storage device.
14. The apparatus according to claim 10, wherein, The first data includes at least a portion of the data cached in local memory.
15. The apparatus according to any one of claims 10 to 14, wherein, The local memory includes DRAM, and the first data is determined to be from the page cache, wherein the data includes data related to at least one virtual machine of the host device.
16. The apparatus according to any one of claims 10 to 14, wherein, Storage device failures include fault recovery storage devices operating in a partially read-only mode, where the fault recovery storage device operates with reduced performance or reduced capacity.
17. A non-transitory computer-readable medium storing computer-executable instructions, which, when executed by a processor, cause the processor to perform operations, said operations including: Confirm the storage device failure related to the fault recovery storage device; The first region associated with the fault recovery storage device is determined to include inaccessible space, and the second region associated with the fault recovery storage device is determined to include accessible space; Confirm the read command for data in the second storage device, and determine the first data requested from the local memory of the second storage device by the read operation based on the read command; Based on the read command, determine the second data from the second region requested by the read operation; Obtain second data from the second region; and Schedule the transfer of second data from the fault recovery storage device to the second storage device.
18. The non-transitory computer-readable medium according to claim 17, wherein, The operation also includes: Based on the read command, determine the third data from the inaccessible space of the fault-recovery storage device requested by the read operation; and Based on the determination of the third data, the error is returned from the fault recovery storage device to the second storage device.
19. The non-transitory computer-readable medium according to claim 17, wherein, The operation also includes: Confirm the write command for data in the fault recovery storage device; Write at least a portion of the data to the host device's page cache; The determination that at least a portion of the data includes dirty data, and the dirty data being written to the persistent memory of the second storage device; and The determination of at least a portion of the data includes clean data associated with inaccessible space, and the clean data is written to the persistent memory of the second storage device.
20. The non-transitory computer-readable medium according to claim 17, wherein, Data transfer includes the live migration of at least one virtual machine from a fault recovery storage device to a second storage device.
Citation Information
Patent Citations
Data recovery method, storage equipment and storage system
CN103534688A
computer
US20190220358A1
