<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>[dm-devel] RE: Multipathing with RHEL4 U2 on EMC DMX</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">A quick update; I noticed that the string I was using to create the multipath device was actually for a failover setup, not multibus. I had been using:</FONT></P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">   # echo "0 141419520 multipath 0 0 2 1 round-robin 0 1 1 8:48 1000 round-robin 0 1 1 8:176 1000" | dmsetup create dm2</FONT>
</P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">From what I can see on<I> Christophe</I>'s wiki it should have been the following to get a multibus configuration:</FONT>
</P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">   # echo "0 141419520 multipath 0 0 1 1 round-robin 0 2 1 8:48 1000 8:176 1000" | dmsetup create dm2</FONT>
</P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">The output of 'multipath -l' for this device now appears as;</FONT>
</P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">   dm2 ()</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">   [size=67 GB][features="0"][hwhandler="0"]</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">   \_ round-robin 0 [enabled]</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">    \_ 0:0:0:6  sdd 8:48  [active][ready]</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Courier New">    \_ 1:0:0:6  sdl 8:176 [active][ready]</FONT>
</P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">I'm not sure if this will fix any of my issues (primarily the LUN dropping off), but wanted to send in this update since my original post had mentioned that I had been thinking about using "failover" instead of "multibus". In reality I was using "failover". I'll see how it goes with my multibus setup, but I'm still curious how you get the settings in /etc/multipath to work. I tried changing the values under the "defaults" section for 'scsi_id' as seen below, but it still keeps using the same command as before.</FONT></P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">Thanks,</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">David</FONT>
</P>

<P><B><FONT FACE="Arial">David Child</FONT></B>

<BR><I><FONT COLOR="#000000" SIZE=2 FACE="Arial">Email </FONT><U> <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">David.Child</FONT></U></I><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">@ps.net</FONT></U>
</P>
<BR>

<P><FONT SIZE=1 FACE="Tahoma">_____________________________________________ </FONT>

<BR><B><FONT SIZE=1 FACE="Tahoma">From:  </FONT></B> <FONT SIZE=1 FACE="Tahoma">Child, David  </FONT>

<BR><B><FONT SIZE=1 FACE="Tahoma">Sent:  </FONT></B> <FONT SIZE=1 FACE="Tahoma">Friday, February 10, 2006 8:48 AM</FONT>

<BR><B><FONT SIZE=1 FACE="Tahoma">To:    </FONT></B> <FONT SIZE=1 FACE="Tahoma">'dm-devel@redhat.com'</FONT>

<BR><B><FONT SIZE=1 FACE="Tahoma">Subject:       </FONT></B> <FONT SIZE=1 FACE="Tahoma">[dm-devel] Multipathing with RHEL4 U2 on EMC DMX</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">Hello,</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">I've just recently connected some HP BL20p G3 blades running RHEL4 U2 up to a DMX2000 (via McData switches). We didn't get PowerPath and intended to use device-mapper multipathing. I was able to get things up for the most part and get devices defined, but have to do that manually. I've run into a few issues/concerns that I was hoping someone had run across;</FONT></P>

<P><FONT SIZE=2 FACE="Courier New">Kernel: 2.6.9-22.Elsmp</FONT>

<BR><FONT SIZE=2 FACE="Courier New">Multipath tools: multipath-tools-0.4.6.1-1</FONT>

<BR><FONT SIZE=2 FACE="Courier New">Device Mapper: device-mapper-1.01.05-01</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">1. When running 'multipath -v3' I get errors from the getuid_callout string; "error calling out scsi_id -g -ppre-spc3-83 -u -s /block/sdb". It doesn't like the "-ppre-spc3-83" part. After some research it appears that for the DMX (Symmetrix) a more appropriate string would be "/sbin/scsi_id -g -p 0x80 -u -s /block/sdb". I tried adding that into the 'defaults' section of /etc/multipath.conf, but it doesn't appear to pick it up. I've tried restarting multipathd, rebooting, etc. Is there anyway to get it to take this string? I believe that is part of the problem I'm having with the next item (#2).</FONT></P>

