4 Replies Latest reply on Apr 13, 2014 8:45 AM by wila

    Unable to backup certain VM's due snapshot is being found

    azkerm Novice

      Hi There,

       

      I'm using ghettoVCB to backup VM's to my NAS & after a certain period some of the VM's are not been backed-up. So I had a look into the script and went through a dry run which gave me below output;

      /vmfs/volumes/4e7a4edb-08851e40-0c1e-1cc1de700f23/utils/ghettoVCB # ./ghettoVCB.sh -f vm_list.back  -d dryrun

      2014-04-12 12:15:46 -- dryrun: ###############################################

      2014-04-12 12:15:46 -- dryrun: Virtual Machine: GATEWAY

      2014-04-12 12:15:46 -- dryrun: VM_ID: 7

      2014-04-12 12:15:46 -- dryrun: VMX_PATH: /vmfs/volumes/datastore1/GATEWAY ( 192.168.0.1 )/GATEWAY ( 192.168.0.1 ).vmx

      2014-04-12 12:15:46 -- dryrun: VMX_DIR: /vmfs/volumes/datastore1/GATEWAY ( 192.168.0.1 )

      2014-04-12 12:15:46 -- dryrun: VMX_CONF: GATEWAY ( 192.168.0.1 )/GATEWAY ( 192.168.0.1 ).vmx

      2014-04-12 12:15:46 -- dryrun: VMFS_VOLUME: datastore1

      2014-04-12 12:15:46 -- dryrun: VMDK(s):

      2014-04-12 12:15:46 -- dryrun: GATEWAY ( 192.168.0.1 )-000001.vmdk 50 GB

      2014-04-12 12:15:46 -- dryrun: INDEPENDENT VMDK(s):

      2014-04-12 12:15:46 -- dryrun: TOTAL_VM_SIZE_TO_BACKUP: 50 GB

      2014-04-12 12:15:46 -- dryrun: Snapshots found for this VM, please commit all snapshots before continuing!

      2014-04-12 12:15:46 -- dryrun: THIS VIRTUAL MACHINE WILL NOT BE BACKED UP DUE TO EXISTING SNAPSHOTS!

      2014-04-12 12:15:46 -- dryrun: ###############################################

      So I went into the vSphere login and had a looked into the VM's to see whether any snapshots are actually taken. But there were none, and I assumed this is due to certain files being left when script runs. Viola!! I found those delta files within the VM directory. Seen below is the output;

      /vmfs/volumes/4e7a4edb-08851e40-0c1e-1cc1de700f23/GATEWAY ( 192.168.0.1 ) # ls -l

      -rw-------    1 root     root           33660928 Mar 22 03:53 GATEWAY ( 192.168.0.1 )-000001-delta.vmdk

      -rw-------    1 root     root                358 Mar 22 02:45 GATEWAY ( 192.168.0.1 )-000001.vmdk

      -rw-------    1 root     root              31741 Mar 22 02:45 GATEWAY ( 192.168.0.1 )-Snapshot1088.vmsn

      -rw-r--r--    1 root     root                 23 Mar  5  2012 GATEWAY ( 192.168.0.1 )-f9e7a482.hlog

      -rw-------    1 root     root        53687091200 Mar 22 02:45 GATEWAY ( 192.168.0.1 )-flat.vmdk

      -rw-------    1 root     root               8684 Mar 22 02:45 GATEWAY ( 192.168.0.1 ).nvram

      -rw-------    1 root     root                515 Mar 21 06:28 GATEWAY ( 192.168.0.1 ).vmdk

      -rw-r--r--    1 root     root                498 Apr 12 04:50 GATEWAY ( 192.168.0.1 ).vmsd

      -rwxr-xr-x    1 root     root               3626 Apr 12 04:50 GATEWAY ( 192.168.0.1 ).vmx

      -rw-r--r--    1 root     root               2862 Mar 12 07:28 GATEWAY ( 192.168.0.1 ).vmxf

      -rw-r--r--    1 root     root              44715 Mar 29 10:01 vmware-41.log

      -rw-r--r--    1 root     root              44666 Apr  5 07:08 vmware-42.log

      -rw-r--r--    1 root     root              44664 Apr  5 10:07 vmware-43.log

      -rw-r--r--    1 root     root              44712 Apr  8 05:20 vmware-44.log

      -rw-r--r--    1 root     root              44668 Apr  8 15:39 vmware-45.log

      -rw-r--r--    1 root     root              44693 Apr  9 06:34 vmware-46.log

      -rw-r--r--    1 root     root              44673 Apr 12 04:50 vmware.log

      -rw-------    1 root     root           47185920 Mar  5  2012 vmx-GATEWAY ( 192.168.0.1 )-4192707714-2.vswp

       

      That's the max I can go for and I do not wanted to delete nor modify anything. What can I do to overcome this issue??

        • 1. Re: Unable to backup certain VM's due snapshot is being found
          wila Guru
          Community WarriorsvExpertUser Moderators

          Hi,

           

          The script is correct, you have snapshot files down there.

          From within vSphere Client or web client choose "Consolidate" to get rid of them and not change your VM.

           

          --

          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
          • 2. Re: Unable to backup certain VM's due snapshot is being found
            pasci Novice

            Hello

             

            Other solution can be to:

            1. Create a snapshot for this VM
            2. After that remove the snapshot through the button to "remove ALL snapshots"
            3. After that for my everything works fine (no snapshot/delta files any more).

             

            I have issue some months before. With the steps above the problem was solved for me.

             

            Pascal

            • 3. Re: Unable to backup certain VM's due snapshot is being found
              azkerm Novice

              Hi There,

               

              Thank you for taking to time to answer. Well, I actually tried doing both consolidating and also taking a snapshot, then removing them all. It failed with an general I/O error though I can still turn on the VM.

               

              Please confirm me, If I'm suppose to create a new VM using an existing backup what should I do?? Because, the backup contains only a .vmx & a .vmdk file... Beside, that .vmx file has certain information linked to the original VM location.. does that mean that I have to edit nor do any changes??

              • 4. Re: Unable to backup certain VM's due snapshot is being found
                wila Guru
                vExpertUser ModeratorsCommunity Warriors

                Hi,

                 

                In general the advise is to not hand edit the vmx file unless you know exactly what you are doing.

                 

                Normally a "general I/O error" means your underlying storage has a hardware problem. I would investigate that part first, check your logs.

                 

                If you can't take a proper backup using vGhetto, copy everything that is of value for you from within the VM so long as it still works.

                 

                --

                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