[lvm-devel] Batch/queue LVM operations

Bryn M. Reeves bmr at redhat.com
Mon Jul 31 12:16:42 UTC 2017


On Fri, Jul 28, 2017 at 09:43:50PM +0200, Zdenek Kabelac wrote:
> Dne 28.7.2017 v 21:22 Eric Wheeler napsal(a):
> > 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.
> 
> You could possibly use --select feature to handle all removals with
> just one lvremove command.

Couldn't you also feed a sequence of commands to the lvm shell ('lvm')?

Iiirc that also does (or did) some caching of state between subsequent
invocations in the same shell?

Regards,
Bryn.
 




More information about the lvm-devel mailing list