Bug#376283: lvm2: pvmove doesn't work

Dennis Jørgensen dnj at x.dtu.dk
Sat Jul 1 16:44:49 UTC 2006


Package: lvm2
Version: 2.02.06-2
Severity: normal


Hello


I'm trying to migrate data of a disk, but pvmove dies:


dnj at ponder:~$ sudo modprobe dm-mirror
dnj at ponder:~$ sudo pvmove -v /dev/hda6
    Wiping cache of LVM-capable devices
    Finding volume group "vg1"
    Archiving volume group "vg1" metadata (seqno 75).
    Creating logical volume pvmove0
    Moving 19310 extents of logical volume vg1/space
    Moving 0 extents of logical volume vg1/home
    Found volume group "vg1"
    Updating volume group metadata
    Creating volume group backup "/etc/lvm/backup/vg1" (seqno 76).
    Found volume group "vg1"
    Found volume group "vg1"
    Suspending vg1-space (254:0)
    Found volume group "vg1"
    Creating vg1-pvmove0
    Loading vg1-pvmove0 table
  device-mapper: reload ioctl failed: Invalid argument
  ABORTING: Temporary mirror activation failed.  Run pvmove --abort.
    Found volume group "vg1"
    Loading vg1-pvmove0 table
  device-mapper: reload ioctl failed: Invalid argument
    Loading vg1-space table
  device-mapper: reload ioctl failed: Invalid argument
dnj at ponder:~$ pvmove --abort
  /etc/lvm/.cache: open failed: Permission denied
  No volume groups found
  /etc/lvm/.cache: fopen failed: Permission denied
dnj at ponder:~$
dnj at ponder:~$ sudo pvmove --abort


It hangs on the abort. I need to reboot and run pvmove --abort
again to get the "space" LV alive again, it doesn't hang on abort
after reboot.

Heres a bit more info on the setup:


dnj at ponder:~$ sudo pvdisplay
  --- Physical volume ---
  PV Name               /dev/hdc
  VG Name               vg1
  PV Size               152,67 GB / not usable 0
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              39083
  Free PE               23577
  Allocated PE          15506
  PV UUID               3rQRhB-LNtw-6aBF-41qD-LeYu-X0ud-Z1jD2G

  --- Physical volume ---
  PV Name               /dev/hda6
  VG Name               vg1
  PV Size               128,15 GB / not usable 0
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              32806
  Free PE               13496
  Allocated PE          19310
  PV UUID               X4ew0p-Qp8y-fHwX-mxhm-J1TI-7P9L-sFZKCY

  --- Physical volume ---
  PV Name               /dev/hdb1
  VG Name               vg1
  PV Size               114,50 GB / not usable 0
  Allocatable           yes
  PE Size (KByte)       4096
  Total PE              29311
  Free PE               29311
  Allocated PE          0
  PV UUID               L9TJAu-Srr1-aK0Z-5NuG-3eqO-7B3X-QUshSH


Please let me know what other information I need to supply.


Regards


  Dennis Jørgensen


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-k7
Locale: LANG=en_DK.ISO-8859-15, LC_CTYPE=en_DK.ISO-8859-15 (charmap=ISO-8859-15)

Versions of packages lvm2 depends on:
ii  debconf [debconf-2.0]        1.5.2       Debian configuration management sy
ii  libc6                        2.3.6-15    GNU C Library: Shared libraries
ii  libdevmapper1.02             2:1.02.07-1 The Linux Kernel Device Mapper use
ii  libncurses5                  5.5-2       Shared libraries for terminal hand
ii  libreadline5                 5.1-7       GNU readline and history libraries
ii  libselinux1                  1.30-1      SELinux shared libraries
ii  libsepol1                    1.12-1      Security Enhanced Linux policy lib
ii  lvm-common                   1.5.20      The Logical Volume Manager for Lin

lvm2 recommends no packages.

-- debconf information:
  lvm2/snapshots:
  lvm2/kernel:




More information about the pkg-lvm-maintainers mailing list