#1 2018-11-03 00:36:49

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

vm onediffbackup error

Last error raised for the above VM:
ERROR CLVMKFS1, details: [QL2008] error: vmkfstools error, details: Failed to clone disk: The file already exists (39).


Thoughts

Thanks
Chris

Offline

#2 2018-11-03 15:09:05

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

Re: vm onediffbackup error

You are trying to overwrite an already existing .vmdk file with Vmkfstools.
The source of the problem could also be the fact that you are pointing to an invalid --backup-point path

https://communities.vmware.com/thread/115543

Offline

#3 2018-11-06 03:39:30

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

Re: vm onediffbackup error

This is odd to me,  I created the the job, ran the job and then when the cron runs the same job runs into problems.

When I run the job the first time everything is fine.
When the cron runs all these job errors appear.

Offline

#4 2018-11-07 22:11:08

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

Re: vm onediffbackup error

XSIBackup is a mature project, many people use it and --backup-prog=Vmkfstools is the simplest type of backup. Nobody else seems to have this problem. In your case it could be due to some other process being holding the target .vmdk file, but for that to happen you must be overlapping jobs or accessing that file some other way.

Follow this procedure:

- Make sure your host is correctly configured, remove any eventual ghost VMs (deleted from disk but not unregistered) and any dead storage too.
- Connect via SCP and backup your install folder (xsi-dir).
- Remove XSIBackup from your system: https://33hops.com/xsibackup-uninstall-procedure.html
- Kill any eventual remaining zombie processes in memory

OLDIFS=$IFS;IFS=";";for job in $(ps -c | grep xsi | awk '{print $1}' | \
sed -e ':a;N;$!ba;s/\n/;/g');do kill -9 $job 2>/dev/null;done;IFS=$OLDIFS

- Install from scratch using the User Area ( https://33hops.com/user-access.html ) installation script, read the output carefully and install to the default location. You need datastore /vmfs/volumes/datastore1 present to be able to perform a default installation.
- Add an SMTP server using the GUI. To invoke the GUI just call xsibackup file with no arguments (./xsibackup)
- Run this simple backup job.

./xsibackup --backup-prog=Vmkfstools --backup-type=running --backup-point=/vmfs/volumes/backup_ds \
--use-smtp=1 --mail-to=your@email.com

- Once you know it's working add it to the jobs/ folder by appending --save-job to the job string and pressing enter.

./xsibackup --backup-prog=Vmkfstools --backup-type=running --backup-point=/vmfs/volumes/backup_ds \
--use-smtp=1 --mail-to=your@email.com --save-job

Replace by your own --backup-point and e-mail address. In case you still have problems, paste the full output and the backup job so that we have some more information.

Offline

Board footer