标签:end tps free disk 选项 info war 使用 inux
===============================================
2019/7/28_第1次修改 ccb_warlock
===============================================
最近在做提供虚拟机的工作时发现,vcenter的模板虽然可以快速创建出和模板一模一样的虚拟机,但是由于对硬盘的配置每个人的要求不同,vmware只支持扩大硬盘配置。
故在做模板时,硬盘设计的小些,然后根据每个人不同的需求再做磁盘的扩容就好了。
虚拟机初始硬盘:16G
虚拟机扩容后硬盘:50G
df -h

fdisk -l

fdisk /dev/sda






reboot
fdisk -l

pvcreate /dev/sda3

vgextend centos /dev/sda3

vgdisplay

lvextend -l +100%FREE /dev/mapper/centos-root

xfs_growfs /dev/mapper/centos-root

df -h

1.https://www.cnblogs.com/piaoyang2087/articles/6829225.html
2.https://www.cnblogs.com/kevingrace/p/5825963.html
标签:end tps free disk 选项 info war 使用 inux
原文地址:https://www.cnblogs.com/straycats/p/11261364.html