Bug#440444: lvm2: lvrename fails: ioctl failed

Bas Zoetekouw bas at debian.org
Sat Sep 1 15:03:51 UTC 2007

Package: lvm2
Version: 2.02.26-1+b1
Severity: important

When trying to rename an lv on my sid system, I get the following:

[root at cordelia]~# lvrename -d -v raid/mp3 raid/mp3old
    Checking for existing volume group "raid"
    Archiving volume group "raid" metadata (seqno 32).
    Writing out updated volume group
    Creating volume group backup "/etc/lvm/backup/raid" (seqno 33).
    Found volume group "raid"
    Found volume group "raid"
    Loading raid-mp3 table
    Suppressed raid-mp3 identical table reload.
    Suspending raid-mp3 (254:5) without device flush
    Found volume group "raid"
    Loading raid-mp3 table
    Suppressed raid-mp3 identical table reload.
    Renaming raid-mp3 (254:5) to raid-mp3old
  device-mapper: rename ioctl failed: Invalid argument
  Failed to rename raid-mp3 (254:5) to raid-mp3old
  Renamed "mp3" to "mp3old" in volume group "raid"
  WARNING: dev_open(/etc/lvm/cache/.cache) called while suspended

After this I get my prompt back, but any further lvm-related commands
hang in some kind of ininterruptable sleep (D+ state).  After a reboot
(hard reset, because proper shutdown of lvm in init 6 also hangs), the
renmae turns out to have succeeded after all, and everything works

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux (SMP w/1 CPU core; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages lvm2 depends on:
ii  libc6                     2.6.1-1+b1     GNU C Library: Shared libraries
ii  libdevmapper1.02.1        2:1.02.20-2    The Linux Kernel Device Mapper use
ii  libncurses5               5.6+20070812-1 Shared libraries for terminal hand
ii  libreadline5              5.2-3          GNU readline and history libraries
ii  libselinux1               2.0.15-2+b1    SELinux shared libraries
ii  libsepol1                 2.0.3-1+b1     Security Enhanced Linux policy lib

lvm2 recommends no packages.

-- debconf information excluded

More information about the pkg-lvm-maintainers mailing list