Snapshot Space Management - Oracle ZFS Storage Appliance Administration Manual

Hide thumbs Also See for ZFS Storage Appliance:
Table of Contents

Advertisement

"Rolling Back to a Snapshot (CLI)" on page 458
To destroy snapshots, use the following tasks:
"Destroying a Snapshot (BUI)" on page 459
"Destroying a Snapshot (CLI)" on page 460

Snapshot Space Management

Snapshots present an interesting dilemma for space management. They represent the set of
physical blocks referenced by a share at a given point in time. Initially, this snapshot consumes
no additional space. But as new data is overwritten in the new share, the blocks in the active
share will only contain the new data, and older blocks will be "held" by the most recent (and
possibly older) snapshots. Gradually, snapshots can consume additional space as the content
diverges in the active share. If you take a snapshot of a filesystem of any given size, and re-
write 100% of the data within the filesystem, you must maintain references to twice the data
that was originally in the filesystem.
Each snapshot has two associated space statistics: unique space and referenced space. The
amount of referenced space is the total space consumed by the filesystem at the time the
snapshot was taken. It represents the theoretical maximum size of the snapshot should it remain
the sole reference to all data blocks. The unique space indicates the amount of physical space
referenced only by the current snapshot. When a snapshot is destroyed, the unique space is
made available to the rest of the pool.
Note that the amount of space consumed by all snapshots is not equivalent to the sum of unique
space across all snapshots. With a share and a single snapshot, all blocks must be referenced
by one or both of the snapshot or the share. With multiple snapshots, however, it's possible
for a block to be referenced by some subset of snapshots, and not any particular snapshot. For
example, if a file is created, two snapshots X and Y are taken, the file is deleted, and another
snapshot Z is taken, the blocks within the file are held by X and Y, but not by Z. In this case,
destroying Z will not free up the space, but destroying both X and Y will. Because of this,
destroying any snapshot can affect the unique space referenced by neighboring snapshots,
though the total amount of space consumed by snapshots will always decrease.
The total size of a project or share always accounts for space consumed by all snapshots, though
the usage breakdown is also available. Quotas and reservations can be set at the project level to
enforce physical constraints across this total space. In addition, quotas and reservations can be
set at the filesystem level, and these settings can apply to only referenced data or total data.
Whether or not quotas and reservations should be applied to referenced data or total physical
data depends on the administrative environment. If users are not in control of their snapshots
Snapshot Space Management
Snapshots and Clones
439

Advertisement

Table of Contents
loading

Table of Contents