Will take a look at this and reach you back...
Can you post your list of arguments?
Try to make room manually on the backup disk.
There is nothing in XSIBackup's design that can cause the script to jump back from
"Attempting to make room at /vmfs/volumes/backup in local server"
To start listing the VMs again, so I asume it has to do something with your setup. Please try to execute the backup command set in your xsibackup-cron file manually and see if you get the same behaviour.
Last edit: 33HOPS 2015-01-04
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Same same when i try to do it manually :(
i will delete som backups and see if the prob will appear again...
~ # /vmfs/volumes/datastore1/xsibackup --backup-point=/vmfs/volumes/backup --bac
kup-type=running
Mon, 05 Jan 2015 07:21:16 +0000
Found --backup-point at /vmfs/volumes/backup
The e-mail report will not be sent becouse of the followig reasons:
The --mail-from string has not been set.
The --mail-to string has not been set.
The --smtp-srv string has not been set.
The --smtp-usr string has not been set, you need --smtp-usr if --smtp-auth is other than -none-.
The --smtp-pwd string has not been set, you need --smtp-pwd if --smtp-auth is other than -none-.
Getting list of all VMs...
1 Server01 [datastore1] Server01/Server01.vmx windows8Server64Guest vmx-08
VMs to backup:
1 Server01 [datastore1] Server01/Server01.vmx windows8Server64Guest vmx-08
Needed room: 807 Gb.
Available room: 793 Gb.
Not enough room to make the backup, some older folders will be deleted.
Hot backup selected for VM: Server01 will not be switched off
Attempting to make room at /vmfs/volumes/backup in local server
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
DAMN it also woundn't runn if i do the cleaning manually... he can't create the new folder... and givs the error path does not exist... :(
creating a folder manully on this backupdrive works...
Getting list of all VMs...
1 Server01 [datastore1] Server01/Server01.vmx windows8Server64Guest vmx-08
VMs to backup:
1 Server01 [datastore1] Server01/Server01.vmx windows8Server64Guest vmx-08
Needed room: 807 Gb.
Available room: 816 Gb.
Hot backup selected for VM: Server01 will not be switched off
All snapshots removed for Server01
cp: can't create '/vmfs/volumes/backup/20150105072902/Server01/Server01.vmx': Path does not exist
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/5334ceda-b3f377e0-eb8e-645106f94abc/Server01/Server01.vmdk'...
~ # l snapshots removed for Server01
-sh: l: not found
~ # cp: can't create '/vmfs/volumes/backup/20150105072902/Server01/Server01.vmx'
: Path does not exist
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/5334ceda-b3f377e0-eb8e-645106f94abc/Server01/Serve
r01.vmdk'...
Last edit: mbosshard 2015-01-05
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
Happy new year to all!
Thank you Daniel for the excellent script!
I have the same problem!
And I know where the problem is!
This script use this code: "OLDESTDIR=find $2/ -type d -name "$yearstring*" -maxdepth 1 | sort -nr | tail -1" to find oldest directory. Problem is that it use $yearstring*, which now is 2015, but in your datastore there is only 2014 left!
I'm not good programmer, so I just put "20150101000001" in front of name of old backup directories.
I think that Daniel could offer more better solution for it!
regards
Juris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
nice that is the problem for make space "room" but there is also the probs when he want automat. create a directory like my post before... maybe the yearstring also do this prob... on this server on that i started the script manually i dind't get a folder like 20140105072902....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi mbosshard.
on how much servers do you use this script?
do all the servers use same datastore?
I have two servers with one datastore. on 01.01.2015 first server needed more space to make a backup, but the second server did not so it made a backup. When second server was done with backup, first one deleted this folder to make space for first server's backups.
Could it be that /vmfs/volumes/backup/20150105072902 was deleted from other server??
regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hmm nah it doesn work automaticly.. when i do it manually it work on 1 server o_O... i think i will restart the esxi tonight.. maybe there is som queue from the other failde backups of 4.1.6?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Tue, 06 Jan 2015 08:01:41 +0000
Found --backup-point at vmfs/volumes/backup
The e-mail report will not be sent becouse of the followig reasons:
The --mail-from string has not been set.
The --mail-to string has not been set.
The --smtp-srv string has not been set.
The --smtp-usr string has not been set, you need --smtp-usr if --smtp-auth is other than -none-.
The --smtp-pwd string has not been set, you need --smtp-pwd if --smtp-auth is other than -none-.
Getting list of all VMs...
1 Server01 [datastore1] Server01/Server01.vmx windows8Server64Guest vmx-08
VMs to backup:
1 Server01 [datastore1] Server01/Server01.vmx windows8Server64Guest vmx-08
/vmfs/volumes/datastore1/xsibackup: line 1219: arithmetic syntax error
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There is no need to restart nor install cron just as long as you leave everything as it was before. The problems you are reporting seem to be related to the chain of arguments. Maybe for some reason they have changed and there is some missconfiguration. Send me your xsibackup-cron if you need more help with this.
As a feedback, I have it working locally. In any case my config is probably different.
Tip: simply delete or rename (begining with an underscore or anything not identifiable as a year) the 2014 folders and you are done even with the old version.
Last edit: 33HOPS 2015-01-06
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
First Happy new year to all! :)
Backup's with cronjob can't delet older backups anymore sience 31.12... you know anything?
Best regards!
Marco Bosshard
Will take a look at this and reach you back...
Can you post your list of arguments?
Try to make room manually on the backup disk.
There is nothing in XSIBackup's design that can cause the script to jump back from
"Attempting to make room at /vmfs/volumes/backup in local server"
To start listing the VMs again, so I asume it has to do something with your setup. Please try to execute the backup command set in your xsibackup-cron file manually and see if you get the same behaviour.
Last edit: 33HOPS 2015-01-04
Same same when i try to do it manually :(
i will delete som backups and see if the prob will appear again...
~ # /vmfs/volumes/datastore1/xsibackup --backup-point=/vmfs/volumes/backup --bac
kup-type=running
Mon, 05 Jan 2015 07:21:16 +0000
Found --backup-point at /vmfs/volumes/backup
The e-mail report will not be sent becouse of the followig reasons:
The --mail-from string has not been set.
The --mail-to string has not been set.
The --smtp-srv string has not been set.
The --smtp-usr string has not been set, you need --smtp-usr if --smtp-auth is other than -none-.
The --smtp-pwd string has not been set, you need --smtp-pwd if --smtp-auth is other than -none-.
Getting list of all VMs...
1 Server01 [datastore1] Server01/Server01.vmx windows8Server64Guest vmx-08
VMs to backup:
1 Server01 [datastore1] Server01/Server01.vmx windows8Server64Guest vmx-08
Needed room: 807 Gb.
Available room: 793 Gb.
Not enough room to make the backup, some older folders will be deleted.
Hot backup selected for VM: Server01 will not be switched off
Attempting to make room at /vmfs/volumes/backup in local server
DAMN it also woundn't runn if i do the cleaning manually... he can't create the new folder... and givs the error path does not exist... :(
creating a folder manully on this backupdrive works...
Getting list of all VMs...
1 Server01 [datastore1] Server01/Server01.vmx windows8Server64Guest vmx-08
VMs to backup:
1 Server01 [datastore1] Server01/Server01.vmx windows8Server64Guest vmx-08
Needed room: 807 Gb.
Available room: 816 Gb.
Hot backup selected for VM: Server01 will not be switched off
All snapshots removed for Server01
cp: can't create '/vmfs/volumes/backup/20150105072902/Server01/Server01.vmx': Path does not exist
Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/5334ceda-b3f377e0-eb8e-645106f94abc/Server01/Server01.vmdk'...
~ # l snapshots removed for Server01
-sh: l: not found
~ # cp: can't create '/vmfs/volumes/backup/20150105072902/Server01/Server01.vmx'
: Path does not exist
Last edit: mbosshard 2015-01-05
iam wondering that noone else have this prob! i have this issue on all my servers :(((((
Hi!
Happy new year to all!
Thank you Daniel for the excellent script!
I have the same problem!
And I know where the problem is!
This script use this code: "OLDESTDIR=
find $2/ -type d -name "$yearstring*" -maxdepth 1 | sort -nr | tail -1
" to find oldest directory. Problem is that it use $yearstring*, which now is 2015, but in your datastore there is only 2014 left!I'm not good programmer, so I just put "20150101000001" in front of name of old backup directories.
I think that Daniel could offer more better solution for it!
regards
Juris
hiya Juris! :)
nice that is the problem for make space "room" but there is also the probs when he want automat. create a directory like my post before... maybe the yearstring also do this prob... on this server on that i started the script manually i dind't get a folder like 20140105072902....
Yes, Juris is right. I will provide a fix for this in a few hours.
hi mbosshard.
on how much servers do you use this script?
do all the servers use same datastore?
I have two servers with one datastore. on 01.01.2015 first server needed more space to make a backup, but the second server did not so it made a backup. When second server was done with backup, first one deleted this folder to make space for first server's backups.
Could it be that /vmfs/volumes/backup/20150105072902 was deleted from other server??
regards
Well the easiest fix is to change the yearstring variable for a constant:
yearstring=20
Thus any folder begining by 20 will be considered
A fix has been included as release 4.1.7, all of you that count on automatic deletion of folders should upgrade.
cool thx! can i just kopi them over? ore have it to install the cronjob again with --install-cron?
You can just overwrite the old xsibackup file and keep the rest as it is
ok many thanks für the fast support!!
i've done the update on each server and if you dindn't hear from me tomorrow it will work! :)
best regards
Marco
Last edit: mbosshard 2015-01-05
hmm nah it doesn work automaticly.. when i do it manually it work on 1 server o_O... i think i will restart the esxi tonight.. maybe there is som queue from the other failde backups of 4.1.6?
other server do this error when i do it manualy
Tue, 06 Jan 2015 08:01:41 +0000
Found --backup-point at vmfs/volumes/backup
The e-mail report will not be sent becouse of the followig reasons:
The --mail-from string has not been set.
The --mail-to string has not been set.
The --smtp-srv string has not been set.
The --smtp-usr string has not been set, you need --smtp-usr if --smtp-auth is other than -none-.
The --smtp-pwd string has not been set, you need --smtp-pwd if --smtp-auth is other than -none-.
Getting list of all VMs...
1 Server01 [datastore1] Server01/Server01.vmx windows8Server64Guest vmx-08
VMs to backup:
1 Server01 [datastore1] Server01/Server01.vmx windows8Server64Guest vmx-08
/vmfs/volumes/datastore1/xsibackup: line 1219: arithmetic syntax error
maybe i realy shoud restart the esxi... i will give you feedback
There is no need to restart nor install cron just as long as you leave everything as it was before. The problems you are reporting seem to be related to the chain of arguments. Maybe for some reason they have changed and there is some missconfiguration. Send me your xsibackup-cron if you need more help with this.
As a feedback, I have it working locally. In any case my config is probably different.
Tip: simply delete or rename (begining with an underscore or anything not identifiable as a year) the 2014 folders and you are done even with the old version.
Last edit: 33HOPS 2015-01-06