#1 2018-10-25 22:50:26

newmember
Member
Registered: 2018-10-15
Posts: 34

remote esxi server backup fails

Good day,

Not sure what to make of the log events of a new backup config for a remote esxi server.


"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-prog=OneDiff \
--host=10.240.100.41:22 \
--backup-point=10.240.100.41:22:"/vmfs/volumes/Archive" \
--backup-type=Running \
--backup-how=Hot \
--use-smtp=1 \
--mail-to=USER@DMAIN.com,USER1@DOMAIN.com \
--backup-id=041 \
--description="esxi041oneDiffBackup" \
--subject="esxi041 Backup" \
--exec=yes >> "/vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log"






---------------------------------------------------------------------------------------------------------------------------------
2018-10-25T22:41:35|  ###############################################################################
2018-10-25T22:41:35|     XSIBACKUP-PRO 11.1.1: new execution request
2018-10-25T22:41:35|  ###############################################################################
2018-10-25T22:41:35|
2018-10-25T22:41:35|  Info: XSIBACKUP-PRO will now try to determine the remote's XSIBACKUP-PRO installation point...
2018-10-25T22:41:35|  Tip: should this process take too long, use the --remote-xsipath argument to set it per backup job
---------------------------------------------------------------------------------------------------------------------------------
2018-10-25T22:41:39|  Found more than one remote (c) XSIBackup installation dir at [10.240.100.41]
2018-10-25T22:41:39|  Using hardcoded var at conf/xsiopts [xsidefaultpath] as remote path.
2018-10-25T22:41:39|  Remote xsi path set to: /vmfs/volumes/datastore1/xsi-dir
---------------------------------------------------------------------------------------------------------------------------------
2018-10-25T22:41:39|  Preparing to execute backup in remote server: 10.240.100.41:22
---------------------------------------------------------------------------------------------------------------------------------
Copying file xsibackup to remote server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File EULA already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File bin/xsidiff already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File bin/xsibackup-rsync already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File bin/pv already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File src/functions already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File src/mapblocks already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File src/onediff already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File src/sendmail already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File src/xsitools already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File src/api already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File src/version already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
Copying file src/pro/host to remote server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File src/pro/borg already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File src/pro/certify already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File src/pro/custimgs already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File src/pro/esxbackup already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File src/pro/events already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File src/pro/vmsregexp already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File src/pro/onediff already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File src/pro/onediffcert already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File src/pro/restore already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File src/pro/smartinfo already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File src/pro/xsitoolschk already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File conf/smtpsrvs already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
File conf/xsiopts already present at server 10.240.100.41
---------------------------------------------------------------------------------------------------------------------------------
Executing remote backup on 10.240.100.41:22
Saving log locally to => /vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup-10.240.100.41.log
---------------------------------------------------------------------------------------------------------------------------------
Remote command is:
--backup-prog=OneDiff --host=10.240.100.41:22 --backup-point=10.240.100.41:22:/vmfs/volumes/Archive --backup-type=Running --backup-how=Hot --use-smtp=1 --mail-to=USER@DOMAIN.com,USER1@DOMAIN.com --backup-id=041 --description=esxi041oneDiffBackup --subject=esxi041 Backup --exec=yes
---------------------------------------------------------------------------------------------------------------------------------
Session Id: zjvizjyzotatn2e5ns0xmwuwlwe3zjetnwnmm2zjmwq3mzy4mtu0mduwnzi5mgo
---------------------------------------------------------------------------------------------------------------------------------
2018-10-25T22:42:29|  Remote backup job exit status was:
---------------------------------------------------------------------------------------------------------------------------------
2018-10-25T22:42:29|  Original Unique Id (OUID):
---------------------------------------------------------------------------------------------------------------------------------
2018-10-25T22:42:29|  Cannot match current Session Id to parsed OUID var
---------------------------------------------------------------------------------------------------------------------------------

Offline

#2 2018-10-26 15:20:40

admin
Administrator
Registered: 2017-04-21
Posts: 1,385

Re: remote esxi server backup fails

Before anything else, upgrade to the latest version, there has been some bug fixes. Use the script online, it will keep your configuration files and jobs. Copy those folders out of the server, if you will, to have a backup, just in case.

You have different problems here:

1 - You have XSIBackup installed to more than one point and this is confusing the program. Remove any leftover and keep one single installation dir. You should be tidy: per instance, keep a uniform path accross all servers, the default one if possible (/vmfs/volumes/datastore1/xsi-dir). If you can't keep the default paths, you must be aware of the fact that you should change the xsidefaultpath as stated in the warning message below.

2018-10-25T22:41:39|  Found more than one remote (c) XSIBackup installation dir at [10.240.100.41]
2018-10-25T22:41:39|  Using hardcoded var at conf/xsiopts [xsidefaultpath] as remote path.
2018-10-25T22:41:39|  Remote xsi path set to: /vmfs/volumes/datastore1/xsi-dir

Taking on account that you are running a remote job via the --host argument, you can just wipe every remote xsi-dir folder and let XSIBackup create it for you, again according to the xsidefaultpath variable in the conf/xsiopts file. Note that you can also parse this variable in your backup job.

2 - You have not understood how the program works in regards to remote execution of jobs. You are parsing this in your job:

--host=10.240.100.41:22 --backup-point=10.240.100.41:22:/vmfs/volumes/Archive

Which literally means that you are going to run the job at server 10.240.100.41 which has SSH service running on port 22 and then, the job running there, will send the backup to the 10.240.100.41:22:/vmfs/volumes/Archive datastore in the same IP and port.

The above does not make much sense, as you are running the job in 10.240.100.41, the /vmfs/volumes/Archive datastore is local to it, so the --backup-point should be just --backup-point=/vmfs/volumes/Archive

Offline

#3 2018-10-31 17:05:18

newmember
Member
Registered: 2018-10-15
Posts: 34

Re: remote esxi server backup fails

Thanks for the feedback

This was interesting that the 'datastore1' was actually on a NAS and was shared between two esxi hosts.  We have corrected that now.
Thanks for the tip on backup locations.

Cheers

Offline

Board footer