⑴ 虚拟机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 ~]#