[linux-lvm] Running multiple LVM commands in a batch
Demi Marie Obenour
demi at invisiblethingslab.com
Fri Apr 8 11:34:38 UTC 2022
Would it be possible for LVM to support multi-operation transactions
within a volume group? Qubes OS often needs to perform 3 LVM commands
at once and doesn’t care about the order of the operations. It would
also be nice to get the result of the system afterwards, to avoid
needing a separate “lvm lvs” call.
The purpose of this is to improve performance, by allowing device
scanning, metadata access, and synchronizing with udev to happen once
per batch instead of once per operation. I’m willing to promise that
there are no dependencies between operations and that the operations can
safely be performed concurrently. I also don’t need the overall
operation to be atomic, so long as the system is always in a consistent
state and any problems result in a non-zero exit code. Getting the
result of the individual operations would be nice but is not required.
I’m not sure what the best syntax for this would be. For the
interactive shell, “begin” and “end” commands might be an option.
Demi Marie Obenour (she/her/hers)
Invisible Things Lab
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: not available
More information about the linux-lvm