vSphere Plugin: Restore a VMFS Datastore from a Snapshot

User Guides for VMware Solutions

Audience
Public
Content Type
User Guides
Source Type
Documentation

The vSphere plugin provides the capability to automatically overwrite and resignature an existing VMFS volume from one of its FlashArray crash consistent snapshots. This use case is particularly important in the event of a ransomware attack, disaster recovery, an operating system patch breaking one or more application(s) after it has been applied or if an administrator makes a mistake and needs to recover multiple connected VMs within the same volume to their previous state. This restore operation applies only to the current location of the VMFS volume.

In order for the Restore VMFS from a snapshot workflow to function properly, please make certain to power off all virtual machines that are running within the volume, as the overwrite operation will also remove these VMs and re-add their version from this snapshot into vCenter inventory.

Note:

Recommendations: VMs are stopped and unregistered; the existing VMFS datastore is unmounted. Unmounting the datastore reduces the possibility of registration issues with the recovered VM. The required steps are:

  1. Stop VMs.
  2. Unregister VMs (remove them from inventory).
  3. Snapshot restored to original.
  4. Mount the datastore.
  5. Register the VM(s),
Note: It's possible when starting the VM for the first time the file system on the VM will need to be repaired. This is because the snapshots are crash consistent and do not contain what was running in memory on the host for the VM.
To access this workflow, select the Datastore, go to Configure > Everpure > Snapshots, highlight the snapshot you want to use and then click on the Restore to Original Datastore button. This operation is shown below:

If one or more virtual machines on the datastore you wish to restore are powered on, the Restore button will be grayed out. The wizard will display which VM(s) need to be powered off prior to the snapshot restoration operation being available. The below example shows a single VM that is still powered on and thus preventing the snapshot restore.

Once all VMs that reside on the VMFS volume to be restored have been vMotioned elsewhere and/or powered off, the Restore button shows as available.

Upon clicking Restore the snapshot will overwrite the existing volume which will automatically replace the previous VMFS volume and be resignatured for immediate use in vSphere.