[linux-lvm] pvmove of mounted volume fails
Nix
nix at esperi.org.uk
Wed Nov 26 21:17:27 UTC 2008
(This is with LVM 2.02.42, device-mapper 1.02.28, kernel 2.6.27.5.)
I'd just pvmoved an unmounted volume without incident. So, I thought,
let's pvmove a mounted one. I know it used to work but now...
hades:/home# pvmove -v --name polipo /dev/hda5 /dev/hdc
Finding volume group "global"
Archiving volume group "global" metadata (seqno 28).
Creating logical volume pvmove0
Moving 32 extents of logical volume global/polipo
Found volume group "global"
Updating volume group metadata
Creating volume group backup "/etc/lvm/backup/global" (seqno 29).
Found volume group "global"
Found volume group "global"
Suspending global-polipo (253:4) with device flush
Found volume group "global"
Found volume group "global"
Creating global-pvmove0
device-mapper: create ioctl failed: Device or resource busy
Loading global-polipo table
device-mapper: reload ioctl failed: Invalid argument
Checking progress every 15 seconds
WARNING: dev_open(/dev/hda5) called while suspended
WARNING: dev_open(/dev/hdc) called while suspended
WARNING: dev_open(/dev/hda5) called while suspended
WARNING: dev_open(/dev/hdc) called while suspended
WARNING: dev_open(/dev/hda5) called while suspended
WARNING: dev_open(/dev/hdc) called while suspended
Number of segments in active LV pvmove0 does not match metadata
ABORTING: Mirror percentage check failed.
I tried 'pvs', but it hung until I did
# dmsetup resume /dev/mapper/global-polipo
whereupon that came back to life. But now, even if I pvmove it after
unmounting, I see:
hades:/home# pvmove -v --name polipo /dev/hda5 /dev/hdc
Finding volume group "global"
Detected pvmove in progress for /dev/hda5
Ignoring remaining command line arguments
Found volume group "global"
Found volume group "global"
Checking progress every 15 seconds
Number of segments in active LV pvmove0 does not match metadata
ABORTING: Mirror percentage check failed.
Abort worked:
hades:/home# pvmove --abort
device-mapper: create ioctl failed: Device or resource busy
Unable to reactivate logical volume "pvmove0"
And then the pvmove, of the now-unmounted volume, worked.
Isn't pvmove supposed to not care if things are mounted or not?
More information about the linux-lvm
mailing list