<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>Le 1 sept. 07 à 02:57, Claudio Tassini a écrit :</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Hi,<DIV><BR class="webkit-block-placeholder"></DIV><DIV>I recently upgraded a 2-nodes cluster adding two more nodes. I would like a single node to remain in cluster even if the other three are out of service, so I'm trying to add a quorum disk to the cluster. </DIV><DIV><BR class="webkit-block-placeholder"></DIV><DIV>The problem is that the quorum disk is a LUN in a shared storage which has not the same device name through all the cluster nodes. Moreover, we use device-mapper AND lvm. I could resolve the problem using an lvm logical volume, because it would always have the same name and recognize the underlying "dm" or "sd" device name even if it changes across a reboot, but I've read that it's not advisable to use a logical volume as quorum device. </DIV><DIV><BR class="webkit-block-placeholder"></DIV><DIV>Any idea?<BR clear="all"><BR>-- <BR>Claudio Tassini </DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">--</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Linux-cluster mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:Linux-cluster@redhat.com">Linux-cluster@redhat.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="https://www.redhat.com/mailman/listinfo/linux-cluster">https://www.redhat.com/mailman/listinfo/linux-cluster</A></DIV> </BLOCKQUOTE></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV>using multipath -ll you'll see that your multipath device has got a unique id (wwid) :<DIV><BR class="khtml-block-placeholder"></DIV><DIV># multipath -ll</DIV><DIV>/dev/mpath/mpath2 (200c0b60a76000032) dm-3 SNAP,FILEDISK</DIV><DIV>[size=10M][features=0][hwhandler=0]</DIV><DIV>\_ round-robin 0 [prio=0][active]</DIV><DIV> \_ 2:0:0:0 sdd 8:48  [active][ready]</DIV><DIV> \_ 1:0:0:0 sdc 8:32  [active][ready]</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>all you have to do then, is to modify your /etc/multipath.conf file to ask a fixed name for this multipath device instead of having it get a dynamique name (/dev/mpath/mpathx) :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>/etc/multipath.conf :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>...</DIV><DIV>multipaths {</DIV><DIV>        multipath {</DIV><DIV>                wwid                    200c0b60a76000032</DIV><DIV>                alias                   qdsk1</DIV><DIV>        }</DIV><DIV>}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>and then :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV># multipath -ll</DIV><DIV>[root@titan2 ~]# multipath -ll</DIV><DIV>qdsk1 (200c0b60a76000032) dm-4 SNAP,FILEDISK</DIV><DIV>[size=10M][features=0][hwhandler=0]</DIV><DIV>\_ round-robin 0 [prio=0][active]</DIV><DIV> \_ 4:0:0:0 sdf 8:80  [active][ready]</DIV><DIV> \_ 3:0:0:0 sde 8:64  [active][ready]</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>(please, be warn that the first time you do it, it rename the multipath device to the name you have ask for, but it fails to rename the /dev/mpath/ device, so you have to do it manually once).</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>do it on all your cluster members and they all get the multipath device with the same name.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I have also encoutered a problem with cman that refuse to register a node with more than 16 chars (qdiskd register the qdisk device as a node name). So you must ensure your device path is less than 16 chars for a qdisk device (this is why I use /dev/mpath/qdsk1 instead of /dev/mpath/qdisk1).</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Regards,</DIV><DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">--<SPAN class="Apple-converted-space"> </SPAN></FONT></P><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Alain RICHARD <<A href="mailto:alain.richard@equation.fr">mailto:alain.richard@equation.fr</A>></FONT></P><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">EQUATION SA <<A href="http://www.equation.fr/">http://www.equation.fr/</A>></FONT></P><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Tel : +33 477 79 48 00<SPAN class="Apple-converted-space"><SPAN class="Apple-converted-tab"><SPAN class="Apple-converted-space"> </SPAN>   </SPAN><SPAN class="Apple-converted-space"> </SPAN></SPAN>Fax : +33 477 79 48 01</FONT></P><P style="margin: 0.0px 0.0px 0.0px 0.0px">E-Liance, Opérateur des entreprises et collectivités,</P><P style="margin: 0.0px 0.0px 0.0px 0.0px">Liaisons Fibre optique, SDSL et ADSL <<A href="http://www.e-liance.fr">http://www.e-liance.fr</A>></P><BR class="Apple-interchange-newline"></SPAN></SPAN></SPAN> </DIV><BR></DIV></BODY></HTML>