[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[linux-lvm] pvmove fails on 2.6.0-test9
- From: Dick Streefland <dick streefland altium nl>
- To: linux-lvm sistina com
- Subject: [linux-lvm] pvmove fails on 2.6.0-test9
- Date: Mon Nov 24 08:04:01 2003
Is pvmove supposed to work on a 2.6.0-test9 kernel? When I try to
clear a physical volume, I get the message:
device-mapper ioctl cmd 9 failed: Invalid argument
The kernel is compiled with CONFIG_DM_IOCTL_V4, and I'm using
lvm2-2.00.06-1. You should be able to reproduce this error with the
following script:
--------------------------------------------------
#!/bin/sh -x
dd bs=1024k count=20 if=/dev/zero of=/tmp/image1
dd bs=1024k count=20 if=/dev/zero of=/tmp/image2
losetup /dev/loop1 /tmp/image1
losetup /dev/loop2 /tmp/image2
pvcreate /dev/loop[12]
vgcreate -s 1 test /dev/loop[12]
lvcreate -L 8 -n a test
lvcreate -L 8 -n b test
lvcreate -L 8 -n c test
lvremove -f /dev/test/a
lvremove -f /dev/test/b
# this fails:
pvmove -v /dev/loop2
pvmove --abort
lvremove -f /dev/test/c
vgremove test
pvremove /dev/loop[12]
losetup -d /dev/loop2
losetup -d /dev/loop1
rm -f /tmp/image[12]
--------------------------------------------------
The output from the first pvmove command is:
+ pvmove -v /dev/loop2
device-mapper ioctl cmd 9 failed: Invalid argument
Couldn't load device 'test-pvmove0'.
ABORTING: Temporary mirror activation failed.
device-mapper ioctl cmd 9 failed: Invalid argument
Couldn't load device 'test-c'.
Finding volume group "test"
Archiving volume group "test" metadata.
Creating logical volume pvmove0
Moving 5 extents of logical volume test/c
Found volume group "test"
Found volume group "test"
Updating volume group metadata
Creating volume group backup "/etc/lvm/backup/test"
Found volume group "test"
Found volume group "test"
Loading test-pvmove0
Found volume group "test"
Loading test-c
--
Dick Streefland //// Altium BV
dick streefland altium nl (@ @) http://www.altium.com
--------------------------------oOO--(_)--OOo---------------------------
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]