<P><FONT SIZE=2 FACE="Courier New">2. In order to have multipath working for my EMC devices I have to manually create them on system reboot. I simply created a new startup script for this. Basically I just do; 'echo "0 17677440 multipath 0 0 2 1 round-robin 0 1 1 8:112 1000 round-robin 0 1 1 8:240 1000" | dmsetup create dm0' for each device. Is that normal to have to do that or is there a way to do this automatically? I would suspect it has to do with having a hardware_handler. I thought about the dm-emc handler, but that appears to only work for the CX/AX/FC family (i.e. Clariion) of arrays which work nothing like the Symmetrix. Perhaps if I could get the getuid_callout string working that would help.</FONT></P>

<P><FONT SIZE=2 FACE="Courier New">3. Early this morning there was a problem on one of the multipath devices used for Oracle ASM;</FONT>
</P>

<P>        <FONT SIZE=2 FACE="Courier New">SCSI error : <0 0 0 6> return code = 0x20000</FONT>

<BR>        <FONT SIZE=2 FACE="Courier New">end_request: I/O error, dev sdd, sector 64078960</FONT>

<BR>        <FONT SIZE=2 FACE="Courier New">end_request: I/O error, dev sdd, sector 64078961</FONT>

<BR>        <FONT SIZE=2 FACE="Courier New">device-mapper: dm-multipath: Failing path 8:48.</FONT>

<BR>        <FONT SIZE=2 FACE="Courier New">SCSI error : <1 0 0 6> return code = 0x20000</FONT>

<BR>        <FONT SIZE=2 FACE="Courier New">end_request: I/O error, dev sdl, sector 34888112</FONT>

<BR>        <FONT SIZE=2 FACE="Courier New">end_request: I/O error, dev sdl, sector 34888113</FONT>

<BR>        <FONT SIZE=2 FACE="Courier New">device-mapper: dm-multipath: Failing path 8:176.</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">'multipath -l' showed the device as;</FONT>
</P>

<P>        <FONT SIZE=2 FACE="Courier New">dm2 ()</FONT>

<BR>        <FONT SIZE=2 FACE="Courier New">[size=67 GB][features="0"][hwhandler="0"]</FONT>

<BR>        <FONT SIZE=2 FACE="Courier New">\_ round-robin 0 [enabled]</FONT>

<BR>        <FONT SIZE=2 FACE="Courier New"> \_ 0:0:0:6  sdd 8:48  [failed][ready]</FONT>

<BR>        <FONT SIZE=2 FACE="Courier New">\_ round-robin 0 [enabled]</FONT>

<BR>        <FONT SIZE=2 FACE="Courier New"> \_ 1:0:0:6  sdl 8:176 [failed][ready]</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">The LUNs on this server are shared between three servers and the other two remained on-line so I know the LUN or paths to the array didn't go out. Since the other LUNs on this server remained active I know I didn't loose any HBA connectivity either. The DBAs said they were writing a bunch of data to it when it dropped off line. I ran a few 'multipath' and 'dmsetup status' commands to see what was up and it came back online (it had been "failed" from ~3am to 7am).</FONT></P>

<P><FONT SIZE=2 FACE="Courier New">Should I try using "failover" instead of "multibus" for my "path_grouping_policy"? I would like to have it load balance, but failover is more important.</FONT></P>

<P><FONT SIZE=2 FACE="Courier New">Sorry for the long-winded post.</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">Any help would be appreciated.<BR>
<BR>
Thanks,<BR>
</FONT><FONT SIZE=2 FACE="Courier New">David</FONT>
</P>

<P><B><FONT FACE="Arial">David Child</FONT></B>

<BR><I><FONT COLOR="#000000" SIZE=2 FACE="Arial">Email </FONT></I><I><U> <FONT COLOR="#0000FF" SIZE=2 FACE="Arial">David.Child</FONT></U></I><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">@ps.net</FONT></U><FONT FACE="Times New Roman">.</FONT>
</P>

</BODY>
</HTML>