VMware Cloud Community
wpforum
Contributor
Contributor

ghettoVCB does not work in ESXi 5.1

Hi there

I have a problem with ghettoVCB. When i try to backup a virtual machine it fails with following output:

/ghettoVCB # ./ghettoVCB.sh -f vms_to_backup -g ghettoVCB.conf
Logging output to "/tmp/ghettoVCB-2013-01-15_15-54-21-420860.log" ...
Insufficient arguments.
2013-01-15 15:54:21 -- info: ============================== ghettoVCB LOG START                                                                                                                                                              ==============================
2013-01-15 15:54:21 -- info: CONFIG - USING GLOBAL GHETTOVCB CONFIGURATION FILE                                                                                                                                                              = ghettoVCB.conf
2013-01-15 15:54:21 -- info: CONFIG - VERSION = 2012_12_17_0
2013-01-15 15:54:21 -- info: CONFIG - GHETTOVCB_PID = 420860
2013-01-15 15:54:21 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/506e277e-                                                                                                                                                             54e9b2ca-515b-3085a93cba6a/Backups
2013-01-15 15:54:21 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3
2013-01-15 15:54:21 -- info: CONFIG - VM_BACKUP_DIR_NAMING_CONVENTION = 2013-01-                                                                                                                                                             15_15-54-21
2013-01-15 15:54:21 -- info: CONFIG - DISK_BACKUP_FORMAT = thin
2013-01-15 15:54:21 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
2013-01-15 15:54:21 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0
2013-01-15 15:54:21 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 4
2013-01-15 15:54:21 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5
2013-01-15 15:54:21 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15
2013-01-15 15:54:21 -- info: CONFIG - LOG_LEVEL = info
2013-01-15 15:54:21 -- info: CONFIG - BACKUP_LOG_OUTPUT = /tmp/ghettoVCB-2013-01                                                                                                                                                             -15_15-54-21-420860.log
2013-01-15 15:54:21 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0
2013-01-15 15:54:21 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
2013-01-15 15:54:21 -- info: CONFIG - ALLOW_VMS_WITH_SNAPSHOTS_TO_BE_BACKEDUP =                                                                                                                                                              0
2013-01-15 15:54:21 -- info: CONFIG - VMDK_FILES_TO_BACKUP = all
2013-01-15 15:54:21 -- info: CONFIG - VM_SHUTDOWN_ORDER =
2013-01-15 15:54:21 -- info: CONFIG - VM_STARTUP_ORDER =
2013-01-15 15:54:21 -- info: CONFIG - EMAIL_LOG = 0
2013-01-15 15:54:21 -- info:
Datastore not found.
Datastore not found.
Datastore not found.
2013-01-15 15:54:25 -- info: Initiate backup for Trixbox-VM
\ specified for Trixbox-VMo: ERROR: wrong DISK_BACKUP_FORMAT "thin
'ead: invalid number '3
2013-01-15 15:54:25 -- info: Backup Duration: 0 Seconds
2013-01-15 15:54:25 -- info: ERROR: Unable to backup Trixbox-VM due to error in                                                                                                                                                              VMDK backup!
./ghettoVCB.sh: line 11: can't create /vmfs/volumes/506e277e-54e9b2ca-515b-3085a                                                                                                                                                             /Trixbox-VM/Trixbox-VM-2013-01-15_15-54-21/STATUS.error: nonexistent directory
2013-01-15 15:54:25 -- info: ###### Final status: ERROR: No VMs backed up! #####                                                                                                                                                             #
2013-01-15 15:54:25 -- info: ============================== ghettoVCB LOG END ==                                                                                                                                                             ==============================

Does anybody have an idea what the problem could be?

Reply
0 Kudos
10 Replies
peetz
Leadership
Leadership

Hello and welcome to the forums!

The author of ghettoVCB has recently updated the scripts to be compatible with ESXi 5.1:

  http://www.virtuallyghetto.com/2013/01/new-updates-for-ghettovcb-ghettovcb.html

Make sure that you use this latest version.

- Andreas

Twitter: @VFrontDe, @ESXiPatches | https://esxi-patches.v-front.de | https://vibsdepot.v-front.de
Reply
0 Kudos
wpforum
Contributor
Contributor

Thank you for your fast answer. I did download the newest version available, but doesn't look better:

/ghettoVCB # ./ghettoVCB.sh -f vms_to_backup -g ghettoVCB.conf
Logging output to "/tmp/ghettoVCB-2013-01-15_21-01-19-434631.log" ...
2013-01-15 21:01:19 -- info: ============================== ghettoVCB LOG START ==============================
2013-01-15 21:01:19 -- info: CONFIG - USING GLOBAL GHETTOVCB CONFIGURATION FILE = ghettoVCB.conf
2013-01-15 21:01:19 -- info: CONFIG - VERSION = 2013_01_11_0
2013-01-15 21:01:19 -- info: CONFIG - GHETTOVCB_PID = 434631
2013-01-15 21:01:19 -- info: CONFIG - VM_BACKUP_VOLUME = /Backups
2013-01-15 21:01:19 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3
2013-01-15 21:01:19 -- info: CONFIG - VM_BACKUP_DIR_NAMING_CONVENTION = 2013-01-15_21-01-19
2013-01-15 21:01:19 -- info: CONFIG - DISK_BACKUP_FORMAT = thin
2013-01-15 21:01:19 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
2013-01-15 21:01:19 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0
2013-01-15 21:01:19 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 3
2013-01-15 21:01:19 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5
2013-01-15 21:01:19 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15
2013-01-15 21:01:19 -- info: CONFIG - LOG_LEVEL = info
2013-01-15 21:01:19 -- info: CONFIG - BACKUP_LOG_OUTPUT = /tmp/ghettoVCB-2013-01-15_21-01-19-434631.log
2013-01-15 21:01:19 -- info: CONFIG - ENABLE_COMPRESSION = 0
2013-01-15 21:01:19 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0
2013-01-15 21:01:19 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
2013-01-15 21:01:19 -- info: CONFIG - ALLOW_VMS_WITH_SNAPSHOTS_TO_BE_BACKEDUP = 0
2013-01-15 21:01:19 -- info: CONFIG - VMDK_FILES_TO_BACKUP = all
2013-01-15 21:01:19 -- info: CONFIG - VM_SHUTDOWN_ORDER =
2013-01-15 21:01:19 -- info: CONFIG - VM_STARTUP_ORDER =
2013-01-15 21:01:19 -- info: CONFIG - EMAIL_LOG = 0
2013-01-15 21:01:19 -- info:
, backup will not begin until VM is off...initiated for
Insufficient arguments.
2013-01-15 21:01:20 -- info: VM is powerdOff
Datastore not found.
Datastore not found.
Datastore not found.
2013-01-15 21:01:23 -- info: Initiate backup for Trixbox-VM
\ specified for Trixbox-VMo: ERROR: wrong DISK_BACKUP_FORMAT "thin
'ead: invalid number '3
2013-01-15 21:01:23 -- info: Backup Duration: 0 Seconds
2013-01-15 21:01:23 -- info: ERROR: Unable to backup Trixbox-VM due to error in VMDK backup!
/Trixbox-VM/Trixbox-VM-2013-01-15_21-01-19/STATUS.error: nonexistent directory
2013-01-15 21:01:23 -- info: Powering on initiated for
Insufficient arguments.
2013-01-15 21:01:24 -- info: VM is powerdOn
2013-01-15 21:01:24 -- info: ###### Final status: ERROR: No VMs backed up! ######
2013-01-15 21:01:24 -- info: ============================== ghettoVCB LOG END ================================

This line confuses me:

\ specified for Trixbox-VMo: ERROR: wrong DISK_BACKUP_FORMAT "thin

'ead: invalid number '3
Reply
0 Kudos
lamw
Community Manager
Community Manager

I can see one issue:

2013-01-15 21:01:19 -- info: CONFIG - VM_BACKUP_VOLUME = /Backups

That should be the FULL PATH like /vmfs/volumes/datastore1/Backups

Make sure you carefully go over the ghettoVCB documentation as it provides several examples: http://communities.vmware.com/docs/DOC-8760

Reply
0 Kudos
wpforum
Contributor
Contributor

