????LVM??Logical Volume Manager(??????????)???д?????????????????ε????洢??????????LVM???????????????????????????????洢?????LVM?????μ???????????????С??????????????LVM????????????????????????????????????????LVM???????????洢????????????????????????
??????????lvm????
????1?????????
???????????????/dev/hdb??
??????????????????????????£??????100M???????????????
????/dev/hdb1
????/dev/hdb2
????/dev/hdb3
????2??????????????lvm??
????fdisk /dev/hdb
????t????lvm??????
????Device Boot      Start    End      Blocks  Id  System
????/dev/hdb1        1         208      98248+  8e  Linux LVM
????/dev/hdb2        209      416      98280   8e  Linux LVM
????/dev/hdb3        417      624      98280   8e  Linux LVM
???????w???沢??
????#partprobe       /*???????????Ч*/
????????lvm????????
????1.????????????????д????????(physical volumes-PV)??
????2.????????д???????(volume groups-VG)
????3.??????д????????(logical volumes-LV)?????????????????????????????????д?????
????lvm??????????????????????????С????????????????????????????????????????????
????LVM????????
????????LVM???????PV
????1?????????
????pvcreate  ????PV
????pvscan    ???PV
????pvdisplay ???PV
????pvremove  ???PV
????partprobe
????2???????????
??????????????????????????????????????????????С?

 

[root@redhat ~]# pvcreate /dev/hdb1 /dev/hdb2
Physical volume “/dev/hdb1″ successfully created
Physical volume “/dev/hdb2″ successfully created
[root@redhat ~]# pvscan
PV /dev/hdb1         lvm2 [95.95 MB]
PV /dev/hdb2         lvm2 [95.98 MB]
Total: 2 [191.92 MB] / in use: 0 [0   ] / in no VG: 2 [191.92 MB]
[root@redhat ~]# pvdisplay
— NEW Physical volume —
PV Name               /dev/hdb1
VG Name
PV Size               95.95 MB
Allocatable           NO
PE Size (KByte)       0
Total PE              0
Free PE               0
Allocated PE          0
PV UUID               2Ni0Tx-oeSy-zGUP-t7KG-Fh22-0BUi-iyPhhQ
— NEW Physical volume —
PV Name               /dev/hdb2
VG Name
PV Size               95.98 MB
Allocatable           NO
PE Size (KByte)       0
Total PE                  0
Free PE                  0
Allocated PE           0
PV UUID               2XLXfY-V3L2-Mtsl-79U4-ovuJ-YaQf-YV9qHs