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

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 General matters » sort: out of memory » 2021-04-07 14:04:17

isombrinia
Replies: 1

I'm trying to prune some old backups, and I'm running into this error:

[root@vmware-77:/vmfs/volumes/5c42674c-fd8386fc-c5bd-d4ae5292e64f/XSIBackup-DC] ./xsibackup --prune /vmfs/volumes/6tb-backups/xsibackup/20200909194328
|---------------------------------------------------------------------------------|
||-------------------------------------------------------------------------------||
|||   (c)XSIBackup-DC 1.4.0.0: Backup & Replication Software                    |||
|||   (c)33HOPS, Sistemas de Informacion y Redes, S.L. | All Rights Reserved    |||
||-------------------------------------------------------------------------------||
|---------------------------------------------------------------------------------|
                   (c)Daniel J. Garcia Fidalgo | info@33hops.com
|---------------------------------------------------------------------------------|
System Information: ESXi, Kernel 6 Major 7 Minor 0 Patch 0
-----------------------------------------------------------------------------------------------------------
License: [REDACTED]
-----------------------------------------------------------------------------------------------------------
PID: 5606813, Running job as: root
-----------------------------------------------------------------------------------------------------------
Finding blocks to prune, please wait...
-----------------------------------------------------------------------------------------------------------
Getting map files from repo...
-----------------------------------------------------------------------------------------------------------
Retrieving general block data 100.00%
-----------------------------------------------------------------------------------------------------------
Please wait while we order the data at: /vmfs/volumes/5c42674c-fd8386fc-c5bd-d4ae5292e64f/XSIBackup-DC/tmp/0U.xsi
-----------------------------------------------------------------------------------------------------------
sort: out of memory
2021-04-07T13:59:00 | Error code 287 at file prune.c, line 287 | Error description: something went wrong when ordering: /vmfs/volumes/5c42674c-fd8386fc-c5bd-d4ae5292e64f/XSIBackup-DC/tmp/0U.xsi, count was: 0

-----------------------------------------------------------------------------------------------------------
Removed <tmp> dir        OK

EDIT:  I realized I was running an old version.  I've updated, and here is the error now:

[root@vmware-77:/vmfs/volumes/5c42674c-fd8386fc-c5bd-d4ae5292e64f/XSIBackup-DC] ./xsibackup --prune /vmfs/volumes/6tb-backups/xsibackup/20200922000002/
License file must be 88 bytes long
|---------------------------------------------------------------------------------|
||-------------------------------------------------------------------------------||
|||   (c)XSIBackup-Free 1.4.3.17: Backup & Replication Software                 |||
|||   (c)33HOPS, Sistemas de Informacion y Redes, S.L. | All Rights Reserved    |||
||-------------------------------------------------------------------------------||
|---------------------------------------------------------------------------------|
                   (c)Daniel J. Garcia Fidalgo | info@33hops.com
|---------------------------------------------------------------------------------|
System Information: ESXi, Kernel 6 Major 7 Minor 0 Patch 0
-----------------------------------------------------------------------------------------------------------
PID: 5607286, Running job as: root
-----------------------------------------------------------------------------------------------------------
Finding blocks to prune, please wait...
-----------------------------------------------------------------------------------------------------------
Getting map files from repo, please wait...
-----------------------------------------------------------------------------------------------------------
2021-04-07T14:17:01 | Error code 202 at file prune.c, line 202 | Error description: failed to malloc memory for all unordered blocks
-----------------------------------------------------------------------------------------------------------
2021-04-07T14:17:01 | Error code 3663 at file xsibackup.c, line 3663 | Error description: --prune process returned an error
-----------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------
Removed host <tmp> dir        OK
-----------------------------------------------------------------------------------------------------------
Removed prog <tmp> dir        OK
-----------------------------------------------------------------------------------------------------------
Removed PID                   OK
-----------------------------------------------------------------------------------------------------------
[root@vmware-77:/vmfs/volumes/5c42674c-fd8386fc-c5bd-d4ae5292e64f/XSIBackup-DC]

