???????????LVM?????VG
????1?????????
????vgcreate   ????VG
????vgscan     ???VG
????vgdispaly
????vgextend
????vgreduce
????vgchange
????vgremove
????2???????????VG

 

[root@redhat ~]# vgcreate vg0 /dev/hdb1 /dev/hdb2
Volume group “vg0″ successfully created
[root@redhat ~]# vgscan
Reading all physical volumes.  This may take a while…
Found volume group “vg0″ using metadata type lvm2
[root@redhat ~]# vgdisplay
— Volume group —
VG Name               vg0
System ID
Format                lvm2
Metadata Areas        2
Metadata Sequence No  1
VG Access             read/write
VG Status             resizable
MAX LV                0
Cur LV                0
Open LV               0
Max PV                0
Cur PV                2
Act PV                2
VG Size               184.00 MB
PE Size               4.00 MB   /*????????С????4M*/
Total PE              46
Alloc PE / Size       0 / 0
Free  PE / Size       46 / 184.00 MB
VG UUID               kL5CGk-5Odk-r3PK-9q0A-s94h-OHv4-BojBnH????VG??????1TB???????
vgcreate -s 16M vg0 /dev/hdb1 /dev/hdb2

????3???????????????
????[root@redhat ~]# vgreduce vg0 /dev/hdb2
????Removed “/dev/hdb2″ from volume group “vg0″
????[root@redhat ~]# vgextend vg0 /dev/hdb2
????Volume group “vg0″ successfully extended
?????塢????LVM???????LV
????1?????????
????lvcreate
????lvscan
????lvdisplay
????lvextend
????lvreduce
????lvremove
????lvresize
????2???????????LV

 

[root@redhat ~]# lvcreate -L 184M -n data vg0
Logical volume “data” created
[root@redhat ~]# lvscan
ACTIVE     ‘/dev/vg0/data’ [184.00 MB] inherit
[root@redhat ~]# lvdisplay
— Logical volume —
LV Name                /dev/vg0/data
VG Name                vg0
LV UUID                HNKO5d-yRre-qVnP-ZT8D-fXir-XTeM-r6WjDX
LV Write Access        read/write
LV Status              available
# open                 0
LV Size                184.00 MB
Current LE             46
Segments               2
Allocation             inherit
Read ahead sectors     0
Block device           253:0