Bug#428409: lvm2: pvmove doesn't work
Jonathan McDowell
noodles at earth.li
Mon Jun 11 14:33:10 UTC 2007
Package: lvm2
Version: 2.02.24-6
Severity: normal
Over the weekend I added a second disk to my box, identical to the first
once. The plan was to create a RAID1 dataset by bringing up the new disk
as a degraded array, copying / over to it, creating a new swap partition
and then migrating the LVM volume group over (everything but / is
LVMed).
Bringing up the RAID1 degraded array was fine. I then did:
pvcreate /dev/md2
which seemed to work fine and showed the physical volume fine. So I did:
vgextend raidvg /dev/md2
which resulted in vgdisplay displaying as much free space as used in the
volume group, as I expected. So I did:
pvmove -v /dev/sda3
to move everything off the unraided disk and into the raid array. And
that's where it went wrong. pvmove bombed out complaining about being
unable to parse the progress or something similar - I'm sorry, I really
should have recorded the exact error. It seemed to be complaining about
"core 1", which when I ran "dmsetup status" I could see on the first
line for the raidvg-pvmove0 device.
pvmove --abort
cleaned things up successfully, but I failed to figure out how to
correctly get pvmove to operate as expected so created a new volume
group on the RAID device and manually copied the filesystems over -
precisely the sort of thing LVM is designed to avoid I believe, but this
was my home box and I was more concerned about having it back up and
running properly than avoiding downtime due to shuffling filesystems.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-rc3 (PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages lvm2 depends on:
ii libc6 2.5-10 GNU C Library: Shared libraries
ii libdevmapper1.02.1 2:1.02.18-1 The Linux Kernel Device Mapper use
ii libncurses5 5.6-3 Shared libraries for terminal hand
ii libreadline5 5.2-3 GNU readline and history libraries
ii libselinux1 2.0.15-2 SELinux shared libraries
ii libsepol1 2.0.3-1 Security Enhanced Linux policy lib
lvm2 recommends no packages.
-- debconf information:
lvm2/snapshots:
More information about the pkg-lvm-maintainers
mailing list