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

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Reply via email to