Go to main content

Oracle® ZFS Storage Appliance Administration Guide, Release OS8.7.x

Exit Print View

Updated: September 2017
 
 

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.


Caution

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