Linux??LVM?????????
???????????? ???????[ 2014/6/18 11:49:58 ] ????????Linux LVM ??????
????????????LVM???????LV
????lv??????:
????mkfs.ext3 /dev/vg0/data
????mdkir /mnt/lvm
????mount /dev/vg0/data /mnt/lvm
????[root@redhat ~]# ls /mnt/lvm
????lost+found
????[root@redhat ~]# df -T
????????? ???? 1K-?? ???? ???? ????% ?????
????/dev/hda3 ext3 7625092 2219460 5012040 31% /
????/dev/hda1 ext3 101086 10006 85861 11% /boot
????tmpfs tmpfs 150108 0 150108 0% /dev/shm
????/dev/mapper/vg0-data
????ext3 182469 5664 167385 4% /mnt/lvm
???????LVM??????????
????LVM????????????????????????е????????磺??????????????VG??????LV????????????????????????????LVM????????????????
????1??????????
?????????ж??????ù????е?LV?????????????????????lvm?????????????????
[root@redhat ~]# umount /dev/vg0/data
[root@redhat ~]# pvcreate /dev/hdb3
Physical volume “/dev/hdb3″ successfully created
[root@redhat ~]# pvscan
PV /dev/hdb1 VG vg0 lvm2 [92.00 MB / 0 free]
PV /dev/hdb2 VG vg0 lvm2 [92.00 MB / 0 free]
PV /dev/hdb3 lvm2 [95.98 MB]
Total: 3 [279.98 MB] / in use: 2 [184.00 MB] / in no VG: 1 [95.98 MB]
|
????2?????VG??????
????????????????LVM???????vg0?????С?
[root@redhat ~]# vgextend vg0 /dev/hdb3
Volume group “vg0″ successfully extended
[root@redhat ~]# vgdisplay
— Volume group —
VG Name vg0
System ID
Format lvm2
Metadata Areas 3
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 3
Act PV 3
VG Size 276.00 MB
PE Size 4.00 MB
Total PE 69
Alloc PE / Size 46 / 184.00 MB
Free PE / Size 23 / 92.00 MB
VG UUID kL5CGk-5Odk-r3PK-9q0A-s94h-OHv4-BojBnH
|
??????
???·???
??????????????????
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