Bug 527727

Summary: "service multipathd stop" gives error message when root filesystem is on a physical partition
Product: Red Hat Enterprise Linux 5 Reporter: Tasos Papaioannou <tpapaioa>
Component: device-mapper-multipathAssignee: LVM and device-mapper development team <lvm-team>
Status: CLOSED DUPLICATE QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: medium Docs Contact:
Priority: low    
Version: 5.4CC: agk, bmarzins, bmr, christophe.varoqui, dwysocha, edamato, egoggin, heinzm, junichi.nomura, kueda, lmb, mbroz, prockai, tranlan
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-10-08 20:50:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tasos 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`

Comment 2 Ben Marzinski 2009-10-08 20:50:54 UTC

*** This bug has been marked as a duplicate of bug 502128 ***