diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2023-05-16 17:17:55 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2023-05-16 17:17:55 +0200 |
commit | 3b4e7d1625ddc48dd9393f03a59cc6b74113275a (patch) | |
tree | a2065c1e4cb480d193225270c41633c5a95d7cf1 /test/shell/lvconvert-raid-takeover-raid4_to_linear.sh | |
parent | fd6e113bba5fed5ee41152cde33220294c24ce2b (diff) | |
download | lvm2-3b4e7d1625ddc48dd9393f03a59cc6b74113275a.tar.gz |
toollib: provide proper hint for referencing VG uuid in case of duplicate VG names
vgrename does not support -S|--select, so do not provide a hint about
using it. Instead, provide a hint about using VG uuid directly.
❯ vgs
WARNING: VG name vg1 is used by VGs DXjcSK-gWfu-5gLh-9Kbg-sG49-dtRr-GqXzGL and MVMfyM-sjOa-M2xV-AT4Y-JddR-h4SP-UO5Ttk.
Fix duplicate VG names with vgrename uuid, a device filter, or system IDs.
VG #PV #LV #SN Attr VSize VFree
vg1 1 0 0 wz--n- 124.00m 124.00m
vg1 1 0 0 wz--n- 124.00m 124.00m
(vgrename does not support -S|--select)
❯ vgrename vg1 vg2
WARNING: VG name vg1 is used by VGs DXjcSK-gWfu-5gLh-9Kbg-sG49-dtRr-GqXzGL and MVMfyM-sjOa-M2xV-AT4Y-JddR-h4SP-UO5Ttk.
Fix duplicate VG names with vgrename uuid, a device filter, or system IDs.
Multiple VGs found with the same name: skipping vg1
Use VG uuid in place of the VG name.
(vgchange does support -S|--select)
❯ vgchange --addtag a vg1
WARNING: VG name vg1 is used by VGs DXjcSK-gWfu-5gLh-9Kbg-sG49-dtRr-GqXzGL and MVMfyM-sjOa-M2xV-AT4Y-JddR-h4SP-UO5Ttk.
Fix duplicate VG names with vgrename uuid, a device filter, or system IDs.
Multiple VGs found with the same name: skipping vg1
Use --select vg_uuid=<uuid> in place of the VG name.
Diffstat (limited to 'test/shell/lvconvert-raid-takeover-raid4_to_linear.sh')
0 files changed, 0 insertions, 0 deletions