Results 1 to 2 of 2
I can't get my LV (mythlv) to extend with the free PE's in my volume group (mythvg). I'm using openSuSE 10.2. The filesystem is an ext3 and I have tried ...
- 02-26-2007 #1Linux Newbie
- Join Date
- May 2006
- Location
- Kansas
- Posts
- 187
RESOLVED!! : LVM - lvextend
I can't get my LV (mythlv) to extend with the free PE's in my volume group (mythvg). I'm using openSuSE 10.2. The filesystem is an ext3 and I have tried with the filesystem (/mythmedia) mounted and unmounted. Here's the info in my LVM:
ehud:/ # vgs
VG #PV #LV #SN Attr VSize VFree
mythvg 1 1 0 wz--n- 37.25G 6.00G
ehud:/ # vgdisplay mythvg | grep Free
Free PE / Size 384 / 6.00 GB
ehud:/ #
ehud:/ # lvs
LV VG Attr LSize Origin Snap% Move Log Copy%
mythlv mythvg -wi-ao 31.25G
Here's how I created the VG:
vgcreate -s 16M mythvg /dev/hdd1
Here's how I have tried to extend the LV:
ehud:/ # lvextend -l 100%VG /dev/mythvg/mythlv
Extending logical volume mythlv to 37.25 GB
Insufficient free space: 2384 extents needed, but only 384 available
ehud:/ # lvextend -l +384 /dev/mythvg/mythlv
Extending logical volume mythlv to 37.25 GB
Insufficient free space: 2384 extents needed, but only 384 available
ehud:/ # lvextend -l+384 /dev/mythvg/mythlv
Extending logical volume mythlv to 37.25 GB
Insufficient free space: 2384 extents needed, but only 384 available
ehud:/ # lvextend -l100%VG /dev/mythvg/mythlv
Extending logical volume mythlv to 37.25 GB
Insufficient free space: 2384 extents needed, but only 384 available
ehud:/ #
If I remove the LV and recreate it, it can use all the space on the disk, but I'd rather not have to do this. Any ideas?
- 02-27-2007 #2Linux Newbie
- Join Date
- May 2006
- Location
- Kansas
- Posts
- 187
Fixed with a patch
For everyone who had no idea what the problem was, SuSE's lvm2-2.02.13-10 has a bug in it that was fixed with an update called lvm2-2.02.13-10.2. After upgrading to it, the steps above worked as expected.
BEFORE:
a324@ehud:~> rpm -qa | grep lvm
lvm2-2.02.13-10
a324@ehud:~>
AFTER:
a324@ehud:~> rpm -qa | grep lvm
lvm2-2.02.13-10.2
a324@ehud:~>


Reply With Quote