vagrant centos 7 硬盘扩容 步骤
- # 在关机状态下:vagrantfile文件中添加:
- config.disksize.size = "60GB"
- # 打开机器:vagrant up --provision
- # fd -hT
- # lsblk
1.安装工具 yum install cloud-utils-growpart gdisk -y
2 growpart /dev/sda 1
3 xfs_growfs /
1.安装工具 yum install cloud-utils-growpart gdisk -y
2 growpart /dev/sda 1
3 xfs_growfs /