The present disclosure generally relates to the field of electronics. More particularly, an embodiment of the invention generally relates to accessing snapshot data image of a data mirroring volume.
In data storage, data mirroring may be used to replicate data on more than one storage disk. For example, a Redundant Array of Independent Drives (or Disks), also known as Redundant Array of Inexpensive Drives (or Disks) (RAID) level 1 (or RAID-1) may be used for fault tolerance resulting from disk errors.
Generally, a RAID-1 array continues to operate as long as at least one disk is functioning. Furthermore, in RAID-1, each storage disk of the mirrored set is part of a single RAID volume. Hence, a host computer accesses the RAID volume itself and not the individual data mirror disks. If data mirroring of a RAID-1 array is broken, the RAID volume may still remain operational by using one of its active disks.
The detailed description is provided with reference to the accompanying figures. In the figures, the left-most digit(s) of a reference number identifies the figure in which the reference number first appears. The use of the same reference numbers in different figures indicates similar or identical items.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of various embodiments. However, various embodiments of the invention may be practiced without the specific details. In other instances, well-known methods, procedures, components, and circuits have not been described in detail so as not to obscure the particular embodiments of the invention. Further, various aspects of embodiments of the invention may be performed using various means, such as integrated semiconductor circuits (“hardware”), computer-readable instructions organized into one or more programs (“software”), or some combination of hardware and software. For the purposes of this disclosure reference to “logic” shall mean either hardware, software, or some combination thereof.
Some of the embodiments discussed herein may enable access to a snapshot data image of a data mirroring volume, e.g., after data mirroring is disrupted. In various embodiments, data mirroring may be disrupted due to a suspension (e.g., in response to a command generated by a user or host computer) and/or an error (e.g., a read or write error of a disk that is a member of a data mirroring set). As discussed herein, the term “volume” may generally refer to a logical storage volume that may correspond to a set of mirrored disks (e.g., two or more disks). Also, even though some embodiments discussed herein may refer to various disks that are members of a data mirroring set (e.g., forming a RAID-1 mirroring set), each of the disks may be disk partitions within a single physical disk drive. Alternatively, the disks may be disk partitions spanned across a plurality of physical disk drives. Hence, the use of the term “disk” or “disk partition” herein may be interchangeable.
Furthermore, the usage of the term “disk” herein is intended to refer to any collection of data, whether stored in physical disk drive or logically accessible through a link (such as network connected drives, or some other physical media that may or may not be a drive such as flash connected to a host computer via Open NAND Flash Interface (ONFI)). Thus, the data mirroring is intended to include any form of data replication, and the ability to break and restore the mirror. Moreover, a disk is intended to be any collection of data that appears as a disk drive to hardware (e.g., a flash based solid state drive), or may be something that emulates a drive in software (such as flash on ONFI with a driver that emulates a drive).
More particularly,
As shown in
As will be further discussed with reference to
Referring to
At an operation 308, after the inactive disk becomes available, the inactive disk may be mounted as a new volume, e.g., such that the inactive disk may be accessible by a host computer independently of the previously active disk of the mirroring volume. For example, at operation 308 (e.g., see
In some embodiments, when mirroring is suspended (at operation 302), the host computer may access the snapshot image (e.g., at operation 310) stored on the inactive disk (e.g., disk 108). The mirrored data volume (e.g., volume 104) may continue using the active disk (e.g., disk 106) as its target disk, as shown in
Once, the two distinct volumes are accessible to the host computer 102 (after operation 308), the snapshot image volume may be used for various purposes at operation 310. For example, access to the snapshot image data might be used for file compare purposes by the user to have a side-by-side view of file differences since the mirror suspension. It could also be used for file rollback purposes and/or file recovery purposes (e.g., since the user would be able to copy files from the snapshot volume to the first volume). It may further be used for selective data image rollback purposes (e.g., since the user would be able to copy files from the first volume to the snapshot volume before performing a full snapshot disk restore).
In one embodiment, after operation 310 (e.g., once the user is finished accessing the snapshot image volume), the snapshot image volume may be dismounted and its target disk, the “inactive” disk, would again become the inactive data mirror disk of the suspended mirroring volume. As such, the inactive disk (e.g., disk 108) would again be available as part of the mirrored volume 104 for resuming data mirroring or RAID redundancy purposes.
Moreover, the host computer 102 discussed with reference to
A chipset 406 may also communicate with the interconnection network 404. The chipset 406 may include a graphics memory control hub (GMCH) 408. The GMCH 408 may include a memory controller 410 that communicates with a memory 412. The memory 412 may store data, including sequences of instructions that are executed by the processor 402, or any other device included in the computing system 400. In one embodiment of the invention, the memory 412 may include one or more volatile storage (or memory) devices such as random access memory (RAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), static RAM (SRAM), or other types of storage devices. Nonvolatile memory may also be utilized such as a hard disk. Additional devices may communicate via the interconnection network 404, such as multiple CPUs and/or multiple system memories.
The GMCH 408 may also include a graphics interface 414 that communicates with a graphics accelerator 416. In one embodiment of the invention, the graphics interface 414 may communicate with the graphics accelerator 416 via an accelerated graphics port (AGP). In an embodiment of the invention, a display (such as a flat panel display, a cathode ray tube (CRT), a projection screen, etc.) may communicate with the graphics interface 414 through, for example, a signal converter that translates a digital representation of an image stored in a storage device such as video memory or system memory into display signals that are interpreted and displayed by the display. The display signals produced by the display device may pass through various control devices before being interpreted by and subsequently displayed on the display.
A hub interface 418 may allow the GMCH 408 and an input/output control hub (ICH) 420 to communicate. The ICH 420 may provide an interface to I/O devices that communicate with the computing system 400. The ICH 420 may communicate with a bus 422 through a peripheral bridge (or controller) 424, such as a peripheral component interconnect (PCI) bridge, a universal serial bus (USB) controller, or other types of peripheral bridges or controllers. The bridge 424 may provide a data path between the processor 402 and peripheral devices. Other types of topologies may be utilized. Also, multiple buses may communicate with the ICH 420, e.g., through multiple bridges or controllers. Moreover, other peripherals in communication with the ICH 420 may include, in various embodiments of the invention, integrated drive electronics (IDE) or small computer system interface (SCSI) hard drive(s), USB port(s), a keyboard, a mouse, parallel port(s), serial port(s), floppy disk drive(s), digital output support (e.g., digital video interface (DVI)), or other devices.
The bus 422 may communicate with an audio device 426, one or more disk drive(s) 428, and one or more network interface device(s) 430 (which is in communication with the computer network 403). Other devices may communicate via the bus 422. Also, various components (such as the network interface device 430) may communicate with the GMCH 408 in some embodiments of the invention. In addition, the processor 402 and the GMCH 408 may be combined to form a single chip. Furthermore, the graphics accelerator 416 may be included within the GMCH 408 in other embodiments of the invention.
Furthermore, the computing system 400 may include volatile and/or nonvolatile memory (or storage). For example, nonvolatile memory may include one or more of the following: read-only memory (ROM), programmable ROM (PROM), erasable PROM (EPROM), electrically EPROM (EEPROM), a disk drive (e.g., 428), a floppy disk, a compact disk ROM (CD-ROM), a digital versatile disk (DVD), flash memory, a magneto-optical disk, or other types of nonvolatile machine-readable media that are capable of storing electronic data (e.g., including instructions). In an embodiment, components of the system 400 may be arranged in a point-to-point (PtP) configuration. For example, processors, memory, and/or input/output devices may be interconnected by a number of point-to-point interfaces.
In various embodiments of the invention, the operations discussed herein, e.g., with reference to
Additionally, such computer-readable media may be downloaded as a computer program product, wherein the program may be transferred from a remote computer (e.g., a server) to a requesting computer (e.g., a client) by way of data signals embodied in a carrier wave or other propagation medium via a communication link (e.g., a bus, a modem, or a network connection). Accordingly, herein, a carrier wave shall be regarded as comprising a machine-readable medium.
Reference in the specification to “one embodiment” or “an embodiment” means that a particular feature, structure, and/or characteristic described in connection with the embodiment may be included in at least an implementation. The appearances of the phrase “in one embodiment” in various places in the specification may or may not be all referring to the same embodiment.
Also, in the description and claims, the terms “coupled” and “connected,” along with their derivatives, may be used. In some embodiments of the invention, “connected” may be used to indicate that two or more elements are in direct physical or electrical contact with each other. “Coupled” may mean that two or more elements are in direct physical or electrical contact. However, “coupled” may also mean that two or more elements may not be in direct contact with each other, but may still cooperate or interact with each other.
Thus, although embodiments of the invention have been described in language specific to structural features and/or methodological acts, it is to be understood that claimed subject matter may not be limited to the specific features or acts described. Rather, the specific features and acts are disclosed as sample forms of implementing the claimed subject matter.