<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div>Hugh,<div><br></div><div>If I wanted to implement the option of letting the user decide whether to dismount or not the volumes via config file, what would be the Starcluster way of doing this? Should i just hack the py file that deals with this?</div><div><br></div><div>Ramon</div></div><br><br><div style="font-size:100%;text-align:left;color:#000000"><div>-------- Original message --------</div><div>From: Ramon Ramirez-Linan <rlinan@navteca.com> </rlinan@navteca.com></div><div>Date:09/24/2014  5:31 PM  (GMT-05:00) </div><div>To: "MacMullan, Hugh" <hughmac@wharton.upenn.edu> </hughmac@wharton.upenn.edu></div><div>Cc: starcluster@mit.edu </div><div>Subject: Re: [StarCluster] stopping the cluster makes dismounts all EBS volumes </div><div><br></div></div><div dir="ltr"><br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div></div><font color="#073763"><u style="font-family: 'arial narrow', sans-serif; font-size: 14.666666984558105px;"><br></u></font></div></div>
<br><div class="gmail_quote">On Thu, Sep 18, 2014 at 10:52 AM, MacMullan, Hugh <span dir="ltr">&lt;<a href="mailto:hughmac@wharton.upenn.edu" target="_blank">hughmac@wharton.upenn.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Hi Ramon:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>&nbsp;<u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">I had no idea that that StarCluster was doing that. It seems like the default behavior should be to leave any drives 'attached', and maybe have an option for
 the 'stop' command to detach if desired. The workaround is to use the AWS CLI to stop the cluster:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>&nbsp;<u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">aws ec2 stop-instances --instance-ids $(for ID in $(starcluster lc hughmac 2&gt;/dev/null | grep -e "^ *node[0-9][0-9][0-9]" -e "^ *master" | awk '{print $3}');
 do echo -n "$ID "; done)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>&nbsp;<u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Then when you 'starcluster start mycluster' it retains the attachments and mounts (if in /etc/fstab).<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>&nbsp;<u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d">-Hugh<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>&nbsp;<u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;"> <a href="mailto:starcluster-bounces@mit.edu" target="_blank">starcluster-bounces@mit.edu</a> [mailto:<a href="mailto:starcluster-bounces@mit.edu" target="_blank">starcluster-bounces@mit.edu</a>]
<b>On Behalf Of </b>Ramon Ramirez-Linan<br>
<b>Sent:</b> Thursday, September 18, 2014 10:22 AM<br>
<b>To:</b> <a href="mailto:starcluster@mit.edu" target="_blank">starcluster@mit.edu</a><br>
<b>Subject:</b> [StarCluster] stopping the cluster makes dismounts all EBS volumes<u></u><u></u></span></p>
<p class="MsoNormal"><u></u>&nbsp;<u></u></p>
<div>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u>&nbsp;<u></u></p>
</div>
<div>
<p class="MsoNormal">I have a cluster based on a custom AMI. The AMI has 2 EBS, the root one and a 1TB one.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">So each node in the cluster has this 1TB EBS volume with custom data that is not shared.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u>&nbsp;<u></u></p>
</div>
<div>
<p class="MsoNormal">The problem is that whenever I stopped the cluster with starcluster stop mycluster it dismounts the 1TB volumes and when i resume the cluster with starcluster start -x mycluster it doesnt mount the 1TB volume back.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u>&nbsp;<u></u></p>
</div>
<div>
<p class="MsoNormal">Is there a way to tell Starcluster not to dismount the EBS when stopping?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u>&nbsp;<u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u>&nbsp;<u></u></p>
</div>
<div>
<p class="MsoNormal">Ramon<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u><br></p></div>
</div>
</div>
</div>

</blockquote></div><br></div>
</body>