One of the life saving feature of Nutanix platform is native data protection, now every other vendor has it so whats so great about it… I do remember at one of our customer had failed upgrade of application in a critical virtual machine and to get the virtual machine out and running from storage snapshot how much it takes..
The best part of Nutanix data protetion is virtual machine granularity, it does not only give per virtual machine protection, it also enables to spin-up selective virtual machine as test/dev isolated environment in minutes.
Addition to that Nutanix have hidden feature of data protection to keep few expired snapshots in case you does not noticed you have curruption days over your retention. By default the value is keep 5 snapshots (kb1531) which can be seen from ncli as below;
ncli pd ls-sched name="pd-name"
and can be updated as below if required.
ncli pd set-schedule min-snap-retention-count=3 name="pd-name"
So set it with cuation if you have less then 5 snapshot retention and running low on disk space.
But what if the snapshot has been expired and believe me it has saved me coulpe of time when someone from top c level mess up with data and after strugling for few days to realize your snapshot retention has passed.
so what you do .. connect to Nutanix cluster by ssh..
ncli pd ls
to list all your protection domains configured..
ncli pd ls-snaps name="pd-name"
to list all the snapshots.. which show output similar as below
ID : 96731 Protection Domain : CRM-PD Create Time : 02/11/2017 23:30:00 UTC Expiry Time : 02/12/2017 23:30:00 UTC Virtual Machine(s) : 1 VM Name : CRM-VM01 Consistency Group : CRM-VM01 Application consistent... : false Power state on recovery : Powered On NFS Files : 0 Located at Remote Site : Local Snapshot Size : 15.54 GiB (16,689,091,848 bytes) ID : 96530 Protection Domain : CRM-PD Create Time : 02/10/2017 23:30:00 UTC Expiry Time : Expired Virtual Machine(s) : 1 VM Name : CRM-VM01 Consistency Group : CRM-VM01 Application consistent... : false Power state on recovery : Powered On NFS Files : 0 Located at Remote Site : Local Snapshot Size : 8.95 GiB (9,609,154,312 bytes)
there you see you have a snspshot you need on the date but Expiry Time is Expired, worry not, my retention was just 1 day an minimium retention was set 2 so Acropolis is going to retain minimium 2 snapshots.. now prism also shows expired snapshots and allows operations on it.. but i still run old NOS..for some unknown reason 😦
ncli pd restore-snapshot name="CRM-PD" snap-id="96530" vm-names="CRM-VM01" ' replace="false" path-prefix="/Restored-CRM-VM01" vm-name-prefix="Restored-"
and voila..! vm restored and resgitered in no time.. just power on and have a coffee..