System and apparatus for restoring data to ephemeral storage - Patent Application 20070123633
The described method and apparatus address inefficiencies in data storage systems by managing defects through page cache management and live migration, ensuring data integrity and performance in ephemeral storage environments.
Patent Information
- Application Number
- JP2021115674
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-01-27
- Filing Date
- 2021-07-13
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-07-13
AI Technical Summary
Existing data storage systems face inefficiencies due to internal defects such as temperature sensor errors or bit flips, leading to reduced performance and capacity, necessitating a system for data recovery and restoration in ephemeral storage environments.
A method and apparatus for managing a page cache that identifies defective areas in storage devices, distinguishes between accessible and inaccessible spaces, and employs live migration of virtual machines to maintain data integrity by transferring data to a second storage device, utilizing DRAM for temporary data storage and non-volatile memory for permanent data.
The system ensures data integrity and maintains performance by effectively managing defects in storage devices, allowing for seamless live migration of virtual machines and preventing data loss despite defects, thereby enhancing operational efficiency.
Smart Images

Figure 0007543619000007 
Figure 0007543619000002 
Figure 0007543619000001
Abstract
Description
[Technical field]
[0001] The present disclosure relates to data storage systems, and more particularly to data storage systems and apparatus configured to provide data restoration in the context of ephemeral storage. [Background technology]
[0002] This Background Art section is merely to provide context and does not constitute an admission that the disclosure of any embodiments or concepts in this section is prior art.
[0003] Storage devices and systems are widely used in a variety of data processing systems. In some embodiments, a storage device is used as a host for at least some aspects of a virtual machine (VM), which is an emulation of a computer system. A VM includes an implementation that includes specific hardware, software, and / or a combination thereof. Additionally, storage devices are complex enough that they may face a significant range of internal failure conditions (including, for example, temperature sensor errors or bit flips due to copying). Such failure conditions may reduce the efficiency of certain operations performed on or with the storage device.
[0004] Thus, there is a need for a system and method for recovery operations relating to a storage device and / or a system including a storage device. Summary of the Invention [Problem to be solved by the invention]
[0005] It is an object of the present invention to provide a data storage system and apparatus configured to provide restoration of data to ephemeral storage. [Means for solving the problem]
[0006] In some embodiments, a method for managing a page cache is described, the method including identifying a storage device defect associated with a defect recovery storage device, determining that a first region associated with the defect recovery storage device includes inaccessible space and that a second region associated with the defect recovery storage device includes accessible space, identifying a read command at a second storage device for data, determining first data requested by the read operation from a local memory of the second storage device based on the read command, determining second data requested by the read operation from the second region based on the read command, retrieving the second data from the second region, and scheduling transmission of the second data from the defect recovery storage device to the second storage device. The method further includes determining third data requested by the read operation from the inaccessible space of the defect recovery storage device based on the read command, and returning an error from the defect recovery storage device to the second storage device based on the determination of the third data.
[0007] In another embodiment, the method further includes identifying a write instruction in a defect recovery storage device for the data; recording at least a portion of the data in a page cache of a host device; determining that the portion of the data includes dirty data and recording the dirty data in a permanent memory of the second storage device; and determining that another portion of the data includes clean data relating to the inaccessible space and recording the clean data in the permanent memory of the second storage device.
[0008] In various embodiments, transmitting the second data includes a live migration of at least one virtual machine from the fault recovery storage device to the second storage device. In some embodiments, the first data includes at least a portion of the data cached in the local memory. In various embodiments, the local memory includes dynamic random access memory (DRAM), and the identification of the first data is from a page cache. In some embodiments, the data includes data related to at least one virtual machine of a host device. In various embodiments, a defect in the storage device causes the fault recovery storage device to operate in a partial read-only mode, and 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 (SSD). In various embodiments, an apparatus for managing a page cache is described. The apparatus includes at least one memory device storing computer-executable instructions and at least one processor configured to access the at least one memory device, the at least one processor configured to execute the computer-executable instructions to identify a storage device defect associated with a defect recovery storage device, determine that a first region associated with the defect recovery storage device includes inaccessible space and that a second region associated with the defect recovery storage device includes accessible space, identify a read command at a second storage device for data, determine first data requested by the read operation from a local memory of the second storage device based on the read command, determine second data requested by the read operation from the second region based on the read command, retrieve the second data from the second region, and schedule transmission of the second data from the defect recovery storage device to the second storage device.
[0009] In various embodiments, the at least one processor is further configured to execute the computer-executable instructions to determine, based on the read command, third data requested by the read operation from the inaccessible space of the defect recovery storage device, and return an error from the defect recovery storage device to the second storage device based on the determination of the third data. The at least one processor further executes the computer-executable instructions to identify a write command in the defect recovery storage device for the data, record at least a portion of the data in a page cache of a host device, determine that the portion of the data includes dirty data, record the dirty data in a persistent memory of the second storage device, and determine that another portion of the data includes clean data related to the inaccessible space, and record the clean data in the persistent memory of the second storage device.
[0010] In other embodiments, transmitting the second data includes live migration of at least one virtual machine from the fault recovery storage device to the second storage device. In some embodiments, the first data includes at least a portion of the data cached in the local memory. In various embodiments, the local memory includes DRAM, and the determination of the first data is made from a page cache, and the data includes data related to at least one virtual machine of a host device. In some embodiments, a defect in the storage device causes the fault recovery storage device to operate in a partial read-only mode, and the fault recovery storage device operates with degraded performance or reduced capacity.
[0011] In various embodiments, a non-transitory computer-readable medium is described that stores computer-executable instructions that are executed by a processor, the non-transitory computer-readable medium performing operations of identifying a storage device defect associated with a defect recovery storage device, determining that a first region associated with the defect recovery storage device comprises inaccessible space and that a second region associated with the defect recovery storage device comprises accessible space, identifying a read command at a second storage device for data, determining first data requested by the read operation from a local memory of the second storage device based on the read command, determining second data requested by the read operation from the second region based on the read command, retrieving the second data from the second region, and scheduling transmission of the second data from the defect recovery storage device to the second storage device.
[0012] The non-transitory computer-readable medium further includes computer-executable instructions for determining third data requested by the read operation from the inaccessible space of the defect recovery storage device based on the read instruction, and returning an error from the defect recovery storage device to the second storage device based on the determination of the third data.
[0013] The non-transitory computer readable medium further includes computer executable instructions for identifying a write instruction in the fault recovery storage device for the data, recording at least a portion of the data in a page cache of a host device, determining that the portion of the data includes dirty data, recording the dirty data in a persistent memory of the second storage device, and determining that another portion of the data includes clean data related to the inaccessible space, and recording the clean data in the persistent memory of the second storage device. In another embodiment, the transmission of the second data includes a live migration of at least one virtual machine from the fault recovery storage device to the second storage device.
[0014] As noted, in some embodiments, systems, methods, and devices include a fault recovery storage device that operates in various recovery modes while retaining partial functionality or returning full functionality despite an internal fault. For example, in some situations, one way for a storage device to retain partial functionality is to operate in a read-only mode, where the storage device responds to read requests from a host but returns an error message when the storage device receives a write request from the host. Effect of the Invention
[0015] According to the system and device of the present disclosure, even if a defect occurs in a storage device and performance is degraded, capacity is reduced, or functionality is degraded, the integrity of the data being processed can be maintained and a decrease in data processing speed caused by the occurrence of a defect can be prevented. [Brief description of the drawings]
[0016] The drawings provided herein are for the purpose of illustrating particular embodiments and do not exclude from the scope of the present disclosure other embodiments that may not be explicitly illustrated.
[0017] Specific embodiments and other features and advantages of the present disclosure will be identified and understood with reference to the description, claims, and accompanying drawings. [Figure 1] FIG. 1 is a block diagram of a data storage system illustrating an environment in which the disclosed system operates according to an embodiment of the present disclosure. [Figure 2a] 1 is a table of storage device failure states illustrating various failure modes that a fault recovery storage device may encounter (e.g., during live migration of a virtual machine) in accordance with an embodiment of the present disclosure. [Figure 2b]1 is a table of storage device operation modes illustrating various states of a fault recovery storage device during live migration according to an embodiment of the present disclosure. [Figure 2c] 4 is a table of commands for transmission by a host to a storage device according to an embodiment of the present disclosure. [Figure 2d] 1 is a table illustrating a hierarchical structure of recovery modes according to an embodiment of the present disclosure. [Figure 3a] FIG. 2 is a flow chart illustrating a first method of operation of a recovery storage device according to an embodiment of the present disclosure. [Figure 3b] FIG. 11 is a flow chart illustrating a second method of operation of a recovery storage device according to an embodiment of the present disclosure. [Figure 4a] 1 is a diagram for performing live virtual machine migration using a storage device according to an embodiment of the present disclosure. [Figure 4b] 1 is another diagram for performing live virtual machine migration using a fault recovery storage device according to an embodiment of the present disclosure. [Diagram 5] 2 is a flow chart illustrating a method for performing live virtual machine migration using a fault recovery storage device according to an embodiment of the present disclosure. [Figure 6] 4 is a flow chart of a method for performing example operations related to page cache management in accordance with an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] The detailed description set forth below in conjunction with the accompanying drawings is a description of an embodiment of a system and method for recovery operation of a storage device and a system including a storage device provided by the present disclosure, and is not intended to represent the only form in which the contents of the present disclosure may be constructed or utilized. The detailed description describes features of the present disclosure related to the described embodiment. However, it should be understood that the same or equivalent functions and structures may be achieved by different embodiments that are intended to be included within the scope of the present disclosure. As shown in this specification, similar component numbers are intended to indicate similar components or features.
[0019] In some embodiments, the disclosed system is used to perform live migration of a virtual machine (VM) from a fault recovery storage device (described in more detail below with respect to FIGS. 1-3) to another storage device. In particular, migration refers to the process of moving a running virtual machine from one physical host to another physical host (e.g., to a backing storage device) with little or no interruption in service. Additionally, live migration (described in more detail below) refers to the process of moving a running virtual machine or application between different physical machines without severing the client or application connections. In some embodiments, at least a portion of the virtual machine's memory, storage, and network connections are transferred from the source device to the destination device.
[0020] In various embodiments, the disclosed system includes a storage device that supports operation of the virtual machine and further supports live migration of the virtual machine between the source device and the destination device. In some aspects, the present disclosure refers to devices that include a storage device, such as a fault recovery storage device, and refers to a source device and a destination device that are used to store at least a portion of the data and information related to the virtual machine. It should be understood that terms such as source device, source storage device, destination device, and / or destination storage device may be used interchangeably herein without departing from the scope of the present disclosure.
[0021] As noted in some embodiments, the storage device further includes a fault recovery storage device that experiences a fault and is converted to a reduced performance operating mode (e.g., a read-only or partial read-only operating mode, as described below). In some aspects, such a fault recovery storage device is configured to operate at a source server to support a virtual machine, at least in part, to perform operations (e.g., storage-related operations). Thus, the disclosed system is configured to allow live migration of a virtual machine, at least in part, hosted on a fault recovery storage device that experiences a fault, to a second device (e.g., a second storage device). In particular, the disclosed system employs a methodology that includes data checking on a combination of source device working (e.g., volatile) memory, secondary storage (e.g., non-volatile memory of the fault recovery storage device), target device working (e.g., volatile) memory, and secondary storage (e.g., non-volatile memory of the second storage device). It should also be understood that working memory, volatile memory, secondary storage, permanent memory, and non-volatile memory may be used interchangeably without departing from the scope of the present disclosure.
[0022] As described above, the disclosed system is configured to explore in conjunction with a fault recovery storage device to perform aspects of live migration of a virtual machine from the fault recovery storage device to a second device (e.g., a target device). In some embodiments, the fault recovery storage device operates in various recovery modes to maintain partial functionality or return to full functionality despite internal faults. For example, in response to a temperature sensor failure, the storage device may operate at a reduced utilization rate, or a reduced utilization rate for write operations, or may not perform write operations at all. In response to a temporary failure that may damage the storage medium, the storage device reformats the storage medium. In response to a temporary failure that does not damage the storage medium, the storage device cycles power. In some circumstances, one way for a storage device to maintain partial functionality is to operate in a read-only mode, where the storage device responds to host read requests but returns an error message when it receives a host write request. Additionally, data scheduled for expiration is moved to a recovery area so that the data is not lost upon expiration.
[0023] In various embodiments, in the case of a non-fault recovery storage device that has not experienced a fault, the storage device performs a live migration of the virtual machine by copying (e.g., using a memory copy operation) an image of the data from the storage device associated with the source device to the storage device associated with the destination device. In some aspects (further illustrated and described with respect to FIG. 4a below), during the live migration, some of the data remains in volatile memory (e.g., DRAM) while other portions of the data are recorded to a secondary storage device (e.g., the second storage device). For example, some clean (C) data, dirty (or contaminated) (D) data (e.g., data that has been accessed and modified but not yet recorded in secondary storage) and / or removed data (e.g., data that has been or may be discarded) remain in volatile memory during the live migration. Thus, in the case of a live migration in which the storage device is not faulty, the disclosed system records all of the data from the source device to the disk of the destination device. After performing the live migration (e.g., after performing a partial or full memory copy from the source device to the destination device), the disclosed system releases the source device. Additionally, if other devices (e.g., devices executing applications related to the source device and / or the target device) need to access data on the secondary storage of the target device, the disclosed system is configured to allow remote disk access over the associated network (e.g., via remote disk access for the target device). However, if the source device experiences the result that migration is prohibited in some systems, at least the underlying disk may not be responsive (even though volatile memory contains at least some of the data), and thus migration cannot continue without further techniques.
[0024] However, as further described herein, in various embodiments, if the source device includes a fault recovery storage device and that fault recovery storage device is configured in a read-only mode of operation, the disclosed system maintains a certain level of access to the source device (e.g., access to a portion of the non-volatile memory and / or volatile memory of the source device) to read a portion of the data and transmit that data to the target device to continue the migration process.
[0025] In other embodiments, the disclosed system is configured to perform live migration of a virtual machine even when the source device is in a partial read-only operating mode (e.g., the storage device is in an operating mode with reduced performance for read operations) rather than a full read-only operating mode. In some embodiments, the disclosed system is configured to perform certain opportunistic restore operations with respect to data on a fault recovery source device that has experienced a fault and is in a partial read-only operating mode (e.g., the storage device operates with reduced performance, less capacity, or less functionality). For example, using information in volatile memory (e.g., DRAM), the disclosed system is configured to restore data recorded in a defective area of memory (e.g., non-volatile memory) associated with the fault recovery device if the data was recorded within a recent predetermined period of time (e.g., triggering the applicability of the temporary storage of various embodiments described herein). In particular, the disclosed system is configured to use DRAM information associated with the source device and / or the destination device to perform this aspect of live migration.
[0026] In various embodiments, the disclosed system is used in the context of performing live migration of a virtual machine, as mentioned, which is described in more detail below. Some exemplary operations for live migration of a virtual machine include at least some of the following: In some aspects, the disclosed system first performs a live migration setup process. During live migration setup, the disclosed system configures a source device (e.g., a storage device that includes or has access to a fault recovery storage device) that creates a connection with a destination device to transmit virtual machine configuration data to the target device. The disclosed system configures a virtual machine on the destination device, and memory is allocated to the destination virtual machine. The disclosed system also performs various checks to verify that the host and / or hypervisor associated with the destination device is capable of receiving the source virtual machine (e.g., the disclosed system determines whether parameters such as memory, disk connectivity, a combination thereof, etc. are sufficient).
[0027] In yet another embodiment, the disclosed system transfers various memory pages from a source device to a destination device according to various embodiments described herein. In one embodiment, the disclosed system allocates memory for a migrating virtual machine that is copied over a network to a destination device in a live migration step, for example, by performing aspects of the methodology described herein. The memory is referred to as a "working set" of the migrating virtual machine. In some aspects, the memory page may be 4KB, but may be any suitable size. The disclosed system is configured to allow the migrating virtual machine to continue running. In some embodiments, the disclosed system configures a hypervisor to repeat the memory copy process. In some embodiments, each iteration requires a smaller number of modified pages to be copied. After the working set is copied to the destination server, the modified pages are transferred according to various aspects of the methodology described herein.
[0028] At this point, live migration of the disclosed system includes a memory copy process that copies the remaining modified memory pages to the destination server according to the methodology described in this disclosure. In some embodiments, the source device transmits certain information to the destination device, such as the CPU and the device state of the virtual machine. In some aspects, the faster the source device transmits modified pages from the working set of the migrating virtual machine, the faster the live migration is completed. Also, the number of pages transmitted is based on how aggressively the virtual machine accesses and modifies the memory pages. After the modified memory pages are copied to the destination server, the destination device has an up-to-date working set of the virtual machine.
[0029] In some embodiments, during the live migration step, control of the storage associated with the virtual machine, such as any virtual storage files or physical storage attached via a virtual adapter, is transferred to the target device, and the disclosed system brings the virtual machine online on the target device, such that the target device has access to the working set of the virtual machine, as well as access to the storage used by the virtual machine.
[0030] In some embodiments, the disclosed system is used in conjunction with a hyperscaler environment (e.g., a data center). In some aspects, various hyperscaler environments are configured to use temporary storage devices that provide storage space that is used for a particular time while the storage device is running a virtual machine. In some embodiments, the disclosed system is adapted (e.g., when compared to primary storage) to operate in such an environment (e.g., a hyperscaler environment that uses temporary storage devices and methods). For example, this may be because the primary storage device is not configured to be readable by the system in the event of a failure. However, the temporary storage device stores temporary data in volatile memory. Thus, the disclosed system is configured to operate with the most recent data that is terminated while the defective storage device is running. In this case, the disclosed system finds and does not damage the data that is recorded in the volatile memory (e.g., DRAM).
[0031] The present disclosure will now be described in some aspects of a storage system including a fault recovery storage device for live migration of virtual machines. In particular, FIG. 1 illustrates a computing system illustrating an example network in which a system and method for performing live migration to a temporary storage device according to an embodiment of the present disclosure operates. As illustrated, the system includes a host 105 coupled to one or more storage devices 110 (or "drives"). As illustrated, the storage devices 110 may be coupled to the host 105 via a volume manager 115, or the storage devices 110 may be directly coupled to the host 105. In some embodiments, the storage devices 110 may experience internal fault conditions, but the storage devices may exhibit various recovery behaviors, as discussed in more detail below, to mitigate the system-level impact of the fault conditions. A given storage device 110 is a solid-state drive (hereinafter, SSD), and includes a controller 120 (or control circuitry) and a storage medium 125 (e.g., NAND flash memory). The smallest unit that can be deleted in storage device 110 is called a "block," and the smallest unit that can be written to storage device 110 is called a "page." Each storage device 110 may have any of a number of form factors compatible with permanent 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 has an electrical interface for coupling to host 105 that is any of a number of interfaces compatible with permanent storage devices, including Peripheral Component Interconnect (PCI), PCI Express (PCIe), Ethernet, Small Computer System Interface (SCSI), Serial AT Attachment (SATA), and Serial Attached SCSI (SAS).
[0032] Some further details regarding the storage device are provided below. In some aspects, the storage medium 125 has a retention period (which may vary within the storage medium 125 depending on the usage history of the storage medium 125) and data that has been stored for longer than the retention period (i.e., data that exceeds the retention period) is said to be unreliable and expired. Data is stored within the storage medium 125 using an error correcting code, possibly a block code. When reading data from the storage medium 125, a large amount of raw data, called a code block, is read from the storage medium 125 and an attempt is made to decode it. If that attempt fails, an additional attempt (retrying the read) is made. With use, a portion (e.g., a block) of the storage medium 125 may deteriorate to the point where the retention period becomes unacceptably short, and the block is classified as a "bad block." To prevent such a situation from rendering the entire storage medium 125 inoperable, 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 controllers within the flash memory die or flash memory die plane, begin using the spare blocks and stop using the bad blocks.
[0033] Below, the present disclosure describes in more detail various fault conditions for a fault recovery storage device used for purposes of live migration of virtual machines. In particular, the fault recovery storage device experiences a wide variety of faults, yet continues to operate in the network depicted and described with respect to FIG. 1 to perform live migration of virtual machines. Some of these faults are described as follows:
[0034] In particular, FIG. 2 is a table of fault conditions (or "fault states") for a fault recovery storage device, each labeled with a case identifier ("case ID"). Case 1 is any fault condition in which the storage device 110 is unable to perform any more read or write operations, which cannot be resolved by cycling power or reformatting the storage medium. The state in which the storage device 110 operates in this manner has various sub-states (e.g., each sub-state corresponds to a different failure mechanism). Such states, or fault conditions, can be caused by a portion of the controller's firmware being damaged (in which case the controller is rebooted in a safe mode, in which case the damaged instructions are not executed), or by a failure of processing circuitry within the storage device 110 (e.g., a failure of the processing circuitry that manages interaction with the storage medium, but is unable to respond to communications with the host 105). When these types of fault conditions occur, the storage device 110 responds to any read or write commands from the host 105 with an error message.
[0035] Case 2 is any fault condition in which (i) storage device 110 is unable to perform any more read or write operations and (ii) can be restored by cycling power to storage device 110 or reformatting the storage medium. Such a fault condition may be caused, for example, by a program execution error in controller 120 of storage device 110 (e.g., an out-of-range pointer or an erroneous instruction resulting from a bit flip in random-access memory (RAM) of controller 120). If the program execution error did not cause controller 120 to record incorrect data on storage medium 125 (e.g., the most recent write by the controller to the storage medium caused the program execution error), power cycling of storage device 110 is sufficient to restore storage device 110 to normal operation, and if the program execution error did cause controller 120 to record incorrect data on storage medium 125, reformatting storage medium 125 is sufficient to restore storage device 110 to normal operation.
[0036] Case 3 is any fault condition that can be mitigated by operating storage device 110 in a read-only mode and where reformatting storage medium 125 does not restore full functionality. Examples of such faults include (i) a temperature sensor failure and (ii) a portion of storage medium 125 converted to a read-only mode. In the case of a temperature sensor failure, the failure is detected by checking whether the temperature sensor reading is out of range (e.g., exceeds a critical temperature), in which case the risk of overheating storage device 110 is reduced by avoiding write operations that consume more power than read operations. Conversion of a portion of storage medium 125 to a read-only mode occurs, for example, for a flash memory storage medium 125 when the flash memory plane or die runs out of bad block spare space used for run-time bad block management. For example, while attempting to perform a read operation, the storage device 110 may make an unsuccessful attempt to decode a data item, determine if the block storing the data is a bad block, and determine if the remaining bad block management spare space is less than a critical magnitude and therefore insufficient to ensure reliability of the plane or die by moving the data from the bad block to the bad block management spare space. The storage device 110 then determines that no further bad block management will be performed and switches to a read-only mode. As used herein, "data yield" refers to any amount of data that is processed in one operation (e.g., data resulting from decoding a code block is a data item).
[0037] Case 4 is any fault condition that is mitigated by operating storage device 110 in write pass-through mode. For example, if the power supply backup capacitor of storage device 110 fails, the device will complete the write to storage medium 125 before transmitting command completion to host 105 in response to any write command received from host 105, and host 105 will not receive false information that the write was successfully completed if power fails before the write on storage medium 125 is completed. Operation in write pass-through mode may cause performance degradation (both in terms of throughput and latency).
[0038] 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 are performed (e.g., write operations, which consume more power than read operations) to reduce power dissipation in storage device 110. For example, storage device 110 may make a first record to the storage medium, then wait a period of time corresponding to reduced performance (the rate at which write operations are performed is reduced as a result of the wait), before making another (e.g., second) record to the storage medium.
[0039] Case 6 is any fault condition that can be mitigated by operating storage device 110 in a read-only mode and restoring full functionality by reformatting storage medium 125. The third column of the table in Figure 2a indicates for each case whether valid user data is available and whether storage device 110 can be restored to full functionality by, for example, reformatting storage medium 125.
[0040] As illustrated by the examples listed in Figure 2a, in some embodiments, three levels of defect recovery are achieved through full recovery mode, partial recovery mode, and fragile mode of storage device 110. In full recovery mode, storage device 110 operates with a "self-healing" feature, where storage device 110 restores full functionality by resetting operations such as power cycling or formatting storage medium 125 (although user data within the device may be lost).
[0041] In partial recovery mode, the storage device 110 operates with degraded performance, smaller capacity, or reduced functionality when a fault condition exists. For example, as described above, if the power supply backup capacitor is faulty, the operation of the storage device 110 is delayed and its performance is reduced because all recording is completed (i.e., command completion is transmitted to the host 105) only after the data is recorded to the storage medium 125 (i.e., only synchronous recording is performed). In this situation, user data is preserved. The storage device 110 operates at a smaller capacity when the spare space for bad block management RTBB (Run Time Bad Block) is exhausted. In this situation, the affected die of the storage device 110 is removed from the disk space and the total disk capacity is reduced. User data in the lost space is lost. For example, if a set of IO determinism or a region of a regionized namespace cannot accept any more new writes, the set or region is removed from the disk space, but the remaining disk space continues to be used for read and write operations. User data on the region or set is lost.
[0042] If the storage device 110 is switched to a read-only mode in which write operations are not permitted, the storage device 110 operates with reduced performance. The storage device 110 operates in two types of read-only modes: a sustainable read-only mode and an unsustainable read-only mode. In the sustainable read-only mode, the storage device 110 continues to serve read requests beyond the retention period of the storage medium 125. In the unsustainable read-only mode, the storage device 110 continues to serve read requests during the retention period of the storage medium 125, but if the storage device 110 encounters a data integrity problem (e.g., as sensed by one or more failed attempts to decode data during a read operation), the storage device 110 reports an invalid data region. A storage device 110 operating in a vulnerable mode cannot perform read or write operations as described above, and continues to receive commands from the host and performs a graceful termination returning an error.
[0043] Some further details regarding the internal storage device (e.g., defect recovery storage device) are provided below. In some embodiments, five types of logical block addresses (LBAs) are defined, referred to as (i) execution space P, (ii) slow performing space UP, (iii) read-only space RO, (iv) volatile read-only space VRO, and (v) inaccessible space IA. The execution space P is a logical block address space containing valid data that can be read and written in a normal manner without performance degradation. The slow performing space UP is a logical block address space containing valid data that can be read and written in a normal manner but with degraded performance (e.g., degraded write performance). The read-only space RO is a logical block address space containing valid data that is read-only. The storage device 110 responds with various messages to write commands from the host directed to these types of logical block address spaces. Data in the read-only space is valid for a period that exceeds the retention period. The volatile read-only space VRO is read-only, and the storage device 110 responds with various messages to write commands from the host directed to such types of logical block address space. Data in such types of logical block addresses is valid temporarily, but is invalidated when it expires (i.e., when the data life of the storage medium 125 reaches the retention period of the storage medium). The inaccessible space IA is a logical block address space containing data beyond which the host cannot access. The table of FIG. 2b shows combinations of logical block address types that may exist in the storage device 110 in each of the defect conditions identified in the first column of the table. The modes identified with an asterisk (*) support the host using a specific get command to retrieve detailed information for the logical block address space. FIG. 2c shows the acceptance of a "get feature" command communicated to the storage device 110 to query the storage device 110 for its status and parameter values related thereto ("IPOS" stands for input and output operations per second).
[0044] The table in FIG. 2d shows the NV / Me (Non-Volatile Memory Express) commands that the host 105 uses to query the storage device 110 for its status and the hierarchy of enumerated constants that the storage device 110 uses to respond.
[0045] In various embodiments, as described above, the disclosed system includes a fault recovery storage device configured to operate in a read-only mode. However, in some circumstances, the disclosed system finds additional utility for applications where the read-only mode does not provide an adequate Quality of Service (QoS). Thus, certain applications may benefit from operation of the fault recovery storage device (e.g., partial write mode) despite device failures, an example of which includes a partial fault recovery mode of operation. For example, the disclosed system is configured to report the status of the storage device (e.g., as a host) and perform a graceful shutdown of the fault recovery storage device if the device is not responsive. However, there may be situations in which the fault recovery storage device is in an invalid state, but the device may still operate and respond. In some cases, the fault recovery storage device still responds (e.g., to a host request) when some of the data stored on the fault recovery storage device is inaccessible, while other parts of the device are accessible. Instead of discarding the fault recovery storage device entirely, the improved system is configured to continue to allow certain operations to continue (e.g., when there are accessible areas of the fault recovery storage device and / or pre-recorded data that are still valid). Thus, in a fault condition, the disclosed system is configured for the fault recovery storage device to report (e.g., to a second storage device and / or a host's hypervisor) whether regions and / or data blocks associated with the device are valid. Such validity data is used for live migration of virtual machines between storage devices.
[0046] In a further embodiment, the disclosed system is configured to deactivate one or more dies in the fault recovery storage device while activating other dies of the fault recovery storage device, thereby isolating the defect region and providing information to the host regarding whether certain regions (e.g., logical block address space / regions) of the fault recovery storage device are invalid and which regions are valid.
[0047] In some embodiments, systems, methods, and apparatus are further described that describe how to restore data on a system including a fault recovery storage device in situations where the fault recovery storage provides information regarding valid (e.g., accessible) and invalid (e.g., inaccessible) regions of the fault recovery storage device. As mentioned, the disclosed system is configured to operate on a system that executes virtual machines. In some embodiments, the disclosed system counters a fault on a device that executes and / or stores data related to the faulty virtual machine. Thus, the disclosed system is configured to migrate the virtual machine to another device and migrate data related to the virtual machine to a second storage device. In some embodiments, a storage device provided by a source machine experiences a fault, which causes the fault recovery storage device to switch to a fault recovery mode of operation, as variously described herein, if the device is a fault recovery storage device.
[0048] 3a is a flow diagram of a method for operating a fault recovery storage device in a fault recovery mode in some embodiments. In step 305, the host 105 transmits data to or receives data 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 diagnosis and determines its fault recovery status (e.g., full recovery, partial recovery, or weak); in step 320, the storage device 110 modifies its performance, capacity, or functionality (e.g., switches to read-only mode) based on the diagnosis; 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 at a given bandwidth to the storage device 110 or to a different storage device 110 based on the status.
[0049] 3b is a flow chart showing details of the method before operating in a defect recovery mode, including the steps of determining, by the storage device, in step 335, that the storage device is in a first defect state from which it can be restored by power cycling the storage device or formatting the storage medium, determining, by the storage device, in step 340, that the storage device is in a second defect state from which it can be partially restored by operating the storage device at a degraded performance, reduced capacity, or in a read-only mode, and operating the storage device at the degraded performance, reduced capacity, or in a read-only mode in step 345.
[0050] Additionally, numerous embodiments and variations of the embodiments disclosed herein may be implemented. A Field Programmable Gate Array (FPGA) or embedded processor performs internal block inspection and transmits asynchronous updates to the host 105 on the status of the storage device 110. Events are generated and transmitted to the host 105 (e.g., temperature or other parameters internal to the device). In the absence of device driver features to provide notifications, the host 105 pools the storage devices 110 according to a pre-determined schedule. The FPGA or embedded processor monitors the historical performance of the storage devices 110 and uses machine learning to provide predictive analysis (e.g., the likelihood of being in a given fault recovery state). Instructions are introduced into the NVMe specification; for example, telemetry information in the NVMe specification is extended (to report the status of the storage device 110). Some embodiments may be implemented, for example, in an Ethernet storage device or a Key-Value (KV) storage device.
[0051] FIG. 4a illustrates a diagram for performing live virtual machine migration using a storage device according to an embodiment of the present disclosure. Diagram 400 includes a source device 402 and a destination device 408. In some embodiments, source device 402 includes a storage device (e.g., SSD). In other embodiments, source device 402 includes a non-volatile memory 404 component and a volatile memory 406 component. In one embodiment, volatile memory 406 includes an in-memory working set that actively processes pages related to data blocks being processed by source device 402. As indicated, some pages are labeled as evicted (E), clean (C), dirty (D), and / or flushed (F) (not indicated). In other embodiments, non-volatile memory 404 includes pages related to data that is persisted in local storage (e.g., NAND) of source device 402. As shown in the example diagram 400, some pages are labeled as occupying inaccessible (I) space of device 402. Additionally, target device 408 has a similar structure to source device 402 in that target device 408 includes non-volatile memory 410 and volatile memory 413. Similarly, in one embodiment, volatile memory 413 of target device 408 includes an in-memory working set that actively processes pages related to blocks of data being processed by target device 408. In another embodiment, non-volatile memory 410 includes pages related to data that is persisted to local storage (e.g., NAND) of target device 408.
[0052] In some embodiments, diagram 400 illustrates exemplary operations 405 for virtual machine migration (e.g., in the case of a post-copy operation). In such operation 405, at the source device 402, a portion of data in volatile memory 406 is persisted on non-volatile memory 404 of the source device 402. In particular, as illustrated by way of example, removed and clean pages are persisted in inaccessible space for non-volatile memory 404. In yet another embodiment, as illustrated by way of example, dirty pages in volatile memory 406 are in the process of being recorded in non-volatile memory 404 if the source device 402 experiences a defect. In yet another embodiment, if the source device 402 does not have defect resilience, operation 405 may result in a potentially unsuccessful data migration from the source device 402 to the destination device 408. In particular, as illustrated by way of example, if the system attempts to read a page on the non-volatile memory 404 of the source device 402 for a second time for a block that was partially removed in the volatile memory 413 of the target device 408, such operation may fail because the source device 402 has at least experienced a defect. Also, if the system attempts to read a page on the non-volatile memory 404 of the source device 402 for a clean page in the volatile memory 413 of the target device 408, such operation may fail because the volatile memory 413 of the target device 408 may discard the clean page, and further, the target device 408 may not be able to restore the corresponding page from the non-volatile memory 404 of the source device 402 because at least the source device 402 has experienced a defect. Thus, as illustrated, only a portion of the pages that reside in the volatile memory 413 of the target device 408 (e.g., the dirty blocks illustrated in diagram 400) are persisted (or re-recorded) in the local storage, which is the non-volatile memory 410 of the target device 408.
[0053] Although the above description has been provided for the example of a post-copy operation, similar principles hold for other operations during live migration of a virtual machine from a source device 402 to a destination device 408. In particular, a post-copy operation for virtual machine migration includes some of the following operations: First, a post-copy operation initiates a post-copy by suspending the virtual machine from the source device. In some embodiments, a subset of the virtual machine's execution state (e.g., CPU state, registers, pageable memory, etc.) is transmitted to the destination device. The virtual machine is resumed on the destination device. In some embodiments, the source device pushes (e.g., pre-pages) the remaining memory pages of the virtual machine to the destination device. When the virtual machine attempts to access a page that has not yet been transmitted on the destination device, such an operation generates a page fault. Such a fault is trapped at the destination device and redirected to the source device that is responsible for the page where the fault occurred. In some aspects, pre-paging dynamically adjusts the transmission order of pages to network faults by aggressively pushing pages near the last fault. In some aspects, a post-copy serves to transmit a given page over the network once. In contrast, pre-copy transmits the same page several times if the page is repeatedly corrupted on the source device during migration. Meanwhile, pre-copy maintains the latest state of the virtual machine on the source device during migration. In contrast, with post-copy, the state of the virtual machine is distributed to both the source and destination devices. If the destination device becomes defective during migration, pre-copy can restore the virtual machine, whereas post-copy cannot.
[0054] As shown in FIG. 4b, diagram 401 includes a fault recovery source device 412 and a target device 418. In some embodiments, fault recovery source device 412 includes a fault recovery storage device, such as a fault recovery SSD. In other embodiments, fault recovery source device 412 includes a non-volatile memory 414 component and a volatile memory 416 component. In one embodiment, volatile memory 416 includes an in-memory working set that actively processes pages related to data blocks being processed by fault recovery source device 412. As shown, some pages are labeled as evicted (E), clean (C), dirty (D), and / or flushed (F) (not labeled), and this particular page structure is replicated in the example of diagram 400, thereby facilitating a comparison of device operation between the two cases in this example. In yet another embodiment, non-volatile memory 414 includes pages related to data that are persisted on local storage (e.g., NAND) of fault recovery source device 412. As shown in the example diagram 401, some of the pages are shown as occupying inaccessible space of the fault recovery source device 412. Additionally, the target device 418 has a similar structure to the fault recovery source device 412 in that the target device 418 includes a non-volatile memory 420 and a volatile memory 422. Similarly, in one embodiment, the volatile memory 422 includes an in-memory working set that actively processes pages related to data blocks being processed by the target device 418. In another embodiment, the non-volatile memory 420 includes pages related to data that are persisted on the local storage (e.g., NAND) of the target device 418. Additionally, the non-volatile memory 420 includes pages restored from the fault recovery source device 412 and other pages restored from the volatile memory 422 of the target device 418. For example, it is established that both clean pages and dirty pages are further recorded (i.e., persisted) in the non-volatile memory 420 of the target device 418 based on the corresponding pages in the volatile memory 422 of the target device 418.Also, as shown in the example, a specific read-only (R) page from a partially accessible portion of the non-volatile memory 414 of the fault recovery source device 412 is read from the non-volatile memory 414 of the fault recovery source device 412 due to the read-only operating state of the fault recovery source device 412.
[0055] Although the above description has been provided for a pre-copy operation, it is understood that similar principles hold for other operations during live migration of a virtual machine from a fault recovery source device 412 to a destination device 418. Also, by way of explanation, pre-copy refers to some of the following operations: In pre-copy memory migration, the hypervisor copies memory pages from the source to the destination device while the virtual machine continues to run on the source device. If some memory pages are modified during the process (e.g., the memory pages become "dirty"), the memory pages are recopied until the percentage of recopied pages is greater than the percentage that is dirty. Also, later, the virtual machine is suspended on the original host with respect to the source device, the remaining dirty pages are copied to the destination device, and the virtual machine is restarted on the destination device.
[0056] 5 is an example flow chart illustrating aspects of live migration of a virtual machine in accordance with an embodiment of the present disclosure. In particular, flow chart 500 illustrates some example operations involved in live migration of a virtual machine between a fault recovery source device 501 and a target device 503 having a source hypervisor and a target hypervisor, respectively. Although reference will be made hereinafter to an SSD, it will be understood that SSD and storage device are used interchangeably herein.
[0057] In block 502, the disclosed system determines whether an SSD (e.g., a defect recovery SSD) is available. If the determination result in block 502 is that an SSD is available, the disclosed system determines whether to operate in a defect recovery mode of the SSD in a next block 504. On the other hand, if the determination result in block 502 is that an SSD is not available, the disclosed system returns an error in a next block 506.
[0058] The disclosed system recovers data from the defect recovery SSD through operation of block 507. In block 508, the disclosed system determines whether the logical block address corresponding to the retrieved data belongs to the inaccessible space of the defect recovery SSD. If the determination result of block 508 is "yes", the disclosed system returns an error in block 506. On the other hand, if the determination result of block 508 is that the logical block address does not belong to the space of the defect recovery SSD, the disclosed system reads from the accessible space of the defect recovery SSD in the next block 510.
[0059] At block 512, the disclosed system determines whether an SSD in the storage device system experiences a defect. If not, the disclosed system continues to operate at blog 518. If so, the disclosed system continues to operate at block 514, where the disclosed system determines whether the SSD is a defect recovery SSD. If not, the disclosed system continues to operate at blog 518. If so, at block address 516, the disclosed system captures and determines type information of the logical block address space for the defect recovery SSD, optionally determining whether the defective memory shelter of the defect recovery SSD includes a logical block address of the inaccessible space at block 518 and / or determining whether the logical block address belongs to or is below the inaccessible space at block 538 (at the target device, described further below). The disclosed system proceeds further to block 518, described below.
[0060] At block 518, the disclosed system releases the page cache flushing operation for the SSD (failure recovery SSD or general SSD) to allow the live migration process, which is initiated as shown in block 520.
[0061] In block 526, the disclosed system determines whether the live migration process includes a read operation. If not, in block 527, the disclosed system records the data block associated with the write operation in a page cache. If so, in block 528, the disclosed system determines whether the data block is present in the page cache of the target device (e.g., the volatile memory of the target device). Also, in block 528, if the result of the determination is that the data block is not present in the page cache of the target device, the disclosed system performs operations in block 524, described below. In block 528, if the result of the determination is that the data block is present in the page cache of the target device, the system proceeds to block 530, where the disclosed system reads the data from the page cache of the target device.
[0062] In block 524, the disclosed system determines whether the data block for the read operation (e.g., the read operation of block 526) is found from a local disk (e.g., a non-volatile memory of the target device). If not, then in block 522, the disclosed system reads the data block from the remote disk (e.g., by continuing the operations for the source device beginning with the exemplary operations of block 502 described above). On the other hand, if the data block for the read operation is found from a local disk, then in block 531, the disclosed system reads the data block from the local disk (e.g., a non-volatile memory of the target device).
[0063] As mentioned, in block 538, the disclosed system determines whether the logical block address for the data block belongs to inaccessible space (for the non-volatile memory of the source device). If not, then in block 536, the disclosed system discards the data block and / or page. If so, then in operation 539, the disclosed system proceeds to restore the data block from the DRAM (e.g., volatile memory) for the target device and record such block to a local disk (e.g., non-volatile memory of the target device) in block 534. Also, in block 532, the disclosed system determines whether the data block and / or page belonging to the operation described in block 538 is corrupted. If the disclosed system determines that the data block and / or page is corrupted, then in block 534, the disclosed system records the data block to a local disk (e.g., non-volatile memory of the target device).
[0064] In some embodiments, flow diagram 500 illustrates how the disclosed system live migrates a virtual machine from a source device (e.g., a server) to a destination device (e.g., a server). Having described some example operations above, a more general summary and description of such operations is provided below.
[0065] As discussed above, live migration of a virtual machine performed by some systems does not include checking data resident in volatile memory (e.g., DRAM) for one or more destination or source devices. In some embodiments, the disclosed systems are responsible for restoring information on the storage device (e.g., data related to the virtual machine being migrated) using information at least temporarily stored in the volatile memory under certain conditions (e.g., in an opportunistic manner, as described below).
[0066] In some embodiments, when a fault occurs, the disclosed system effectively freezes operations related to the virtual machine running on the link that includes the faulty device, while the disclosed system initiates a migration process, for example, on the source device that has the fault. In various embodiments, the source device includes a fault recovery storage device, which further provides information (e.g., information on logical block address fault recovery space) to an operating system (OS) / hypervisor, for example, related to the source device. Thus, the disclosed system transmits the virtual machine to the destination device, and the corresponding hypervisor is informed about which portions of the storage device are valid and which are not valid for the virtual machine; and, if any portion of the storage device is not valid, the disclosed system is configured to perform operations to restore data from volatile memory on the source or destination device. Thus, during migration, the virtual machine runs and performs I / O.
[0067] When there is a read operation at the target device, the disclosed system determines whether the requested data is pre-existing in the volatile memory (e.g., DRAM) of the target device; if so, the disclosed system reads the data from the associated page cache. On the other hand, if the disclosed system determines that the requested data is not present in the volatile memory of the target device, the disclosed system determines where to get the data. In particular, if the data is not present on the local disk of the target device, it is highly likely that the data resides on the local disk of the source device; thus, a source device for the disclosed system can be identified. In particular, once disk migration between the source and target devices is completed, the disclosed system can identify the local disk of the source device for the data. However, accessing the data depends on which memory region of the source device is accessed. For example, if data is requested from a defective region of the source device, the data is deemed invalid; in such a case, the disclosed system is configured to reject the request for the data and return an error. On the other hand, if the requested data is not in the defective region but is in a valid and accessible region of the memory of the source device, the source device provides the data. Thus, a source device including a defect recovery storage device can be read despite defects.
[0068] In another embodiment, if the operation requested from the source device is not a read operation (e.g., a write operation), the defect condition of the source device is less relevant, and the disclosed system is configured to record the data. In particular, the disclosed system is configured to first record the data in a page cache; if the data is corrupted, the disclosed system writes the data to the disk of the target device later. In yet another embodiment, if the data is not corrupted, the disclosed system is configured to discard the data (e.g., the disclosed system does not need to re-record the data). If the data block associated with the data is clean, it means that the data is available from the respective disk associated with the source or target storage device. However, after migration of a virtual machine due to a defect, the disclosed system may not be able to determine whether the data exists on a given disk. For example, the disclosed system reads the data, but the data may still be located in DRAM that has not been updated. Also, the underlying disk cannot be used because the read logical block address is no longer valid on the source machine that experienced the defect. Thus, the disclosed system is configured to move the virtual machine to the target device to restore the data.
[0069] In some embodiments, some exemplary live migration operations are maintained without error for devices having a read-only mode of operation. If the storage device is not configured in read-only mode, the data resides in DRAM; if the data is corrupted, the disclosed system can still recover the data from an area accessed on the source machine for a write operation. If the source device is defective but the data block is clean, the disclosed system is configured to record the data block to disk to recover the data. If there is no defect, the data is considered clean during virtual machine migration; thereby, the disclosed system reads the data from a local (e.g., target) or remote (e.g., source) device. Thus, as discussed above, it is apparent that there is a high level of coupling between the hypervisor / OS and the storage devices (e.g., source and target devices).
[0070] 6 is an illustration of a flow diagram for an exemplary page cache management operation according to an embodiment of the present disclosure. In various embodiments, a method for determining a storage device fault associated with a fault recovery storage device is described. At block 602, the disclosed system determines to transfer data from the fault recovery storage device to a second storage device. For example, the disclosed system is part of a live migration process and determines to move data associated with a virtual machine associated with the fault recovery storage device to the second storage device.
[0071] At block 604, the disclosed system determines a first region on the fault recovery storage device that includes inaccessible space and a second region on the fault recovery storage device that includes accessible space. In particular, the inaccessible space includes portions of the NAND that are inaccessible due to physical defects (e.g., bad circuits, bad chips, damage, excessive rewriting, etc.) as variously described herein. As noted, the fault recovery storage device includes memory in the accessible space that experiences defects but is still operational (e.g., the entire memory of the fault recovery device is not uniformly damaged as a result of the defects). The accessible space is used in connection with a live migration process to migrate pages for a virtual machine from the fault recovery storage device to a target device (e.g., a second storage device).
[0072] In block 606, the disclosed system determines a read or write command for the data in the second storage device and determines the first data requested by the read operation from a local memory of the second storage device based on the read command. In some embodiments, the local memory includes a volatile memory, such as a DRAM, associated with the second storage device.
[0073] In various embodiments, the disclosed system determines a write instruction in the fault recovery storage device for the data. Thus, the disclosed system records at least a portion of the data in a page cache of a host device (the second storage device and / or the host device for the fault recovery storage device). The disclosed system also determines that the portion of the data includes dirty data, and the disclosed system is configured to record the dirty data in a permanent memory (e.g., non-volatile memory) of the second storage device. The disclosed system also determines that the portion of the data includes clean data related to the inaccessible space, and the disclosed system records the clean data in a permanent memory (e.g., non-volatile memory) of the second storage device.
[0074] At block 608, the disclosed system determines second data requested by the read operation from the second region based on the read command. In some embodiments, the read command for the second data includes accessible space in the defect recovery storage device. At block 610, the disclosed system retrieves the second data from the second region.
[0075] At block 612, the disclosed system determines third data requested by the read operation from the inaccessible space of the fault recovery storage device based on the read command. At block 614, the disclosed system returns an error from the fault recovery storage device to the second storage device based on the determination of the third data for the third data requested in the inaccessible space of the fault recovery storage device.
[0076] Various elements described herein, such as the host 105 or the controller 120, are or include processing circuits. The terms "processing circuit" or "means for processing" are used herein to mean any combination of hardware, firmware, and software used to process data or digital signals. For example, processing circuit hardware includes programmable logic devices such as Application Specific Integrated Circuits (AISCs), general-purpose or special-purpose Central Processing Units (CPUs), Digital Signal Processors (DSPs), and FPGAs. In a processing circuit as used herein, each function is performed by one of the hardware configured to perform the function (i.e., hard-wired), more general-purpose hardware such as a CPU, configured to execute instructions stored on a non-transitory storage medium. A processing circuit may be distributed across a single Printed Circuit Board (PCB), or across multiple interconnected PCBs. A processing circuit may include other processing circuits; for example, a processing circuit may include two processing circuits, an FPGA, and a CPU interconnected on a PCB.
[0077] As used herein, a "portion" of something means "at least a portion" of it, and by itself means all or less than all of it. Thus, "a portion" is a special case that includes the whole, or, in other words, the whole of something is an example of a portion of something. In this specification, the term "or" should be interpreted as "and / or," e.g., "A or B" means "A," "B," or "A and B."
[0078] The background art provided in the Background of the Invention section of this specification is merely for the purpose of setting context, and the contents of this section are not admitted to be prior art. Any component or combination of components described (e.g., any system diagram included in this specification) may be used to perform one or more of the operations of any flow diagram included in this specification. Also, (i) the operations are example operations and may include various additional steps not explicitly shown, and (ii) the temporal order of the operations may be changed.
[0079] 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), it means that the second quantity is an input to the method or influences the first quantity, e.g., the second quantity is an input to a function that calculates the first quantity (e.g., the only input or one of a range of inputs), the first quantity is the same as the second quantity, or the first quantity is the same as the second quantity (e.g., by being stored in the same location in memory).
[0080] In this specification, when terms such as "first," "second," "third," and the like are used to describe various elements, components, regions, layers, and / or sections, it is understood that such elements, components, regions, layers, and / or sections are not limited by such terms. Such terms are only used to distinguish one element, component, region, layer, or section from another element, component, region, layer, or section. Thus, a first element, component, region, layer, and / or section discussed in this specification may refer to a second element, component, region, layer, and / or section without departing from the spirit and scope of the present disclosure.
[0081] For ease of description to describe an element or its characteristic relationship with other component(s) or feature(s) shown in the drawings, spatial and relative terms such as "below," "under," "low," "below a particular portion," "above," and "top" are used herein. It should be understood that the spatial and relative terms are intended to include other orientations of the device in use or operation in addition to the orientation depicted in the drawings. For example, if the device in the drawings were turned over, a component described as "below" or "below a particular portion" of another component or feature would be oriented "above" the other component or feature. Thus, the exemplary terms "below" or "below a particular portion" include either an above or below orientation. The device may be oriented differently (e.g., rotated 90 degrees or in other orientations) and the spatial and relative terms should be interpreted accordingly. Also, when a layer is referred to as being "between" two layers, it is understood that this may be the only layer between the two layers, or that there may be one or more intermediate layers.
[0082] The terms used in this specification are for the purpose of describing particular embodiments and are not intended to limit the present disclosure. Similar terms are used as terms of approximation and as terms of degree to take into account inherent variations in measured or calculated values that would be discerned by one of ordinary skill in the art of this disclosure.
[0083] As used herein, singular terms are intended to include plural terms unless the context clearly dictates otherwise. When the term "comprising" is used herein, it is to be understood that it specifies the presence of stated features, numbers, steps, operations, configurations, and / or components, and does not negate the presence or addition of one or more other features, numbers, steps, operations, configurations, components, and / or groups. As used herein, the term "and / or" is to be understood to refer to or include all possible combinations of one or more of the listed items. A phrase such as "at least one" modifies the entire list of elements, and not the individual elements of the list. Also, when describing embodiments of the present disclosure, the use of "can" means "one or more embodiments of the present disclosure." Also, the term "exemplary" is intended to mean an example or illustration. As used herein, terms such as "use", "uses", and "used" are to be considered synonyms of the terms "utilize", "utilize", and "utilized", respectively.
[0084] When an element or layer is referred to as "connected to," "coupled to," or "bonded to" another element or layer, it means that it is "directly connected to," "directly coupled to," or "directly bonded to" the other element or layer, or that there may be one or more intervening elements or layers. In contrast, when an element or layer is referred to as being "directly coupled to" another element or layer, there are no intermediate, intervening elements or layers present.
[0085] Any numerical range recited herein is intended to include all subranges of the same numerical magnitude subsumed within the recited range, and a range "from 1.0 to 10.0" or "between 1.0 and 10.0" is intended to include all subranges between (and including) the recited minimum of 1.0 and the recited maximum of 10.0, i.e., subranges having a minimum of 1.0 and a maximum of less than or equal to 10.0 (e.g., 2.4 to 7.6). Any maximum numerical limitation recited herein is intended to include all lower numerical limitations subsumed therein, and any minimum numerical limitation recited herein is intended to include all higher numerical limitations subsumed therein.
[0086] Although embodiments of a system and method for recovery operation of a storage device and a system including a storage device for live migration of a virtual machine have been specifically described and illustrated herein, many modifications and variations will be apparent to those of ordinary skill in the art. Thus, the system and method for recovery operation of a storage device and a system including a storage device for live migration of a virtual machine constructed according to the principles of the present disclosure may be embodied differently from what is specifically described herein. The present disclosure is also defined in the following claims and their equivalents.
Claims
1. identifying a storage device defect related to the fault recovery storage device; determining that a first region on the fault recovery storage device comprises inaccessible space and that a second region on the fault recovery storage device comprises accessible space; identifying a read command in a second storage device for data, and determining, based on the read command, first data requested by the read operation from a local memory of the second storage device; determining second data requested by the read operation from the second region based on the read command; retrieving the second data from the second area; scheduling transmission of the second data from the fault recovery storage device to the second storage device.
2. determining, based on the read command, third data requested by the read operation from the inaccessible space of the fault recovery storage device; 2. The method of claim 1, further comprising: returning an error from the fault recovery storage device to the second storage device based on the determination of the third data.
3. identifying a write command in a fault recovery storage device for the data; recording at least a portion of the data in a page cache of a host device; determining that a portion of the data includes tainted data and recording the tainted data in a persistent memory of the second storage device; 2. The method of claim 1, further comprising: determining that the portion of the data includes clean data relating to the inaccessible space; and recording the clean data in the persistent memory of the second storage device.
4. The method of claim 1 , wherein the transmitting of the second data comprises live migration of at least one virtual machine from the fault recovery storage device to the second storage device.
5. The method of claim 1 , wherein the first data comprises at least a portion of the data cached in the local memory.
6. 2. The method of claim 1, wherein the local memory comprises a DRAM and the identifying of the first data is from a page cache.
7. The method of claim 1 , wherein the data includes data relating to at least one virtual machine of a host device.
8. a fault in the storage device causes the fault recovery storage device to operate in a partial read-only mode; The method of claim 1 , wherein the fault recovery storage device operates at a reduced performance or reduced capacity.
9. 2. The method of claim 1, wherein at least one of the fault recovery storage device or the second storage device comprises a solid-state drive (SSD).
10. 1. An apparatus for managing a page cache, comprising: at least one memory device storing computer executable instructions; at least one processor configured to access the at least one memory device; The at least one processor executes the computer-executable instructions to Identifying storage device defects with respect to the fault recovery storage device; determining that a first region associated with the fault recovery storage device comprises inaccessible space and that a second region associated with the fault recovery storage device comprises accessible space; identifying a read command in a second storage device for the data, and determining first data requested by the read operation from a local memory of the second storage device based on the read command; determining second data requested by the read operation from the second region based on the read command; Retrieving the second data from the second area; An apparatus configured to schedule transmission of the second data from the fault recovery storage device to the second storage device.
11. The at least one processor further executes the computer-executable instructions to: determining third data requested by the read operation from the inaccessible space of the fault recovery storage device based on the read command; The apparatus of claim 10 , configured to return an error from the fault recovery storage device to the second storage device based on the determination of the third data.
12. The at least one processor further executes the computer-executable instructions to: Identifying a write command in a fault recovery storage device for the data; recording at least a portion of the data in a page cache of a host device; determining that the portion of the data includes tainted data and recording the tainted data in a persistent memory of the second storage device; The apparatus of claim 10 , further configured to determine that the portion of the data includes clean data relating to the inaccessible space and to record the clean data in the persistent memory of the second storage device.
13. The apparatus of claim 10 , wherein the transmitting of data includes a live migration of at least one virtual machine from the fault recovery storage device to the second storage device.
14. The apparatus of claim 10 , wherein the first data comprises at least a portion of the data cached in the local memory.
15. the local memory includes a DRAM; determining the first data from a page cache; The apparatus of claim 10 , wherein the data includes data relating to at least one virtual machine of a host device.
16. a fault in the storage device causes the fault recovery storage device to operate in a partial read-only mode; The apparatus of claim 10 , wherein the fault recovery storage device operates at a reduced performance or reduced capacity.
17. 1. A computer program comprising computer-executable instructions for execution by a processor, the instructions causing the processor to: Identifying storage device defects with respect to the fault recovery storage device; determining that a first region associated with the fault recovery storage device comprises inaccessible space and that a second region associated with the fault recovery storage device comprises accessible space; identifying a read command in a second storage device for the data, and determining first data requested by the read operation from a local memory of the second storage device based on the read command; determining second data requested by the read operation from the second region based on the read command; Retrieving the second data from the second area; A computer program product comprising: a computer program product configured to perform an operation of scheduling transmission of the second data from the fault recovery storage device to the second storage device.
18. determining third data requested by the read operation from the inaccessible space of the fault recovery storage device based on the read command; 20. The computer program product of claim 17, further comprising instructions for returning an error from the defect recovery storage device to the second storage device based on the determination of the third data.
19. Identifying a write command in a fault recovery storage device for the data; recording at least a portion of the data in a page cache of a host device; determining that a portion of the data includes tainted data and recording the tainted data in a persistent memory of the second storage device; 20. The computer program product of claim 17, further comprising instructions for determining that the portion of data includes clean data relating to the inaccessible space and recording the clean data in the persistent memory of the second storage device.
20. 20. The computer program product of claim 17, wherein the transmitting of the second data comprises live migration of at least one virtual machine from the fault recovery storage device to the second storage device.
Citation Information
Patent Citations
System and method for recovering solid-state drive data
JP2012509521A
Storage device, operation method of storage device, and operation method of computing device including storage device and host device
JP2017201519A
Background migration of virtual storage
US20160004467A1
Live migration of virtual machines with memory state sharing
US20170220374A1
Boot restore system for rapidly restoring virtual machine backups
US9547562B1
