User Tools

Site Tools


docu:csheet:sysadm:disks:physical_disk_resize

Resize virtual disk (vdX) to match it's new size (growpart, resize2fs)


Given that the device is /dev/vda and the system partition (/) is at /dev/vda1, we run this commands:

growpart /dev/vda 1
resize2fs /dev/vda1


The code on LVM changes a bit

growpart /dev/vda 1
pvresize /dev/vda1
lvextend -l +100%FREE /dev/mapper/loquesea
resize2fs /dev/mapper/loquesea

Sources: https://blog-ocampoge.medium.com/centos-rhel-migrar-storage-lvm-con-pvmove-d614da61d3f3

docu/csheet/sysadm/disks/physical_disk_resize.txt · Last modified: 2022/05/26 11:49 by admin