Search

CN-116806332-B - Automatic recreating of lost storage volumes

CN116806332BCN 116806332 BCN116806332 BCN 116806332BCN-116806332-B

Abstract

A computing device, non-transitory computer-readable storage medium, and method for automatically recreating a lost storage volume are provided. A volume command is received that includes volume metadata associated with a storage volume of an SCM storage device. The volume metadata is stored in another storage device that is less volatile than the SCM storage device. Configuring the storage volume according to the volume command includes forwarding the volume command to the SCM device driver. After forwarding the volume command, a notification of a persistent loss at the SCM storage device is received. Upon receiving notification of the persistent loss, volume metadata is retrieved from another storage device. Automatically reconfiguring the storage volume according to the volume command includes submitting the retrieved volume metadata to the SCM device driver.

Inventors

  • J .lang
  • M Vance
  • J.Jin
  • D. STANTON

Assignees

  • 国际商业机器公司

Dates

Publication Date
20260512
Application Date
20220111
Priority Date
20210213

Claims (20)

  1. 1. A computing device, comprising: A processor; A storage class memory SCM storage device coupled to the processor; Another storage device that is less volatile than the SCM storage device coupled to the processor; an SCM device driver that manages volumes of the SCM storage device; A storage device manager stored in the other storage device, wherein execution of the processor by the storage device manager configures the computing device to perform actions comprising: Receiving a volume command including volume metadata associated with a storage volume of the SCM storage device; storing the volume metadata at the other storage device; Configuring the storage volume according to the volume command, including forwarding the volume command to the SCM device driver; after forwarding the volume command, receiving a notification of a persistent loss at the SCM storage device; Retrieving the volume metadata from the other storage device after receiving the notification of the persistent loss, and Automatically reconfiguring the storage volume according to the volume command includes submitting the retrieved volume metadata to the SCM device driver.
  2. 2. The computing device of claim 1, wherein configuring the storage volume according to the volume command comprises assigning the storage volume to a partition or virtual machine.
  3. 3. The computing device of claim 1, wherein configuring the storage volume according to the volume command comprises creating the storage volume.
  4. 4. The computing device of claim 1, wherein receiving a volume command that includes the volume metadata comprises receiving one or more of a volume identifier, a volume name, a volume size, a volume location, or a volume owner.
  5. 5. The computing device of claim 1, wherein to store the volume metadata at the another storage device comprises to store the volume metadata at a non-volatile random access memory (NvRAM) device.
  6. 6. The computing device of claim 1, wherein automatically reconfiguring the storage volume according to the volume command comprises automatically assigning the storage volume to a partition or virtual machine.
  7. 7. The computing device of claim 1, wherein automatically reconfiguring the storage volume according to the volume command comprises automatically creating the storage volume.
  8. 8. The computing device of claim 1, wherein receiving a volume command comprises one of receiving the volume command from a user interface or receiving the volume command from a loader.
  9. 9. A non-transitory computer readable storage medium tangibly embodying computer readable program code having computer readable instructions, the computer readable instructions when executed cause a user device to perform a method of configuring a storage device, the method comprising: receiving a volume command including volume metadata associated with a storage volume of a storage class memory SCM storage device; storing the volume metadata at another storage device that is less volatile than the SCM storage device; Configuring the storage volume according to the volume command, including forwarding the volume command to an SCM device driver; after forwarding the volume command, receiving a notification of a persistent loss at the SCM storage device; Retrieving the volume metadata from the other storage device after receiving the notification of the persistent loss, and Automatically reconfiguring the storage volume according to the volume command includes submitting the retrieved volume metadata to the SCM device driver.
  10. 10. The non-transitory computer-readable storage medium of claim 9, wherein configuring the storage volume according to the volume command comprises assigning the volume to a partition or virtual machine.
  11. 11. The non-transitory computer-readable storage medium of claim 9, wherein configuring the storage volume according to the volume command comprises creating the storage volume.
  12. 12. The non-transitory computer-readable storage medium of claim 9, wherein retrieving the volume metadata from the another storage device comprises retrieving one or more of a volume identifier, a volume name, a volume size, a volume location, or a volume owner.
  13. 13. The non-transitory computer-readable storage medium of claim 9, wherein automatically reconfiguring the storage volume according to the volume command comprises automatically assigning the storage volume to a partition or virtual machine.
  14. 14. The non-transitory computer-readable storage medium of claim 9, wherein automatically reconfiguring the storage volume according to the volume command comprises automatically creating the storage volume.
  15. 15. A computer-implemented method for configuring a storage device, the method comprising: receiving a volume command including volume metadata associated with a storage volume of a storage class memory SCM storage device; storing the volume metadata at another storage device that is less volatile than the SCM storage device; Configuring the storage volume according to the volume command, including forwarding the volume command to an SCM device driver; after forwarding the volume command, receiving a notification of a persistent loss at the SCM storage device; Retrieving the volume metadata from the other storage device after receiving the notification of the persistent loss, and Automatically reconfiguring the storage volume according to the volume command includes submitting the retrieved volume metadata to the SCM device driver.
  16. 16. The computer-implemented method of claim 15, wherein configuring the storage volume according to the volume command comprises assigning the storage volume to a partition or virtual machine.
  17. 17. The computer-implemented method of claim 16, wherein automatically reconfiguring the storage volume according to the volume command comprises automatically reassigning the storage volume to the partition or virtual machine.
  18. 18. The computer-implemented method of claim 15, wherein configuring the storage volume according to the volume command comprises creating the storage volume.
  19. 19. The computer-implemented method of claim 18, wherein automatically reconfiguring the storage volume according to the volume command comprises automatically creating the storage volume again.
  20. 20. The computer-implemented method of claim 15, Wherein receiving a volume command including volume metadata includes receiving one or more of a volume identifier, a volume name, a volume size, a volume location, or a volume owner, and Wherein retrieving the volume metadata from the another storage device includes retrieving one or more of a volume identifier, a volume name, a volume size, a volume location, or a volume owner.

