Restore all LUNs in a volume from a Snapshot copy

Contributors

You can use volume snapshot restore command to restore all the LUNs in a specified volume from a Snapshot copy.

Steps
  1. From the host, stop all host access to the LUNs.

    Using SnapRestore without stopping all host access to LUNs in the volume can cause data corruption and system errors.

  2. Unmount the LUNs on that host so that the host cannot access the LUNs.

  3. Unmap your LUNs:

    lun mapping delete -vserver vserver_name -volume volume_name -lun lun_name -igroup igroup_name

  4. Determine the Snapshot copy to which you want to restore your volume:

    volume snapshot show -vserver vserver_name -volume volume_name

  5. Change your privilege setting to advanced:

    set -privilege advanced

  6. Restore your data:

    volume snapshot restore -vserver vserver_name -volume volume_name -snapshot snapshot_name

  7. Follow the instructions on the screen.

  8. Remap your LUNs:

    lun mapping create -vserver vserver_name -volume volume_name -lun lun_name -igroup igroup_name

  9. Verify that your LUNs are online:

    lun show -vserver vserver_name -path lun_path -fields state

  10. If your LUNs are not online, bring them online:

    lun modify -vserver vserver_name -path lun_path -state online

  11. Change your privilege setting to admin:

    set -privilege admin

  12. From the host, remount your LUNs.

  13. From the host, restart access to your LUNs.