<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>149308</bug_id>
          
          <creation_ts>2006-09-27 07:50 0000</creation_ts>
          <short_desc>sys-fs/multipath-tools 0.4.7 wrong path in init script</short_desc>
          <delta_ts>2006-11-15 08:45:00 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>2006.1</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jiri.tyr@e-learning.tul.cz</reporter>
          <assigned_to>base-system@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>jiri.tyr@e-learning.tul.cz</who>
            <bug_when>2006-09-27 07:50:04 0000</bug_when>
            <thetext>I have installed sys-fs/multipath-tools 0.4.7 and I have found an error in the init.d script. In /etc/init.d/multipathd file is path /usr/sbin/multipathd and it should be /sbin/multipathd. Also, when I try to stop already started multipathd daemon, it do not stop it and I have to kill it manualy.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jiri.tyr@e-learning.tul.cz</who>
            <bug_when>2006-09-27 23:37:57 0000</bug_when>
            <thetext>One more thing is not correct. If I add alias into the multipath.conf, it do not create the /dev/mapper/alias_name. I think it is because of the udev configuration.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-09-28 01:54:46 0000</bug_when>
            <thetext>fixed in 0.4.7-r1, thanks for the report !</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jiri.tyr@e-learning.tul.cz</who>
            <bug_when>2006-09-29 01:33:46 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; fixed in 0.4.7-r1, thanks for the report !

It still doesn&apos;t create the alias. In &quot;man devmap_name&quot; is mentioned something else then what is in /etc/udev/rules.d/40-multipath.rules:

KERNEL=&quot;dm-[0-9]*&quot;, PROGRAM=&quot;/sbin/devmap_name %M %m&quot;, \
NAME=&quot;%k&quot;, SYMLINK=&quot;%c&quot;

It would be nice to have alias instead of the bloody mplath device name.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jiri.tyr@e-learning.tul.cz</who>
            <bug_when>2006-10-04 02:36:46 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; fixed in 0.4.7-r1, thanks for the report !
&gt; 
&gt; It still doesn&apos;t create the alias.

OK, it was my fault. I had badly defined device in multipath.conf.

But it still doesn&apos;t stops multipathd if I use the &quot;/etc/init.d/multipathd stop&quot;. I solved that if I changed the stop command to this one:
start-stop-daemon --stop --quiet --exec /sbin/multipathd

I have triend to add --retry 5 to KILL the process after 5 secs but it didn&apos;t worked for me. Could you change it in the ebuild? Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-11-09 16:44:50 0000</bug_when>
            <thetext>works fine for me</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jiri.tyr@e-learning.tul.cz</who>
            <bug_when>2006-11-10 02:36:19 0000</bug_when>
            <thetext>(In reply to comment #5)
&gt; works fine for me

What works for you? My solition or current solution what is in the ebuild now? What HW do you have?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-11-12 21:10:12 0000</bug_when>
            <thetext>using start/stop works for me ... i dont actually use device mapper</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jiri.tyr@e-learning.tul.cz</who>
            <bug_when>2006-11-13 00:50:53 0000</bug_when>
            <thetext>OK, I vote for to replace old stop line in the init.d script with this one:
start-stop-daemon --stop --quiet --exec /sbin/multipathd</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-11-13 12:08:17 0000</bug_when>
            <thetext>no ... it produces a pid file so we&apos;re going to use it</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jiri.tyr@e-learning.tul.cz</who>
            <bug_when>2006-11-14 00:45:18 0000</bug_when>
            <thetext>(In reply to comment #9)
&gt; no ... it produces a pid file so we&apos;re going to use it

But if the pid way doesn&apos;t work properly, then you sould switch to the exec way. You sould search way how it works for everybody and not only for somebody!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-11-14 16:06:02 0000</bug_when>
            <thetext>except that it does

you&apos;re probably experiencing a bug that we&apos;ve fixed elsewhere

in the meantime, change --pid to --pidfile in your local copy</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jiri.tyr@e-learning.tul.cz</who>
            <bug_when>2006-11-15 08:45:00 0000</bug_when>
            <thetext>(In reply to comment #11)
&gt; except that it does
&gt; 
&gt; you&apos;re probably experiencing a bug that we&apos;ve fixed elsewhere
&gt; 
&gt; in the meantime, change --pid to --pidfile in your local copy
&gt; 

Thank you. With &quot;--pidfile&quot; instead of the &quot;--pid&quot; it works very well. Would be possible to change it in a portage?</thetext>
          </long_desc>
      
    </bug>

</bugzilla>