-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to compress VHD files #33
Comments
There is already such an option and it is documented in the README.md file: there is a "compress=true" option present that you can put on the command line (the default is false). We prefer compressing after-the-fact as it puts less stress on the server. Let us know if that works for you. We have a slightly different in-house version that we use which is much harder to maintain, hence we don't release it to the public as such so as to not cause issues that we are not comfortable with supporting. :-) |
I am already using this option, but it only applies to vm exports in XVA format, not to vhd format disk exports. The option compress=true documentation also says (https://github.com/NAUbackup/VmBackup/blob/master/VmBackup.py#L1159):
A usage for the XVA exports is e.g. here: https://github.com/NAUbackup/VmBackup/blob/master/VmBackup.py#L365
I am not sure whether there is support from the XenSever CLI to already compress a disk image; that would obviously preferred, as it reduces I/O.
That could be a good place to do the gzip compression not only on large file size, but also parameter/argument controlled. I figure that it is performance-wise the same as if I manually do a gzip afterwards (which I currently do), but an integrated solution with the backup script would be still nice. |
Hi, Rudolf: As you know, vdi-export doesn't contain a native compress feature. You'd have to do something like: xe vdi-export format=vhd uuid=UUID-of-VDI filename= | gzip -c > $EXPORT_DIR/name.vhd.gz It's something we can certainly consider; it's also something that could be requested of the XenServer team to incorporate as a feature request: http://bugs.xenserver.org/ is where that would need to be submitted. |
Am working with a Citrite looking into possible ways to improve on-the-fly compression. Will report back if something comes of this. |
I have a machine where I only export the primary HDD on a regular basis, thus make no full export of the machine. This works nicely with the VDI export option (thanks for that!).
As these VHD images take a quite a lot of space, adding an option to compress them would be great (e.g. my disk image is around 20GB uncompressed, but only ~4 GB compressed. As I keep them in a rotation for a longer period, that adds up to quite some space quickly.)
Therefore, I now manually run a gzip of VHD files in my backup folder, but if there is an option to integrate this in NAU/VmBackup, that would be highly appreciated.
The text was updated successfully, but these errors were encountered: