how to extend volume group size over the remaining space
Hi to all,
after goggling around and looking for in the linux Questions unsuccesfully, I'm here to ask you the way to extend the size of a LVM2 volume group over the remaining free space available on a physical volume.
My linux box is a Ubuntu Karmic 9.10 64bit, the 60GB hard disk has 2 win partition for about 19GB, a 1.5GB ext3 boot partition and finally a 36GB LVM partition (/dev/sda4) on which I created a volume group (volgrp) smaller 10GB than the 36GB physical volume (/dev/sda4).
What I want now is to extend the size of volume group up to the end of physical volume.
I tried to use the "vgextend volgrp /dev/sda4" but system answers me
with following output:
me@pc:~> sudo vgextend volgrp /dev/sda4
Physical volume '/dev/sda4' is already in volume group 'volgrp'
Unable to add physical volume '/dev/sda4' to volume group 'volgrp'.
Here the output of fdisk command:
me@pc:~> sudo fdisk -l
Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x5ea4f703
Device Boot Start End Blocks Id System
/dev/sda1 1 637 5116671 1b Hidden W95 FAT32
/dev/sda2 * 638 2465 14683410 c W95 FAT32 (LBA)
/dev/sda3 2466 2596 1052257+ 83 Linux
/dev/sda4 2597 7296 37752750 8e Linux LVM
Should I use the pvmove command?
Thaks in advance for your help.