Rolling Back to a Snapshot (CLI)

Use the following procedure to roll back, or restore, a filesystem or LUN to an existing snapshot.

Restoring a snapshot requires destroying any newer snapshots and their clones, and it reverts the share contents to what they were at the time the snapshot was taken. Property settings on the share are not affected, but changes to filesystem root directory access are lost during rollback.

The rollback is not allowed if the rollback would remove recent snapshots with a snapshot retention hold.

Note:

When the file retention feature, which is different from the snapshot retention feature, is used with snapshot rollback, certain restrictions can apply. Rollback can be performed on a filesystem with the privileged file retention policy, even when unexpired retained files exist. Filesystems with the mandatory file retention policy can never be rolled back, even when all retained files have expired. For more information, see File Retention Management.

Caution:

This procedure cannot be undone.
  1. Go to and select the share that contains the snapshot you want to restore.
    hostname:> shares select myproject
    hostname:shares myproject> select demo_share
  2. Enter snapshots.
    hostname:shares myproject/demo_share> snapshots
  3. Enter list to view the list of snapshots for the project or share.
    hostname:shares myproject/demo_share snapshots> list
    demo_snap1
    demo_snap2
  4. Select the snapshot you want to restore, then enter the rollback command.
    hostname:shares myproject/demo_share snapshots> select demo_snap1
    hostname:shares myproject/demo_share@demo_snap1> rollback
  5. Type Y to confirm.
    hostname:shares myproject/demo_share@demo_snap1> rollback
    Rolling back will revert data to snapshot, destroying newer data. Active initiators will be disconnected.
    
    Continue? (Y/N)
    hostname: shares myproject/demo_share@demo_snap1> Y