©XSIBackup-Free: Free Backup Software for ©VMWare ©ESXi

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 2019-07-16 15:19:37

isombrinia
Member
Registered: 2019-06-25
Posts: 14

Problems Pruning

I'm getting a script error when running backup, with pruning options on.  Here is the error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'root' is not defined
/vmfs/volumes/datastore1/xsi-dir/xsibackup: line 909: arithmetic syntax error
-- No blocks exclusive to </vmfs/volumes/zfs_vmware_backups_dataset/xsibackup/20190701194611> can be deleted
-- Less than 8 Mb. were freed from descriptors and snapshots

Here is the full context:

---------------------------------------------------------------------------------------------------------------------------------
2019-07-16T11:58:28|  Checking the size of the (c)XSITools repository...
---------------------------------------------------------------------------------------------------------------------------------
2019-07-16T11:58:33|  The (c)XSITools repository is 579690Mb in size
---------------------------------------------------------------------------------------------------------------------------------
2019-07-16T11:58:33|  Prune round 1: (c)XSITools repository size: 579690 exceeds --backup-room=512000
---------------------------------------------------------------------------------------------------------------------------------
-- Pruning exclusive blocks of backup </vmfs/volumes/zfs_vmware_backups_dataset/xsibackup/20190701194611>
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'root' is not defined
/vmfs/volumes/datastore1/xsi-dir/xsibackup: line 909: arithmetic syntax error
-- No blocks exclusive to </vmfs/volumes/zfs_vmware_backups_dataset/xsibackup/20190701194611> can be deleted
-- Less than 8 Mb. were freed from descriptors and snapshots
---------------------------------------------------------------------------------------------------------------------------------
2019-07-16T11:58:33|  The (c)XSITools repo </vmfs/volumes/zfs_vmware_backups_dataset/xsibackup> was pruned, 0 Mb were made available
2019-07-16T11:58:33|  The size of the repo was reduced to 579690
---------------------------------------------------------------------------------------------------------------------------------
2019-07-16T11:58:33|  Prune round 2: (c)XSITools repository size: 579690 exceeds --backup-room=512000
---------------------------------------------------------------------------------------------------------------------------------
-- Pruning exclusive blocks of backup </vmfs/volumes/zfs_vmware_backups_dataset/xsibackup/20190701232226>

The process hangs / dies here.   Everything in the backup directory is owned by "root", so I'm not sure why it doesn't like the name "root".
This is the command I'm using to initiate the backup process:

"/vmfs/volumes/datastore1/xsi-dir/xsibackup" \
--backup-prog=XSITools:z \
--certify-backup=yes \
--smart-info=yes \
--backup-point=/vmfs/volumes/zfs_vmware_backups_dataset/xsibackup/ \
--backup-type=Running \
--backup-room=500 \
--backup-how=Hot \
--remote-xsipath=/vmfs/volumes/datastore1/xsi-dir \
--smtp-auth="none" \
--smtp-usr="none" \
--smtp-pwd="none" \
--smtp-srv=REDACTED \
--mail-from=REDACTED \
--smtp-port=25 \
--mail-to=REDACTED \
--backup-id=001 \
--description="XSITools backup of VMs" \
--on-success="backupId->002" \
--on-error="backupId->002" \
--exec=yes >> "/vmfs/volumes/datastore1/xsi-dir/var/logs/xsibackup.log"

Any thoughts or suggestions on what is wrong?

Thanks!

Offline

#2 2019-07-16 15:48:00

admin
Administrator
Registered: 2017-04-21
Posts: 2,055

Re: Problems Pruning

What ESXi version are you using?
It looks like XSIBackup is not able to determine the size of your blocks.
Please run this code against any deduplicated block in your XSITools repository:

ls -1las "/vmfs/volumes/zfs_vmware_backups_dataset/xsibackup/data/0/a/c/0ac859d6f5638..." 2>/dev/null | awk '{print $4}'

You must substitute the made up hash (0/a/c/0ac859d6f5638..) by some real hash in your XSITools repo

Offline

#3 2019-07-16 15:57:37

isombrinia
Member
Registered: 2019-06-25
Posts: 14

Re: Problems Pruning

Thanks.  I am running 6.7u2.  The output looks as expected (root) when I run your command on an actual file there.

 ls -1las "/vmfs/volumes/zfs_vmware_backups_dataset/xsibackup/data/0/a/c/0ac2f044c136ba9013f75ba722ee40b74acb07b5" 2>/dev/null | awk '{print $4}'
root

Here's the output without the redirect and awk:

 ls -1las "/vmfs/volumes/zfs_vmware_backups_dataset/xsibackup/data/0/a/c/0ac2f044c136ba9013f75ba722ee40b74acb07b5"
 42606 -rw-r--r--    1 root     root      43657813 Jul  9 12:26 /vmfs/volumes/zfs_vmware_backups_dataset/xsibackup/data/0/a/c/0ac2f044c136ba9013f75ba722ee40b74acb07b5

Offline

#4 2019-07-16 18:21:00

admin
Administrator
Registered: 2017-04-21
Posts: 2,055

Re: Problems Pruning

O.K., we saw where the problem is. It's a bug due to changes in the order of the fields of the ls command. We'll correct this today and publish an update as 11.2.7, it will be available tomorrow the latest.

Offline

#5 2019-07-16 18:22:40

isombrinia
Member
Registered: 2019-06-25
Posts: 14

Re: Problems Pruning

Thank you for the fast response!

Offline

#6 2019-07-17 10:25:09

admin
Administrator
Registered: 2017-04-21
Posts: 2,055

Re: Problems Pruning

We contacted you from the support department to send you an update. Please reach us back to have your issue fixed.

Offline

Board footer