Linux??LVM?????????
???????????? ???????[ 2014/6/18 11:49:58 ] ????????Linux LVM ??????
???????????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
|
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11