Solaris ZFS Administration Guide

Procedure How to Roll Back Root Pool Snapshots From a Failsafe Boot

This procedure assumes that existing root pool snapshots are available. In this example, the root pool snapshots are available on the local system. For example:


# zpool set listsnapshots=on rpool
# zfs snapshot -r rpool/ROOT@0311
# zfs list
NAME                         USED  AVAIL  REFER  MOUNTPOINT
rpool                        5.67G  1.04G  21.5K  /rpool
rpool/ROOT                   4.66G  1.04G    18K  /rpool/ROOT
rpool/ROOT@1013                  0      -    18K  -
rpool/ROOT/zfsnv109BE        4.66G  1.04G  4.66G  /
rpool/ROOT/zfsnv109BE@0311       0      -  4.66G  -
rpool/dump                    515M  1.04G   515M  -
rpool/swap                    513M  1.54G    16K  -
  1. Shutdown the system and boot failsafe mode.


    ok boot -F failsafe
    Multiple OS instances were found. To check and mount one of them
    read-write under /a, select it from the following list. To not mount
    any, select 'q'.
    
     1  /dev/dsk/c1t1d0s0             Solaris Express Community Edition snv_109 SPARC
     2  rpool:7641827061132033134     ROOT/zfsnv1092BE
    
    Please select a device to be mounted (q for none) [?,??,q]: 2
    mounting rpool on /a
  2. Rollback the individual root pool snapshots.


    # zfs rollback -rf rpool/ROOT@0311
    
  3. Reboot back to multiuser mode.


    # init 6