cancel
Showing results for 
Search instead for 
Did you mean: 

DM Multipath

SOLVED
Go to solution
John Guster
Trusted Contributor

DM Multipath

#mutilpath -l shows
mpath4 (xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
[size=30 GB][features="0"][hwhandler="0"] \_ round-robin 0 [active]
\_ #:#:#:# - 4:12 [failed]
\_ 3:0:1:7 sde 4:40 [active]

# multipath -v2
remove: mpath4 (wwid changed)
mpath4: map in use
how to clear this failed path? Storage guy says a reboot is needed.
12 REPLIES
Ivan Ferreira
Honored Contributor

Re: DM Multipath

Please see:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1326622

¿How is that the wwid changed for that device?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
John Guster
Trusted Contributor

Re: DM Multipath

Storage guy removed that path but still allow this LUN being used by the system. is wwid supposed be changed when # of paths is reduced?
Ivan Ferreira
Honored Contributor

Re: DM Multipath

No, I'm not sure of the problem, but it may report wwid changed because the path is not there anymore, or another LUN was detected on that place.

Anyway, you shold keep at least two paths to the LUN.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
John Guster
Trusted Contributor

Re: DM Multipath

there is another path. looks like a reboot is needed. Do you think so?
Steven McCoy
Valued Contributor

Re: DM Multipath

Path issues typically clear up for me after a reboot. What does your /etc/multipath.conf file look like?
Ivan Ferreira
Honored Contributor

Re: DM Multipath

Maybe you need to rescan your disks. Have you rescanned your disks after the LUN maintenance?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
John Guster
Trusted Contributor

Re: DM Multipath

not sure what is rescan mean? can you provide more detail?
Steven McCoy
Valued Contributor

Re: DM Multipath

echo "- - -" > /sys/class/scsi_host/host0/scan
echo "- - -" > /sys/class/scsi_host/host1/scan

Where 'host0' is the first fiber card, 'host1' is the second, etc.

Make sure to have a 'tail -f' going on /var/log/messages when you run the command so you can spot possible issues.

If a redetect doesn't work, I'd suggest a reboot, unfortunately.

Hope this helps.
John Guster
Trusted Contributor

Re: DM Multipath

it didn't do the trick.
does it need
echo "1">/sys/class/fc_host/host2/issue_lip
before echo "---"> /sys/class/scsi_host/host0/scan?
Steven McCoy
Valued Contributor
Solution

Re: DM Multipath

What does this say?:

ls /dev/disk/by-id/

Also, would you mind posting your /etc/multipath.conf file, please?
Tony Cicone
Honored Contributor

Re: DM Multipath

Can you flush the device?

multipath -F

How about deleting the sd device associated with mpath4?

echo "1" > /sys/block//device/delete

It should be deleted now.

ls -l /dev/sd*

Rescan for drives.

echo "1" > /sys/class/fc_host/host0/issue_lip
echo "1" > /sys/class/fc_host/host1/issue_lip

See if they show up.

ls -l /dev/sd*

Re-run the multipath commands.

multipath -v2
multipath -ll





John Guster
Trusted Contributor

Re: DM Multipath

a reboot cleared all. Thanks.