You are not logged in.
We'll add any feature that we consider to be useful. Thank you for your feedback, we'll take it into account, nonetheless you are working in a "primitive Linux environment", that's a good short description for ESXi as an OS. Yes, you have [b]nohup[/b] and [b]tail[/b] available in ESXi and those are basic very simple to use command line tools for the Linux sysadmin, if you try to avoid using them you will be limiting your possibilities managing ESXi and any other Linux environment.
It's quite simple: configure a job and test it in the command line. Once you know it's working add [b]--save-job[/b] to your backup arguments and press enter, the job will be saved. Then edit [b]/scratch/xsi/var/spool/cron/root-crontab[/b] and add your schedule, once you are done run ./xsibackup --update-cron
Jobs are saved to [b]/scratch/xsi/etc/jobs[/b], so you will have to invoke the job from the crontab.
It's all in the manual.
[quote]
I tried the commands, and the "du" reports a smaller size:
[/quote]
Then your disk is thin.
closed!
We can offer you hints, but we don't have all the details, setting permissions is your "homework".
We might have not grasped your particular scenario in full detail. If the xsibackup binary continues to run, that means that you have permissions to run it in the security context of the (c)ESXi server, but that does not mean that you have permissions under the security context of the underlying FS in your NFS NAS. What's puzzling is that you seem to have those permissions for some time in each backup cycle.
The only insight we can offer you is:
The line that raises the error is a plain call to the C [b][url=https://www.techonthenet.com/c_language/standard_library_functions/stdio_h/rename.php]rename()[/url][/b] function run under the user you used to invoke the [b]xsibackup[/b] binary. So the issue is as simple as:
1 - You don't have permissions to rename the block.
2 - Your target file system is broken.
Don't look any further, whatever your problem is, it is related to your (c)ESXi user not being able to access the block to rename.
It could also be an NFS issue. Do not use NFS 4.1 to connect your backup volume. There are plenty of ESXi issues related to that, use NFS 3 instead
You may alternatively use your (c)Synology device as an IP target, that way you would bypass any NFS related issue and use SSH to authenticate on the underlying FS.
[url=https://33hops.com/xsibackup-datacenter-running-as-server-in-synology-nas.html](c)XSIBackup-DC running as a server in Synology NAS[/url]
If you backup over IP use a block size of 1M, add [b]--block-size=1M[/b], it will be faster.
Also, stick to well known FSs, don't be creative with backup infrastructure. BTRFS is quite stable now, but EXT4 or XFS are much more mature and faster to host deduplicated chunks of data.
And last, but not least important:
Does it make sense to create a separate user for backups instead of using the root user in your case?
Whatever alternative user you use will neccessarily need to have full rights on the VM folder, thus, it will have full access to your guest's data. You may employ different users to isolate different VMs security contexts, but in case you are backing up VMs for a single owner:
What's the point in using a user different than root?,
that you will isolate that user from admin rights in the ESXi server itself?,
what's the point in doing that when they already have your data?
The queen to protect in a simple single user scenario is the VM, if you loose the queen, who cares about the ESXi server, it's just a container.
When you use a command like this:
/vmfs/volumes/part1/xsi-dir/xsibackup --backup-point=/vmfs/volumes/esxbackup --backup-type=custom ---backup-vms="Win10"You are indeed using vmkfstools to perform the backup, and vmkfstools always uses thin format when invoked from (c)XSIBackup. Backup to a VMFS volume to find out whether the resulting disks are thin or not.
Our apologies, we commited an error, use:
du -h /path/to/your/fileIf you got disconnected from your SSH session while the process was writing to STDOUT in a TTY then you most probably have a zombie process, as closing the SSH tunnel will not allow the program to run in the background unless otherwise specified by means of [b]nohup command &[/b], so it will be sitting there waiting for nothing.
In some more modern systems, the remote running program may receive a sighup to allow it running in the background after the SSH session dies or a sigkill to terminate it. Nonetheless ESXi offers basic SSH functonality and I am not even sure that you can configure it to workaround this kind of events.
So, redirect your processes output to a file when run from the cron, it's default behaviour. You can inspect what's going on by using [b]tail -f xsibackup.log[/b]. Kill any eventually hanged process resulting from any SSH broken session by looking for the process
ps -c | grep xsiAnd kill it.
kill -9 PIDAnd when you run a command through a remote session, use nohup + & while redirecting to the log, or assume that in case your SSH session ends abruptly, your process will just go to "purgatory".
6h. since last reboot and 60GB limit.
You are stretching the chain of permissions too much. That is not (c)XSIBackup's fault, if you design a complex script where permissions are being delegated down the chain you must be prepared to debug your scenario. What the rename block routine does is just that, rename a block, but that has nothing to do with your problem.
You are authenticating via SSH and you are being granted some rights for some limited time and that time is expiring. Study the SSH protocol to narrow your issue down or simplify your set up, I see no other choice.
The postman is not responsible for the bad news.
UPDATE:
Imagine for a moment that you run a remote command over SSH, so the remotely launched process starts to run in the background. Then due to a timeout the original SSH session expires. What would happen with the auth token issued to the SSH job and the process depending on it?, would my process still have rights to rename, create files, etc...?
That is the kind of question I would make myself if I were in your shoes.
Mmm, whatch your disks, don't wait till they wear out.
There's a double slash in your path (...POLLUX-xsitools/2019_DC[b]//[/b]data/9/9/3/f/...), although that does not seem to be the cause of your issue. We have performed lots of tests since months ago, specially in Synology devices as NFS, and we never came accross some error like yours. It is double puzzling the fact that the job seems to have run to 32%, thus the information that you present, as is, makes us believe that you filled your disk.
Thin disks will always appear as their nominal size to most utilities. To find out whether the file is sparse or not use
2019-10-18 Corrected:
du -h /path/to/your/fileWell, the error is obvious, you are lacking rename permissions. (c)XSIBackup-DC runs under a user that is not allowed to rename the blocks.
UPDATE:
It could also have something to do with possible physical damage in the disk or some SSH timeout. We'll investigate and let you know.
You are describing a general issue. First of all delete any lock files .lck in the VM folder. Then make sure your VM is working O.K., take a snapshot, then another one on top of it, three our four piled snapshots should not harm, then delete them one by one. If you can't, then you will need to find out what's wrong and fix it before actually using (c)XSIBackup-DC
This is a [url=https://33hops.com/esxi-snapshot-errors-and-solutions.html]detailed post on (c)ESXi snapshots[/url] and the most common errors that you may encounter along with solutions and workarounds.
We will add more features rapidly before Christmas as branch 1.0 evolves.
DC version uses LZJB compression for licensing reasons as opposed to LZOP which is used by Pro. There aren't any licensing concerns in the case of Pro version as it calls the LZOP binary from a script on the command line, while in DC we are using the LZJB source code that you will find in the src folder.
Depending on the VM, and the layout of the data in the virtual disk, you may get a worse compression ratio than with LZOP, but that's only in the first round of the backup. As DC uses a smaller block size and the compression achieved by the deduplication is much higher than the regular data compression, as data grows and backups and restore points start to accumulate, the difference in plain data compression ratio will vanish.
So, if you compare plain data compression figures, you will see an average of 10% to 15% better compression ratio when using LZOP. If you compare the overall compression ratio after a number of backups, the difference will dilute so much that you won't notice when using the same block size and when usiing a smaller block size the compression ratio achieved by DC should be better.
You may use a source argument like the following:
"VMs(RUNNING)"
"VMs(ALL)"
# Example
./xsibackup --backup "VMs(ALL)" /vmfs/volumes/backup01 --mail-to=you@yourdomain.com --use-smtp=3
./xsibackup --backup "VMs(RUNNING)" root@192.168.20.200:22:/vmfs/volumes/backup01 --mail-to=you@yourdomain.com --use-smtp=3This two options will be fully documented in the next minor update, although there isn't anything else to say, they are self explanatory.
What we are saying is that some ESXi component wrote this to stdout or/and to your log:
[b]'Vmacore::SystemException' what(): No space left on device[/b]
This is not an XSIBackup error, some ESXi core component is throwing the message.
You may believe that this is plain nonsense, but we do believe it has something to do with what's actually going on inside your server and we are reminding you that you should delve into the root of that message.
Your ESXi server has multiple volumes serving different purposes, one of them might have no space left. Search for more detailed errors in your /scratch/log directory.
Cron should work in ESXi U2, but you must be aware of the fact that Busybox utilities are basic utilities, very basic, extremely basic; ESXi cron lacks even a control script, thus it can be picky and requires you to control wether it's loaded or not, or if two instances are running simultaneosly, etc...
Read this post: [url=https://33hops.com/xsibackup-cron-troubleshooting.html]Troubleshooting cron setup[/url]
XSIBackup does not touch the .vmsd file, it just reads from it. Thus, if you had some wrong .vmsd information it must have been for some other reason.
There is a known bug that we describe in detail here: [b][url=https://33hops.com/esxi-snapshot-errors-and-solutions.html#vmsd-issue]a general system error occurred[/url][/b], which causes the .vmsd file to be regenerated with wrong information no matter what you do. We found out a way to work it around, it's easy to solve, not very intuitive though.
That message is coming from ESXi, revise your hardware. Computer systems can fail, but they rarely lie.
Using U3 doesn't neccessarily mean it won't work, just that we have not tested it thoroughly and we can't even say whether it will work or not. As said, the -flat.vmdk files are what's really important.
To much information for a first contact, you are reporting mixed issues, failed update, non working backup...
First of all, you need a working ESXi system you can rely on before attempting any backup restore or direct backup usage. You can't attempt anything on a system you don't even know to be functional, so reinstall from scratch and overwrite the ESXi OS partition with a new clean installation. XSIBackup is compatible with ESXi up to 6.7.0 U2 (as of 2019-10-07), thus if you install U3 you are on your own by now. If you don't have a configuration backup then you will have to re-register the VMs manually.
In second place, the files that you enumerate are not important. Your data is in the -flat.vmdk files, anything else can be rebuilt from the -flat.vmdk files, so those are the ones you should care the most about.
You might have reached the maximum number of inodes, check this:
[url]https://kb.vmware.com/s/article/1007638[/url]
That is just an informational message from part of the SSH tunnel.
- Is it affecting your backups?, apart from the error itself, which should be thrown as a mere warning, probably not even that. We will fix this ASAP.
- Is your VM big, does it take a lot of time for the backup to complete?
Thank you for the feedback, we will check those websites. Nonetheless version 1.0.0 is ready, we are just performing the pre-launch tests