⑴ 虛擬機linux怎麼擴展的磁碟空間
1.首先在vmware當即的情況下擴展空間;
2.啟動Linux,然後執行parted命令:
1.現在為LogVol00邏輯卷增加剛才我們新加入的空間
[root@bogon ~]# lvextend -L +3.9G /dev/VolGroup00/LogVol00
Rounding up size to fullphysical extent 3.91 GB
Extending logical volumeLogVol00 to 9.81 GB
Logical volume LogVol00successfully resized
[root@bogon ~]#
2.此時加好後還不會生效,還要執行一條命令:
[root@bogon ~]# resize2fs -p /dev/VolGroup00/LogVol00
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/VolGroup00/LogVol00 is mounted on /; on-lineresizing required
Performing an on-line resize of /dev/VolGroup00/LogVol00 to 2572288(4k) blocks.
The filesystem on /dev/VolGroup00/LogVol00 is now 2572288 blockslong.
[root@bogon ~]# df -h
文件系統 容量 已用可用 已用% 掛載點
/dev/mapper/VolGroup00-LogVol00
9.6G 5.1G 4.0G56% /
/dev/sda199M 26M 68M28% /boot
tmpfs1006M 0 1006M 0% /dev/shm
[root@bogon ~]#