Operating System - Linux
1753907 Members
8641 Online
108810 Solutions
New Discussion юеВ

multipathd can't remove paths

 
Matt Shaffer_1
Regular Advisor

multipathd can't remove paths

My OS is RHEL 4.6 and the kernel is 2.6.9-67.EL 32 bit. I can't remove multipaths to a disk that is no longer presented to the server. The disk does not show up when I run fdisk -l. Only multipathd is seeing it. I ran multipathd -k and removed the paths and map. When I run list paths I no longer see the paths. But then I get out of the menu, restart multipathd, and the paths and map for the phantom disk shows up again. This is driving me crazy.
5 REPLIES 5
Matti_Kurkela
Honored Contributor

Re: multipathd can't remove paths

Have you tried "multipath -F"?

Multipathd might be relying on the kernel's hotplug information, which is kept until the system is rebooted or the sysadmin explicitly removes it. This is required to handle smoothly a situation where a disk vanishes temporarily, then comes back.

Are the disk devices still visible if you run "ls /sys/block"? If so, use /sys/block//device/delete to tell the kernel that the device is gone and will not be coming back.

Example:
To tell the kernel that /dev/sdaa is gone for good:

multipath -F
echo 1 >/sys/block/sdaa/device/delete

MK
MK
John Guster
Trusted Contributor

Re: multipathd can't remove paths

after echo 1 to the delete file, reload with multipath -v3. your next multipath -ll should not have removed disks any more.
Matt Shaffer_1
Regular Advisor

Re: multipathd can't remove paths

I had tried those steps but not in that order. So it kind of worked. I could delete the 4 paths but not the dm path. The paths are gone but the map is not.

mpath4 (3600508b4000755d60000d000000a0000)
[size=2 GB][features="0"][hwhandler="0"]
\_ round-robin 0 [enabled]
\_ #:#:#:# - 65:0 [failed][faulty]
\_ #:#:#:# - 65:48 [failed][faulty]
\_ round-robin 0 [enabled]
\_ #:#:#:# - 65:16 [failed][faulty]
\_ #:#:#:# - 65:32 [failed][faulty]

multipathd> list maps

mpath4 dm-8 [no scheduled failback]

[root@wshq-eod03 hbanyware]# echo 1 > /sys/block/dm-8/device/delete
-bash: /sys/block/dm-8/device/delete: No such file or directory


The result from multipath -ll is the same after running multipath -v3 also.
Matt Shaffer_1
Regular Advisor

Re: multipathd can't remove paths

after doing all these steps and rebooting the paths are now gone. thanks all.
Matt Shaffer_1
Regular Advisor

Re: multipathd can't remove paths

removing paths and rebooting solved issue.