Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Can't extend an LVM2 volume
Date: Tue, 13 Jan 2009 20:17:11
Message-Id: 200901132216.10346.alan.mckinnon@gmail.com
In Reply to: Re: [gentoo-user] Can't extend an LVM2 volume by "John J. Foster"
1 On Tuesday 13 January 2009 20:58:40 John J. Foster wrote:
2 > On Tue, Jan 13, 2009 at 08:44:38PM +0200, Alan McKinnon wrote:
3 > > On Tuesday 13 January 2009 20:31:33 John J. Foster wrote:
4 > > > In trying to extend a volume I get the following error:
5 > > >
6 > > > mockingbird ~ # lvextend -v -L400G /dev/vg00/data
7 > > > Finding volume group vg00
8 > > > Archiving volume group "vg00" metadata (seqno 22).
9 > > > Extending logical volume data to 400.00 GB
10 > > > Creating volume group backup "/etc/lvm/backup/vg00" (seqno 23).
11 > > > Found volume group "vg00"
12 > > > Found volume group "vg00"
13 > > > Loading vg00-data table
14 > > > device-mapper: reload ioctl failed: Invalid argument
15 > > > Failed to suspend data
16 > > >
17 > > > The following show in /var/log/messages:
18 > > >
19 > > > Jan 13 11:23:30 mockingbird device-mapper: table: device 8:5 too small
20 > > > for target
21 > >
22 > > You are trying to create an lv that is bigger than the maximum
23 > >
24 > > Despite the fact that pvdisplay says you have 415GB unallocated space,
25 > > you cannot make a 400G volume as lvm wants more than 15G for metadata.
26 > > Looking at the existing usage, it is using around 5% for this.
27 > >
28 > > Try using the -l option to lvextend and specifying a number of extents
29 > > instead of space usage.
30 >
31 > Thanks Alan, but that didn't do the trick. Even if I try to only make it
32 > 200GB, same problem.
33 >
34 > mockingbird ~ # lvextend -v -l100000 /dev/vg00/data
35 > Finding volume group vg00
36 > Archiving volume group "vg00" metadata (seqno 22).
37 > Extending logical volume data to 390.62 GB
38 > Creating volume group backup "/etc/lvm/backup/vg00" (seqno 23).
39 > Found volume group "vg00"
40 > Found volume group "vg00"
41 > Loading vg00-data table
42 > device-mapper: reload ioctl failed: Invalid argument
43 > Failed to suspend data
44 > mockingbird ~ # lvextend -v -L200G /dev/vg00/data
45 > Finding volume group vg00
46 > Archiving volume group "vg00" metadata (seqno 22).
47 > Extending logical volume data to 200.00 GB
48 > Creating volume group backup "/etc/lvm/backup/vg00" (seqno 23).
49 > Found volume group "vg00"
50 > Found volume group "vg00"
51 > Loading vg00-data table
52 > device-mapper: reload ioctl failed: Invalid argument
53 > Failed to suspend data
54
55 You could try this wiki FAQ:
56
57 http://sources.redhat.com/lvm2/wiki/FrequentlyAskedQuestions
58
59 Also have a look at the physical device the pv lives on. Do the device size
60 and the pv data about it's size match?
61
62
63 --
64 alan dot mckinnon at gmail dot com

Replies

Subject Author
Re: [gentoo-user] Can't extend an LVM2 volume Neil Bothwick <neil@××××××××××.uk>