-
-
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
Thin pool does not start if VM has "-" in name #4332
Comments
I've just tried and cannot reproduce the problem. Does it still happen on your system @daniel-ayers ? |
If pool or group name have '-', it will be mangled as '--' in /dev/mapper. Use /dev/VG_NAME/LV_NAME symlink instead. Related QubesOS/qubes-issues#4332
I take it the commit means the problem was found? I'm happy to test it again with current released updates on my system if that helps. |
No, I haven't managed to reproduce it. Commit fixes similar issues in automated tests, but isolated to tests only (I've tried to use them too, to reproduce the problem). |
Maybe this isn't about '-' at all? Maybe it's because secondary VG + thin pool is activated after qubesd service start? That wouldn't explain why you had different results depending on VM name, but maybe that's just a coincidence? |
Commit 15cf593 "tests/lvm: fix checking lvm pool existence" attempted to fix handling '-' in pool name by using /dev/VG/LV symlink. But those are not created for thin pools. Change back to /dev/mapper, but include '-' mangling. Related QubesOS/qubes-issues#4332
Commit 15cf593 "tests/lvm: fix checking lvm pool existence" attempted to fix handling '-' in pool name by using /dev/VG/LV symlink. But those are not created for thin pools. Change back to /dev/mapper, but include '-' mangling. Related QubesOS/qubes-issues#4332
Commit 15cf593 "tests/lvm: fix checking lvm pool existence" attempted to fix handling '-' in pool name by using /dev/VG/LV symlink. But those are not created for thin pools. Change back to /dev/mapper, but include '-' mangling. Related QubesOS/qubes-issues#4332
I've got comparable behavior and error message (Qubes 4.0, latest updates). VM on second HDD in thin pool does not start unless I start one VM on the boot HDD first. There is no dash in either of the both VM names. |
This issue is being closed because:
If anyone believes that this issue should be reopened and reassigned to an active milestone, please leave a brief comment. |
Qubes OS version:
4.0 (with current dom0 updates)
Affected component(s):
Storage (of AppVMs on Secondary Storage per instructions at https://www.qubes-os.org/doc/secondary-storage/)
Steps to reproduce the behavior:
Configure a new volume group and thin pool by following the instructions at https://www.qubes-os.org/doc/secondary-storage/.
In my case I created a pool called
ssdpool
in a VG calledssd
over two PVs, each of which were inside a LUKS container. Result:Reboot computer.
Attempt to start new VM - it will not start and message appears "Qube Status: file library Domain file-library has failed to start: volume ssd/vm-file-library-private missing"
Create another VM using the new thin pool, this time ensuring the name does not contain a "-".
Reboot.
Attempt to start
file-library
- works.Expected behavior:
Each VM starts as requested.
Actual behavior:
I tested this with various combinations of VMs using the new thin pool: only file-library (fails); file-library and baldrick (works); file-library and another-vm (fails); file-library, another-vm and baldrick (works).
If all of the VMs using the thin pool have "-" in the VM name the pool does not work/start.
General notes:
It appears there is a bug where the thin pool is not started unless there is at least one VM using it that does not have "-" in its name. Suggests a bug parsing VM or LV names for "-", noting that "-" is used as a delimiter in the LV names.
Related issues:
The text was updated successfully, but these errors were encountered: