4 Replies Latest reply on Oct 31, 2013 12:59 PM by scowse

    error unable to backup due to error in vmdk backup

    brondulf Lurker

      Hello!

       

       

      I've recently set up backups for my ESX VMs using GhettoVCB and a NFS server to store my backups and it works perfectly on all ESX server but one (esx 5.1)

      This server runs 4 vms on two datastores. I can backup two VMs which are on the same datastore without any error message but for the two other Vms, on the second datastore, I get the error message "error unable to backup "VM name" due to error in vmdk backup"

       

       

      I thought, ok it runs fine on the other datastore, so maybe it's a problem with the datastore... so I created a test VM on the same datastore where backup fails and this test backup succeeded...

       

      I haven't found much information regarding this issue, so I'm interested in any suggestion you could provide!

       

      I tried all DISK_BACKUP_FORMAT option but to no avail...

       

       

       

       

       

      Here's a sample of my ghettoVCB.sh file:


       

      # directory that all VM backups should go (e.g. /vmfs/volumes/SAN_LUN1/mybackupdir)

      #VM_BACKUP_VOLUME=/vmfs/volumes/mini-local-datastore-2/backups

      VM_BACKUP_VOLUME=/vmfs/volumes/backup  

       

      # Format output of VMDK backup

      # zeroedthick

      # 2gbsparse

      # thin

      # eagerzeroedthick

      DISK_BACKUP_FORMAT=thin

       

      # Number of backups for a given VM before deleting

      VM_BACKUP_ROTATION_COUNT=2

       

      # Shutdown guestOS prior to running backups and power them back on afterwards

      # This feature assumes VMware Tools are installed, else they will not power down and loop forever

      # 1=on, 0 =off

      POWER_VM_DOWN_BEFORE_BACKUP=0

       

      # enable shutdown code 1=on, 0 = off

      ENABLE_HARD_POWER_OFF=0

       

      # if the above flag "ENABLE_HARD_POWER_OFF "is set to 1, then will look at this flag which is the # of iterations

      # the script will wait before executing a hard power off, this will be a multiple of 60seconds

      # (e.g) = 3, which means this will wait up to 180seconds (3min) before it just powers off the VM

      ITER_TO_WAIT_SHUTDOWN=3

       

      # Number of iterations the script will wait before giving up on powering down the VM and ignoring it for backup

      # this will be a multiple of 60 (e.g) = 5, which means this will wait up to 300secs (5min) before it gives up

      POWER_DOWN_TIMEOUT=5

       

      # enable compression with gzip+tar 1=on, 0=off

      ENABLE_COMPRESSION=0

       

      # Include VMs memory when taking snapshot

      VM_SNAPSHOT_MEMORY=0

       

      # Quiesce VM when taking snapshot (requires VMware Tools to be installed)

      VM_SNAPSHOT_QUIESCE=0

       

      # Allow VMs with snapshots to be backed up, this WILL CONSOLIDATE EXISTING SNAPSHOTS!

      ALLOW_VMS_WITH_SNAPSHOTS_TO_BE_BACKEDUP=0

       

      ##########################################################

      # NON-PERSISTENT NFS-BACKUP ONLY

      #

      # ENABLE NON PERSISTENT NFS BACKUP 1=on, 0=off

       

      ENABLE_NON_PERSISTENT_NFS=0

       

      # umount NFS datastore after backup is complete 1=yes, 0=no

      UNMOUNT_NFS=0

       

      # IP Address of NFS Server

      NFS_SERVER=192.168.4.91

      # Path of exported folder residing on NFS Server (e.g. /some/mount/point )

      NFS_MOUNT=/backup

       

      # Non-persistent NFS datastore display name of choice

      NFS_LOCAL_NAME=backup-ESX1

       

      # Name of backup directory for VMs residing on the NFS volume

      NFS_VM_BACKUP_DIR=mybackups

       

      ##########################################################

      # EMAIL CONFIGURATIONS

      #

       

      # Email log 1=yes, 0=no

      EMAIL_LOG=1

       

      # Email Delay Interval from NC (netcat) - default 1

      EMAIL_DELAY_INTERVAL=1

       

      # Email SMTP server

      EMAIL_SERVER=mail.xxxxx.com

       

      # Email SMTP server port

      EMAIL_SERVER_PORT=25

       

      # Email FROM

      EMAIL_FROM=root@ghettoVCB

       

      # Email RCPT

      EMAIL_TO=my email@

       

      # Comma separated list of VM startup/shutdown ordering

      VM_SHUTDOWN_ORDER=

      VM_STARTUP_ORDER=

       

      # DO NOT USE - UNTESTED CODE

      # Path to another location that should have backups rotated,

      # this is useful when your backups go to a temporary location

      # then are rsync'd to a final destination. You can specify the final

      # destination as the ADDITIONAL_ROTATION_PATH which will be rotated after

      # all VMs have been restarted

      ADDITIONAL_ROTATION_PATH=

       

      ############################

      ######### DEBUG ############

      ############################

       

      # Do not remove workdir on exit: 1=yes, 0=no

      WORKDIR_DEBUG=0

       

      ########################## DO NOT MODIFY PAST THIS LINE ##########################

        • 1. Re: error unable to backup due to error in vmdk backup
          brondulf Lurker

          Still the same error:

           

           

          Clone: 86% done.

          2013-10-28 11:10:14 -- info: ERROR: error in backing up of "/vmfs/volumes/datastore1/TESTVM/TESTVM.vmdk" for TESTVM

          2013-10-28 11:10:21 -- info: Removing snapshot from TESTVM ...

          2013-10-28 11:10:21 -- info: Backup Duration: 42.33 Minutes

          2013-10-28 11:10:21 -- info: ERROR: Unable to backup TESTVM due to error in VMDK backup!

           

          2013-10-28 11:10:21 -- info: ###### Final status: ERROR: No VMs backed up! ######

           

           

          Any idea? -d debug doesn't give much information regarding the cause of the problem...

          • 2. Re: error unable to backup due to error in vmdk backup
            wila Guru
            Community WarriorsvExpertUser Moderators

            Hi,

             

            Well this part of the error log:

             

            Clone: 86% done.

            2013-10-28 11:10:14 -- info: ERROR: error in backing up of "/vmfs/volumes/datastore1/TESTVM/TESTVM.vmdk" for TESTVM

             

            Seems to be telling me that you have some sort of hardware or configuration problem, if the backup stops at 86% then that's not a good thing.

             

            vGhetto uses the standard vmkfstools command from ESXi itself to clone the data, so you'll have to run more elimination tests to figure out where the problem lies. It might be something to do with your NFS setup, network setup, underlying disks of your local datastorage.

             

            Hope this helps,

            --

            Wil

            | Author of Vimalin. The virtual machine Backup app for VMware Desktop Products
            | Vimalin : Automated backups for VMware Fusion and VMware Workstation Professional
            | More info at https://www.vimalin.com
            | Twitter @wilva
            | VMware Wiki at http://www.vi-toolkit.com
            • 3. Re: error unable to backup due to error in vmdk backup
              brondulf Lurker

              thanks for your answer. I thought about a hardware error since both vms are on the same disk and the vms on the other disk have no issue at all but as I said i tried creating a vm on that same datastore and could back it up without that error. I really don't know what the problem is...fortunately these are not critical vms and i can save .conf files aside still I wish I knew the cause of the problem...

              • 4. Re: error unable to backup due to error in vmdk backup
                scowse Enthusiast

                In my experience this error message, whilst a trifle misleading, is almost always due to hdd space on the backup datastore.

                There are many threads here about the need to have double the free space required for your largest .vmdk to allow for the temp copy.