I am trying to expand my primary partition to use the extra disk space I have added in my VMWare virtual machine. I have been able to add the disk space, partition the extra space into an LVM partition but I am unable to add it to the Volume Group because I am unable to find its name using 'vgdisplay'.
nsadmin@mpmongodb02:~$ sudo vgdisplay No volume groups found
Here is the output from 'fdisk'
nsadmin@mpmongodb02:~$ sudo fdisk -l Disk /dev/sda: 343.6 GB, 343597383680 bytes 255 heads, 63 sectors/track, 41773 cylinders, total 671088640 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0002ef60 Device Boot Start End Blocks Id System /dev/sda1 2048 209717247 104857600 83 Linux /dev/sda2 209717248 251658239 20970496 5 Extended /dev/sda3 251658240 671088639 209715200 8e Linux LVM /dev/sda5 209719296 251658239 20969472 82 Linux swap / Solaris
/dev/sda3 is the newly added partition. I also tried running 'pvscan' but that also returned 'no volume groups found'. What do I do in this situation? How do I extend my primary partition to use /dev/sda3 ?