Bug#612439: Acknowledgement (lvconvert --merge breaks Logical Volumes)

Marcel Meckel marcel at thermoman.de
Wed Feb 9 14:43:34 UTC 2011


> What snapshot targets does your kernel contain?
> (run 'dmsetup targets' and check for a line starting 'snapshot-merge')

% dmsetup targets
snapshot-origin  v1.7.0
snapshot         v1.7.0
striped          v1.3.0
linear           v1.1.0
error            v1.0.1

% strings /lib/modules/$(uname -r)/kernel/drivers/md/dm-* | grep merge
blk_queue_merge_bvec

> Check your kernel message log for any related errors.

nothing in there

> Run the command with -vvvv for more detailed information about what's
> going wrong.

see attachment. i believe there is no snapshot-merge target in this kernel
version.

Marcel.
-------------- next part --------------
% lvs vg0
  LV        VG   Attr   LSize Origin Snap%  #Seg #Str Start SSize PE Ranges     
  test      vg0  owi-a- 4.00m                  1    1    0  4.00m /dev/loop5:0-0
  test-snap vg0  swi-a- 4.00m test     0.29    1    1    0  4.00m /dev/loop5:1-1

% lvconvert -vvvv --merge vg0/test-snap
#lvmcmdline.c:1035         Processing: lvconvert -vvvv --merge vg0/test-snap
#lvmcmdline.c:1038         O_DIRECT will be used
#config/config.c:987       Setting global/locking_type to 1
#config/config.c:987       Setting global/wait_for_locks to 1
#locking/locking.c:240       File-based locking selected.
#config/config.c:964       Setting global/locking_dir to /var/lock/lvm
#activate/activate.c:361       Getting target version for snapshot
#ioctl/libdm-iface.c:1821         dm version   OF   [16384]
#ioctl/libdm-iface.c:1821         dm versions   OF   [16384]
#activate/activate.c:361       Getting target version for snapshot-origin
#ioctl/libdm-iface.c:1821         dm versions   OF   [16384]
#toollib.c:198     Using logical volume(s) on command line
#locking/file_locking.c:235       Locking /var/lock/lvm/V_vg0 WB
#locking/file_locking.c:141         _do_flock /var/lock/lvm/V_vg0:aux WB
#locking/file_locking.c:141         _do_flock /var/lock/lvm/V_vg0 WB
#locking/file_locking.c:51         _undo_flock /var/lock/lvm/V_vg0:aux
#device/dev-io.c:487         Opened /dev/loop0 RO
#device/dev-io.c:260       /dev/loop0: size is 0 sectors
#filters/filter.c:154         /dev/loop0: Skipping: Too small to hold a PV
#device/dev-io.c:533         Closed /dev/loop0
#filters/filter.c:129         /dev/cdrom1: Skipping: Unrecognised LVM device type 11
#device/dev-io.c:487         Opened /dev/root RW O_DIRECT
#device/dev-io.c:134         /dev/root: block size is 4096 bytes
#label/label.c:184       /dev/root: No label detected
#device/dev-io.c:533         Closed /dev/root
#device/dev-io.c:487         Opened /dev/vda RO
#device/dev-io.c:260       /dev/vda: size is 18874368 sectors
#device/dev-io.c:134         /dev/vda: block size is 4096 bytes
#filters/filter.c:160         /dev/vda: Skipping: Partition table signature found
#device/dev-io.c:533         Closed /dev/vda
#device/dev-io.c:487         Opened /dev/loop1 RO
#device/dev-io.c:260       /dev/loop1: size is 0 sectors
#filters/filter.c:154         /dev/loop1: Skipping: Too small to hold a PV
#device/dev-io.c:533         Closed /dev/loop1
#device/dev-io.c:487         Opened /dev/dm-1 RW O_DIRECT
#device/dev-io.c:134         /dev/dm-1: block size is 4096 bytes
#label/label.c:184       /dev/dm-1: No label detected
#device/dev-io.c:533         Closed /dev/dm-1
#device/dev-io.c:487         Opened /dev/vda1 RW O_DIRECT
#device/dev-io.c:134         /dev/vda1: block size is 1024 bytes
#label/label.c:184       /dev/vda1: No label detected
#device/dev-io.c:533         Closed /dev/vda1
#device/dev-io.c:487         Opened /dev/loop2 RO
#device/dev-io.c:260       /dev/loop2: size is 0 sectors
#filters/filter.c:154         /dev/loop2: Skipping: Too small to hold a PV
#device/dev-io.c:533         Closed /dev/loop2
#device/dev-io.c:487         Opened /dev/dm-2 RW O_DIRECT
#device/dev-io.c:134         /dev/dm-2: block size is 4096 bytes
#label/label.c:184       /dev/dm-2: No label detected
#device/dev-io.c:533         Closed /dev/dm-2
#device/dev-io.c:487         Opened /dev/vda2 RW O_DIRECT
#device/dev-io.c:134         /dev/vda2: block size is 4096 bytes
#label/label.c:160       /dev/vda2: lvm2 label detected
#cache/lvmcache.c:1136         lvmcache: /dev/vda2: now in VG #orphans_lvm2 (#orphans_lvm2)
#format_text/format-text.c:1137         /dev/vda2: Found metadata at 6656 size 1652 (in area at 4096 size 1044480) for vg_s16 (cAN0Mz-z3eC-6KXD-GCXt-HYli-D89G-5KEvoT)
#cache/lvmcache.c:1136         lvmcache: /dev/vda2: now in VG vg_s16 with 1 mdas
#cache/lvmcache.c:923         lvmcache: /dev/vda2: setting vg_s16 VGID to cAN0Mzz3eC6KXDGCXtHYliD89G5KEvoT
#cache/lvmcache.c:1173         lvmcache: /dev/vda2: VG vg_s16: Set creation host to han-solo.
#device/dev-io.c:533         Closed /dev/vda2
#device/dev-io.c:487         Opened /dev/loop3 RO
#device/dev-io.c:260       /dev/loop3: size is 0 sectors
#filters/filter.c:154         /dev/loop3: Skipping: Too small to hold a PV
#device/dev-io.c:533         Closed /dev/loop3
#device/dev-io.c:487         Opened /dev/dm-3 RW O_DIRECT
#device/dev-io.c:134         /dev/dm-3: block size is 4096 bytes
#label/label.c:184       /dev/dm-3: No label detected
#device/dev-io.c:533         Closed /dev/dm-3
#device/dev-io.c:487         Opened /dev/loop4 RO
#device/dev-io.c:260       /dev/loop4: size is 0 sectors
#filters/filter.c:154         /dev/loop4: Skipping: Too small to hold a PV
#device/dev-io.c:533         Closed /dev/loop4
#device/dev-io.c:487         Opened /dev/dm-4 RW O_DIRECT
#device/dev-io.c:134         /dev/dm-4: block size is 4096 bytes
#label/label.c:184       /dev/dm-4: No label detected
#device/dev-io.c:533         Closed /dev/dm-4
#device/dev-io.c:487         Opened /dev/loop5 RW O_DIRECT
#device/dev-io.c:134         /dev/loop5: block size is 4096 bytes
#label/label.c:160       /dev/loop5: lvm2 label detected
#cache/lvmcache.c:1136         lvmcache: /dev/loop5: now in VG #orphans_lvm2 (#orphans_lvm2)
#format_text/format-text.c:1137         /dev/loop5: Found metadata at 8192 size 1377 (in area at 4096 size 192512) for vg0 (JJeNOe-tj11-WlpA-sUQs-2mG3-739N-ciSkmj)
#cache/lvmcache.c:1136         lvmcache: /dev/loop5: now in VG vg0 with 1 mdas
#cache/lvmcache.c:923         lvmcache: /dev/loop5: setting vg0 VGID to JJeNOetj11WlpAsUQs2mG3739NciSkmj
#cache/lvmcache.c:1173         lvmcache: /dev/loop5: VG vg0: Set creation host to s16.
#device/dev-io.c:487         Opened /dev/dm-5 RW O_DIRECT
#device/dev-io.c:134         /dev/dm-5: block size is 4096 bytes
#label/label.c:184       /dev/dm-5: No label detected
#device/dev-io.c:533         Closed /dev/dm-5
#device/dev-io.c:487         Opened /dev/loop6 RO
#device/dev-io.c:260       /dev/loop6: size is 0 sectors
#filters/filter.c:154         /dev/loop6: Skipping: Too small to hold a PV
#device/dev-io.c:533         Closed /dev/loop6
#device/dev-io.c:487         Opened /dev/dm-6 RW O_DIRECT
#device/dev-io.c:134         /dev/dm-6: block size is 4096 bytes
#label/label.c:184       /dev/dm-6: No label detected
#device/dev-io.c:533         Closed /dev/dm-6
#device/dev-io.c:487         Opened /dev/loop7 RO
#device/dev-io.c:260       /dev/loop7: size is 0 sectors
#filters/filter.c:154         /dev/loop7: Skipping: Too small to hold a PV
#device/dev-io.c:533         Closed /dev/loop7
#device/dev-io.c:487         Opened /dev/dm-7 RW O_DIRECT
#device/dev-io.c:134         /dev/dm-7: block size is 4096 bytes
#label/label.c:184       /dev/dm-7: No label detected
#device/dev-io.c:533         Closed /dev/dm-7
#device/dev-io.c:487         Opened /dev/dm-8 RW O_DIRECT
#device/dev-io.c:134         /dev/dm-8: block size is 4096 bytes
#label/label.c:184       /dev/dm-8: No label detected
#device/dev-io.c:533         Closed /dev/dm-8
#device/dev-io.c:487         Opened /dev/dm-9 RW O_DIRECT
#device/dev-io.c:134         /dev/dm-9: block size is 4096 bytes
#label/label.c:184       /dev/dm-9: No label detected
#device/dev-io.c:533         Closed /dev/dm-9
#device/dev-io.c:487         Opened /dev/dm-10 RW O_DIRECT
#device/dev-io.c:134         /dev/dm-10: block size is 4096 bytes
#label/label.c:184       /dev/dm-10: No label detected
#device/dev-io.c:533         Closed /dev/dm-10
#device/dev-io.c:487         Opened /dev/dm-11 RW O_DIRECT
#device/dev-io.c:134         /dev/dm-11: block size is 4096 bytes
#label/label.c:184       /dev/dm-11: No label detected
#device/dev-io.c:533         Closed /dev/dm-11
#device/dev-io.c:487         Opened /dev/vdb RO
#device/dev-io.c:260       /dev/vdb: size is 31457280 sectors
#device/dev-io.c:134         /dev/vdb: block size is 4096 bytes
#filters/filter.c:160         /dev/vdb: Skipping: Partition table signature found
#device/dev-io.c:533         Closed /dev/vdb
#device/dev-io.c:487         Opened /dev/vdb1 RW O_DIRECT
#device/dev-io.c:134         /dev/vdb1: block size is 4096 bytes
#label/label.c:184       /dev/vdb1: No label detected
#device/dev-io.c:533         Closed /dev/vdb1
#device/dev-io.c:487         Opened /dev/vdb2 RW O_DIRECT
#device/dev-io.c:134         /dev/vdb2: block size is 4096 bytes
#label/label.c:160       /dev/vdb2: lvm2 label detected
#cache/lvmcache.c:1136         lvmcache: /dev/vdb2: now in VG #orphans_lvm2 (#orphans_lvm2)
#format_text/format-text.c:1137         /dev/vdb2: Found metadata at 33280 size 1644 (in area at 4096 size 1044480) for vg_template (j78OII-haGf-8m9l-7bNb-dS2b-uQLZ-HmNO5i)
#cache/lvmcache.c:1136         lvmcache: /dev/vdb2: now in VG vg_template with 1 mdas
#cache/lvmcache.c:923         lvmcache: /dev/vdb2: setting vg_template VGID to j78OIIhaGf8m9l7bNbdS2buQLZHmNO5i
#cache/lvmcache.c:1173         lvmcache: /dev/vdb2: VG vg_template: Set creation host to s16.
#device/dev-io.c:533         Closed /dev/vdb2
#label/label.c:270         Using cached label for /dev/loop5
#label/label.c:270         Using cached label for /dev/loop5
#format_text/format-text.c:498         Read vg0 metadata (4) from /dev/loop5 at 8192 size 1377
#metadata/pv_manip.c:296         /dev/loop5 0:      0      1: test(0:0)
#metadata/pv_manip.c:296         /dev/loop5 1:      1      1: test-snap(0:0)
#metadata/pv_manip.c:296         /dev/loop5 2:      2      5: NULL(0:0)
#locking/file_locking.c:74       Unlocking /var/lock/lvm/V_vg0
#locking/file_locking.c:51         _undo_flock /var/lock/lvm/V_vg0
#device/dev-io.c:533         Closed /dev/loop5
#locking/file_locking.c:235       Locking /var/lock/lvm/V_vg0 WB
#locking/file_locking.c:141         _do_flock /var/lock/lvm/V_vg0:aux WB
#locking/file_locking.c:141         _do_flock /var/lock/lvm/V_vg0 WB
#locking/file_locking.c:51         _undo_flock /var/lock/lvm/V_vg0:aux
#device/dev-io.c:487         Opened /dev/loop5 RW O_DIRECT
#device/dev-io.c:134         /dev/loop5: block size is 4096 bytes
#label/label.c:160       /dev/loop5: lvm2 label detected
#cache/lvmcache.c:1136         lvmcache: /dev/loop5: now in VG #orphans_lvm2 (#orphans_lvm2) with 1 mdas
#format_text/format-text.c:1137         /dev/loop5: Found metadata at 8192 size 1377 (in area at 4096 size 192512) for vg0 (JJeNOe-tj11-WlpA-sUQs-2mG3-739N-ciSkmj)
#cache/lvmcache.c:1136         lvmcache: /dev/loop5: now in VG vg0 with 1 mdas
#cache/lvmcache.c:923         lvmcache: /dev/loop5: setting vg0 VGID to JJeNOetj11WlpAsUQs2mG3739NciSkmj
#cache/lvmcache.c:1173         lvmcache: /dev/loop5: VG vg0: Set creation host to s16.
#label/label.c:270         Using cached label for /dev/loop5
#format_text/format-text.c:498         Read vg0 metadata (4) from /dev/loop5 at 8192 size 1377
#metadata/pv_manip.c:296         /dev/loop5 0:      0      1: test(0:0)
#metadata/pv_manip.c:296         /dev/loop5 1:      1      1: test-snap(0:0)
#metadata/pv_manip.c:296         /dev/loop5 2:      2      5: NULL(0:0)
#format_text/archiver.c:127     Archiving volume group "vg0" metadata (seqno 4).
#activate/dev_manager.c:236         Getting device info for vg0-test [LVM-JJeNOetj11WlpAsUQs2mG3739NciSkmjFZ4y5Ee0uYlP88rk5eaWihW7oBz606Nr]
#ioctl/libdm-iface.c:1821         dm info  LVM-JJeNOetj11WlpAsUQs2mG3739NciSkmjFZ4y5Ee0uYlP88rk5eaWihW7oBz606Nr OF   [16384]
#activate/dev_manager.c:236         Getting device info for vg0-test--snap [LVM-JJeNOetj11WlpAsUQs2mG3739NciSkmjH4fjbHQMcNw9L3sGUral3jbyzl2w62yi]
#ioctl/libdm-iface.c:1821         dm info  LVM-JJeNOetj11WlpAsUQs2mG3739NciSkmjH4fjbHQMcNw9L3sGUral3jbyzl2w62yi OF   [16384]
#metadata/pv_manip.c:296         /dev/loop5 0:      0      1: test(0:0)
#metadata/pv_manip.c:296         /dev/loop5 1:      1      1: test-snap(0:0)
#metadata/pv_manip.c:296         /dev/loop5 2:      2      5: NULL(0:0)
#format_text/format-text.c:590         Writing vg0 metadata to /dev/loop5 at 9728 len 1370
#format_text/format-text.c:695         Pre-Committing vg0 metadata (5) to /dev/loop5 header at 4096
#locking/file_locking.c:299       Locking LV JJeNOetj11WlpAsUQs2mG3739NciSkmjFZ4y5Ee0uYlP88rk5eaWihW7oBz606Nr (W)
#metadata/metadata.c:3091       Finding volume group for uuid JJeNOetj11WlpAsUQs2mG3739NciSkmjFZ4y5Ee0uYlP88rk5eaWihW7oBz606Nr
#label/label.c:160       /dev/loop5: lvm2 label detected
#cache/lvmcache.c:1136         lvmcache: /dev/loop5: now in VG #orphans_lvm2 (#orphans_lvm2) with 1 mdas
#format_text/format-text.c:1137         /dev/loop5: Found metadata at 8192 size 1377 (in area at 4096 size 192512) for vg0 (JJeNOe-tj11-WlpA-sUQs-2mG3-739N-ciSkmj)
#cache/lvmcache.c:1136         lvmcache: /dev/loop5: now in VG vg0 with 1 mdas
#cache/lvmcache.c:923         lvmcache: /dev/loop5: setting vg0 VGID to JJeNOetj11WlpAsUQs2mG3739NciSkmj
#cache/lvmcache.c:1173         lvmcache: /dev/loop5: VG vg0: Set creation host to s16.
#label/label.c:270         Using cached label for /dev/loop5
#format_text/format-text.c:498         Read vg0 metadata (4) from /dev/loop5 at 8192 size 1377
#metadata/metadata.c:3097     Found volume group "vg0"
#metadata/metadata.c:3091       Finding volume group for uuid JJeNOetj11WlpAsUQs2mG3739NciSkmjFZ4y5Ee0uYlP88rk5eaWihW7oBz606Nr
#label/label.c:270         Using cached label for /dev/loop5
#label/label.c:270         Using cached label for /dev/loop5
#format_text/format-text.c:498         Read vg0 pre-commit metadata (5) from /dev/loop5 at 9728 size 1370
#metadata/metadata.c:3097     Found volume group "vg0"
#activate/dev_manager.c:236         Getting device info for vg0-test [LVM-JJeNOetj11WlpAsUQs2mG3739NciSkmjFZ4y5Ee0uYlP88rk5eaWihW7oBz606Nr]
#ioctl/libdm-iface.c:1821         dm info  LVM-JJeNOetj11WlpAsUQs2mG3739NciSkmjFZ4y5Ee0uYlP88rk5eaWihW7oBz606Nr NF   [16384]
#device/dev-io.c:291       /dev/loop5: read_ahead is 256 sectors
#activate/dev_manager.c:827         Getting device info for vg0-test [LVM-JJeNOetj11WlpAsUQs2mG3739NciSkmjFZ4y5Ee0uYlP88rk5eaWihW7oBz606Nr]
#ioctl/libdm-iface.c:1821         dm info  LVM-JJeNOetj11WlpAsUQs2mG3739NciSkmjFZ4y5Ee0uYlP88rk5eaWihW7oBz606Nr OF   [16384]
#ioctl/libdm-iface.c:1821         dm deps   (253:8) OF   [16384]
#ioctl/libdm-iface.c:1821         dm deps   (253:10) OF   [16384]
#activate/dev_manager.c:827         Getting device info for vg0-test-real [LVM-JJeNOetj11WlpAsUQs2mG3739NciSkmjFZ4y5Ee0uYlP88rk5eaWihW7oBz606Nr-real]
#ioctl/libdm-iface.c:1821         dm info  LVM-JJeNOetj11WlpAsUQs2mG3739NciSkmjFZ4y5Ee0uYlP88rk5eaWihW7oBz606Nr-real OF   [16384]
#activate/dev_manager.c:827         Getting device info for vg0-test-cow [LVM-JJeNOetj11WlpAsUQs2mG3739NciSkmjFZ4y5Ee0uYlP88rk5eaWihW7oBz606Nr-cow]
#ioctl/libdm-iface.c:1821         dm info  LVM-JJeNOetj11WlpAsUQs2mG3739NciSkmjFZ4y5Ee0uYlP88rk5eaWihW7oBz606Nr-cow OF   [16384]
#ioctl/libdm-iface.c:1821         dm info  JJeNOetj11WlpAsUQs2mG3739NciSkmjFZ4y5Ee0uYlP88rk5eaWihW7oBz606Nr-cow OF   [16384]
#activate/dev_manager.c:827         Getting device info for vg0-test--snap [LVM-JJeNOetj11WlpAsUQs2mG3739NciSkmjH4fjbHQMcNw9L3sGUral3jbyzl2w62yi]
#ioctl/libdm-iface.c:1821         dm info  LVM-JJeNOetj11WlpAsUQs2mG3739NciSkmjH4fjbHQMcNw9L3sGUral3jbyzl2w62yi OF   [16384]
#ioctl/libdm-iface.c:1821         dm deps   (253:9) OF   [16384]
#ioctl/libdm-iface.c:1821         dm deps   (253:11) OF   [16384]
#activate/dev_manager.c:827         Getting device info for vg0-test--snap-real [LVM-JJeNOetj11WlpAsUQs2mG3739NciSkmjH4fjbHQMcNw9L3sGUral3jbyzl2w62yi-real]
#ioctl/libdm-iface.c:1821         dm info  LVM-JJeNOetj11WlpAsUQs2mG3739NciSkmjH4fjbHQMcNw9L3sGUral3jbyzl2w62yi-real OF   [16384]
#ioctl/libdm-iface.c:1821         dm info  JJeNOetj11WlpAsUQs2mG3739NciSkmjH4fjbHQMcNw9L3sGUral3jbyzl2w62yi-real OF   [16384]
#activate/dev_manager.c:827         Getting device info for vg0-test--snap-cow [LVM-JJeNOetj11WlpAsUQs2mG3739NciSkmjH4fjbHQMcNw9L3sGUral3jbyzl2w62yi-cow]
#ioctl/libdm-iface.c:1821         dm info  LVM-JJeNOetj11WlpAsUQs2mG3739NciSkmjH4fjbHQMcNw9L3sGUral3jbyzl2w62yi-cow OF   [16384]
#activate/dev_manager.c:1135         Checking kernel supports snapshot segment type for test
#activate/activate.c:361       Getting target version for snapshot-merge
#ioctl/libdm-iface.c:1821         dm versions   OF   [16384]
#activate/dev_manager.c:1141   Can't expand LV test: snapshot target support missing from kernel?
#activate/dev_manager.c:1277         <backtrace>
#activate/dev_manager.c:1463         <backtrace>
#activate/activate.c:586         <backtrace>
#activate/activate.c:874         <backtrace>
#locking/locking.c:389         <backtrace>
#lvconvert.c:1418   Failed to suspend origin test
#format_text/format-text.c:699         Wiping pre-committed vg0 metadata from /dev/loop5 header at 4096
#format_text/archiver.c:390     Creating volume group backup "/etc/lvm/backup/vg0" (seqno 5).
#format_text/format-text.c:888         Writing vg0 metadata to /etc/lvm/backup/.lvm_s16_1546_2124864146
#format_text/format-text.c:932         Committing vg0 metadata (5)
#format_text/format-text.c:933         Renaming /etc/lvm/backup/vg0.tmp to /etc/lvm/backup/vg0
#lvconvert.c:1483         <backtrace>
#locking/file_locking.c:74       Unlocking /var/lock/lvm/V_vg0
#locking/file_locking.c:51         _undo_flock /var/lock/lvm/V_vg0
#device/dev-io.c:533         Closed /dev/loop5


More information about the pkg-lvm-maintainers mailing list