Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments

Understanding Snapshot disk consumption

Importance of understanding Snapshot disk consumption  Top

You use information about the amount of disk space that Snapshot copies consume and are likely to consume to determine

How Snapshot copies consume disk space  Top

Data ONTAP preserves pointers to all the disk blocks currently in use at the time the Snapshot copy is created. When a file is changed, the Snapshot copy still points to the disk blocks where the file existed before it was modified, and changes are written to new disk blocks.

Disk consumption is minimized by preserving individual disk blocks rather than whole files. Snapshot copies begin to consume extra space only when files in the active file system are changed or deleted. When this happens, the original file blocks are still preserved as part of one or more Snapshot copies, but in the active file system the changed blocks are rewritten to different locations on disk or removed as active file blocks entirely. The result is that, in addition to the disk space used by blocks in the modified active file system, disk space used by the original blocks is still reserved in Snapshot copies to reflect what the active file system was before the change.

Example of how Snapshot copies consume disk space  Top

The following illustration shows how Snapshot copies consume disk space before and after you delete a file named myfile.txt.

Example of how changing file content consumes disk space  Top

Changing the contents of the myfile.txt file creates a situation similar to the one illustrated above. New data written to myfile.txt cannot be stored in the same disk blocks as the current contents because the Snapshot copy is using those disk blocks to store the old version of myfile.txt. Instead, the new data is written to new disk blocks. As the following illustration shows, there are now two separate copies of myfile.txt on disk--a new copy in the active file system and an old one in the Snapshot copy.

Disk consumption by multiple Snapshot copies  Top

Multiple Snapshot copies can reference the same file without consuming extra disk space. Suppose a Snapshot copy contains a 1-MB file that has not changed since Data ONTAP created the Snapshot copy. If you delete that file from the active file system, the Snapshot copy then consumes 1 MB of disk space.

The same version of that 1-MB file might be referenced by several Snapshot copies: hourly.0, hourly.1, and hourly.2. If those Snapshot copies all contain the 1-MB file that has not changed since Data ONTAP created them, only 1 MB of disk space is consumed by the Snapshot copies even though all three Snapshot copies contain the file. This is because they are all pointing to the same disk blocks.

For detailed information  Top

The following sections discuss how to reserve disk space for Snapshot copies and how to monitor Snapshot disk space usage:

Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments