[dm-devel] how to disable a path

li nux lnxluv at yahoo.com
Thu Mar 23 13:48:32 UTC 2006


I have setup multipathing on rhel4 u3 x86_64 like
this:

There are two paths to the disk, sda and sde
# multipath -v2 -l
mpath0 (3600805f300176640a435a927359c0003)
[size=440 GB][features="0"][hwhandler="0"]
\_ round-robin 0 [enabled]
 \_ 0:0:0:1 sda 8:0   [active][ready]
 \_ 2:0:0:1 sde 8:64  [active][ready]

I need help in the following:

1. How to disable a particular path lets say sda.
I tried to blacklist sda by putting the entry in
/etc/multipath.conf:

devnode_blacklist {
       devnode "sda"
}

But on running multipath, it gives a segmentation
fault
# multipath
Segmentation fault

strace shows that it faults immediately after close()
open("/var/lib/multipath/bindings", O_RDWR|O_CREAT,
0600) = 11
----------<snip>----------
close(11)                               = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---


2. How to correlate /dev/dm- entries to the disks, how
to find which device /dev/dm-10 is mapped to

-lnx

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the dm-devel mailing list