Skip to contentSkip to conversation

how to disable a path

DISCUSSION li nux 1 participant 1 message Mar 23, 2006 Device mapper

lore
Share & tools
lore

li nux

author
#0 lore raw

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