redhat – LVM:重复的VG名称VolGroup00

前端之家收集整理的这篇文章主要介绍了redhat – LVM:重复的VG名称VolGroup00前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在服务器上显示重复的VG名称.如何重命名其中一个VolGroup以摆脱这种冲突?
  1. [root@dev-server dev]# lvs
  2. WARNING: Duplicate VG name VolGroup00: zOuHvA-QTBR-wNPs-3GIQ-b2zQ-yOeH-2fBS87 (created here) takes precedence over ifDUDd-ePmZ-Er7H-xwst-70dY-hB3M-6YDNZc
  3. 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
  4. LV VG Attr LSize Origin Snap% Move Log Copy% Convert
  5. LogVol00 VolGroup00 -wi-ao 30.00G
  6. LogVol01 VolGroup00 -wi-ao 127.91G
  7. backup VolGroup00 -wi-ao 300.00G
  8. rman VolGroup00 -wi-ao 300.00G
  9. [root@dev-server dev]# pvs
  10. WARNING: Duplicate VG name VolGroup00: zOuHvA-QTBR-wNPs-3GIQ-b2zQ-yOeH-2fBS87 (created here) takes precedence over ifDUDd-ePmZ-Er7H-xwst-70dY-hB3M-6YDNZc
  11. 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
  12. 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
  13. PV VG Fmt Attr PSize PFree
  14. /dev/cciss/c0d0p2 VolGroup00 lvm2 a-- 1.64T 918.62G
  15. /dev/cciss/c0d1p1 VolGroup00 lvm2 a-- 3.27T 3.27T
  16. /dev/mpath/mpath0p2 VolGroup00 lvm2 a-- 405.88G 0
  17.  
  18. vgdisplay
  19. WARNING: Duplicate VG name VolGroup00: zOuHvA-QTBR-wNPs-3GIQ-b2zQ-yOeH-2fBS87 (created here) takes precedence over ifDUDd-ePmZ-Er7H-xwst-70dY-hB3M-6YDNZc
  20. 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
  21. 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
  22. --- Volume group ---
  23. VG Name VolGroup00
  24. System ID
  25. Format lvm2
  26. Metadata Areas 1
  27. Metadata Sequence No 3
  28. VG Access read/write
  29. VG Status resizable
  30. MAX LV 0
  31. Cur LV 2
  32. Open LV 0
  33. Max PV 0
  34. Cur PV 1
  35. Act PV 1
  36. VG Size 405.88 GB
  37. PE Size 32.00 MB
  38. Total PE 12988
  39. Alloc PE / Size 12988 / 405.88 GB
  40. Free PE / Size 0 / 0
  41. VG UUID ifDUDd-ePmZ-Er7H-xwst-70dY-hB3M-6YDNZc
  42.  
  43. --- Volume group ---
  44. VG Name VolGroup00
  45. System ID
  46. Format lvm2
  47. Metadata Areas 2
  48. Metadata Sequence No 9
  49. VG Access read/write
  50. VG Status resizable
  51. MAX LV 0
  52. Cur LV 4
  53. Open LV 4
  54. Max PV 0
  55. Cur PV 2
  56. Act PV 2
  57. VG Size 4.91 TB
  58. PE Size 32.00 MB
  59. Total PE 160955
  60. Alloc PE / Size 24253 / 757.91 GB
  61. Free PE / Size 136702 / 4.17 TB
  62. VG UUID zOuHvA-QTBR-wNPs-3GIQ-b2zQ-yOeH-2fBS87

快速尝试重新命名VolGroup(可能是这样做错了……):

  1. [root@dev-server dev]# vgrename /dev/cciss/c0d1 /dev/VolGroup02
  2. WARNING: Duplicate VG name VolGroup00: zOuHvA-QTBR-wNPs-3GIQ-b2zQ-yOeH-2fBS87 (created here) takes precedence over ifDUDd-ePmZ-Er7H-xwst-70dY-hB3M-6YDNZc
  3. 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
  4. Volume group name cciss/c0d1 has invalid characters
  5. [root@dev-server dev]#

输出df -h:

  1. Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00
  2. 30G 17G 12G 59% / /dev/cciss/c0d0p1 99M 30M 65M 32% /boot tmpfs 63G 0 63G 0% /dev/shm /dev/mapper/VolGroup00-rman
  3. 296G 8.9G 272G 4% /rman/11g /dev/mapper/VolGroup00-backup
  4. 296G 34G 248G 12% /backup

解决方法

从手册页: –
  1. "vgrename Zvlifi-Ep3t-e0Ng-U42h-o0ye-KHu1-nl7Ns4 VolGroup00_tmp"
  2. changes the name of the Volume Group with UUID Zvlifi-Ep3t-e0Ng-U42h-o0ye-KHu1-nl7Ns4 to "VolGroup00_tmp".

……所以你的情况: –

  1. vgrename zOuHvA-QTBR-wNPs-3GIQ-b2zQ-yOeH-2fBS87 newvolgroupname

…将ID为zOuHvA-QTBR-wNPs-3GIQ-b2zQ-yOeH-2fBS87的卷组重命名为newvolgroupname.

猜你在找的Linux相关文章