Running multiple LVM commands in a batch
Demi Marie Obenour <[email protected]>
| Newsgroups | gmane.linux.lvm.general |
|---|---|
| Message-ID | <YlAd0RlWERgOqP9Z@itl-email> |
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. -- Sincerely, Demi Marie Obenour (she/her/hers) Invisible Things Lab _______________________________________________ linux-lvm mailing list [email protected] https://listman.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEdodNnxM2uiJZBxxxsoi1X/+cIsEFAmJQHdEACgkQsoi1X/+c IsGu8hAAjIKp4wxvEcjNAL30bMi3wOUVW7Kzcgb/YCdXFIHD/uzfugn7joxyocG9 sKQURN/nvFNYfKI4cbFCuA0qhfu1AaA7kZVBntDG4lvzLqaWrijIrNF8AYMo+Mub VV0rt1UGW3h4ndYPSaEEPT/yj5RckHcSHMjPRmf22AVNN5KPxSltsW6gwMz4ri+2 xF536D1QE9X6/1dFb+epC2NDM8QJ2UHOfBof3hruTn/uuHSUqunqA4IXbIDOu5WK X55czoBwbTTJecW6oiC6Xfsh30vmhaASrHaIUhSVmAvItHLvYzO45BzRdjj78vub oxw7X1yLU9MgOFIglZLVwcaWFRkmwFKlzyWJ3stlPgfrtD3rC4mSa8vFBhDOfikx oQ5UCja8AEIkaqbMBXFRfxNnmAmHOO+PWwpHJaWlCaOx5tC9yKck4zJ27DP4Basv t2+ujRM/huSIF9XWlQeKQSZF36aVu3lEtgYs47PFM2RFiLLeCBX1zaqtjO7l4Ti9 nN0U9qdOmvHeDuTYECMPrH/jnn0vtgl7lRBumlbvQmNIpUOqcTtvgAoceWfrtXBe zw/A+aA5a6RqiuIMf1pkvcD89qFupGRhi87cfOPRLc3gMm+jy6yfIMuvZfgx8vq7 h1RGwEvhh42wi9btbB782RdaxJ9MuJi78aVvpbDTaayvoIxACtM= =K6dq -----END PGP SIGNATURE-----