fbpx
Wikipedia

Snapshot (computer storage)

In computer systems, a snapshot is the state of a system at a particular point in time. The term was coined as an analogy to that in photography.

Example of snapshots of a Btrfs filesystem, managed with snapper

Rationale edit

A full backup of a large data set may take a long time to complete. On multi-tasking or multi-user systems, there may be writes to that data while it is being backed up. This prevents the backup from being atomic and introduces a version skew that may result in data corruption. For example, if a user moves a file into a directory that has already been backed up, then that file would be completely missing on the backup media, since the backup operation had already taken place before the addition of the file. Version skew may also cause corruption with files which change their size or contents underfoot while being read.

One approach to safely backing up live data is to temporarily disable write access to data during the backup, either by stopping the accessing applications or by using the locking API provided by the operating system to enforce exclusive read access. This is tolerable for low-availability systems (on desktop computers and small workgroup servers, on which regular downtime is acceptable). High-availability 24/7 systems, however, cannot bear service stoppages.

To avoid downtime, high-availability systems may instead perform the backup on a snapshot—a read-only copy of the data set frozen at a point in time—and allow applications to continue writing to their data. Most snapshot implementations are efficient and can create snapshots in O(1). In other words, the time and I/O needed to create the snapshot does not increase with the size of the data set; by contrast, the time and I/O required for a direct backup is proportional to the size of the data set. In some systems once the initial snapshot is taken of a data set, subsequent snapshots copy the changed data only, and use a system of pointers to reference the initial snapshot. This method of pointer-based snapshots consumes less disk capacity than if the data set was repeatedly cloned.

Implementations edit

Volume managers edit

Some Unix systems have snapshot-capable logical volume managers. These implement copy-on-write on entire block devices by copying changed blocks‍—‌just before they are to be overwritten within "parent" volumes‍—‌to other storage, thus preserving a self-consistent past image of the block device. Filesystems on such snapshot images can later be mounted as if they were on a read-only media.

Some volume managers also allow creation of writable snapshots, extending the copy-on-write approach by disassociating any blocks modified within the snapshot from their "parent" blocks in the original volume. Such a scheme could be also described as performing additional copy-on-write operations triggered by the writes to snapshots.

On Linux, Logical Volume Manager (LVM) allows creation of both read-only and read-write snapshots. Writable snapshots were introduced with the LVM version 2 (LVM2).[1]

File systems edit

Some file systems, such as WAFL,[a] fossil for Plan 9 from Bell Labs, and ODS-5,[citation needed] internally track old versions of files and make snapshots available through a special namespace. Others, like UFS2, provide an operating system API for accessing file histories. In NTFS, access to snapshots is provided by the Volume Shadow-copying Service (VSS) in Windows XP and Windows Server 2003 and Shadow Copy in Windows Vista. Melio FS provides snapshots via the same VSS interface for shared storage.[2] Snapshots have also been available in the NSS (Novell Storage Services) file system on NetWare since version 4.11, and more recently on Linux platforms in the Open Enterprise Server product.

EMC's Isilon OneFS clustered storage platform implements a single scalable file system that supports read-only snapshots at the file or directory level. Any file or directory within the file system can be snapshotted and the system will implement a copy-on-write or point-in-time snapshot dynamically based on which method is determined to be optimal for the system.

On Linux, the Btrfs and OCFS2 file systems support creating snapshots (cloning) of individual files. Additionally, Btrfs also supports the creation of snapshots of subvolumes. On AIX, JFS2 also support snapshots.

See also edit

Notes edit

  1. ^ WAFL is not a file system. WAFL is a file layout that provides mechanisms that enable a variety of file systems and technologies that want to access disk blocks.

References edit

  1. ^ "LVM HOWTO". 3.8. Snapshots. tldp.org. Retrieved 2013-09-29.
  2. ^ "Optimized Storage Solution for Enterprise Scale Hyper-V Deployments" (PDF). Microsoft. March 2010. p. 15. Retrieved 25 October 2012.

External links edit

  • Garimella, Neeta (2006-04-26). "Understanding and exploiting snapshot technology for data protection, Part 1: Snapshot technology overview". IBM.
  • Harwood, Mike (2003-09-24). "Storage Basics: Backup Strategies".

