[lvm-devel] Batch/queue LVM operations
Germano Percossi
germano.percossi at citrix.com
Mon Jul 31 09:01:18 UTC 2017
Hi,
Not sure if it an option for you but the Python bindings
allow you to instantiate a VG object that will hold the
lock and then issue all the commands you want before
flushing the metadata at the very end.
Cheers,
Germano
On 07/28/2017 08:22 PM, Eric Wheeler wrote:
> Hello,
>
> Is there an option to batch LVM operations?
>
> For example, I would like to delete 100 thin snapshots without updating
> the vgmeta 100 times.
>
> Same thing with lvcreate, lvresize, etc.
>
> If would be neat if `lvm`'s readline prompt could take multiple commands
> via stdin and commit them once, even at the expense of longer lock times.
>
> Is there already support for this in some form?
>
>
> --
> Eric Wheeler
>
> --
> lvm-devel mailing list
> lvm-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/lvm-devel
>
More information about the lvm-devel
mailing list