On Tue, Jan 13, 2009 at 08:44:38PM +0200, Alan McKinnon wrote:
> 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.
>
Thanks Alan, but that didn't do the trick. Even if I try to only make it
200GB, same problem.
mockingbird ~ # lvextend -v -l100000 /dev/vg00/data
Finding volume group vg00
Archiving volume group "vg00" metadata (seqno 22).
Extending logical volume data to 390.62 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
mockingbird ~ # lvextend -v -L200G /dev/vg00/data
Finding volume group vg00
Archiving volume group "vg00" metadata (seqno 22).
Extending logical volume data to 200.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