EDIT 2:
After looking around the forum a bit more, I've mounted the xsibackup root onto another RHEL 8 Linux system, unzipped the XSIBackup-DC program there, and ran from there instead of the ESXI host.  It appears to be working much better, however I'm still waiting for it to complete.  I figured I would let anybody else know who is running into this issue.

#2 Re: General matters » XSIBackup-DC GUI » 2020-08-04 18:39:19

Thank you.  I was able to figure out the command line options successfully, but I do look forward to having a GUI.

#3 General matters » XSIBackup-DC GUI » 2020-08-03 15:15:13

isombrinia
Replies: 4

This page indicates that XSIBackup-DC has a GUI:
[urlhttps://33hops.com/xsibackup-vmware-esxi-backup.html](c)XSIBackup-DC Product Page[/url]

I've configured PuTTY as described here, however no GUI pops up when I run xsibackup:
GUI manual

Any idea what I'm doing wrong?

#4 Re: General matters » Problems Pruning » 2019-07-16 18:22:40

Thank you for the fast response!

#5 Re: General matters » Problems Pruning » 2019-07-16 15:57:37

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

#6 General matters » Problems Pruning » 2019-07-16 15:19:37

isombrinia
Replies: 5

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!

#7 Re: General matters » line 490: syntax error: unexpected "&" » 2019-07-01 18:35:19

Thank you.  The new version 11.2.4 appears to be running OK on my 6.7.0 u2 system.

#8 Re: General matters » line 490: syntax error: unexpected "&" » 2019-07-01 14:56:39

I asked only because you referenced 11.2.3, and this is the forum for the free version.  I was confused.

#9 Re: General matters » line 490: syntax error: unexpected "&" » 2019-07-01 12:32:43

Can 11.2.3 be used in trial mode indefinitely?  The only free version I've seen is 11.0.1.  Thanks!

#10 Re: General matters » ESXi 6.7 U2 compatible version (free user) » 2019-06-26 22:05:42

I found that commenting out line 200, and uncommenting 201 in xsibackup at least allows the script to run without bash syntax errors.  I get the message "Killed" in the logfile when I try to run it from cron, but if I copy the contents of the 001 script and paste that to the shell, it runs.  May be something peculiar to my system that causes the cron to not work, and could be unrelated.

#11 Re: General matters » line 490: syntax error: unexpected "&" » 2019-06-26 18:00:19

If you copy out and run the "DEBUGINFO=" line by itself in a shell, it works.  Yet, in the context of the script, it fails.  My guess is that with all the fancy stuff going on, newer versions of bash are getting confused somewhere prior to line 490, and incorrectly parsing once it gets to 490, causing the error.  Perhaps they *fixed* a bug awhile back, and that fix might have exposed a latent syntax issue in the script.

EDIT:  Shell Script Checker  Thinks the first double quote in that line is an end quote, not a start quote.

EDIT2:  Commenting out line 200, and uncommenting 201 at least allows the script to run without bash syntax errors.  Something about line 200 is suspect:

Line 200:
        VARVAL="${VARVAL//"/\"}"
               ^-- SC1078: Did you forget to close this double quoted string?

#12 Re: General matters » line 490: syntax error: unexpected "&" » 2019-06-26 17:17:46

Same thing happens with official bash (not the busybox version).  This is the output from running it on Fedora 29:

$ ./xsibackup --help
./xsibackup: line 490: syntax error near unexpected token `;&'
./xsibackup: line 490: `DEBUGINFO="${DEBUGINFO}<br>&bull;&nbsp;KEY: $SSHOPTS"'

$ bash --version
GNU bash, version 4.4.23(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

#13 Re: General matters » line 490: syntax error: unexpected "&" » 2019-06-25 17:52:52

Also, it's worth noting that even using the latest busybox build binary (1.31), from busybox.net, the same error happens.  Given that this is even newer than the 1.29 version that ships with ESXi 6.7 U2, to me it indicates that this isn't a bug, but rather the "intended functionality" of busybox.

#14 Re: General matters » line 490: syntax error: unexpected "&" » 2019-06-25 13:29:09

For whatever it's worth, I've installed the latest vmware esxi patchset (ESXi670-201906002) and it had no impact on the 'line 490: syntax error: unexpected "&"' error.  The error still happens.

Board footer