On Thu, Mar 21, 2019 at 12:18:56PM +0100, Lukas Czerner wrote: > > So you're going to be calling vgs for every lvs even though you can have > a whole bunch of them in the same vg. That's not very efficient. > > You can just filter it out with the lvs at the start of the loop by > adding the proper select string. > > -S vg_free\>${snap_size_mb} Good point. BTW, that's why I had ignored one of your other suggestions --- I needed LVM_VG_NAME, which means I needed more than one output from lvs, so I use the output directly as you suggested. - Ted