DEV Community

loading...

LVM+VirtualBox (Extend Disk Size)

josnin profile image josnin ・1 min read
  • Increase your VirtualBox HD first

image

image

  • We need to convert the available space (/dev/sda) into a new partitions , fdisk is the utility to do so

image

image

  • We cannot just add to the Volume Group, there is something that we need to change before doing so (Partition Type). now we have a new partition /dev/sda4

image

  • In order to create a Physical volume, we are going to use pvcreate

image

  • Use pvs command, If you wanna know how many Physical Volume the machine is setup, it can show the Volume Group assign to the new partition.

for now,/dev/sda4 is not yet assign to any VG

image

  • We need to extend the Volume Group (VG) and assign the new partition /dev/sda4

image

  • We need to extend the Logical Volume (LV)

image

  • Now it will have new 8G available space

image

Discussion (0)

Forem Open with the Forem app