Linux??LVM?????????
???????????? ???????[ 2014/6/18 11:49:58 ] ????????Linux LVM ??????
????3???????LV??VG?????????
???????????LVM?????????????LV?С?
????[root@redhat ~]# lvextend -L +92M /dev/vg0/data
????Extending logical volume data to 276.00 MB
????Logical volume data successfully resized
????[root@redhat ~]# lvscan
????ACTIVE ‘/dev/vg0/data’ [276.00 MB] inherit
????[root@redhat ~]# resize2fs -f /dev/vg0/data
????resize2fs 1.39 (29-May-2006)
????Resizing the filesystem on /dev/vg0/data to 282624 (1k) blocks.
????The filesystem on /dev/vg0/data is now 282624 blocks long.
?????????????????????????????????????LV???????????????????LV???У??????????д?????????????С?
????4?????????
????[root@redhat ~]# mount /dev/vg0/data /mnt/lvm
????[root@redhat ~]# df
????????? 1K-?? ???? ???? ????% ?????
????/dev/hda3 7625092 2219468 5012032 31% /
????/dev/hda1 101086 10006 85861 11% /boot
????tmpfs 150108 0 150108 0% /dev/shm
????/dev/mapper/vg0-data 273569 6168 256097 3% /mnt/lvm
????LVM??ж??
???????LVM??ж?????
??????????????LVM?????????ж?????? ж?????????????????????????????????????????????£?
?????????LV
?????????VG
??????PV
?????????LVM????????fdisk????????????????????????????????á?
???????LVM??ж?????
????1??umount???????
[root@redhat ~]# df
????? 1K-?? ???? ???? ????% ?????
/dev/hda3 7625092 2219468 5012032 31% /
/dev/hda1 101086 10006 85861 11% /boot
tmpfs 150108 0 150108 0% /dev/shm
/dev/mapper/vg0-data 273569 6168 256097 3% /mnt/lvm
[root@redhat ~]# umount /mnt/lvm
|
????[root@redhat ~]# lvremove /dev/vg0/data
????Do you really want to remove active logical volume “data”? [y/n]: y
????Logical volume “data” successfully removed
????3?????VG????
????[root@redhat ~]# vgchange -a n vg0
????0 logical volume(s) in volume group “vg0″ now active
???????????vg0?????????????????????????????á?
????[root@redhat ~]# vgremove vg0
????Volume group “vg0″ successfully removed
????4?????PV
[root@redhat ~]# pvscan ??pv?????
PV /dev/hdb1 lvm2 [95.95 MB]
PV /dev/hdb2 lvm2 [95.98 MB]
PV /dev/hdb3 lvm2 [95.98 MB]
Total: 3 [287.90 MB] / in use: 0 [0 ] / in no VG: 3 [287.90 MB]
[root@redhat ~]# pvremove /dev/hdb1 /dev/hdb2 /dev/hdb3
Attempt to close device ‘/dev/cdrom’ which is not open.
Labels on physical volume “/dev/hdb1″ successfully wiped
Labels on physical volume “/dev/hdb2″ successfully wiped
Labels on physical volume “/dev/hdb3″ successfully wiped
|
??????
???·???
??????????????????
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