You are not logged in.
We have just covered that in detail in v. 1.5.0.11 and in our post:
[url=https://33hops.com/xsibackup-extended-rotation-features.html]Extended rotation features[/url]
In any case, the perfect solution to your requirement has always been possible and is indeed commented in this very same thread.
/scratch/XSI/XSIBackup-DC/xsibackup \
--replica[=cbt] \
"VMs(VM1,VM2, VM3...)" \
/vmfs/volumes/backup/replica/$(( $(date +%j) % N )) \
--use-smtp="1" \
--mail-to=mail-from \
>> /scratch/XSI/XSIBackup-DC/var/log/xsibackup.log 2>&1The mod operator of the Julian date [b]$(( $(date +%j) % N ))[/b] will generate a rotating pattern 0 to N-1
If there's something that you don't get about it, please let us know what it is.
Caching issues should be resolved by now.
Please, do not asume that (c)XSIBackup-DC will behave the same way as (c)XSIBackup-Classic, it's different software, you can't interexchange commands and arguments, not even concepts between them.
DC is a far more advanced piece of software than Classic versions, please read the manual to learn how DC works. It's conceptuelly close to Classic versions, still the arguments and flags are different as well as its behaviour.
We had not fully understood what you were trying to accomplish.
The replication process relies on the target disks having not changed since the last replication cycle, that's obviously a basic and unavoidable requirement, as otherwise you could corrupt your data.
The way (c)XSIBackup follows track of the disks states is by comparing their CIDs in the .vmdk file descriptors. If you do anything that alters this, (c)XSIBackup will asume a change in the target VM and resync from scratch.
Please, try version 1.5.0.11, you should find this problem solved.
Your output is plagued with an error message stating that some VM registered to your host is simply not there.
Skipping invalid VM '26'We can't help you to detect your issue when you haven't even paid attention to that "little detail". For a host to be backed up, first of all it must be in a good working condition and under the control of the Sysadmin.
(c)XSIBackup relies on the output from part of the shell to detect errors and act accordingly, it can't just work with a recurring error message constantly bubbling up the shell.
Ops! sorry, yes it does exist indeed, still its purpose is not to create timestamped folders for replicas, but to group backups into a single folder.
To create timestamped folders or rotate backups, please use the exposed techniques.
Option --timestamp does not exist in (c)XSIBackup-DC
You can produce the same result by using something like the job below.
./xsibackup --replica "VMs(VM1,VM2)" "root@11.2.3.4:22:/vmfs/volumes/datastore1/replicas/$(date +%Y%m%d%H%M%S)That will produce new replicas, each one of them in its own timestamped folder. From version 1.5.0.11 you will be able to rotate such structure of folders, still that method is rudimentary, as it implies copying all data every time.
It is indeed far less advanced than the previously proposed with a fixed number of folders set in the very same job design. If you use the code below, you don't need rotating and on top of that all replicas will be differential from the second pass
/scratch/XSI/XSIBackup-DC/xsibackup \
--replica[=cbt] \
"VMs(VM1,VM2, VM3...)" \
/vmfs/volumes/backup/replica/$(( $(date +%j) % 5 )) \
--use-smtp="1" \
--mail-to=mail-from \
>> /scratch/XSI/XSIBackup-DC/var/log/xsibackup.log 2>&1We really didn't get you on this:
[quote]
I indeed tried running replica with --timestamp without datetime parameter but it complains (only raising verbosity..) about the missing datetime. Just fixing this could be really appreciated.
[/quote]
Thank you for the feedback, it was clear to us that something in that VM layout was not right.
We are just finishing this improvements. We will release 1.5.0.11 in short which will allow rotating replica folders with rotate based on number of folders, days or a predefined user limit by size.
In any case the most advanced case for this type of utilization is already available and explained in the above example
/scratch/XSI/XSIBackup-DC/xsibackup \
--replica[=cbt] \
"VMs(VM1,VM2, VM3...)" \
/vmfs/volumes/backup/replica/$(( $(date +%j) % 5 )) \
--use-smtp="1" \
--mail-to=mail-from \
>> /scratch/XSI/XSIBackup-DC/var/log/xsibackup.log 2>&1Rotating on a fixed number of folders using the Julian day modulus approach allows to use CBT and thus have instant replicas to multiple folders.
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 [b][url=https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.storage.doc/GUID-B3522FF1-76FF-419D-8DB6-F15BFD4DF12A.html]raw device mapping[/url][/b], 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.
You need to generate the request.key file and upload it to the user's license panel.
Contact support if you need help.
It could be a bug, we'll request that to be revised and eventually fixed in some next release.
It's not that you are redirecting the output to a log file but that you aren't running the program interactively. Free version can't be run from a crontab, you need it to be running on a TTY.
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/folderTherefore, 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: [url=https://33hops.com/xsibackup-datacenter-pruning-old-backups.html]Concerns When Using Pruning on Corporate Backup Data Sets[/url].
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.
Great, you narrowed your issue down a bit more. Maybe the SSD is not supported by ESXi and it's working in some sort of compatibility mode.
Use this kind of syntax when running dd tests
time dd if=/dev/random bs=1000000 count=4000 of=/vmfs/volumes/NAS1/testfileThe /dev/random device will ensure random strings of bytes are read, otherwise, using the /dev/zero device might not offer a real insight, as optimizations in the NFS/iSCSI layer can blur the results.
You can't use /dest-dir as a valid backup path within (c)ESXi.
Please run something like
xsibackup --backup "VMs(vm-name)" /vmfs/volumes/backup/dest-dir >> logfileAnd let us know if it worked.
You haven't still stated which version you are using.
We have tested version 1.5.0.9 and the free unlicensed features work as expected. Are you maybe using CBT?
WD MYCloud is not among the professional kind of NAS device you should expect close to theoretical limit speeds, still you should expect 20-30 MB/s of sustained throughput, especially if it's not a MyCloud NAS from the home line of appliances.
Your i7 3930K CPU is from 2011, still not bad, you should expect some decent performance from it.
Saying 1 gb NIC is close to saying nothing. Cheap devices, like the popular Realtek chipsets will not yield more than some MB/s when used in ESXi. Use Intel NICs, even cheap desktop ones will do it at good average rates.
Check your switch, it might be the culprit. You should not expect more than 15-20MB/s of effective troughput from cheap devices.
We don't know what's the state of your data, nonetheless what's important here is the -flat.vmdk files and the snapshots containing intermediate data. Try to not backup VMs with previous snapshots to simplify things. Also, if you know the topolgy of a chain of snapshots, which is rather simple, you can consolidate from any snapshot by using vmkfstools clone features too and generate a new consolidated VM.
We don't know what your setup is, we do know it's abnormally slow. If you don't want to share with the rest of us, it's OK, nonetheless, the less information you offer, the less other people will be able to help you.
We aren't really getting you.
Why do you attribute (c)XSIBackup-DC a potential that it doesn't have?.
It's a backup/ replication program. It copies what's there. It doesn't decide what should come up for you, it's you that has to have control on what happens.
If you have some snapshots containing intermediate data, of course, just check that the .vmx file is pointing to the snapshot you want to use, changing it to use the base disk or any of the snapshots in a chain is something trivial and we won't get into it.
In any case if the .vmx file was pointing to the base disk and you switched it on, you should restore again and use the original base disk to prevent corrupting the data. Restore the VM and edit the .vmx file selecting the snapshot to use before your switch it on.
Your hardware is clearly underperforming, please do make sure that you have activated the raid controller cache, especially if you own an HP server, 70-80%/20-30% R/W will do it.
Our software backs your VMs up. We don't know what snapshots you have or what time they were taken at. The backup snapshot is taken to backup the VM and then deleted once the backup finishes. If you abruptly interrupt some backup/replica process (c)XSIBackup will still be able to detect it and delete the backup snapshot automatically.
If for whatever reason you receive some kind of unhandled segfault, then you will have to delete the backup snapshot manually. It is clearly marked as XSINNNNNN..., so there isn't any possibility that you take it for something else.
Files are copied, but there isn't any kind of magical mechanism that can teleport to some other previous state of the VM apart from your own user snapshots.
Why they were taken or what they are doing there is something we can't get into.
Well, you don't say the most importants fact: the size of your VM. If it took >8 h to restore, we asume it must be bigger than 700GB, probably much more than that.
You don't say whether the other VM was running from the NAS, we assume it wasn't.
You obviously need to size your infrastructure to your needs. A full restore process is something that you hopefully don't have to accomplish very often, still you need to make sure that your other production VMs are functional in the meanwhile.
As you may imagine, we are constantly performing that kind of operations and what we observe is quite different: the rest of the production VMs still run, they become slower, as expected, still they run O.K.
The figures where you should have posed your attention the most are: [b]MEM overcommit avg[/b] and [b]CPU load average[/b].
12:22:52pm up 138 days 1:27, 470 worlds, 1 VMs, 2 vCPUs; MEM overcommit avg: 0.00, 0.00, 0.0012:08:05pm up 138 days 1:12, 473 worlds, 1 VMs, 2 vCPUs; CPU load average: 0.01, 0.01, 0.01If you say that Load Average was low we assume these tripplet was below 2.00 all the time.
Still, we don't know what kind of hardware you have, the amount of memory: you may need more, or, in case you have an HP server, whether you have enabled the read/ write cache on the controller, [url=https://33hops.com/hp-server-controller-cache-not-activated-issue.html]enable HP controller cache[/url].
You can always use a different NIC for the backup/ restore operations, this will alleviate the NIC load. [b]Nice[/b] is not available in (c)ESXi
The config backups are placed in a folder in the backup repository or in the replicated VM.
What do you mean by buried?, the config backup is easily accessible.
If you just want to backup the (c)ESXi host config, script and .tar the /etc folder that's what a config backup is in the end.
At the end of every CBT round the remote hash maps of the descriptor files (.vmdk) are resync'ed, as they need to be modified to remove the CBT attributes from the replicated VM. This is noted as per the line in the CBT +1 round as.
SHA-1 hashes updated for .vmdk descriptor filesWhat (c)XSIBackup-DC detects is that some of the descriptor files, one or more, are different than the ones stored in the previous CBT cycle. What we would do is to check whether the .vmdk file/s SHA-1 checksum is the same as the one stored in the .map folder as your-disk.vmdk.blocklog.
Could it be that you forgot to clean the remote .map folder of some previous file/s?
Did you restart the CBT cycle from scratch?
Did you reset CBT for the new VM?
We fixed this in [url=https://33hops.com/xsibackup-copia-de-seguridad-vmware-esxi.html#prodchart]1.5.0.10[/url], already available to download. It was just a matter of tweaking an if clause, thus we released a quick fix.
Please confirm that you can now backup the VM as desired.