环境信息
- 虚拟化软件:VMware Workstation 16
- 虚拟机:CentOS 7.7 64bit
在VMware 中给Linux虚拟机总共分了20GB单磁盘,已经不够用。需要扩充,因为Linux是使用LVM(Logical Volume Manager)所以扩充磁盘非常方便。步骤如下
扩容前
扩容前,磁盘(既LV)空间使用率已经达到94%,严重不够用了,需要扩空间:
[root@centosa ~]# df -T (这里加-T选项,可显示文件系统类型)
Filesystem Type 1K-blocks Used Available Use% Mounted on
devtmpfs devtmpfs 1996088 0 1996088 0% /dev
tmpfs tmpfs 2013112 44 2013068 1% /dev/shm
tmpfs tmpfs 2013112 12208 2000904 1% /run
tmpfs tmpfs 2013112 0 2013112 0% /sys/fs/cgroup
/dev/mapper/centos-root xfs 17811456 16695572 1115884 94% /
/dev/sda1 xfs 1038336 164512 873824 16% /boot
tmpfs tmpfs 402624 0