Package: lvm-common Version: 1.5.17 Severity: normal File: /sbin/lvmiopversion
Hi, pvmove seems to refuse to move PEs from one place on a PV to another place on the same PV: ---------------------------------------------------------------------- [EMAIL PROTECTED]:~# lvdisplay -m /dev/r/buggy --- Logical volume --- LV Name /dev/r/buggy VG Name r LV UUID bVkSas-u6DU-oxL5-nF2D-dFXM-0ZGe-nIGAuW LV Write Access read/write LV Status available # open 1 LV Size 87.00 GB Current LE 22272 Segments 1 Allocation inherit Read ahead sectors 0 Block device 253:5 --- Segments --- Logical extent 0 to 22271: Type linear Physical volume /dev/md2 Physical extents 66560 to 88831 [EMAIL PROTECTED]:~# lvdisplay -m /dev/r/foo --- Logical volume --- LV Name /dev/r/foo VG Name r LV UUID 7hTwz5-GBiM-7w04-McHA-7IS7-hG2Z-ubOf96 LV Write Access read/write LV Status available # open 0 LV Size 4.00 MB Current LE 1 Segments 1 Allocation inherit Read ahead sectors 0 Block device 253:8 --- Segments --- Logical extent 0 to 0: Type linear Physical volume /dev/md2 Physical extents 88832 to 88832 [EMAIL PROTECTED]:~# lvremove /dev/r/foo Do you really want to remove active logical volume "foo"? [y/n]: y Logical volume "foo" successfully removed [EMAIL PROTECTED]:~# pvmove -v /dev/md2:88831 /dev/md2:88832 Finding volume group "r" No extents available for allocation ---------------------------------------------------------------------- It looks to me like pvmove marks the source physical volume unallocatable and then searches for free space on any destination physical volume. Normaly that is the right thing to do but not when the source PV is also a destination PV, or more generaly only if no destination PVs are given. MfG Goswin -- System Information: Debian Release: 3.1 Architecture: amd64 (x86_64) Kernel: Linux 2.6.8-frosties-1 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages lvm-common depends on: ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii module-init-tools 3.2-pre1-2 tools for managing Linux kernel mo ii modutils 2.4.26-1.2 Linux module utilities -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]