20191028

VirtualBox 調整CentOS VM硬碟大小配置

"c:\Program Files\Oracle\VirtualBox\VBoxManage.exe" modifyhd Core20-Comp-03-disk1.vdi --resize 25000

接下來進入VM以root執行以下指令
fdisk /dev/sda
d
2
n
p
2
ENTER
ENTER
w
reboot
pvresize /dev/sda2
pvscan
lvextend -l +100%FREE /dev/mapper/centos_core20--desktop--1-root
xfs_growfs /dev/mapper/centos_core20--desktop--1-root
df -h


沒有留言: