Comment 23 for bug 644489

Revision history for this message
John Morrissey (jwm) wrote : Re: [Bug 644489] Re: constantly changes /dev/disk/by-id/{scsi, wwn}-* LUN symlinks with multipathing

On Sat, Jun 18, 2011 at 09:00:59PM -0000, Peter Petrakis wrote:
> Excellent, you're still interested. I've got a fix for you to try.
> Attached is a custom version of mpath_prio_netapp that should
> not generate any more change events for you. Please post
> for comparison that this new version returns the same data
> as the old one.
[snip]
> Once you verify that the updated prio checker no longer
> generates change events, start up multipathd again and
> verify that this continues to be true. Thanks!

Everything seems to be as anticipated:

[<email address hidden>:pts/0 ~> sudo apt-get install multipath-tools=0.4.8-14ubuntu4 multipath-tools-boot=0.4.8-14ubuntu4 kpartx=0.4.8-14ubuntu4
[...]
[<email address hidden>:pts/0 ~> for i in /dev/sd[abcd]; do sudo mpath_prio_netapp $i; done
4
1
4
1
[<email address hidden>:pts/0 ~> sudo apt-get dist-upgrade
[...]
Preparing to replace kpartx 0.4.8-14ubuntu4 (using .../kpartx_0.4.8-14ubuntu5~lp644489_amd64.deb) ...
[...]
Preparing to replace multipath-tools 0.4.8-14ubuntu4 (using .../multipath-tools_0.4.8-14ubuntu5~lp644489_amd64.deb) ...
[...]
Preparing to replace multipath-tools-boot 0.4.8-14ubuntu4 (using .../multipath-tools-boot_0.4.8-14ubuntu5~lp644489_all.deb) ...
[...]
[<email address hidden>:pts/0 ~> for i in /dev/sd[abcd]; do sudo mpath_prio_netapp $i; done
4
1
4
1
[<email address hidden>:pts/0 ~> psg multi
root 30498 30498 0.0 0.0 85396 3500 ? SLl futex_ 13:24 /sbin/multipathd
root 30498 30500 0.0 0.0 85396 3500 ? SLl futex_ 13:24 /sbin/multipathd
root 30498 30514 0.0 0.0 85396 3500 ? SLl dm_wai 13:24 /sbin/multipathd
root 30498 30515 0.0 0.0 85396 3500 ? SLl hrtime 13:24 /sbin/multipathd
root 30498 30516 0.0 0.0 85396 3500 ? SLl skb_re 13:24 /sbin/multipathd
root 30498 30517 0.0 0.0 85396 3500 ? SLl poll_s 13:24 /sbin/multipathd
root 30498 30518 0.0 0.0 85396 3500 ? SLl futex_ 13:24 /sbin/multipathd
[<email address hidden>:pts/0 ~> sudo udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

[no events generated]

john
--
John Morrissey _o /\ ---- __o
<email address hidden> _-< \_ / \ ---- < \,
www.horde.net/ __(_)/_(_)________/ \_______(_) /_(_)__