<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:monospace;
        panose-1:0 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks for your reply. I now have the
Filesystem resource working on my test cluster. I’ve done some reading on
STONITH as you suggested and am now wondering how I determine what STONITH
devices are actually available on my servers and which one I should choose? 
The recommendation I’ve read suggests the use of an external UPS that can be
monitored over the network. Is this the best approach? Are there other STONITH
devices that are commonly used? Why choose one over the other?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks in advance.  Mick <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Mike Diehn
[mailto:mike.diehn@ansys.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, January 04, 2011
2:54 PM<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">The
 Pacemaker cluster resource manager</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Pacemaker] how to
mount drive on SAN with pacemaker resourceagent?</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>To make sure the failed server is actually dead, you want to use
STONITH.  So read about that.  Here are examples from our testing
cluster.  These are broken, so don't use them as they are.  That's
why they are set to "Stopped" right now.  I probably have some
timing stuff very wrong:<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<blockquote style='margin-left:30.0pt;margin-right:0in'>

<div>

<div>

<p class=MsoNormal><font size=3 face=monospace><span style='font-size:12.0pt;
font-family:monospace'>primitive ShootLebekmfs1 stonith:external/ipmi \</span></font><o:p></o:p></p>

</div>

</div>

<div>

<div>

<p class=MsoNormal><font size=3 face=monospace><span style='font-size:12.0pt;
font-family:monospace'>        meta
target-role="Stopped" \</span></font><o:p></o:p></p>

</div>

</div>

<div>

<div>

<p class=MsoNormal><font size=3 face=monospace><span style='font-size:12.0pt;
font-family:monospace'>        params
hostname="lebekmfs1" ipaddr="10.1.1.59"
userid="stonith" passwd="ShootMeInTheHead"
interface="lan"</span></font><o:p></o:p></p>

</div>

</div>

<div>

<div>

<p class=MsoNormal><font size=3 face=monospace><span style='font-size:12.0pt;
font-family:monospace'>primitive ShootLebekmfs2 stonith:external/ipmi \</span></font><o:p></o:p></p>

</div>

</div>

<div>

<div>

<p class=MsoNormal><font size=3 face=monospace><span style='font-size:12.0pt;
font-family:monospace'>        meta
target-role="Stopped" \</span></font><o:p></o:p></p>

</div>

</div>

<div>

<div>

<p class=MsoNormal><font size=3 face=monospace><span style='font-size:12.0pt;
font-family:monospace'>        params
hostname="lebekmfs2" ipaddr="10.1.1.61"
userid="stonith" passwd="ShootMeInTheHead"
interface="lan"</span></font><o:p></o:p></p>

</div>

</div>

</blockquote>

<div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>You can use the ocf:heartbeat:Filesystem resource to mount any file
system you can mount manually.  Here's one from a config in our test
cluster.  This works:<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<blockquote style='margin-left:30.0pt;margin-right:0in'>

<div>

<div>

<p class=MsoNormal><font size=3 face=monospace><span style='font-size:12.0pt;
font-family:monospace'>primitive lvTest ocf:heartbeat:Filesystem \</span></font><o:p></o:p></p>

</div>

</div>

<div>

<div>

<p class=MsoNormal><font size=3 face=monospace><span style='font-size:12.0pt;
font-family:monospace'>        params
device="/dev/EkmCluVG/lvTest" directory="/srv/test1"
fstype="ocfs2" \</span></font><o:p></o:p></p>

</div>

</div>

<div>

<div>

<p class=MsoNormal><font size=3 face=monospace><span style='font-size:12.0pt;
font-family:monospace'>        op monitor interval="10s"
timeout="10s"</span></font><o:p></o:p></p>

</div>

</div>

</blockquote>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Make sure you remove the file system from your /etc/fstab if you're
going to do it this way.  During testing, for my convenience, I leave it
in, but add the noauto option to prevent it being mounted on boot.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Best,<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Mike<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Tue, Jan 4, 2011 at 2:05 PM, Michael Hittesdorf <<a
href="mailto:michael.hittesdorf@chicagotrading.com">michael.hittesdorf@chicagotrading.com</a>>
wrote:<o:p></o:p></span></font></p>

<div link=blue vlink=navy>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Can I use
the Filesystem resource agent to mount a SAN drive in the event of a failover?
How do I ensure that the failed server no longer has the drive mounted so as to
prevent storage corruption? Having read several of the tutorials, I’m aware of
DRBD and the clustered file systems GFS2 and OCFS2.  However, I don’t need
simultaneous access to the disk from both of my cluster nodes. I just want to
make the shared SAN storage available to the primary, active server only as my
cluster is active-passive.  Is there a recommended way to accomplish this?</span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Thanks for
your help!</span></font><o:p></o:p></p>

</div>

<p><font size=1 face="Times New Roman"><span style='font-size:7.5pt'>This
message is intended only for the personal and confidential use of the
recipients named above. If the reader of this email is not the intended
recipient, you have received this email in error and any review, dissemination,
distribution or copying is strictly prohibited. If you have received this email
in error, please notify the sender immediately by return email and permanently
delete the copy you received. This message is provided for informational
purposes and should not be construed as a solicitation or offer to buy or sell
any securities or related financial instruments. Neither CTC Holdings nor any
affiliates (CTC) are responsible for any recommendation, solicitation, offer or
agreement or any information about any transaction, customer account or account
activity that may be attached to or contained in this communication. CTC
accepts no liability for any content contained in the email, or any errors or
omissions arising as a result of e-mail transmission. Any opinions contained in
this email constitute the sender's best judgment at this time and are subject
to change without notice. CTC London Limited is authorized and regulated by the
Financial Services Authority.</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
_______________________________________________<br>
Pacemaker mailing list: <a href="mailto:Pacemaker@oss.clusterlabs.org">Pacemaker@oss.clusterlabs.org</a><br>
<a href="http://oss.clusterlabs.org/mailman/listinfo/pacemaker" target="_blank">http://oss.clusterlabs.org/mailman/listinfo/pacemaker</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a
href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" target="_blank">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a
href="http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker"
target="_blank">http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker</a><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br clear=all>
<br>
-- <br>
Mike Diehn<br>
Senior Systems Administrator<br>
ANSYS, Inc - <st1:place w:st="on"><st1:City w:st="on">Lebanon</st1:City>, <st1:State
 w:st="on">NH</st1:State></st1:place> Office<br>
<a href="mailto:mike.diehn@ansys.com">mike.diehn@ansys.com</a>, (603) 727-5492<o:p></o:p></span></font></p>

</div>

</div>

</div>

<p></p><p><font size=1>This message is intended only for the personal and confidential use of the recipients named above.  If the reader of this email is not the intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited.</font><font size=1>  If you have received this email in error, please notify the sender immediately by return email and permanently delete the copy you received.  This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments.</font><font size=1>  Neither CTC Holdings nor any affiliates (CTC) are responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity that may be attached to or contained in this communication. CTC accepts no liability for any content contained in the email, or any errors or omissions arising as a result of e-mail transmission.</font><font size=1>  Any opinions contained in this email constitute the sender's best judgment at this time and are subject to change without notice. CTC London Limited is authorized and regulated by the Financial Services Authority.</font></p></body>

</html>