Command to monitor snapshot deletion
During the snapshot deletion process, it is difficult to observe the progress. While the snapshot deletion is taking place, the following may occur:
- The hostd process does not respond
- It is difficult to determine status of snapshot deletion
While there is no way to track snapshot deletion progress, you can monitor the directory and wait for the contents to indicate completion.
Perform the following:
- Log in as root to the ESX Server using SSH.
- Change directory to the correct folder containing the vmdk file(s).
- Examine the directory listing by issuing the command: ls -al
- Determine if there are any VM_NAME-00000#.vmdk files, VM_NAME-00000#-delta.vmdk file, or similar. Look for numbered files following the dash in the name. These files indicate the presence of snapshots.
- Use the following command to monitor the snapshot deletion process:
#watch "ls -Ghtu –full-time *.vmdk"
G – inhibits display of group information to shorten the output display
h – prints sizes in a readable format like 1K 234M 2G
t – sorts by modification time
u – with -lt: sorts by and shows access time
full-time – like -l –time-style=full-iso
- This command continuously monitors the contents of the directory. You should notice the snapshot files dissapear once they are deleted.