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

Forum ©XSIBackup: ©VMWare ©ESXi Backup Software


You are not logged in.

#1 2021-07-07 09:22:31

marco.pernigo
Member
Registered: 2020-12-14
Posts: 9

Prune/check/info cannot see directory from cifs device (solved)

Hi everyone,
we found a bit of a problem in our backup flow.

We are launching backups from vmware to a remote vm that mount an external storage box (cifs filesystem). Normal --backup actions seem to work  normally ( the target directory contains all the files .xsitools, data/ cfgbak/ etc....).
So after a couple months of backup we noticed that the older timestamp folders where still in the repository (we use --rotate=30D in the backup action), supposedly from every job made (like march to july).

So we tried to launch prune manually (remote from vmware):

|---------------------------------------------------------------------------------|
||-------------------------------------------------------------------------------||
|||   (c)XSIBackup-DC 1.5.0.10: 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
-------------------------------------------------------------------------------------------------------------
Remote system: Linux
-------------------------------------------------------------------------------------------------------------
PID: 2151380, Running job as: root
-------------------------------------------------------------------------------------------------------------
Remote xsibackup binary found at: /bin/xsibackup
-------------------------------------------------------------------------------------------------------------
2021-07-07T08:59:29 | Error code 4328 at file xsibackup.c, line 4328 | Error description: Prune path is not a directory: /path/to/my/directory/
-------------------------------------------------------------------------------------------------------------
Removed host <tmp> dir        OK
-------------------------------------------------------------------------------------------------------------
Removed prog <tmp> dir        OK
-------------------------------------------------------------------------------------------------------------
SSH session was closed        OK
-------------------------------------------------------------------------------------------------------------

Other actions like --info and --check gives the same results with differents error code (Error code 4753 at file common.c, line 4753 &&&  Error code 2985 at file xsibackup.c, line 2985 respectively).

Launching xsiback locally on remote machine:

SIGTERM (11) condition was trapped: check logs for more details

Any ideas?

Thanks in advance

More info:
Wmare version: 10.3.10.10540
Remote vm: Debian 10 (buster)

Offline

#2 2021-07-07 09:50:54

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

Re: Prune/check/info cannot see directory from cifs device (solved)

Please post your job, otherwise we have to use our imagination to try to figure out what you mean.
Is the remote VM accessed via IP?
Is it mounted via NFS?

What do you mean by CIFS?.
VMWare (c)ESXi does not support CIFS.

If what you mean by a remote box that mounts CIFS is that you are using a remotely mounted CIFS share exposed though NFS or directly accessing it via IP, why would you want to do such thing?. It's OK if you want to experiment, still:

Why adding double latency?
Why using a file share protocol which is not recommended by us, nor by VMWare?
Did you at least fully try your setup?, did you restore some VM?

(c)XSIBackup is a tool, it's not user software, it will not keep you from doing anything, that doesn't mean that you should do anything. What we mean by that is that you may very well use it to store your backups in a USB stick attached to your Smart TV, still, although it may be a nice way to experiment and learn, we would never recommend that anybody uses that kind of approach to store their VM backups.

You are a Sysadmin, you are also creating when you design your systems, and with creative power comes responsibility. Knowing which pieces you can put together and how will they play along is something on your behalf.

The setup that we believe you are describing is not such an extreme case when compared to the USB stick + Smart TV example, still it's not very recommendable and we can't guarantee that it will work. As per the returned error it looks like the CIFS FS is not fully accessible to some (c)XSIBackup launched system call. You may have some finer details by prepending the command with 'strace'.

Apart from that, the --prune action is local, it can't be run directly from a command line to a remote file system this way except when used from a rotate argument.

./xsibackup --prune root@a.b.c.d:22:/some/remote/folder

Therefore, you might be committing some conceptual error as well. We don't know as we don't have all the details though.

Pruning is a destructive action, don't get us wrong, we use it every day for our own data. Still, there exist concerns on whether using it and how to use it in a corporate environment built on recommended tools and FSs for multiple reasons: Concerns When Using Pruning on Corporate Backup Data Sets.

If on top of the natural concerns around pruning data in a deduplicated repository you add some uncertainty of this caliber, you are simply being the first to cross on really thin ice.

Offline

#3 2021-07-09 14:46:24

marco.pernigo
Member
Registered: 2020-12-14
Posts: 9

