Public bug reported:

I am running edgy, the following relevant packages are installed:

[EMAIL PROTECTED]:~# dpkg -l libc6 libdevmapper1.02 libncurses5 libreadline5 
lvm-common linux-image-generic
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name                         Version                      Description
+++-============================-============================-========================================================================
ii  libc6                        2.4-1ubuntu12                GNU C Library: 
Shared libraries
ii  libdevmapper1.02             1.02.07-1ubuntu2             The Linux Kernel 
Device Mapper userspace library
ii  libncurses5                  5.5-2ubuntu1                 Shared libraries 
for terminal handling
ii  libreadline5                 5.1-7build1                  GNU readline and 
history libraries, run-time libraries
ii  linux-image-generic          2.6.17.10                    Generic Linux 
kernel image
ii  lvm-common                   1.5.20ubuntu7                The Logical 
Volume Manager for Linux (common files)

The goal is to pvmove a small LV, I check that dm_mirror is loaded:

[EMAIL PROTECTED]:~# lsmod|grep dm
dm_mirror              27392  0
dm_mod                 77776  20 dm_mirror


The LV is a small test LV:

[EMAIL PROTECTED]:~# lvdisplay -m /dev/vg01/lvol17
  --- Logical volume ---
  LV Name                /dev/vg01/lvol17
  VG Name                vg01
  LV UUID                cuZYdQ-1uVf-KbPe-gbYH-EiRB-1fYW-uWqbh8
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                12.00 MB
  Current LE             3
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           254:12

  --- Segments ---
  Logical extent 0 to 2:sda2
    Type                linear
    Physical volume     /dev/sdb2
    Physical extents    0 to 2


It will be moved from /dev/sdb2 to /dev/sda2, there is enough free LE:

[EMAIL PROTECTED]:~# pvs
  PV         VG       Fmt  Attr PSize  PFree
  /dev/hdc2  vgubuntu lvm2 a-    7,74G  1,24G
  /dev/sda2  vg01     lvm2 a-   74,41G 15,72G
  /dev/sdb2  vg01     lvm2 a-   24,96G 24,95G
  /dev/sdb3  vg01     lvm2 a-   24,73G  4,00M
  /dev/sdb4  vg01     lvm2 a-   24,73G     0


[EMAIL PROTECTED]:~# pvmove /dev/sdb2 /dev/sda2
  device-mapper: reload ioctl failed: Invalid argument
  ABORTING: Temporary mirror activation failed.  Run pvmove --abort.
  device-mapper: reload ioctl failed: Invalid argument
  device-mapper: reload ioctl failed: Invalid argument

Later lvm commands hangs. A reboot and pvmove --abort are needed to
restore a clean state.

** Affects: lvm2 (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

** Description changed:

  I am running edgy, the following relevant packages are installed:
  
  [EMAIL PROTECTED]:~# dpkg -l libc6 libdevmapper1.02 libncurses5 libreadline5 
lvm-common linux-image-generic
  Desired=Unknown/Install/Remove/Purge/Hold
  | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
  |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: 
uppercase=bad)
  ||/ Name                         Version                      Description
  
+++-============================-============================-========================================================================
  ii  libc6                        2.4-1ubuntu12                GNU C Library: 
Shared libraries
  ii  libdevmapper1.02             1.02.07-1ubuntu2             The Linux 
Kernel Device Mapper userspace library
  ii  libncurses5                  5.5-2ubuntu1                 Shared 
libraries for terminal handling
  ii  libreadline5                 5.1-7build1                  GNU readline 
and history libraries, run-time libraries
  ii  linux-image-generic          2.6.17.10                    Generic Linux 
kernel image
  ii  lvm-common                   1.5.20ubuntu7                The Logical 
