Skip to content
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

Feature request #62

Open
Daniel-Furcht opened this issue Jan 7, 2018 · 13 comments
Open

Feature request #62

Daniel-Furcht opened this issue Jan 7, 2018 · 13 comments

Comments

@Daniel-Furcht
Copy link

Hi. Its possible to add option to to export without taken a snapshoot for VMs in down state?
I think that can acelerate the backup process and save some disk space.

Thanks in advance.

@NAUbackup
Copy link
Owner

Hi, Daniel. Interesting thought, The danger is of course that someone might suddenly start it up in the middle of the backup. In general, you'd think any regularly scheduled backups would be for running VMs that are being used actively. Also, (1) there is only ever one snapshot of a VM being created for the backup at any time which is also subsequently deleted, so the amount of free space needed on any SR will not exceed that of the biggest VM there is, and (2) a snapshot takes very little time to create, so it's not like there would be a huge amount of time difference in the process.

--Tobias

@Daniel-Furcht
Copy link
Author

Hi, thanks for your prompt response!
I have used NAUBackup sometimes, and observed on your 1 point, that the free space is not always restored after the deletion of the snapshoot. This occur if multiple VMs are backuped in sequence with a crontab.
Is this an normal behavior?
In my server after 3 weeks of weekly backup, the storage becomes full. Its a set of 4 VMs with 100Gb to 300Gb disks. Local Storage as 2 TB and remain full after that.

@NAUbackup
Copy link
Owner

That would be a coalesce issue, which is always a pain to deal with. Short of trying to manually scan the SR or moving all the VMs to a different SR and wiping it clean before moving VMs back, there is alas no really good recourse. It seems to happen worse for some than for others. Manually deleting snapshots should result in space recovery within at most 24 hours.

@thomasmck
Copy link

Would it be worth adding an "xe sr-scan" call into the backup code to try and stop this issue from occuring? Not aware of any downsides from doing it regularly.

@Daniel-Furcht
Copy link
Author

@NAUbackup
Copy link
Owner

Thanks for the link, Daniel. Here, the snapshot that gets taken just before performing a backup is automatically deleted after the backup process completes. Taking a snapshot before a backup is generally a good idea because there is the off change that a shut down VM might be started up during the backup process, which would be really bad. As to the sr-scan, I'm putting together a number of items into the queue for the next release. Have been working on this solo a long time now and so have had unfortunately very little extra time; I'm hopeful I may be able to get some help in the future to sustain this package a bit better.

--Tobias

@thomasmck
Copy link

@NAUbackup I can probably lend a hand if you have some specific features you want to add.

Tom

@NAUbackup
Copy link
Owner

"The" Thomas Mckelvey?!

@thomasmck
Copy link

Yes :P

@Daniel-Furcht
Copy link
Author

Thanks for response!
Hi, is there any way to check for pending coalesce tasks? Or stalled tasks?
Perhaps introduce a wait for the task finish before starting a new snapshot.

Daniel

@NAUbackup
Copy link
Owner

@thomasmck -- awesome! I will contact you off-line. 💯

@NAUbackup
Copy link
Owner

@Daniel-Furcht, will have to look into this. Good suggestion!

@NAUbackup
Copy link
Owner

After consideration, I think a better place to put in an sr-scan would be in the cron job (or script) that runs the backup job. That way, it can be handed independently, and if an SR changes or such, it won't break the backup portion unexpectedly, This is really not a direct backup operation, though it can affect the outcome of a backup operation. Still looking into checking if a coalesce operation is currently in progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants