Go to main content

Managing Devices in Oracle® Solaris 11.3

Exit Print View

Updated: April 2018
 
 

How to Perform ZFS Rollback

COMSTAR logical units are often created on top of ZFS volumes (zvol). The following procedure describes how to backup and restore zvols or perform incremental restore on LU backend ZFS volume.

This example shows how to temporarily unload the LU from a framework, perform the ZFS rollback to restore the previous ZFS snapshot and then re-enable the COMSTAR LU.


Note -  The given LU will be completely unavailable for hosts (initiators) during this procedure.
  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  2. Unload the LU from framework, but keep the existing views.

    Note -  Any existing data in the logical unit remains intact.
    # stmfadm delete-lu -k 600144F0D6DCC400000057C586EA0001
  3. Perform the requested rollback operation.
    # zfs rollback rpool/iscsi_zvol_01@snapshot
  4. Import the LU and restore the original configuration.
    # stmfadm import /dev/zvol/rdsk/rpool/iscsi_zvol_01