[linux-lvm] FC6: pvmove gives "device-mapper: reload ioctl failed: Invalid argument"

Ask Bjørn Hansen ask at develooper.com
Sat Dec 16 17:15:47 UTC 2006


Hi,

I'm trying to use pvmove to move a vg from one pv to another.

This is with whatever is the latest version of the kernel and lvm  
tools on FC6,

[root at zaphod /]# lvm version
   LVM version:     2.02.06 (2006-05-12)
   Library version: 1.02.07 (2006-05-11)
   Driver version:  4.7.0
[root at zaphod /]# uname -a
Linux zaphod 2.6.18-1.2849.fc6 #1 SMP Fri Nov 10 12:34:46 EST 2006  
x86_64 x86_64 x86_64 GNU/Linux

The "rbig" volume group is on both /dev/13 (full) and /dev/md8 (same  
size, empty) and a few others.

[root at zaphod /]# pvmove -v /dev/md13 /dev/md8
     Wiping cache of LVM-capable devices
     Finding volume group "rbig"
     Archiving volume group "rbig" metadata (seqno 53).
     Creating logical volume pvmove0
     Moving 2560 extents of logical volume rbig/mirrors
     Moving 29319 extents of logical volume rbig/backup
     Moving 0 extents of logical volume rbig/video
     Found volume group "rbig"
     Found volume group "rbig"
     Updating volume group metadata
     Creating volume group backup "/etc/lvm/backup/rbig" (seqno 54).
     Found volume group "rbig"
     Found volume group "rbig"
     Suspending rbig-mirrors (253:8)
     Found volume group "rbig"
     Found volume group "rbig"
     Suspending rbig-backup (253:9)
     Found volume group "rbig"
     Creating rbig-pvmove0
     Loading rbig-pvmove0 table
   device-mapper: reload ioctl failed: Invalid argument
   ABORTING: Temporary mirror activation failed.  Run pvmove --abort.
     Found volume group "rbig"
     Loading rbig-pvmove0 table
   device-mapper: reload ioctl failed: Invalid argument
     Loading rbig-mirrors table
   device-mapper: reload ioctl failed: Invalid argument
     Found volume group "rbig"
     Loading rbig-pvmove0 table
   device-mapper: reload ioctl failed: Invalid argument
     Loading rbig-backup table
   device-mapper: reload ioctl failed: Invalid argument

dmesg says:

device-mapper: mirror log: unrecognised sync argument to mirror log: 2
device-mapper: table: 253:10: mirror: Error creating mirror dirty log
device-mapper: ioctl: error adding target to table
device-mapper: mirror log: unrecognised sync argument to mirror log: 2
device-mapper: table: 253:10: mirror: Error creating mirror dirty log
device-mapper: ioctl: error adding target to table
device-mapper: table: device 253:10 too small for target
device-mapper: table: 253:8: linear: dm-linear: Device lookup failed
device-mapper: ioctl: error adding target to table
device-mapper: mirror log: unrecognised sync argument to mirror log: 2
device-mapper: table: 253:10: mirror: Error creating mirror dirty log
device-mapper: ioctl: error adding target to table
device-mapper: table: device 253:10 too small for target
device-mapper: table: 253:9: linear: dm-linear: Device lookup failed
device-mapper: ioctl: error adding target to table


pvmove --abort sometimes locks up the lvm subsystem (or the device- 
mapper, I've no idea how it works) requiring a reboot.  Sometimes it  
seems to work and lets me try the pvmove again.

Any ideas?


   - ask

-- 
http://develooper.com/ - http://askask.com/





More information about the linux-lvm mailing list