發生時機:兩顆硬碟都安裝了相同的 CentOS系統,而且都用了預設的 LVM 規劃
解決辦法:
一、先使用 vgdisplay 查看 VG 的 UUID
[root@sunss ~]# vgdisplay
--- 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 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 74.41 GB
PE Size 32.00 MB
Total PE 2381
Alloc PE / Size 2381 / 74.41 GB
Free PE / Size 0 / 0
VG UUID SYhnZ2-h4ol-C8x0-KUlu-AbKW-np2q-t51OP1
--- 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 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 148.94 GB
PE Size 32.00 MB
Total PE 4766
Alloc PE / Size 4766 / 148.94 GB
Free PE / Size 0 / 0
VG UUID TVigWQ-kpVi-fXun-uTbF-TUNW-NP3M-r7dROQ
二、用UUID來更改VG的 name
#改名
[root@sunss ~]# vgrename SYhnZ2-h4ol-C8x0-KUlu-AbKW-np2q-t51OP1 VolGroup01
Volume group "VolGroup00" successfully renamed to "VolGroup01"
沒有留言:
張貼留言