Description

Automatic recreating of lost storage volumes Technical Field The present disclosure relates generally to storage devices and, more particularly, to a system and method for automatically recreating a lost storage volume. Background Various intermediate storage solutions, including Storage Class Memory (SCM), are designed to address cost/performance alternatives between Dynamic Random Access Memory (DRAM) and flash memory. Typically, these intermediate storage solutions use lower latency transfer techniques and are accessed/used like computer system RAM. For example, portions of the intermediate storage solution may be mapped directly into memory, facilitating conventional CPU read/write cycles (i.e., as part of the main page table). Advantageously, the intermediate storage solution is persistent. In this way, a system using an intermediate storage solution may reboot/restart faster (e.g., relative to flash memory), typically preserving memory content. Disclosure of Invention According to various embodiments of the present disclosure, a computing device, non-transitory computer-readable storage medium, and method for automatically recreating a lost storage volume are provided. A volume command including volume metadata associated with a storage volume of a Storage Class Memory (SCM) storage device is received (e.g., from a program or a user via a user interface). The volume metadata is stored in another storage device that is less volatile than the SCM storage device. The storage volume is configured according to the volume command, which includes forwarding the volume command to the SCM device driver. After forwarding the volume command, a notification of a persistent loss at the SCM storage device is received. After being notified of a persistent loss at the SCM storage device, the stored volume metadata is retrieved from another storage device. Automatically reconfiguring the storage volume according to the volume command includes submitting the retrieved volume metadata to the SCM device driver. These and other features will become apparent from the following detailed description of illustrative embodiments thereof, which is to be read in connection with the accompanying drawings. Drawings The drawings are illustrative embodiments. They do not show all embodiments. Other embodiments may be used in addition to or instead. Details that may be obvious or unnecessary may be omitted to save space or for more efficient explanation. Some embodiments may be practiced with additional components or steps and/or without all of the components or steps shown. When the same reference number appears in different drawings, it refers to the same or similar components or steps. FIG. 1 illustrates an exemplary computer architecture that facilitates automatically recreating a lost storage volume. FIG. 2 sets forth a flow chart illustrating an exemplary method for automatically recreating a lost storage volume. Fig. 3 shows a specifically configured computer hardware platform. Detailed Description In the following detailed description, numerous specific details are set forth by way of examples in order to provide a thorough understanding of the relevant teachings. It may be evident, however, that the present teachings may be practiced without these details. In other instances, well-known methods, procedures, components, and/or circuits have been described at a relatively high-level, without detail, in order to avoid unnecessarily obscuring aspects of the present teachings. The present disclosure relates generally to systems and methods for automatically recreating a lost storage volume. With the concepts discussed herein, volumes at a storage device may be automatically (re) created/(re) configured after a persistent loss at the storage device. Storage Class Memory (SCM) and other intermediate storage solutions have varying degrees of stability and may not be able to maintain persistence under certain conditions. When this occurs, all (potentially) data on the device may be lost. The loss of data may include erasure of (e.g., SCM) volumes and corresponding volume metadata. SCM devices may include a large number of volumes (e.g., hundreds or thousands). Manually recreating a volume and reassigning it back to its partition (e.g., virtual machine) can consume a significant amount of time. In one aspect, volumes of an intermediate storage solution, such as an SCM storage solution, are automatically recreated when persistence is lost. To facilitate volume re-creation, another storage solution that is less volatile (i.e., more stable) than the intermediate storage solution is utilized. In one example, non-volatile random access memory (NvRAM) is utilized. However, virtually any less volatile (i.e., more stable) storage solution may be used, including any flash memory type. When a volume is created or modified in an intermediate storage solution, volume metadata corresponding to the volume creation or volume modification is stored i