Volume Manager for Linux (common files)
  
  The goal is to pvmove a small LV, I check that dm_mirror is loaded:
  
  [EMAIL PROTECTED]:~# lsmod|grep dm
  dm_mirror              27392  0
  dm_mod                 77776  20 dm_mirror
  
  
  The LV is a small test LV:
  
  [EMAIL PROTECTED]:~# lvdisplay -m /dev/vg01/lvol17
    --- Logical volume ---
    LV Name                /dev/vg01/lvol17
    VG Name                vg01
    LV UUID                cuZYdQ-1uVf-KbPe-gbYH-EiRB-1fYW-uWqbh8
    LV Write Access        read/write
    LV Status              available
    # open                 0
    LV Size                12.00 MB
    Current LE             3
    Segments               1
    Allocation             inherit
    Read ahead sectors     0
    Block device           254:12
  
    --- Segments ---
    Logical extent 0 to 2:sda2
      Type                linear
      Physical volume     /dev/sdb2
      Physical extents    0 to 2
  
  
  It will be moved from /dev/sdb2 to /dev/sda2, there is enough free LE:
  
  [EMAIL PROTECTED]:~# pvs
    PV         VG       Fmt  Attr PSize  PFree
    /dev/hdc2  vgubuntu lvm2 a-    7,74G  1,24G
    /dev/sda2  vg01     lvm2 a-   74,41G 15,72G
    /dev/sdb2  vg01     lvm2 a-   24,96G 24,95G
    /dev/sdb3  vg01     lvm2 a-   24,73G  4,00M
    /dev/sdb4  vg01     lvm2 a-   24,73G     0
  
  
  [EMAIL PROTECTED]:~# pvmove /dev/sdb2 /dev/sda2
    device-mapper: reload ioctl failed: Invalid argument
    ABORTING: Temporary mirror activation failed.  Run pvmove --abort.
    device-mapper: reload ioctl failed: Invalid argument
    device-mapper: reload ioctl failed: Invalid argument
  
  Later lvm commands hangs. A reboot and pvmove --abort are needed to
  restore a clean state.
- 
- I ran pvmove through strace, the ioctl greped output is:
- ioctl(8, DM_VERSION, 0x5bf7f0)          = 0
- ioctl(8, DM_LIST_VERSIONS, 0x5bf7f0)    = 0
- ioctl(8, DM_LIST_VERSIONS, 0x5bf7f0)    = 0
- ioctl(8, DM_VERSION, 0x5bf7f0)          = 0
- ioctl(8, DM_DEV_STATUS, 0x5d3870)       = 0
- ioctl(8, DM_DEV_STATUS, 0x601950)       = 0
- ioctl(8, DM_DEV_STATUS, 0x601950)       = 0
- ioctl(8, DM_TABLE_DEPS, 0x601950)       = 0
- ioctl(8, DM_DEV_STATUS, 0x601950)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x601950)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x601950)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x601950)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x601950)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x601950)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x601950)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x601950)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x601950)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x601950)       = 0
- ioctl(8, DM_DEV_SUSPEND, 0x601950)      = 0
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_CREATE, 0x5e38e0)       = 0
- ioctl(8, DM_TABLE_STATUS, 0x5e38e0)     = 0
- ioctl(8, DM_TABLE_LOAD, 0x5e38e0)       = -1 EINVAL (Invalid argument)
- write(2, "device-mapper: reload ioctl fail"..., 52) = 52
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = 0
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = 0
- ioctl(8, DM_TABLE_DEPS, 0x5e38e0)       = 0
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = 0
- ioctl(8, DM_TABLE_DEPS, 0x5e38e0)       = 0
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_DEV_STATUS, 0x5e38e0)       = -1 ENXIO (No such device or address)
- ioctl(8, DM_LIST_VERSIONS, 0x5e38e0)    = 0
- ioctl(8, DM_LIST_VERSIONS, 0x5e38e0)    = 0
- ioctl(8, DM_TABLE_STATUS, 0x5e38e0)     = 0
- ioctl(8, DM_TABLE_LOAD, 0x5e38e0)       = -1 EINVAL (Invalid argument)
- write(2, "device-mapper: reload ioctl fail"..., 52) = 52
- ioctl(8, DM_TABLE_STATUS, 0x5e38e0)     = 0
- ioctl(8, DM_TABLE_LOAD, 0x5e38e0)       = -1 EINVAL (Invalid argument)
- write(2, "device-mapper: reload ioctl fail"..., 52) = 52

-- 
pvmove fails since upgrade to edgy
https://launchpad.net/bugs/73827

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to