Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I use ghettoVCB to backup my VMs to a NFS share. When I try and run the script on one of my VMs it fails with the error "Snapshot found for ServerName, backup will not take place!"

The thing is there are no snapshots on that VM!

2013-01-29 15:03:45 -- info: CONFIG - VERSION = 2011_11_19_1
2013-01-29 15:03:45 -- info: CONFIG - GHETTOVCB_PID = 4647292
2013-01-29 15:03:45 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/VMStore/esxi-server1
2013-01-29 15:03:45 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 1
2013-01-29 15:03:45 -- info: CONFIG - VM_BACKUP_DIR_NAMING_CONVENTION = 2013-01-29_15-03-45
2013-01-29 15:03:45 -- info: CONFIG - DISK_BACKUP_FORMAT = zeroedthick
2013-01-29 15:03:45 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
2013-01-29 15:03:45 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0
2013-01-29 15:03:45 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 3
2013-01-29 15:03:45 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5
2013-01-29 15:03:45 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15
2013-01-29 15:03:45 -- info: CONFIG - LOG_LEVEL = info
2013-01-29 15:03:45 -- info: CONFIG - BACKUP_LOG_OUTPUT = /tmp/ghettoVCB-2013-01-29_15-03-45.log
2013-01-29 15:03:45 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0
2013-01-29 15:03:45 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
2013-01-29 15:03:45 -- info: CONFIG - VMDK_FILES_TO_BACKUP = all
2013-01-29 15:03:45 -- info: CONFIG - EMAIL_LOG = 0
2013-01-29 15:03:45 -- info: 
2013-01-29 15:03:47 -- info: Snapshot found for ServerName, backup will not take place

2013-01-29 15:03:47 -- info: ###### Final status: ERROR: All VMs failed! ######
share|improve this question
    
Well, it's ghetto!! –  ewwhite Jan 29 '13 at 15:47

1 Answer 1

up vote 3 down vote accepted

If you look into the ghettoVCB shell script, the way it tries to check if there is a snapshot for a particular VM is by 'grepping' for the string 'delta' in the ESX datastore for the VM.

ls "${VMX_DIR}" | grep -q "\-delta\.vmdk"

1 - manually try to confirm that this file does not exit. Either by sshing to your esxi server or browsing the datastore using VIclient.

2 - use vmware commands to check if there is a snapshot - replace $vmid with the id of the vm

vmware-vim-cmd vmsvc/snapshot.get $vmid

3 - if i encounter such a problem, what i usually do is, I create a new snapshot and then use the 'delete all' to clear all the snapshots. That seems to clear up some partially completed snaps.

share|improve this answer
    
There is a Delta that exist. Is is safe to rm? –  mako_reactor Jan 29 '13 at 15:47
    
Be very careful here. Make sure you don't end up deleting an active vmdk. Try step (3) in my answer first and see if that removes the delta. Also is the "Delta" part of the virtual machines name or a "delta" added by vmware during snapshot? –  Daniel t. Jan 29 '13 at 15:52
    
I moved the delta file and re-ran ghettoVCB and.... success! Don't know what that delta file was doing there, but thanks! –  mako_reactor Jan 29 '13 at 16:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.