-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
qvm-backup-restore should check if there is enough disk space / should continuously make sure to not run out of disk space #4791
qvm-backup-restore should check if there is enough disk space / should continuously make sure to not run out of disk space #4791
Comments
Another related user experience: https://groups.google.com/d/msg/qubes-users/hv4Jao4V0BU/R7e7cFn_EwAJ |
Add an option to wait for disk space before extracting a file from qfile archive. This will allow extracting backup archive using much smaller temporary space (only enough to hold few chunks, not the whole archive). Technically, libqubes-rpc-filecopy library got a set_wait_for_space() function, accepting a margin (in bytes) to be kept free. QubesOS/qubes-issues#4791
Add -w MARGIN option to always leave at least MARGIN bytes of free space. QubesOS/qubes-issues#4791
…ring Make it possible to use qvm-backup-restore in a VM. This commit is about accessing backup itself, when stored in another VM. This involve using qfile-unpacker instead of qfile-dom0-unpacker and also requesting disk space monitoring, as a VM probably won't have enough space to hold the whole backup at once. QubesOS/qubes-issues#4791 QubesOS/qubes-issues#5310
Add -w MARGIN option to always leave at least MARGIN bytes of free space. QubesOS/qubes-issues#4791
…ring Make it possible to use qvm-backup-restore in a VM. This commit is about accessing backup itself, when stored in another VM. This involve using qfile-unpacker instead of qfile-dom0-unpacker and also requesting disk space monitoring, as a VM probably won't have enough space to hold the whole backup at once. QubesOS/qubes-issues#4791 QubesOS/qubes-issues#5310
Add an option to wait for disk space before extracting a file from qfile archive. This will allow extracting backup archive using much smaller temporary space (only enough to hold few chunks, not the whole archive). Technically, libqubes-rpc-filecopy library got a set_wait_for_space() function, accepting a margin (in bytes) to be kept free. QubesOS/qubes-issues#4791
Add an option to wait for disk space before extracting a file from qfile archive. This will allow extracting backup archive using much smaller temporary space (only enough to hold few chunks, not the whole archive). Technically, libqubes-rpc-filecopy library got a set_wait_for_space() function, accepting a margin (in bytes) to be kept free. QubesOS/qubes-issues#4791
Add -w MARGIN option to always leave at least MARGIN bytes of free space. QubesOS/qubes-issues#4791
…ring Make it possible to use qvm-backup-restore in a VM. This commit is about accessing backup itself, when stored in another VM. This involve using qfile-unpacker instead of qfile-dom0-unpacker and also requesting disk space monitoring, as a VM probably won't have enough space to hold the whole backup at once. QubesOS/qubes-issues#4791 QubesOS/qubes-issues#5310
…ring Make it possible to use qvm-backup-restore in a VM. This commit is about accessing backup itself, when stored in another VM. This involve using qfile-unpacker instead of qfile-dom0-unpacker and also requesting disk space monitoring, as a VM probably won't have enough space to hold the whole backup at once. QubesOS/qubes-issues#4791 QubesOS/qubes-issues#5310
Avoid failing restore after potentially lengthy processing - check available space first. This will be even more important after adding waiting for free space - then if there won't be enough free space, the process will deadlock. QubesOS/qubes-issues#4791
Avoid failing restore after potentially lengthy processing - check available space first. This will be even more important after adding waiting for free space - then if there won't be enough free space, the process will deadlock. QubesOS/qubes-issues#4791 (cherry picked from commit 10d4381)
Instead of failing the restore process, pause data extracting, until already extracted data gets processed. This commit implements this for local tar extraction. Extracting data received from a VM is handled in qfile-(dom0-)unpacker, which also has similar feature, turned on in 6338b93. Fixes QubesOS/qubes-issues#4791 (cherry picked from commit 9360865)
This test uses three tricks to test /var/tmp space monitoring: 1. Creates a big uncompressed backup (2GB file instead of few bytes) 2. Mount small tmpfs over /var/tmp (650MB - minimal space that should not deadlock the restore) 3. Artificially slow down data processing by adding sleep() QubesOS/qubes-issues#4791 (cherry picked from commit 0f42fd0)
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The component
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The component
|
Automated announcement from builder-github The component
Or update dom0 via Qubes Manager. |
Qubes OS version:
R4.0
Affected component(s):
dom0 qvm-backup-restore
Steps to reproduce the behavior:
Backup.
Restore the backup which fails for some reason.
Try restore backup again.
Will fail due to low disk space?
Expected behavior:
Check for enough disk space.
Actual behavior:
Run out of disk space.
General notes:
Running out of disk space risks a no longer bootable system.
Files it stored temporarily in /var/tmp are not deleted when trying to verify a backup which fails. Another attempt then can lead to no longer having enough disk space.
Related issues:
The text was updated successfully, but these errors were encountered: