<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	Comments on: Using the Opscode aws cookbook to attach an EC2 EBS Volume	</title>
	<atom:link href="https://www.ibd.com/scalable-deployment/using-the-opscode-aws-cookbook-to-attach-an-ec2-ebs-volume/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.ibd.com/scalable-deployment/using-the-opscode-aws-cookbook-to-attach-an-ec2-ebs-volume/</link>
	<description>Internet Bandwidth Development: Composting the Internet for over Two Decades</description>
	<lastBuildDate>Fri, 21 Oct 2011 19:24:08 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1</generator>
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="https://pubsubhubbub.superfeedr.com"/><atom:link rel="hub" href="https://websubhub.com/hub"/>	<item>
		<title>
		By: Vasco Calais Pedro		</title>
		<link>https://www.ibd.com/scalable-deployment/using-the-opscode-aws-cookbook-to-attach-an-ec2-ebs-volume/comment-page-1/#comment-2224</link>

		<dc:creator><![CDATA[Vasco Calais Pedro]]></dc:creator>
		<pubDate>Fri, 21 Oct 2011 19:24:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog2.ibd.com/?p=317#comment-2224</guid>

					<description><![CDATA[Hi Robert I gured out what was the issue, I think. The problem was that mount is not running mkfs, so there is no partition on the machine.

I added the following

# Make the partition
bash &quot;format-data-ebs&quot; do
  code &quot;mkfs.xfs /dev/xvdh&quot;
end

And it seems to be working]]></description>
			<content:encoded><![CDATA[<p>Hi Robert I gured out what was the issue, I think. The problem was that mount is not running mkfs, so there is no partition on the machine.</p>
<p>I added the following</p>
<p># Make the partition<br />
bash &#8220;format-data-ebs&#8221; do<br />
  code &#8220;mkfs.xfs /dev/xvdh&#8221;<br />
end</p>
<p>And it seems to be working</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Vasco Calais Pedro		</title>
		<link>https://www.ibd.com/scalable-deployment/using-the-opscode-aws-cookbook-to-attach-an-ec2-ebs-volume/comment-page-1/#comment-2215</link>

		<dc:creator><![CDATA[Vasco Calais Pedro]]></dc:creator>
		<pubDate>Thu, 20 Oct 2011 11:07:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog2.ibd.com/?p=317#comment-2215</guid>

					<description><![CDATA[I am getting a permissions issue when running the mount command, getting an unexpected exit 32. Did you do something to deal with the permissions?]]></description>
			<content:encoded><![CDATA[<p>I am getting a permissions issue when running the mount command, getting an unexpected exit 32. Did you do something to deal with the permissions?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Vasco Calais Pedro		</title>
		<link>https://www.ibd.com/scalable-deployment/using-the-opscode-aws-cookbook-to-attach-an-ec2-ebs-volume/comment-page-1/#comment-2214</link>

		<dc:creator><![CDATA[Vasco Calais Pedro]]></dc:creator>
		<pubDate>Thu, 20 Oct 2011 10:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog2.ibd.com/?p=317#comment-2214</guid>

					<description><![CDATA[Ah, I see what happened, linux was converting sdf to xvdf and so mount couldn&#039;t find it. Thanks for your help though]]></description>
			<content:encoded><![CDATA[<p>Ah, I see what happened, linux was converting sdf to xvdf and so mount couldn&#8217;t find it. Thanks for your help though</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Robert J Berger		</title>
		<link>https://www.ibd.com/scalable-deployment/using-the-opscode-aws-cookbook-to-attach-an-ec2-ebs-volume/comment-page-1/#comment-2207</link>

		<dc:creator><![CDATA[Robert J Berger]]></dc:creator>
		<pubDate>Thu, 20 Oct 2011 01:43:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog2.ibd.com/?p=317#comment-2207</guid>

					<description><![CDATA[I&#039;m not sure if the order matters, but logically :enable needs to come first. That effectively sets things up so the mount can work. (I think it writes to /etc/fstab but not sure on that one)

In terms of timing between attaching and mounting, from looking at the aws ebs code in the aws cookbook, it says the attach should block until its done. But I also saw a &lt;a href=&quot;https://github.com/infochimps/cluster_chef/blob/master/site-cookbooks/ebs/recipes/mount_volumes.rb&quot; rel=&quot;nofollow&quot;&gt;cookbook&lt;/a&gt; that has this in it:
&lt;pre&gt;&lt;code&gt;
if cluster_ebs_volumes
  cluster_ebs_volumes.each do &#124;conf&#124;
    bash &#034;Wait for ebs volumes to attach&#034; do
      not_if{ File.exists?(conf[&#039;device&#039;]) }
      code &#060;&#060;EOF
  echo #{conf.to_hash.inspect}:
  i=1
  while true ; do
    sleep 2
    echo -n &#034;$i &#034;
    i=$[$i+1]
    test -e &#034;#{conf[&#039;device&#039;]}&#034; &#124;&#124; continue
    echo &#034;`date` #{conf[&#039;device&#039;]} mounted for #{conf.to_hash.inspect}&#034; &#062;&#062; /tmp/wait_for_attachment_err.log
    ls -l /dev/sd* &#062;&#062;  /tmp/wait_for_attachment_err.log
    mount          &#062;&#062;  /tmp/wait_for_attachment_err.log
    sleep 5
    break;
  done
  true
EOF
    end
  end
end
&lt;/code&gt;&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not sure if the order matters, but logically :enable needs to come first. That effectively sets things up so the mount can work. (I think it writes to /etc/fstab but not sure on that one)</p>
<p>In terms of timing between attaching and mounting, from looking at the aws ebs code in the aws cookbook, it says the attach should block until its done. But I also saw a <a href="https://github.com/infochimps/cluster_chef/blob/master/site-cookbooks/ebs/recipes/mount_volumes.rb" rel="nofollow">cookbook</a> that has this in it:</p>
<pre><code>
if cluster_ebs_volumes
  cluster_ebs_volumes.each do |conf|
    bash &quot;Wait for ebs volumes to attach&quot; do
      not_if{ File.exists?(conf[&#39;device&#39;]) }
      code &lt;&lt;EOF
  echo #{conf.to_hash.inspect}:
  i=1
  while true ; do
    sleep 2
    echo -n &quot;$i &quot;
    i=$[$i+1]
    test -e &quot;#{conf[&#39;device&#39;]}&quot; || continue
    echo &quot;`date` #{conf[&#39;device&#39;]} mounted for #{conf.to_hash.inspect}&quot; &gt;&gt; /tmp/wait_for_attachment_err.log
    ls -l /dev/sd* &gt;&gt;  /tmp/wait_for_attachment_err.log
    mount          &gt;&gt;  /tmp/wait_for_attachment_err.log
    sleep 5
    break;
  done
  true
EOF
    end
  end
end
</code></pre></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Vasco Calais Pedro		</title>
		<link>https://www.ibd.com/scalable-deployment/using-the-opscode-aws-cookbook-to-attach-an-ec2-ebs-volume/comment-page-1/#comment-2206</link>

		<dc:creator><![CDATA[Vasco Calais Pedro]]></dc:creator>
		<pubDate>Thu, 20 Oct 2011 00:25:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog2.ibd.com/?p=317#comment-2206</guid>

					<description><![CDATA[Thanks for a great post. I think the order of :enable, :mount is reversed, doesn&#039;t mount have to come first?

Also, I am running into a error where the system doesn&#039;t see the volumen as attached by the time it tries to mount it.]]></description>
			<content:encoded><![CDATA[<p>Thanks for a great post. I think the order of :enable, :mount is reversed, doesn&#8217;t mount have to come first?</p>
<p>Also, I am running into a error where the system doesn&#8217;t see the volumen as attached by the time it tries to mount it.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Edmund Haselwanter		</title>
		<link>https://www.ibd.com/scalable-deployment/using-the-opscode-aws-cookbook-to-attach-an-ec2-ebs-volume/comment-page-1/#comment-58</link>

		<dc:creator><![CDATA[Edmund Haselwanter]]></dc:creator>
		<pubDate>Tue, 12 Jan 2010 14:25:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog2.ibd.com/?p=317#comment-58</guid>

					<description><![CDATA[Thanks for the effort to provide this great howto]]></description>
			<content:encoded><![CDATA[<p>Thanks for the effort to provide this great howto</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
