Bug 210754 - system-config-lvm / pvmove fails with "ioctl failed: Invalid argument"
Summary: system-config-lvm / pvmove fails with "ioctl failed: Invalid argument"
Keywords:
Status: CLOSED DUPLICATE of bug 205818
Alias: None
Product: Fedora
Classification: Fedora
Component: lvm-obsolete
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Heinz Mauelshagen
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-10-14 10:51 UTC by Roger Bystrøm
Modified: 2007-11-30 22:11 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-10-30 15:25:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Roger Bystrøm 2006-10-14 10:51:42 UTC
Description of problem:
system-config-lvm trashes sytem when trying to move a partition. It also makes
lvm inaccessible until reboot. 

pvmove however only fails and allows a pvmove --abort to stop the move 

Version-Release number of selected component (if applicable):
  LVM version:     2.02.06 (2006-05-12)
  Library version: 1.02.07 (2006-05-11)
  Driver version:  4.7.0

How reproducible:
always

Steps to Reproduce:
lvm> pvmove -v -n LogVol00 /dev/sdb1 /dev/sda2
    Finding volume group "VolGroup00"
    Archiving volume group "VolGroup00" metadata (seqno 21).
    Creating logical volume pvmove0
    Moving 1000 extents of logical volume VolGroup00/LogVol00
    Found volume group "VolGroup00"
    Updating volume group metadata
    Creating volume group backup "/etc/lvm/backup/VolGroup00" (seqno 22).
    Found volume group "VolGroup00"
    Found volume group "VolGroup00"
    Suspending VolGroup00-LogVol00 (253:0)
    Found volume group "VolGroup00"
    Creating VolGroup00-pvmove0
    Loading VolGroup00-pvmove0 table
  device-mapper: reload ioctl failed: Invalid argument
  ABORTING: Temporary mirror activation failed.  Run pvmove --abort.
    Found volume group "VolGroup00"
    Loading VolGroup00-pvmove0 table
  device-mapper: reload ioctl failed: Invalid argument
    Loading VolGroup00-LogVol00 table
  device-mapper: reload ioctl failed: Invalid argument
lvm> pvmove --abort
  WARNING: dev_open(/dev/sda2) called while suspended
  WARNING: dev_open(/dev/sdb1) called while suspended
  device-mapper: resume ioctl failed: Invalid argument
  Unable to resume VolGroup00-pvmove0 (253:2)

  
Actual results:
If using system-config-lvm the whole system hangs, leaving it unusable and have
to use rescuecd to get it back up.

Expected results:
The partition beeing moved...

Additional info:
According to information on the net it should be sufficient to upgrade to a
newer version of lvm. Not tested by me though.

Comment 1 Kenneth Topp 2006-10-24 15:47:35 UTC
very similar to  #205818

Comment 2 Rahul Sundaram 2006-10-30 15:25:34 UTC
Fixing the above bug should resolve this. Marking as duplicate. 

*** This bug has been marked as a duplicate of 205818 ***


Note You need to log in before you can comment on or make changes to this bug.