User Tools

Site Tools


eduardo:linux:disk

This is an old revision of the document!


Expand Disk on VM

Just powered down the Vm, increased the disk allocation from vcentre . Power the vm back up. Confirm the kernel is the seeing the increased disk on the existing sda disk .

Use fdisk to create a primary /dev/sda3 partition from the newly allotted space in sda . Use partprobe or reboot to allow the kernel to re-read the device mapping .

After reboot or partprobe , prepare the new device partition into physical logical volume to be added to the existing volume group . This is done with command : pvcreate /dev/sda3

I added the new physical volume to the existing volume group using : vgextend <volume group name> /dev/sda3

Then expand the logical volume in the volume group on which the /home is mounted. Used below command to allow the lv to use up any available free space within volume group

lvextend -l +100%FREE /dev/volume group / logical volume name

Then I brought the new disk size on home mount point online using

resize2fs /dev/volume group/logical volume name .

eduardo/linux/disk.1441816276.txt.gz · Last modified: 2024/02/23 08:19 (external edit)