[dm-devel] Upcall prioritizer for multipath

Oliver Mangold Oliver.Mangold at EMEA.NEC.COM
Fri Apr 22 12:52:01 UTC 2016


I'm working with JBODs and would like to access the disks inside through 
dm-multipath. For performance reasons I would like to use to prioritizer 
to pin individual disks to different paths. For testing purposes this 
can be done with the weighted_path prioritizer, but for production use 
this is unsatisfactory, as neither the device name nor the SCSI address 
are persistent over reboots. Thus I wrote a new, simple prioritizer to 
call an external program to determine what the prio should be. I would 
like to ask if there is interest to include this (or something similar) 
upstream (see attached patch).

Remark: After I did this, I've seen the wwn regex mode in the upcoming 
0.6 version, which would also provide a solution to the problem I 
started out with. But using this would still means one had to recreate 
multipath.conf each time one replaces a failed disk, so I still believe 
having an external upcall makes sense in some situations.

Any thoughts?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libmultipath-adding-new-prioritizer-upcall-to-call-e.patch
Type: text/x-patch
Size: 2433 bytes
Desc: 0001-libmultipath-adding-new-prioritizer-upcall-to-call-e.patch
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20160422/e1fee602/attachment.bin>


More information about the dm-devel mailing list