Re: Prune/check/info cannot see directory from cifs device (solved)

About our system:
we have a couple of vmware machines in a datacenter and an external storage box (from Hetzner) for cheap storage. Since the storage box is not mounted on the vmware machine we have access to it from a vm. We backup the VMs from the vmware machine to the storage box, passing through the vm that mount the storage box. The idea is to have cheap storage and backups on a different device than the vmware machine.

Yes, the remote VM is accessed via IP

I was imprecise in the first post: the storage box is a CIFS filesystem, mounted with samba.

About the other questions: we are a small company of four people, therefore we have to wear many hats. I know that XSIBackup is a tool and it is my responsability how I use it. We are still learning and I'm just looking for help.

We used the storage box beacuse it was what we already had and the DC documentation didn't give us a reason to change it.

The command we used it's exactly the same as the one you posted

Here is the execution with the strace:

execve("./xsibackup", ["./xsibackup", "--prune", "root@1.2.3.4:22:/path/to/repo/"...], [/* 25 vars */]) = 0
uname({sys="VMkernel", node="myserve.com", ...}) = 0
brk(0)                                  = 0x80a6f1b000
brk(0x80a6f1bf50)                       = 0x80a6f1bf50
arch_prctl(ARCH_SET_FS, 0x80a6f1b880)   = 0
geteuid()                               = 0
getuid()                                = 0
getegid()                               = 0
getgid()                                = 0
brk(0x80a6f3cf50)                       = 0x80a6f3cf50
brk(0x80a6f3d000)                       = 0x80a6f3d000
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
readlink("/proc/self/fd/0", 0x332419f97b0, 511) = -1 ENOENT (No such file or directory)
pipe([3, 4])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180303
close(4)                                = 0
fstat(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f1b000
read(3, "root\n", 600)                  = 5
close(3)                                = 0
wait4(2180303, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180303
munmap(0x80e6f1b000, 4096)              = 0
open("/etc/localtime", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=56, ...}) = 0
fstat(3, {st_mode=S_IFREG|0444, st_size=56, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f1c000
read(3, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\1\0\0\0\0"..., 131072) = 56
close(3)                                = 0
munmap(0x80e6f1c000, 131072)            = 0
open("/proc/stat", O_RDONLY)            = -1 ENOENT (No such file or directory)
open("/proc/cpuinfo", O_RDONLY)         = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=131072, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f3c000
read(3, "processor : 0\nprocessor : 1\nproc"..., 131072) = 170
read(3, "", 131072)                     = 0
close(3)                                = 0
munmap(0x80e6f3c000, 131072)            = 0
getpid()                                = 2180302
getppid()                               = 2180301
uname({sys="VMkernel", node="myserve.com", ...}) = 0
uname({sys="VMkernel", node="myserve.com", ...}) = 0
getcwd("/vmfs/volumes/XSI/XSIBackup-DC", 4096) = 67
access("/vmfs", F_OK)                   = 0
access("/vmfs/volumes", F_OK)           = 0
access("/vmfs/volumes", F_OK) = 0
access("/vmfs/volumes/XSI", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/etc", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/etc/xsibackup.conf", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/etc/xsibackup.conf", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/etc/xsibackup.conf", F_OK) = 0
open("/vmfs/volumes/XSI/XSIBackup-DC/etc/xsibackup.conf", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0700, st_size=2835, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f5c000
read(3, "# This are the default values fo"..., 131072) = 2835
stat("/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=512, ...}) = 0
read(3, "", 131072)                     = 0
close(3)                                = 0
munmap(0x80e6f5c000, 131072)            = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/tmp", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/etc", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/etc/jobs", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/etc/ssh", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/var/log", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/var/log/prog", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/var/log/prog", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
pipe([3, 4])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180304
close(4)                                = 0
fstat(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f7c000
read(3, "1\n", 600)                     = 2
close(3)                                = 0
wait4(2180304, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180304
munmap(0x80e6f7c000, 4096)              = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/var/log/prog", 0x332419f9940) = -1 ENOENT (No such file or directory)
access("/vmfs", F_OK)                   = 0
access("/vmfs/volumes", F_OK)           = 0
access("/vmfs/volumes", F_OK) = 0
access("/vmfs/volumes/XSI", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/var", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/var/log", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/var/log/prog", F_OK) = -1 ENOENT (No such file or directory)
mkdir("/vmfs/volumes/XSI/XSIBackup-DC/var/log/prog", 0755) = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/var/html", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/var/spool/mail", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/var/spool/cron", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
stat("/tmp/xsi/2180302", 0x332419f9940) = -1 ENOENT (No such file or directory)
access("/tmp", F_OK)                    = 0
access("/tmp/xsi", F_OK)                = 0
access("/tmp/xsi/2180302", F_OK)        = -1 ENOENT (No such file or directory)
mkdir("/tmp/xsi/2180302", 0700)         = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/tmp/2180302", 0x332419f9940) = -1 ENOENT (No such file or directory)
access("/vmfs", F_OK)                   = 0
access("/vmfs/volumes", F_OK)           = 0
access("/vmfs/volumes", F_OK) = 0
access("/vmfs/volumes/XSI", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/tmp", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/tmp/2180302", F_OK) = -1 ENOENT (No such file or directory)
mkdir("/vmfs/volumes/XSI/XSIBackup-DC/tmp/2180302", 0700) = 0
access("", F_OK)                        = -1 ENOENT (No such file or directory)
rt_sigaction(SIGINT, {0x41b227, [INT], SA_RESTORER|SA_RESTART, 0x464d40}, {SIG_DFL, ~[KILL STOP RTMIN RT_1], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x41b227, [TERM], SA_RESTORER|SA_RESTART, 0x464d40}, {SIG_DFL, ~[KILL STOP RTMIN RT_1], 0}, 8) = 0
rt_sigaction(SIGTSTP, {0x41b227, [TSTP], SA_RESTORER|SA_RESTART, 0x464d40}, {SIG_DFL, ~[KILL STOP RTMIN RT_1], 0}, 8) = 0
rt_sigaction(SIGPIPE, {0x41b227, [PIPE], SA_RESTORER|SA_RESTART, 0x464d40}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGSEGV, {0x41b227, [SEGV], SA_RESTORER|SA_RESTART, 0x464d40}, {SIG_DFL, [], 0}, 8) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/xsibackup_id_rsa", F_OK) = 0
pipe([3, 4])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180306
close(4)                                = 0
fstat(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f7d000
read(3, "1625840888\n", 600)            = 11
pipe([4, 5])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180308
close(5)                                = 0
fstat(4, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f7e000
read(4, "vmnic0\n", 600)                = 7
close(4)                                = 0
wait4(2180308, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180308
munmap(0x80e6f7e000, 4096)              = 0
pipe([4, 5])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180314
close(5)                                = 0
fstat(4, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f7e000
read(4, "70:54:d2:ab:73:43\n", 600)     = 18
close(4)                                = 0
wait4(2180314, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180314
munmap(0x80e6f7e000, 4096)              = 0
stat("/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=512, ...}) = 0
open("/tmp/xsibackup.pid", O_WRONLY|O_CREAT|O_APPEND, 0666) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=16, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f7e000
fstat(4, {st_mode=S_IFREG|0644, st_size=16, ...}) = 0
lseek(4, 16, SEEK_SET)                  = 16
write(4, "2180302\n", 8)                = 8
close(4)                                = 0
munmap(0x80e6f7e000, 131072)            = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/etc/ssh/linked_hosts.conf", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/var/spool/cron/root-crontab", F_OK) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
open("/vmfs/volumes/XSI/XSIBackup-DC/license.key", O_RDONLY) = 4
stat("/vmfs/volumes/XSI/XSIBackup-DC/license.key", {st_mode=S_IFREG|0700, st_size=88, ...}) = 0
fstat(4, {st_mode=S_IFREG|0700, st_size=88, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f7e000
read(4, "--redacted--"..., 131072) = 88
lseek(4, 0, SEEK_SET)                   = 0
read(4, "--redacted--"..., 131072) = 88
close(4)                                = 0
munmap(0x80e6f7e000, 131072)            = 0
open("/vmfs/volumes/XSI/XSIBackup-DC/license.key", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0700, st_size=88, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f7e000
lseek(4, 0, SEEK_SET)                   = 0
read(4, "--redacted--"..., 40) = 40
read(4, "\v\364\260(\353\0\0\0\340\30\t\365\212\26)M\260J/1\221\36\200\1\10a\311\225_S\0\0"..., 131072) = 48
close(4)                                = 0
munmap(0x80e6f7e000, 131072)            = 0
stat("/etc/localtime", {st_mode=S_IFREG|0444, st_size=56, ...}) = 0
pipe([4, 5])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180318
close(5)                                = 0
fstat(4, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f7e000
read(4, "1625840889\n", 600)            = 11
close(4)                                = 0
wait4(2180318, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180318
munmap(0x80e6f7e000, 4096)              = 0
pipe([4, 5])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180320
close(5)                                = 0
fstat(4, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f7e000
read(4, "7.5\n", 600)                   = 4
close(4)                                = 0
wait4(2180320, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180320
munmap(0x80e6f7e000, 4096)              = 0
stat("/etc/localtime", {st_mode=S_IFREG|0444, st_size=56, ...}) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/request.key", F_OK) = 0
fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(0, 0), ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f7e000
write(1, "\33[90m|--------------------------"..., 93|---------------------------------------------------------------------------------|
) = 93
write(1, "\33[90m||-------------------------"..., 93||-------------------------------------------------------------------------------||
) = 93
write(1, "\33[90m|||\33[0m\33[1m   (c)XSIBackup-"..., 110|||   (c)XSIBackup-DC 1.5.0.10: Backup & Replication Software                   |||
) = 110
write(1, "\33[90m|||\33[0m\33[1m   (c)33HOPS, Si"..., 110|||   (c)33HOPS, Sistemas de Informacion y Redes, S.L. | All Rights Reserved    |||
) = 110
write(1, "\33[90m||-------------------------"..., 93||-------------------------------------------------------------------------------||
) = 93
write(1, "\33[90m|--------------------------"..., 93|---------------------------------------------------------------------------------|
) = 93
write(1, "                   (c)Daniel J. "..., 65                   (c)Daniel J. Garcia Fidalgo | info@33hops.com
) = 65
write(1, "\33[90m|--------------------------"..., 93|---------------------------------------------------------------------------------|
) = 93
write(1, "System Information: ESXi, Kernel"..., 59System Information: ESXi, Kernel 6 Major 7 Minor 0 Patch 0
) = 59
write(1, "\33[90m---------------------------"..., 119-------------------------------------------------------------------------------------------------------------
) = 119
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 4
setsockopt(4, SOL_SOCKET, SO_RCVTIMEO, "\24\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16) = 0
fcntl(4, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
connect(4, {sa_family=AF_INET, sin_port=htons(22), sin_addr=inet_addr("1.2.3.4")}, 16) = -1 EINPROGRESS (Operation now in progress)
select(5, NULL, [4], NULL, {20, 0})     = 1 (out [4], left {20, 554})
fcntl(4, F_SETFL, O_RDWR)               = 0
getsockopt(4, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
recvfrom(4, "SSH-2.0-OpenSSH_7.9p1 Debian-10+"..., 99, 0, NULL, NULL) = 41
pipe([5, 6])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180328
close(6)                                = 0
fstat(5, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f9e000
read(5, "FIPS mode initialized\r\n", 600) = 23
read(5, "Fri 09 Jul 2021 04:31:37 PM CEST"..., 600) = 33
read(5, "", 600)                        = 0
close(5)                                = 0
wait4(2180328, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180328
munmap(0x80e6f9e000, 4096)              = 0
pipe([5, 6])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180330
close(6)                                = 0
fstat(5, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f9e000
read(5, "33\n", 600)                    = 3
read(5, "", 600)                        = 0
close(5)                                = 0
wait4(2180330, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180330
munmap(0x80e6f9e000, 4096)              = 0
pipe([5, 6])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180332
close(6)                                = 0
fstat(5, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f9e000
read(5, "linux\n", 600)                 = 6
read(5, "", 600)                        = 0
close(5)                                = 0
wait4(2180332, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180332
munmap(0x80e6f9e000, 4096)              = 0
write(1, "Remote system: Linux\n", 21Remote system: Linux
)  = 21
write(1, "\33[90m---------------------------"..., 119-------------------------------------------------------------------------------------------------------------
) = 119
write(1, "PID: 2180302, Running job as: \33["..., 43PID: 2180302, Running job as: root
) = 43
write(1, "\33[90m---------------------------"..., 119-------------------------------------------------------------------------------------------------------------
) = 119
access("/vmfs/volumes/XSI/XSIBackup-DC/xsibackup_id_rsa", F_OK) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/xsibackup_id_rsa.pub", F_OK) = 0
open("/vmfs/volumes/XSI/XSIBackup-DC/xsibackup_id_rsa.pub", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0700, st_size=408, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f9e000
read(5, "ssh-rsa AAAAB3NzaC1yc2EAAAADAQAB"..., 131072) = 408
close(5)                                = 0
munmap(0x80e6f9e000, 131072)            = 0
pipe([5, 6])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180334
close(6)                                = 0
fstat(5, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f9e000
read(5, "1\n", 600)                     = 2
read(5, "", 600)                        = 0
close(5)                                = 0
wait4(2180334, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180334
munmap(0x80e6f9e000, 4096)              = 0
write(1, "Remote xsibackup binary found at"..., 49Remote xsibackup binary found at: /bin/xsibackup
) = 49
write(1, "\33[90m---------------------------"..., 119-------------------------------------------------------------------------------------------------------------
) = 119
pipe([5, 6])                            = 0
pipe([7, 8])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180336
close(5)                                = 0
close(8)                                = 0
fcntl(6, F_GETFL)                       = 0x1 (flags O_WRONLY)
fstat(6, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f9e000
lseek(6, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
fcntl(7, F_GETFL)                       = 0 (flags O_RDONLY)
fstat(7, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6f9f000
lseek(7, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
mmap(NULL, 1052672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6fa0000
munmap(0x80e6fa0000, 1052672)           = 0
stat("/vmfs/volumes/XSI/XSIBackup-DC/var/log", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
access("/vmfs/volumes/XSI/XSIBackup-DC/var/log/xsibackup.log", F_OK) = 0
open("/vmfs/volumes/XSI/XSIBackup-DC/var/log/xsibackup.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = 5
fstat(5, {st_mode=S_IFREG|0700, st_size=8598004, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6fa0000
fstat(5, {st_mode=S_IFREG|0700, st_size=8598004, ...}) = 0
lseek(5, 8598004, SEEK_SET)             = 8598004
stat("/path/to/repo/", 0x332419f9d70) = -1 ENOENT (No such file or directory)
pipe([8, 9])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180337
close(9)                                = 0
fstat(8, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6fc0000
read(8, "2021-07-09T14:28:10\n", 600)   = 20
close(8)                                = 0
wait4(2180337, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180337
munmap(0x80e6fc0000, 4096)              = 0
write(1, "2021-07-09T14:28:10 | Error code"..., 1412021-07-09T14:28:10 | Error code 4328 at file xsibackup.c, line 4328 | Error description: Prune path is not a directory: /path/to/repo/
) = 141
write(1, "\33[90m---------------------------"..., 119-------------------------------------------------------------------------------------------------------------
) = 119
open("/vmfs/volumes/XSI/XSIBackup-DC/var/log/error.log", O_WRONLY|O_CREAT|O_APPEND, 0666) = 8
fstat(8, {st_mode=S_IFREG|0700, st_size=876886, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6fc0000
fstat(8, {st_mode=S_IFREG|0700, st_size=876886, ...}) = 0
lseek(8, 876886, SEEK_SET)              = 876886
pipe([9, 10])                           = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180339
close(9)                                = 0
close(10)                               = 0
wait4(2180339, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180339
write(8, "2021-07-09T14:28:10 | Error code"..., 141) = 141
close(8)                                = 0
munmap(0x80e6fc0000, 131072)            = 0
stat("/tmp/xsi/2180302", {st_mode=S_IFDIR|0700, st_size=512, ...}) = 0
pipe([8, 9])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180341
close(9)                                = 0
fstat(8, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6fc0000
read(8, "1\n", 600)                     = 2
close(8)                                = 0
wait4(2180341, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180341
munmap(0x80e6fc0000, 4096)              = 0
write(1, "Removed host <tmp> dir        \33["..., 42Removed host <tmp> dir        OK
) = 42
write(1, "\33[90m---------------------------"..., 119-------------------------------------------------------------------------------------------------------------
) = 119
stat("/vmfs/volumes/XSI/XSIBackup-DC/tmp/2180302", {st_mode=S_IFDIR|0755, st_size=8, ...}) = 0
pipe([8, 9])                            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x80a6f1b910) = 2180343
close(9)                                = 0
fstat(8, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6fc0000
read(8, "1\n", 600)                     = 2
close(8)                                = 0
wait4(2180343, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 2180343
munmap(0x80e6fc0000, 4096)              = 0
write(1, "Removed prog <tmp> dir        \33["..., 42Removed prog <tmp> dir        OK
) = 42
write(1, "\33[90m---------------------------"..., 119-------------------------------------------------------------------------------------------------------------
) = 119
close(7)                                = 0
munmap(0x80e6f9f000, 4096)              = 0
close(6)                                = 0
munmap(0x80e6f9e000, 4096)              = 0
kill(2180336, SIG_0)                    = 0
kill(2180336, SIGKILL)                  = 0
write(1, "SSH session was closed        \33["..., 42SSH session was closed        OK
) = 42
write(1, "\33[90m---------------------------"..., 119-------------------------------------------------------------------------------------------------------------
) = 119
access("/tmp/xsibackup.pid", R_OK)      = 0
open("/tmp/xsibackup.pid", O_RDONLY)    = 6
open("/tmp/xsibackup.pid.tmp.1616494955872038", O_WRONLY|O_CREAT|O_APPEND, 0666) = 7
fstat(7, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6fc0000
fstat(7, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
lseek(7, 0, SEEK_SET)                   = 0
fstat(6, {st_mode=S_IFREG|0644, st_size=24, ...}) = 0
mmap(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x80e6fe0000
read(6, "2150531\n2150581\n2180302\n", 131072) = 24
read(6, "", 131072)                     = 0
close(6)                                = 0
munmap(0x80e6fe0000, 131072)            = 0
write(7, "2150531\n2150581\n", 16)      = 16
close(7)                                = 0
munmap(0x80e6fc0000, 131072)            = 0
access("/tmp/xsibackup.pid", W_OK)      = 0
rename("/tmp/xsibackup.pid.tmp.1616494955872038", "/tmp/xsibackup.pid") = 0
access("/tmp/xsibackup.pid.tmp.1616494955872038", F_OK) = -1 ENOENT (No such file or directory)
access("/tmp/xsibackup.pid", F_OK)      = 0
stat("/tmp/xsibackup.pid", {st_mode=S_IFREG|0644, st_size=16, ...}) = 0

I suppose we will start to rethink our backup practices

Last edited by marco.pernigo (2021-07-09 14:47:42)

Offline

#4 2021-07-10 10:59:06

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

Re: Prune/check/info cannot see directory from cifs device (solved)

As said, as per version 1.5.0.10 you can't prune over IP (that will change in some future version), do it locally if you will, or even better, rotate your backups with a dynamic target:

./xsibackup --backup "VMs(VM1,VM2)" root@1.2.3.4:22:/path/to/your/backup/repo$(date +%m)

In the above example a new repository is created each month. Then archive (the corporate standard action) or delete the older repositories as the new one accumulates new data.

If you prefer to keep a single repository and prune the data, do it from the Linux VM. Still you will add the network latency of the Samba mount to each block deletion system call, which will multiply the time taken to achieve the effective deletion of the blocks. This is not much different to deleting a lot of small files from a share or from the same local FS, the difference in time will be substantial.

On the other side CIFS is not a very effective nor professional file share protocol for virtual machines, in special when compared to NFS or iSCSI. Try to mount the share as NFS instead of CIFS and format the drive or volume as XFS or ext4.

There's an even better approach, which is to add the drive as a raw device mapping, then format it as ext4 or XFS. By using a local disk you will get rid of the network latency associated to the file share protocol.

We know SMEs are limited in resources when compared to bigger enterprises, nonetheless, you can buy a 4TB Ironwolf Seagate HD for under 90.00USD nowadays, there's no excuse in terms of storage price.

These are just some ideas to take into practice without adding anything new or expensive to your system.

Offline

#5 2021-07-12 13:13:41

marco.pernigo
Member
Registered: 2020-12-14
Posts: 9

Re: Prune/check/info cannot see directory from cifs device (solved)

Ok, thanks for the help.
The dynamic target strategy could be a nice workaround to our problem.

Yes, we have local backups and there's no problem there. This was about a off-site backup, otherwise yes, a new hd wouldn't have been a problem

Thanks for the help!

marco

Offline

Board footer