Menu

cron says that No VMs to backup

2017-04-10
2017-04-10
  • Pavel Helmer

    Pavel Helmer - 2017-04-10

    Install Xsibackup 9.0.1 free, on ESXi 6 U2
    Works fine, but in one moment it start to write like this

    #####################################################################################
    #                                                                                   #
    #  (c) XSIBACKUP-FREE 9.0.1 | Backup for (c) VMWARE ESXi Hypervisor by 33hops.com   #
    #                                                                                   #
    #####################################################################################
    
    XSIBackup PID: 7677433                                                    esxi.local
    Mon, 10 Apr 2017 00:00:10 +0000                                              IPv4: /
    VMware ESXi 6.0.0 build-3620759                   (c) Rsync 3.1.0 as opt. dependency
    
    ---------------------------------------------------------------------------------------------------------------------------------
    2017-04-10T00:00:17|  Found --backup-point at [ /vmfs/volumes/2tb/backup-esxi ]
    ---------------------------------------------------------------------------------------------------------------------------------
    2017-04-10T00:00:17|  Getting list of all VMs...
    ---------------------------------------------------------------------------------------------------------------------------------
    ---------------------------------------------------------------------------------------------------------------------------------
    2017-04-10T00:00:21|  No VMs to backup
    

    but if i start manually from command line - all works ok.

    #####################################################################################
    #                                                                                   #
    #  (c) XSIBACKUP-FREE 9.0.1 | Backup for (c) VMWARE ESXi Hypervisor by 33hops.com   #
    #                                                                                   #
    #####################################################################################
    
    XSIBackup PID: 7784567                                                    esxi.local
    Mon, 10 Apr 2017 09:04:52 +0000                     IPv4: 192.168.0.10/255.255.255.0
    VMware ESXi 6.0.0 build-3620759                   (c) Rsync 3.1.0 as opt. dependency
    
    -----------------------------------------------------------------------------------------------------------------------------------------------------
    Found --backup-point at [ /vmfs/volumes/2tb/backup-esxi ]
    -----------------------------------------------------------------------------------------------------------------------------------------------------
    Getting list of all VMs...
    -----------------------------------------------------------------------------------------------------------------------------------------------------
    9      test            [2tb-hdd1] test/test.vmx                     ubuntu64Guest   vmx-11
    -----------------------------------------------------------------------------------------------------------------------------------------------------
    VMs to backup:
    -----------------------------------------------------------------------------------------------------------------------------------------------------
    9      test   [2tb-hdd1] test/test.vmx   ubuntu64Guest   vmx-11
    -----------------------------------------------------------------------------------------------------------------------------------------------------
    Needed room: 14 Gb.
    Available room: 1578 Gb.
    -----------------------------------------------------------------------------------------------------------------------------------------------------
    Excerpt
    -----------------------------------------------------------------------------------------------------------------------------------------------------
    Hot backup selected for VM: [test], will not be switched off
    -----------------------------------------------------------------------------------------------------------------------------------------------------
    Test mode activated VMs will not be cloned, please remove --test-mode=true to allow backups
    -----------------------------------------------------------------------------------------------------------------------------------------------------
    No errors detected in backup
    -----------------------------------------------------------------------------------------------------------------------------------------------------
    

    Also i see that IPv4 address not resolved in cron job. But in cli - all ok

    Any ideas? Thanks!

     

    Last edit: Pavel Helmer 2017-04-10
  • 33HOPS

    33HOPS - 2017-04-10

    Please, post the cron, the manual backup job and any relevant information that helps to describe your case.

    Remember that XSIBackup has to work under the root security context.

     
  • Pavel Helmer

    Pavel Helmer - 2017-04-10
    Post awaiting moderation.
  • 33HOPS

    33HOPS - 2017-04-10

    The only VM that showed up in your initial post is called "test" not "sdh_prod_test"

     
  • Pavel Helmer

    Pavel Helmer - 2017-04-10

    "test" and "sdh_prod_test" are same VMs i cut name when copy to post (think that will be better for read) ))

     
  • 33HOPS

    33HOPS - 2017-04-10

    It seems pretty clear that the VM was not there when the crontab called XSIBackup execution. Are you using DRS?. Is any vCenter controlling which host is a particular VM assigned to?.

     

    Last edit: 33HOPS 2017-04-10
  • Pavel Helmer

    Pavel Helmer - 2017-04-10

    No there are no any vCenter, only ESXi with web ui. DRS no used,
    only nfs

     

    Last edit: Pavel Helmer 2017-04-10
  • Pavel Helmer

    Pavel Helmer - 2017-04-11

    hm. this night job cron working ok. I'm confused. (((

     
  • 33HOPS

    33HOPS - 2017-04-11

    The fact that in the first log that you published, XSIBackup was not able to grab the IP/Mask from your shell environment, leads me to think there is something wrong in that box. And not only that; it's not that XSIBackup was not able to detect the VMs to backup, in fact it wasn't able to detect a single VM in that host. XSIBackup uses a very simple vim-cmd vmsvc/getallvms, if that fails, something is wrong. So, check that your storage is there all the time and look for errors in your ESXi's logs.

     
  • Pavel Helmer

    Pavel Helmer - 2017-04-12

    ok. thank you.
    Also today at night cron job works ok.
    Maybe i had problem in cron. Because two days before i restart cron on ESXi node.

     

Log in to post a comment.