Knowledge Base

Welcome to the Nutanix NEXT community. To get started please read our short welcome post. Thanks!

cancel
Showing results for 
Search instead for 
Did you mean: 

Restoring VM's and Files from Snapshots

In NOS 3.5, snapshots and replication can be setup and scheduled thru the PRISIM UI. If you need to restore a virtual machine from a previous snapshot or file, use the Nutanix Command Line Interface(NCLI). The following steps show you how to restore a VM and\or files from a snapshot.

 

You can manage VM snapshots, including restoration, with these nCLI commands.

  • Check status of replication.
    ncli> pd list-replication-status
  • List snapshots.
    ncli> pd list-snapshots name="pd_name"
  • Restore VMs from backup.
    ncli> pd rollback-vms name="pd_name" vm-names="vm_ids" snap-id="snapshot_id" { path-prefix="folder_name" | replace-vms="true" }

 

  • Restore VMs from backup.

    ncli> pd rollback-vms name="pd_name" vm-names="vm_ids" snap-id="snapshot_id" { path-prefix="folder_name" | replace-vms="true" }
    • Replace vm_ids with a comma-separated list of VM IDs as given in vm list.
    • Replace snapshot_id with a snapshot ID as given by pd list-snapshots.
    • Replace folder_name with the name of the VM folder on the datastore, which will be created if it does not exist. Alternatively, if you want to replace the existing VMs, include replace-vms="true". The default for the replace-vmsparameter is false.

    The VM is restored to the container where the snapshot resides. If you used a DAS-SATA-only container for replication, after restoring the VM move it to an container suitable for active workloads with storage vMotion.

     

  • Restore NFS files from backup.
    ncli> pd rollback-nfs-files name="pd_name" files="nfs_files" snap-id="snapshot_id" path-prefix="folder_name"
    • Replace nfs_files with a comma-separated list of NFS files to restore.
    • Replace snapshot_id with a snapshot ID as given by pd list-snapshots.
    • Replace folder_name with the name of the folder on the datastore, which will be created if it does not exist.

    If you want to replace the existing files, include replace-nfs-files="true".

  • Restore all VMs and files in a protection domain.
    ncli> pd rollback-pd name="pd_name" snap-id="snapshot_id"

    Replace snapshot_id with a snapshot ID as given by pd list-snapshots.

    This command overwrites all VMs in the protection domain and rolls them back to the point in time of the selected snap-id. Subsequent snapshots will use the restored VMs as the source point in time.

  • Remove snapshots.
    ncli> pd rm-snapshot name="pd_name" snap-ids="snapshot_ids"

    Replace snapshot_ids with a comma-separated list of snapshot IDs as given in pd list snapshots.

 

Version history
Revision #:
1 of 1
Last update:
‎03-02-2014 03:35 PM
Updated by:
 
Contributors