[linux-lvm] Possible Bug vgrename

David Teigland teigland at redhat.com
Mon Jun 21 19:48:23 UTC 2021

On Mon, Jun 21, 2021 at 11:32:12AM -0700, N wrote:
> Is there a way to temporarily rename (without actually renaming) the volume
> groups (i.e. like setting a mask for the volume group names), or is there a
> way to force vgrename to actually make the change even if there is an
> existing conflict (preferably without a reboot)?

You can set a device filter the vgrename command so it only sees the
devices with the VG you want to change, and won't see devices with the
duplicate name.

vgrename --config 'devices/filter=["a|/dev/...|", "r|.|"]' vg1 vg2

More information about the linux-lvm mailing list