Bug#376283: lvm2: Same here

Mike Hommey mh+reportbug at glandium.org
Tue Jul 11 08:57:12 UTC 2006


Package: lvm2
Version: 2.02.06-2
Followup-For: Bug #376283


I got the same problem here on my 2 laptops. One runs kernel 2.6.16 
under xen hypervisor, and the other runs plain 2.6.17. Both kernels are 
standard debian kernels.

The problem can be easily reproduced with loopback devices:

mh at vaio:/share$ dd if=/dev/zero of=toto count=200 bs=1024k
ls -l toto
200+0 records in
200+0 records out
209715200 bytes (210 MB) copied, 7.59534 seconds, 27.6 MB/s
mh at vaio:/share$ su
Password: 
vaio:/share# losetup -f toto
vaio:/share# losetup /dev/loop0
/dev/loop0: [0801]:4202478 (toto)
vaio:/share# pvcreate /dev/loop0
  Physical volume "/dev/loop0" successfully created
vaio:/share# vgcreate toto /dev/loop0
  Volume group "toto" successfully created
vaio:/share# lvcreate -L 100M -n toto0 toto
  Logical volume "toto0" created
vaio:/share# lvdisplay --maps /dev/toto/toto0
  --- Logical volume ---
  LV Name                /dev/toto/toto0
  VG Name                toto
  LV UUID                Cm01Xl-6cGT-nmRB-nSgZ-q6HK-JEFq-Owe9oe
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                100.00 MB
  Current LE             25
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           254:2
   
  --- Segments ---
  Logical extent 0 to 24:
    Type		linear
    Physical volume	/dev/loop0
    Physical extents	0 to 24
   
   
vaio:/share# pvdisplay /dev/loop0
  --- Physical volume ---
  PV Name               /dev/loop0
  VG Name               toto
  PV Size               196.00 MB / not usable 0   
  Allocatable           yes 
  PE Size (KByte)       4096
  Total PE              49
  Free PE               24
  Allocated PE          25
  PV UUID               35PDdH-yIu5-oeG9-kSSu-EsSI-fW4Q-cWvZI3
   
vaio:/share# pvmove -t -v -d /dev/loop0:0 /dev/loop0:25
  Test mode: Metadata will NOT be updated.
    Finding volume group "toto"
  No extents available for allocation
    Test mode: Wiping internal cache
    Wiping internal VG cache
vaio:/share# pvmove --alloc anywhere  -t -v -d /dev/loop0:0 /dev/loop0:25
  Test mode: Metadata will NOT be updated.
    Finding volume group "toto"
    Test mode: Skipping archiving of volume group.
    Creating logical volume pvmove0
  mirror: Required device-mapper target(s) not detected in your kernel
    Test mode: Wiping internal cache
    Wiping internal VG cache
vaio:/share# modprobe dm-mirror
vaio:/share# pvmove --alloc anywhere -v -d /dev/loop0:0 /dev/loop0:25
    Finding volume group "toto"
    Archiving volume group "toto" metadata (seqno 2).
    Creating logical volume pvmove0
    Moving 1 extents of logical volume toto/toto0
    Found volume group "toto"
    Updating volume group metadata
    Creating volume group backup "/etc/lvm/backup/toto" (seqno 3).
    Found volume group "toto"
    Found volume group "toto"
    Suspending toto-toto0 (254:2)
    Found volume group "toto"
    Creating toto-pvmove0
    Loading toto-pvmove0 table
  device-mapper: reload ioctl failed: Invalid argument
  ABORTING: Temporary mirror activation failed.  Run pvmove --abort.
    Found volume group "toto"
    Loading toto-pvmove0 table
  device-mapper: reload ioctl failed: Invalid argument
    Loading toto-toto0 table
  device-mapper: reload ioctl failed: Invalid argument

>From that point, any lvm command will hang and increase the load by 1. 
Hard reboot is the only solution to unfreeze.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (650, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-xen-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

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 excluded




More information about the pkg-lvm-maintainers mailing list