I'm on a server that shows a duplicate VG name. How can I rename one of these VolGroups to get rid of this conflict?
[root@dev-server dev]# lvs
WARNING: Duplicate VG name VolGroup00: zOuHvA-QTBR-wNPs-3GIQ-b2zQ-yOeH-2fBS87 (created here) takes precedence over ifDUDd-ePmZ-Er7H-xwst-70dY-hB3M-6YDNZc
WARNING: Duplicate VG name VolGroup00: Existing zOuHvA-QTBR-wNPs-3GIQ-b2zQ-yOeH-2fBS87 (created here) takes precedence over ifDUDd-ePmZ-Er7H-xwst-70dY-hB3M-6YDNZc
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
LogVol00 VolGroup00 -wi-ao 30.00G
LogVol01 VolGroup00 -wi-ao 127.91G
backup VolGroup00 -wi-ao 300.00G
rman VolGroup00 -wi-ao 300.00G
[root@dev-server dev]# pvs
WARNING: Duplicate VG name VolGroup00: zOuHvA-QTBR-wNPs-3GIQ-b2zQ-yOeH-2fBS87 (created here) takes precedence over ifDUDd-ePmZ-Er7H-xwst-70dY-hB3M-6YDNZc
WARNING: Duplicate VG name VolGroup00: Existing zOuHvA-QTBR-wNPs-3GIQ-b2zQ-yOeH-2fBS87 (created here) takes precedence over ifDUDd-ePmZ-Er7H-xwst-70dY-hB3M-6YDNZc
WARNING: Duplicate VG name VolGroup00: Existing zOuHvA-QTBR-wNPs-3GIQ-b2zQ-yOeH-2fBS87 (created here) takes precedence over ifDUDd-ePmZ-Er7H-xwst-70dY-hB3M-6YDNZc
PV VG Fmt Attr PSize PFree
/dev/cciss/c0d0p2 VolGroup00 lvm2 a-- 1.64T 918.62G
/dev/cciss/c0d1p1 VolGroup00 lvm2 a-- 3.27T 3.27T
/dev/mpath/mpath0p2 VolGroup00 lvm2 a-- 405.88G 0
vgdisplay
WARNING: Duplicate VG name VolGroup00: zOuHvA-QTBR-wNPs-3GIQ-b2zQ-yOeH-2fBS87 (created here) takes precedence over ifDUDd-ePmZ-Er7H-xwst-70dY-hB3M-6YDNZc
WARNING: Duplicate VG name VolGroup00: Existing zOuHvA-QTBR-wNPs-3GIQ-b2zQ-yOeH-2fBS87 (created here) takes precedence over ifDUDd-ePmZ-Er7H-xwst-70dY-hB3M-6YDNZc
WARNING: Duplicate VG name VolGroup00: Existing zOuHvA-QTBR-wNPs-3GIQ-b2zQ-yOeH-2fBS87 (created here) takes precedence over ifDUDd-ePmZ-Er7H-xwst-70dY-hB3M-6YDNZc
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 405.88 GB
PE Size 32.00 MB
Total PE 12988
Alloc PE / Size 12988 / 405.88 GB
Free PE / Size 0 / 0
VG UUID ifDUDd-ePmZ-Er7H-xwst-70dY-hB3M-6YDNZc
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 9
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 4
Open LV 4
Max PV 0
Cur PV 2
Act PV 2
VG Size 4.91 TB
PE Size 32.00 MB
Total PE 160955
Alloc PE / Size 24253 / 757.91 GB
Free PE / Size 136702 / 4.17 TB
VG UUID zOuHvA-QTBR-wNPs-3GIQ-b2zQ-yOeH-2fBS87
My quick attempt to re-name the VolGroup (could be doing this wrong...):
[root@dev-server dev]# vgrename /dev/cciss/c0d1 /dev/VolGroup02
WARNING: Duplicate VG name VolGroup00: zOuHvA-QTBR-wNPs-3GIQ-b2zQ-yOeH-2fBS87 (created here) takes precedence over ifDUDd-ePmZ-Er7H-xwst-70dY-hB3M-6YDNZc
WARNING: Duplicate VG name VolGroup00: Existing zOuHvA-QTBR-wNPs-3GIQ-b2zQ-yOeH-2fBS87 (created here) takes precedence over ifDUDd-ePmZ-Er7H-xwst-70dY-hB3M-6YDNZc
Volume group name cciss/c0d1 has invalid characters
[root@dev-server dev]#
Output of df -h
:
Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00
30G 17G 12G 59% / /dev/cciss/c0d0p1 99M 30M 65M 32% /boot tmpfs 63G 0 63G 0% /dev/shm /dev/mapper/VolGroup00-rman
296G 8.9G 272G 4% /rman/11g /dev/mapper/VolGroup00-backup
296G 34G 248G 12% /backup