Thank you for your answer. But sadly it didn't help. "/Backups" is the full absolute path to the backup directory. I tried to create a "Backups" directory in datastore2, similiar to the one in your example but the same error message appeared:

/ghettoVCB # ./ghettoVCB.sh -f vms_to_backup -g ghettoVCB.conf
Logging output to "/tmp/ghettoVCB-2013-01-16_22-14-33-500386.log" ...
2013-01-16 22:14:33 -- info: ============================== ghettoVCB LOG START                             ==============================
2013-01-16 22:14:33 -- info: CONFIG - USING GLOBAL GHETTOVCB CONFIGURATION FILE                             = ghettoVCB.conf
2013-01-16 22:14:33 -- info: CONFIG - VERSION = 2013_01_11_0
2013-01-16 22:14:33 -- info: CONFIG - GHETTOVCB_PID = 500386
2013-01-16 22:14:33 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/datastore                            2/Backups
2013-01-16 22:14:33 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3
2013-01-16 22:14:33 -- info: CONFIG - VM_BACKUP_DIR_NAMING_CONVENTION = 2013-01-                            16_22-14-33
2013-01-16 22:14:33 -- info: CONFIG - DISK_BACKUP_FORMAT = thin
2013-01-16 22:14:33 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
2013-01-16 22:14:33 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0
2013-01-16 22:14:33 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 4
2013-01-16 22:14:33 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5
2013-01-16 22:14:33 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15
2013-01-16 22:14:33 -- info: CONFIG - LOG_LEVEL = info
2013-01-16 22:14:33 -- info: CONFIG - BACKUP_LOG_OUTPUT = /tmp/ghettoVCB-2013-01                            -16_22-14-33-500386.log
2013-01-16 22:14:33 -- info: CONFIG - ENABLE_COMPRESSION = 0
2013-01-16 22:14:33 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0
2013-01-16 22:14:33 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
2013-01-16 22:14:33 -- info: CONFIG - ALLOW_VMS_WITH_SNAPSHOTS_TO_BE_BACKEDUP =                             0
2013-01-16 22:14:33 -- info: CONFIG - VMDK_FILES_TO_BACKUP = all
2013-01-16 22:14:33 -- info: CONFIG - VM_SHUTDOWN_ORDER =
2013-01-16 22:14:33 -- info: CONFIG - VM_STARTUP_ORDER =
2013-01-16 22:14:33 -- info: CONFIG - EMAIL_LOG = 0
2013-01-16 22:14:33 -- info:
2013-01-16 22:14:37 -- info: Initiate backup for Trixbox-VM
\ specified for Trixbox-VM wrong DISK_BACKUP_FORMAT "thin
'ead: invalid number '3
2013-01-16 22:14:37 -- info: Backup Duration: 0 Seconds
2013-01-16 22:14:37 -- info: ERROR: Unable to backup Trixbox-VM due to                             error in VMDK backup!
/Trixbox-VM/Trixbox-VM-2013-01-16_22-14-33/STATUS.error: nonex                            istent directory
2013-01-16 22:14:37 -- info: ###### Final status: ERROR: No VMs backed up! #####                            #
2013-01-16 22:14:37 -- info: ============================== ghettoVCB LOG END ==                            ==============================

I followed the instructions in the documentation but it's pretty much the same like before. The download link, which is provided in the documentation, led me here, where it says "There aren't any uploads for this repository.". So i just went to the root folder of this repository and i clicked on the github zip link.

That's the only difference to my procedure.

Am i the only one with this problem?

Reply
0 Kudos
lamw
Community Manager
Community Manager

Did you transfer the zip file to your ESXi host and then unzip or did you unzip and then copied the files over?

Reply
0 Kudos
wpforum
Contributor
Contributor

I tried both.

What i forgot to mention is that i needed to run this command to make the ghettoVCB.sh runable:

chmod +x ghettoVCB.sh

Otherwise i get a "Permission denied." error.

Reply
0 Kudos
wpforum
Contributor
Contributor

When i try the same with ESXi 5.0 it looks like this:

