Skip to main content

Restore all LUNs in a volume from an ONTAP snapshot

Contributors netapp-aherbin netapp-aaron-holt

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

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 <SVM_name> -volume <volume_name> -lun <lun_name> -igroup <igroup_name>
  4. Determine the snapshot to which you want to restore your volume:

    volume snapshot show -vserver <SVM_name> -volume <volume_name>
  5. Change your privilege setting to advanced:

    set -privilege advanced
  6. Restore your data:

    volume snapshot restore -vserver <SVM_name> -volume <volume_name> -snapshot <snapshot_name>
  7. Follow the instructions on the screen.

  8. Remap your LUNs:

    lun mapping create -vserver <SVM_name> -volume <volume_name> -lun <lun_name> -igroup <igroup_name>
  9. Verify that your LUNs are online:

    lun show -vserver <SVM_name> -path <lun_path> -fields state
  10. If your LUNs are not online, bring them online:

    lun modify -vserver <SVM_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.