Bug#484823: multipath-tools: /etc/udev/rules.d/multipath.rules breaks LVM snapshots

Guido Günther agx at sigxcpu.org
Sat Jun 7 12:05:58 UTC 2008


On Fri, Jun 06, 2008 at 10:33:36PM +0100, Tim Woodall wrote:
> The /etc/udev/rules.d/multipath.rules exposes a race that causes LVM
> snapshots to fail to be created intermittently.
You mean:

# take care of devmap partitioning
ACTION=="add", SUBSYSTEM=="block", KERNEL=="dm-*", \
        PROGRAM="/sbin/dmsetup -j %M -m %m --noopencount --noheadings -c
	-o name info", \
        RUN+="/sbin/kpartx -a /dev/mapper/%c"

Does changing ACTION="add" into ACTION="change" do any good?

> This caused my backups to suddenly start failing when I installed this
> package to get kpartx.
> 
> /sbin/lvcreate -A n -L500M -s -nroot-backup /dev/vg0/root
>   LV vg0/root-backup in use: not deactivating
>   Couldn't deactivate new snapshot.
Do you have a chance to try the packages from lenny? Kpartx is split out
into a separate package there and the udev rules are much more robust.
There are packports of this versions available here:

http://debian.bzed.de/etch-backports/devmapper_1.02.24-4~bpo40+1.dsc
http://debian.bzed.de/etch-backports/multipath-tools_0.4.8-7~bpo40+1.dsc

Cheers,
 -- Guido





More information about the pkg-lvm-maintainers mailing list