Monday, April 6, 2015

SNAPSHOT VMware




find /vmfs/volumes/ -iname "*delta.vmdk" (where are there snapshots for all VMs on all shared storage visible from this host)

du -h -c -d 1 *delta.vmdk (from the specific VM directory how big are the deltas combined)

watch -d 'ls -luth | grep -E "delta|flat|sesparse"' (what is the consolidation doing date time stamps will change and deltas will be removed from list as they are processed)

vim-cmd vimsvc/task_list (what jobs are outstanding)

vim-cmd vimsvc/task_info (from returned list between colon and single quote will give status and percentage)
Here are KB articles which should answer most  questions about snapshots and where many of the mentioned commands come from:

http://kb.vmware.com/kb/2053758 - "Estimating the time required to consolidate snapshots (2053758_draft)"

http://kb.vmware.com/kb/1007566 - "Commands to monitor snapshot deletion in ESX 2.5/3.x/4.x and ESXi 3.x/4.x/5.x (1007566)"

http://kb.vmware.com/kb/1015180 - "Understanding virtual machine snapshots in VMware ESXi and ESX"

http://kb.vmware.com/kb/1025279 - "Best practices for virtual machine snapshots in the VMware environment"

http://kb.vmware.com/kb/1007849 - "Consolidating snapshots"

http://kb.vmware.com/kb/1018029 - "Configuring VMware vCenter Server to send alarms when virtual machines are running from snapshots"

No comments:

Post a Comment