DescriptionTasos Papaioannou
2009-10-07 14:17:07 UTC
Description of problem: "service multipathd stop" gives error message when root filesystem is on a physical partition
Version-Release number of selected component (if applicable): device-mapper-multipath-0.4.7-30.el5
How reproducible: Always
Steps to Reproduce:
1. Run multipathd on a system whose root filesystem is on a local physical partition (e.g., /dev/sda2).
2. Run "service multipathd stop".
Actual results:
# service multipathd stop
Device /dev/sda2 not found
Command failed
Stopping multipathd daemon: [ OK ]
Expected results:
# service multipathd stop
Stopping multipathd daemon: [ OK ]
Additional info: The error message appears to be benign. Because the root filesystem is not on a multipathed or LVM device, there is nothing that "service multipathd stop" needs to do.
The error can be suppressed by changing the following line in the stop function of /etc/init.d/multipathd:
dm_num=`dmsetup info -c --noheadings -o minor $root_dev`
to:
dm_num=`dmsetup info -c --noheadings -o minor $root_dev 2>/dev/null`