snapshot, computer, storage, this, article, needs, additional, citations, verification, please, help, improve, this, article, adding, citations, reliable, sources, unsourced, material, challenged, removed, find, sources, snapshot, computer, storage, news, news. This article needs additional citations for verification Please help improve this article by adding citations to reliable sources Unsourced material may be challenged and removed Find sources Snapshot computer storage news newspapers books scholar JSTOR September 2013 Learn how and when to remove this message In computer systems a snapshot is the state of a system at a particular point in time The term was coined as an analogy to that in photography Example of snapshots of a Btrfs filesystem managed with snapper Contents 1 Rationale 2 Implementations 2 1 Volume managers 2 2 File systems 3 See also 4 Notes 5 References 6 External linksRationale editA full backup of a large data set may take a long time to complete On multi tasking or multi user systems there may be writes to that data while it is being backed up This prevents the backup from being atomic and introduces a version skew that may result in data corruption For example if a user moves a file into a directory that has already been backed up then that file would be completely missing on the backup media since the backup operation had already taken place before the addition of the file Version skew may also cause corruption with files which change their size or contents underfoot while being read One approach to safely backing up live data is to temporarily disable write access to data during the backup either by stopping the accessing applications or by using the locking API provided by the operating system to enforce exclusive read access This is tolerable for low availability systems on desktop computers and small workgroup servers on which regular downtime is acceptable High availability 24 7 systems however cannot bear service stoppages To avoid downtime high availability systems may instead perform the backup on a snapshot a read only copy of the data set frozen at a point in time and allow applications to continue writing to their data Most snapshot implementations are efficient and can create snapshots in O 1 In other words the time and I O needed to create the snapshot does not increase with the size of the data set by contrast the time and I O required for a direct backup is proportional to the size of the data set In some systems once the initial snapshot is taken of a data set subsequent snapshots copy the changed data only and use a system of pointers to reference the initial snapshot This method of pointer based snapshots consumes less disk capacity than if the data set was repeatedly cloned Implementations editVolume managers edit Some Unix systems have snapshot capable logical volume managers These implement copy on write on entire block devices by copying changed blocks just before they are to be overwritten within parent volumes to other storage thus preserving a self consistent past image of the block device Filesystems on such snapshot images can later be mounted as if they were on a read only media Some volume managers also allow creation of writable snapshots extending the copy on write approach by disassociating any blocks modified within the snapshot from their parent blocks in the original volume Such a scheme could be also described as performing additional copy on write operations triggered by the writes to snapshots On Linux Logical Volume Manager LVM allows creation of both read only and read write snapshots Writable snapshots were introduced with the LVM version 2 LVM2 1 File systems edit Some file systems such as WAFL a fossil for Plan 9 from Bell Labs and ODS 5 citation needed internally track old versions of files and make snapshots available through a special namespace Others like UFS2 provide an operating system API for accessing file histories In NTFS access to snapshots is provided by the Volume Shadow copying Service VSS in Windows XP and Windows Server 2003 and Shadow Copy in Windows Vista Melio FS provides snapshots via the same VSS interface for shared storage 2 Snapshots have also been available in the NSS Novell Storage Services file system on NetWare since version 4 11 and more recently on Linux platforms in the Open Enterprise Server product EMC s Isilon OneFS clustered storage platform implements a single scalable file system that supports read only snapshots at the file or directory level Any file or directory within the file system can be snapshotted and the system will implement a copy on write or point in time snapshot dynamically based on which method is determined to be optimal for the system On Linux the Btrfs and OCFS2 file systems support creating snapshots cloning of individual files Additionally Btrfs also supports the creation of snapshots of subvolumes On AIX JFS2 also support snapshots See also editApple File System Snapshots Application checkpointing Persistence computer science Sandbox computer security Storage Hypervisor System image Virtual machineNotes edit WAFL is not a file system WAFL is a file layout that provides mechanisms that enable a variety of file systems and technologies that want to access disk blocks References edit LVM HOWTO 3 8 Snapshots tldp org Retrieved 2013 09 29 Optimized Storage Solution for Enterprise Scale Hyper V Deployments PDF Microsoft March 2010 p 15 Retrieved 25 October 2012 External links edit nbsp Look up snapshot in Wiktionary the free dictionary Garimella Neeta 2006 04 26 Understanding and exploiting snapshot technology for data protection Part 1 Snapshot technology overview IBM Harwood Mike 2003 09 24 Storage Basics Backup Strategies Retrieved from https en wikipedia org w index php title Snapshot computer storage amp oldid 1217371080, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.