Re: [gentoo-user] Can't extend an LVM2 volume
On Tue, Jan 13, 2009 at 09:16:40PM +, Neil Bothwick wrote: On Tue, 13 Jan 2009 22:16:10 +0200, Alan McKinnon wrote: Also have a look at the physical device the pv lives on. Do the device size and the pv data about it's size match? This isn't a size problem, in that case lvresize reports something like insufficient extants. I wouldn't be surprised if this is a hardware fault, have you run smartctl on the drive? Thanks Neil, but I'm unfamiliar with this tool. What I've got so far is: mockingbird ~ # smartctl /dev/sda -i smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Device Model: Hitachi HDP725050GLA360 Serial Number:GEA530RE2YB3LE Firmware Version: GM4OA5FA User Capacity:500,107,862,016 bytes Device is:Not in smartctl database [for details use: -P showall] ATA Version is: 8 ATA Standard is: ATA-8-ACS revision 4 Local Time is:Tue Jan 13 17:19:42 2009 MST SMART support is: Available - device has SMART capability. SMART support is: Enabled What options should I try? Thanks, festus
[gentoo-user] Can't extend an LVM2 volume
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 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 Formatlvm2 Metadata Areas1 Metadata Sequence No 22 VG Access read/write VG Status resizable MAX LV0 Cur LV6 Open LV 6 Max PV0 Cur PV1 Act PV1 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
Re: [gentoo-user] Can't extend an LVM2 volume
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 Formatlvm2 Metadata Areas1 Metadata Sequence No 22 VG Access read/write VG Status resizable MAX LV0 Cur LV6 Open LV 6 Max PV0 Cur PV1 Act PV1 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
Re: [gentoo-user] Can't extend an LVM2 volume
Am Dienstag, 13. Januar 2009 19:31:33 schrieb John J. Foster: 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 Try -l+100%FREE instead of -L400G. HTH... Dirk signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Can't extend an LVM2 volume
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 -l10 /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
Re: [gentoo-user] Can't extend an LVM2 volume
On Tue, Jan 13, 2009 at 07:53:02PM +0100, Dirk Heinrichs wrote: Am Dienstag, 13. Januar 2009 19:31:33 schrieb John J. Foster: 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 Try -l+100%FREE instead of -L400G. mockingbird ~ # lvextend -v -l+100%FREE /dev/vg00/data Finding volume group vg00 Archiving volume group vg00 metadata (seqno 22). Extending logical volume data to 465.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 Thanks, festus
Re: [gentoo-user] Can't extend an LVM2 volume
On Tuesday 13 January 2009 20:58:40 John J. Foster wrote: 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 -l10 /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 You could try this wiki FAQ: http://sources.redhat.com/lvm2/wiki/FrequentlyAskedQuestions Also have a look at the physical device the pv lives on. Do the device size and the pv data about it's size match? -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Can't extend an LVM2 volume
On Tue, 13 Jan 2009 22:16:10 +0200, Alan McKinnon wrote: Also have a look at the physical device the pv lives on. Do the device size and the pv data about it's size match? This isn't a size problem, in that case lvresize reports something like insufficient extants. I wouldn't be surprised if this is a hardware fault, have you run smartctl on the drive? -- Neil Bothwick I am Hamlet of Borg: prepare to be, or not to be... signature.asc Description: PGP signature