Bug#582108: lvm2: lvcreate fails with: device-mapper: reload ioctl failed: Invalid argument
Igors Jansons
pticyn at gmail.com
Tue May 18 12:36:03 UTC 2010
Package: lvm2
Version: 2.02.39-7
Severity: normal
I was using LVM2 on XEN server for some time now and recently lvcreate
command started to
fail with an error like this:
# lvcreate -L20G vg -ntest
device-mapper: reload ioctl failed: Invalid argument
Aborting. Failed to activate new LV to wipe the start of it.
LV vg/test in use: not deactivating
Unable to deactivate failed new LV. Manual intervention required.
Output from syslog:
device-mapper: table: device 8:7 too small for target
device-mapper: table: 254:6: linear: dm-linear: Device lookup failed
device-mapper: ioctl: error adding target to table
What i found out is lvcreate actually successfully creates LV only if
it 7Gb or smaller
which is weird because there is plenty of space left. Also lvcreate
creates device file
in /dev/mapper directory and the volume shows up in lvs and lvscan
output but is unusable.
Ive tried using vgmknodes command as #293693 bug report suggests but
it didnt help either.
# pvdisplay
--- Physical volume ---
PV Name /dev/sda7
VG Name vg
PV Size 2.58 TB / not usable 2.57 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 677265
Free PE 549265
Allocated PE 128000
PV UUID clyY3Z-pu3m-sfQY-wbIA-fv8B-Xr7b-KdwAXq
# vgdisplay
--- Volume group ---
VG Name vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 90
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 7
Open LV 6
Max PV 0
Cur PV 1
Act PV 1
VG Size 2.58 TB
PE Size 4.00 MB
Total PE 677265
Alloc PE / Size 128000 / 500.00 GB
Free PE / Size 549265 / 2.10 TB
VG UUID 0U2oEv-AjZ8-dAVJ-9zsE-6Q0A-KnRM-pKNWl9
# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
abcpolise vg -wi-ao 30.00G
cruncher1 vg -wi-ao 60.00G
infomedia vg -wi-ao 90.00G
ldapserver2 vg -wi-ao 10.00G
ns20 vg -wi-ao 200.00G
springtime vg -wi-ao 90.00G
test vg -wi-d- 20.00G
# lvscan
ACTIVE '/dev/vg/cruncher1' [60.00 GB] inherit
ACTIVE '/dev/vg/springtime' [90.00 GB] inherit
ACTIVE '/dev/vg/infomedia' [90.00 GB] inherit
ACTIVE '/dev/vg/ldapserver2' [10.00 GB] inherit
ACTIVE '/dev/vg/abcpolise' [30.00 GB] inherit
ACTIVE '/dev/vg/ns20' [200.00 GB] inherit
ACTIVE '/dev/vg/test' [20.00 GB] inherit
# dmsetup status
vg-abcpolise: 0 62914560 linear
vg-ldapserver2: 0 20971520 linear
vg-springtime: 0 188743680 linear
vg-cruncher1: 0 125829120 linear
vg-ns20: 0 419430400 linear
vg-test:
vg-infomedia: 0 188743680 linear
# lvm version
LVM version: 2.02.39 (2008-06-27)
Library version: 1.02.27 (2008-06-25)
Driver version: 4.13.0
Any ideas what might wrong here?
Thanks in advance,
Igors
-- System Information:
Debian Release: 5.0.4
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-2-xen-amd64 (SMP w/16 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages lvm2 depends on:
ii libc6 2.7-18lenny2 GNU C Library: Shared libraries
ii libdevmapper1.02.1 2:1.02.27-4 The Linux Kernel Device Mapper use
ii libreadline5 5.2-3.1 GNU readline and history libraries
ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip
Versions of packages lvm2 recommends:
ii dmsetup 2:1.02.27-4 The Linux Kernel Device Mapper use
lvm2 suggests no packages.
-- no debconf information
More information about the pkg-lvm-maintainers
mailing list