linux操作系统如何扩展root_vg
linux操作系统如何扩展root_vg
成功扩展root_vg:
# fdisk /dev/sda
# pvcreate /dev/sda6
# vgextend /dev/root_vg /dev/sda6
# lvextend -l +241 /dev/root_vg/root_lv /dev/sda6
# resize2fs /dev/root_vg/root_lv
[root@rjmzhisa ~]# df -TH
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/root_vg-root_lv
ext3 7.1G 5.8G 926M 87% /
/dev/sda1 ext3 104M 13M 87M 13% /boot
tmpfs tmpfs 264M 0 264M 0% /dev/shm
/dev/mapper/db2_vg-db2_lv
ext3 5.0G 3.2G 1.6G 68% /db2
[root@rjmzhisa ~]#