On Tuesday 13 January 2009 20:31:33 John J. Foster wrote: > In trying to extend a volume I get the following error: > > mockingbird ~ # lvextend -v -L400G /dev/vg00/data > Finding volume group vg00 > Archiving volume group "vg00" metadata (seqno 22). > Extending logical volume data to 400.00 GB > Creating volume group backup "/etc/lvm/backup/vg00" (seqno 23). > Found volume group "vg00" > Found volume group "vg00" > Loading vg00-data table > device-mapper: reload ioctl failed: Invalid argument > Failed to suspend data > > The following show in /var/log/messages: > > Jan 13 11:23:30 mockingbird device-mapper: table: device 8:5 too small > for target
You are trying to create an lv that is bigger than the maximum Despite the fact that pvdisplay says you have 415GB unallocated space, you cannot make a 400G volume as lvm wants more than 15G for metadata. Looking at the existing usage, it is using around 5% for this. Try using the -l option to lvextend and specifying a number of extents instead of space usage. -- alan dot mckinnon at gmail dot com > Jan 13 11:23:30 mockingbird device-mapper: table: 254:5: linear: > dm-linear: Device lookup failed > Jan 13 11:23:30 mockingbird device-mapper: ioctl: error adding target to > table > > Machine is sync'd and up-to-date. Emerge --depclean & revdep-rebuild > come back clean. > > Other pertinent info: > > mockingbird ~ # uname -a > Linux mockingbird 2.6.26-gentoo-r3 #6 Thu Jan 8 13:00:01 MST 2009 i686 > AMD Athlon(tm) XP 2800+ AuthenticAMD GNU/Linux > > mockingbird ~ # pvdisplay > --- Physical volume --- > PV Name /dev/sda5 > VG Name vg00 > PV Size 500.00 GB / not usable 3.81 MB > Allocatable yes > PE Size (KByte) 4096 > Total PE 127999 > Free PE 106239 > Allocated PE 21760 > PV UUID eq8G5G-va5U-dF9I-i0q8-PFc5-oLrq-767XVk > > mockingbird ~ # vgdisplay > --- Volume group --- > VG Name vg00 > System ID > Format lvm2 > Metadata Areas 1 > Metadata Sequence No 22 > VG Access read/write > VG Status resizable > MAX LV 0 > Cur LV 6 > Open LV 6 > Max PV 0 > Cur PV 1 > Act PV 1 > VG Size 500.00 GB > PE Size 4.00 MB > Total PE 127999 > Alloc PE / Size 21760 / 85.00 GB > Free PE / Size 106239 / 415.00 GB > VG UUID 97vsli-KlDD-VhYS-dWq0-Nw9m-smF0-1uuj60

