Grow a VM disk
Saltar para a navegação
Saltar para a pesquisa
The Process
All the linux VirtualMachine should have been configured with lvm. It's a good idea to not grow the disks they already have but to:
- add a second disk (example /dev/sdb) from the proxmox UI
- create a partition ( /dev/sdb1 )
- add it to the Volume group.
- extend the LV of interest and the filesystem
This way you can extend the logical volume and afterwards the filesystem easily.
Growing the VM disk
- Add a new disk in ESXi
- Partition the new disk
df -h fdisk -l fdisk /dev/sdb (n-ew, p-rimary, w-rite)
- Create New Physical Device
pvcreate /dev/sdb1
- Extend the existing volume group
vgextend name-vg /dev/sdb1
- Extend the logical volume
lvdisplay lvextend --resizefs -L+10G /dev/name-vg/xyz