Gentoo Archives: gentoo-user

From: "John J. Foster" <Gentoo-User@××××××××××××××××××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Can't extend an LVM2 volume
Date: Tue, 13 Jan 2009 18:31:45
Message-Id: 20090113183133.GA12984@magpie.local
1 In trying to extend a volume I get the following error:
2
3 mockingbird ~ # lvextend -v -L400G /dev/vg00/data
4 Finding volume group vg00
5 Archiving volume group "vg00" metadata (seqno 22).
6 Extending logical volume data to 400.00 GB
7 Creating volume group backup "/etc/lvm/backup/vg00" (seqno 23).
8 Found volume group "vg00"
9 Found volume group "vg00"
10 Loading vg00-data table
11 device-mapper: reload ioctl failed: Invalid argument
12 Failed to suspend data
13
14 The following show in /var/log/messages:
15
16 Jan 13 11:23:30 mockingbird device-mapper: table: device 8:5 too small
17 for target
18 Jan 13 11:23:30 mockingbird device-mapper: table: 254:5: linear:
19 dm-linear: Device lookup failed
20 Jan 13 11:23:30 mockingbird device-mapper: ioctl: error adding target to
21 table
22
23 Machine is sync'd and up-to-date. Emerge --depclean & revdep-rebuild
24 come back clean.
25
26 Other pertinent info:
27
28 mockingbird ~ # uname -a
29 Linux mockingbird 2.6.26-gentoo-r3 #6 Thu Jan 8 13:00:01 MST 2009 i686
30 AMD Athlon(tm) XP 2800+ AuthenticAMD GNU/Linux
31
32 mockingbird ~ # pvdisplay
33 --- Physical volume ---
34 PV Name /dev/sda5
35 VG Name vg00
36 PV Size 500.00 GB / not usable 3.81 MB
37 Allocatable yes
38 PE Size (KByte) 4096
39 Total PE 127999
40 Free PE 106239
41 Allocated PE 21760
42 PV UUID eq8G5G-va5U-dF9I-i0q8-PFc5-oLrq-767XVk
43
44 mockingbird ~ # vgdisplay
45 --- Volume group ---
46 VG Name vg00
47 System ID
48 Format lvm2
49 Metadata Areas 1
50 Metadata Sequence No 22
51 VG Access read/write
52 VG Status resizable
53 MAX LV 0
54 Cur LV 6
55 Open LV 6
56 Max PV 0
57 Cur PV 1
58 Act PV 1
59 VG Size 500.00 GB
60 PE Size 4.00 MB
61 Total PE 127999
62 Alloc PE / Size 21760 / 85.00 GB
63 Free PE / Size 106239 / 415.00 GB
64 VG UUID 97vsli-KlDD-VhYS-dWq0-Nw9m-smF0-1uuj60

Replies

Subject Author
Re: [gentoo-user] Can't extend an LVM2 volume Alan McKinnon <alan.mckinnon@×××××.com>
Re: [gentoo-user] Can't extend an LVM2 volume Dirk Heinrichs <dirk.heinrichs@××××××.de>