Do not activate not currently used LVM volumes #6184
Labels
C: core
C: storage
P: default
Priority: default. Default priority for new issues, to be replaced given sufficient information.
The problem you're addressing (if any)
Active LVM volumes takes some kernel resources, but also activating them takes time. Active volumes also require more locking on LVM side when handling them - for example when creating a snapshot (volume clone) if source volume is active, it needs to be suspended. This takes time.
Describe the solution you'd like
Keep active only volumes currently in use by a running VM. Others should be inactive. LVM thin snapshots are inactive by default, unless explicitly requested to be activated (we the current LVM storage pool driver does). This require following change:
-kn
and-ay
options fromlvcreate
calllvchange -ay
call in the VM start pathlvchange -an
call in the VM shutdown pathWhere is the value to a user, and who might that user be?
Less resources used in dom0. Faster VM startup/shutdown time.
Relevant documentation you've consulted
https://dev.qubes-os.org/projects/core-admin/en/latest/qubes-storage.html
Related, non-duplicate issues
The text was updated successfully, but these errors were encountered: