$ pvdisplay --- Physical volume --- PV Name /dev/sdb1 VG Name diskgroup PV Size 931.51 GiB / not usable 4.00 MiB Allocatable yes (but full) PE Size 4.00 MiB Total PE 238466 Free PE 0 Allocated PE 238466 PV UUID eyz1EB-nqCw-LHi2-VvAh-KWQw-QhEP-JgpHSL --- Physical volume --- PV Name /dev/sdc1 VG Name diskgroup PV Size 298.09 GiB / not usable 1.84 MiB Allocatable yes (but full) PE Size 4.00 MiB Total PE 76310 Free PE 0 Allocated PE 76310 PV UUID gAT2xS-dv3c-y8uj-9MAF-WV0d-RxCc-cVFuUC --- Physical volume --- PV Name /dev/sdd1 VG Name diskgroup PV Size 298.09 GiB / not usable 4.00 MiB Allocatable yes (but full) PE Size 4.00 MiB Total PE 76310 Free PE 0 Allocated PE 76310 PV UUID l045Td-ABgH-9DSv-ymg4-82gj-wXs9-MNb2QG
$ vgdisplay --- Volume group --- VG Name diskgroup System ID Format lvm2 Metadata Areas 3 Metadata Sequence No 4 VG Access read/write VG Status resizable MAX LV 0 Cur LV 1 Open LV 1 Max PV 0 Cur PV 3 Act PV 3 VG Size 1.49 TiB PE Size 4.00 MiB Total PE 391086 Alloc PE / Size 391086 / 1.49 TiB Free PE / Size 0 / 0 VG UUID 7HUui6-rRDa-24io-tiS0-fIB6-KCaP-EaeJ9z
然后创建卷:lvcreate -l +391086 -n vg01 diskgroup ,其中391086为Free PE SIZE的大小,diskgroup 为创建的卷组名