Skip to content
Snapshots - HAC documentation hub

Snapshots

Creating Snapshots

A zfs snapshot is a read-only copy of a ZFS dataset or zvol. Snapshots are created almost instantly and initially consume no additional disk space within the pool. They are a valuable tool both for system administrators needing to perform backups and other users who need to save the state of their file system at a particular point in time and possibly restore it later. It is also possible to extract individual files from a snapshot.

The following steps will show the process of creating a snapshot from a clustered pool.

Note

Snapshots cannot be created in shared-nothing clusters as the cluster software itself is responsible for creating and synchronising snapshots at regular intervals.

  1. To create a snapshot navigate to ZFS -> Snapshots and click CREATE SNAPSHOT:

    zfs-snapshot-main-window

  2. Select the Pool Name and the Dataset within the pool (set this field to None to snapshot the whole of the selected pool). Finally specify a snapshot name and click SUBMIT:

    Snapshot name

    The cluster software automatically prefixes the snapshot name with pool/dataset name followed by the '@' symbol. Therefore when entering a snapshot name the '@' symbol cannot be used.

    zfs-snapshot-create

  3. Click SUBMIT to create - the Zvol is now created in the pool.

    zfs-snapshot-complete

Restoring Snapshots

Restoring a snapshot will revert the dataset/pool back to the position it was in when the snapshot was taken. This process is known as rolling back.

Restoration is a one way process

Any changes made to a dataset/pool since the snapshot was taken will be discarded, theerfore use with care.

Deleting Snapshots

Use the DELETE button to remove a snapshot. Once removed any space used by the snapshot will be recovered.