/ghettoVCB-master # ./ghettoVCB.sh -f vms_to_backup -g /ghettoVCB-master/ghettoVCB.conf
Logging output to "/tmp/ghettoVCB-2013-01-17_16-11-19-5494273.log" ...
2013-01-17 16:11:20 -- info: ============================== ghettoVCB LOG START ==============================
2013-01-17 16:11:20 -- info: CONFIG - USING GLOBAL GHETTOVCB CONFIGURATION FILE = /ghettoVCB-master/ghettoVCB.conf
2013-01-17 16:11:20 -- info: CONFIG - VERSION = 2013_01_11_0
2013-01-17 16:11:20 -- info: CONFIG - GHETTOVCB_PID = 5494273
2013-01-17 16:11:20 -- info: CONFIG - VM_BACKUP_VOLUME = /vmfs/volumes/datastore1/Backups
2013-01-17 16:11:20 -- info: CONFIG - VM_BACKUP_ROTATION_COUNT = 3
2013-01-17 16:11:20 -- info: CONFIG - VM_BACKUP_DIR_NAMING_CONVENTION = 2013-01-17_16-11-19
2013-01-17 16:11:20 -- info: CONFIG - DISK_BACKUP_FORMAT = thin
2013-01-17 16:11:20 -- info: CONFIG - POWER_VM_DOWN_BEFORE_BACKUP = 0
2013-01-17 16:11:20 -- info: CONFIG - ENABLE_HARD_POWER_OFF = 0
2013-01-17 16:11:20 -- info: CONFIG - ITER_TO_WAIT_SHUTDOWN = 3
2013-01-17 16:11:20 -- info: CONFIG - POWER_DOWN_TIMEOUT = 5
2013-01-17 16:11:20 -- info: CONFIG - SNAPSHOT_TIMEOUT = 15
2013-01-17 16:11:20 -- info: CONFIG - LOG_LEVEL = info
2013-01-17 16:11:20 -- info: CONFIG - BACKUP_LOG_OUTPUT = /tmp/ghettoVCB-2013-01-17_16-11-19-5494273.log
2013-01-17 16:11:20 -- info: CONFIG - ENABLE_COMPRESSION = 0
2013-01-17 16:11:20 -- info: CONFIG - VM_SNAPSHOT_MEMORY = 0
2013-01-17 16:11:20 -- info: CONFIG - VM_SNAPSHOT_QUIESCE = 0
2013-01-17 16:11:20 -- info: CONFIG - ALLOW_VMS_WITH_SNAPSHOTS_TO_BE_BACKEDUP = 0
2013-01-17 16:11:20 -- info: CONFIG - VMDK_FILES_TO_BACKUP = all
2013-01-17 16:11:20 -- info: CONFIG - VM_SHUTDOWN_ORDER =
2013-01-17 16:11:20 -- info: CONFIG - VM_STARTUP_ORDER =
2013-01-17 16:11:20 -- info: CONFIG - EMAIL_LOG = 0
2013-01-17 16:11:20 -- info:
, backup will not begin until VM is off...initiated for
Insufficient arguments.
2013-01-17 16:11:22 -- info: VM is powerdOff
2013-01-17 16:11:26 -- info: Initiate backup for xp-test
2013-01-17 16:11:26 -- info: Creating Snapshot "ghettoVCB-snapshot-2013-01-17" for xp-test
./ghettoVCB.sh: line 28: syntax error: SNAPSHOT_TIMEOUT*60
Reply
0 Kudos
wpforum
Contributor
Contributor

Do you have an idea?

I really followed the documentation step by step and it won't work. What are the possibilities which could cause the problem?

And where should i extract the zip file? Right now it's in the root folder of the ESXi server.

I appreciate your help. Thank you.

Reply
0 Kudos
wpforum
Contributor
Contributor

I think, that this script works only with a paid license of VMware vSphere.

Is there anyone, who succeded with the Hypervisor license?

If so, was ESXi installed clean or was it updated?

I'm looking for a possible cause of the problem, couldn't be that hard, right?

Reply
0 Kudos
JarryG
Expert
Expert

I just tested it on my 5.1 Hypervisor (free), works without any problem. Try starting with "-d debug" for more info...

_____________________________________________ If you found my answer useful please do *not* mark it as "correct" or "helpful". It is hard to pretend being noob with all those points! :winking_face:
Reply
0 Kudos