<?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/"
> <channel><title>Comments on: Mount an EBS Volume Created from Snapshot at Startup</title> <atom:link href="http://www.shlomoswidler.com/2009/08/mount-ebs-volume-created-from-snapshot.html/feed" rel="self" type="application/rss+xml" /><link>http://www.shlomoswidler.com/2009/08/mount-ebs-volume-created-from-snapshot.html</link> <description>Cloud Developer Tips: Practical tips for developers of cloud computing applications.</description> <lastBuildDate>Thu, 22 Jul 2010 02:24:54 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0</generator> <item><title>By: Cool Things You Can Do with Shared EBS Snapshots</title><link>http://www.shlomoswidler.com/2009/08/mount-ebs-volume-created-from-snapshot.html/comment-page-1#comment-98</link> <dc:creator>Cool Things You Can Do with Shared EBS Snapshots</dc:creator> <pubDate>Sun, 07 Feb 2010 21:54:47 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=29#comment-98</guid> <description>[...] a previous article I explained how to automatically mount an EBS volume created from a snapshot during the instance&#8217;s startup sequence. I provided a script that gets the snapshot ID via the [...]</description> <content:encoded><![CDATA[<p>[...] a previous article I explained how to automatically mount an EBS volume created from a snapshot during the instance&#8217;s startup sequence. I provided a script that gets the snapshot ID via the [...]</p> ]]></content:encoded> </item> <item><title>By: Rob Staveley (Tom)</title><link>http://www.shlomoswidler.com/2009/08/mount-ebs-volume-created-from-snapshot.html/comment-page-1#comment-71</link> <dc:creator>Rob Staveley (Tom)</dc:creator> <pubDate>Tue, 01 Sep 2009 08:53:56 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=29#comment-71</guid> <description>Thanks for the clarification, Shlomo, and - more to the point - thanks for pointing me to http://www.shlomoswidler.com/2009/07/boot-ec2-instances-from-ebs.html, which is a more thorough way of dealing with hibernation for development environments. The approach you have in this article is great for scaling out production environments.</description> <content:encoded><![CDATA[<p>Thanks for the clarification, Shlomo, and &#8211; more to the point &#8211; thanks for pointing me to <a
href="http://www.shlomoswidler.com/2009/07/boot-ec2-instances-from-ebs.html" rel="nofollow">http://www.shlomoswidler.com/2009/07/boot-ec2-instances-from-ebs.html</a>, which is a more thorough way of dealing with hibernation for development environments. The approach you have in this article is great for scaling out production environments.</p> ]]></content:encoded> </item> <item><title>By: shlomo</title><link>http://www.shlomoswidler.com/2009/08/mount-ebs-volume-created-from-snapshot.html/comment-page-1#comment-72</link> <dc:creator>shlomo</dc:creator> <pubDate>Sat, 29 Aug 2009 22:29:39 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=29#comment-72</guid> <description>@rstaveley,&lt;br /&gt;&lt;br /&gt;The SSH key is not related to the use of the EBS snapshot here. It&#039;s also not necessarily related to the use of an Elastic IP. Let me explain.&lt;br /&gt;&lt;br /&gt;This article presents a way to mount an EBS volume created at startup time from a snapshot. That&#039;s not like hibernating because the snapshot is a copy of an existing drive, while in hibernating there is no copying of drives, only creating a faster bootup next time the power is restored. So, in this article the newly-launched instance should be regarded as a &quot;different&quot; computer, and it should get a different SSH host key than the instance from which the AMI was bundled.&lt;br /&gt;&lt;br /&gt;The SSH host key is also not necessarily related to the use of an Elastic IP. An IP address can be transferred from one computer to another (via DHCP or Elastic IPs or reconfiguring the network properties) and it is different than the SSH identity of the machine. A single machine may have many IP addresses with a single host key (not in EC2, but in general), and a single SSH host key can be shared by many machines with different IP addresses. If you&#039;re using SSH host keys and IP addresses to determine the &quot;identity&quot; of an instance then you need to consider each use case and decide on the definition of &quot;identity&quot; you want to employ.&lt;br /&gt;&lt;br /&gt;In my article about booting an instance from an EBS volume http://www.shlomoswidler.com/2009/07/boot-ec2-instances-from-ebs.html I present a technique to &quot;hibernate&quot; an  instance. In that case, the SSH host key should not change between boots from the EBS volume, and therefore the instructions there do not cause the SSH host key to be regenerated each time a new instance boots from the EBS volume. The only question is, should the instances that boot from the EBS volume have the same SSH host key as the instance that was used to create the AMI in the first place. The instructions in that article to create the AMI do not include chmod +x&#039;ing ec2-ssh-host-key-gen, but that is definitely something to be considered when preparing that AMI. Here too the use of an Elastic IP is not necessarily related to booting an instance from an EBS volume.&lt;br /&gt;&lt;br /&gt;Let me know if that explanation clarifies things.</description> <content:encoded><![CDATA[<p>@rstaveley,</p><p>The SSH key is not related to the use of the EBS snapshot here. It&#39;s also not necessarily related to the use of an Elastic IP. Let me explain.</p><p>This article presents a way to mount an EBS volume created at startup time from a snapshot. That&#39;s not like hibernating because the snapshot is a copy of an existing drive, while in hibernating there is no copying of drives, only creating a faster bootup next time the power is restored. So, in this article the newly-launched instance should be regarded as a &quot;different&quot; computer, and it should get a different SSH host key than the instance from which the AMI was bundled.</p><p>The SSH host key is also not necessarily related to the use of an Elastic IP. An IP address can be transferred from one computer to another (via DHCP or Elastic IPs or reconfiguring the network properties) and it is different than the SSH identity of the machine. A single machine may have many IP addresses with a single host key (not in EC2, but in general), and a single SSH host key can be shared by many machines with different IP addresses. If you&#39;re using SSH host keys and IP addresses to determine the &quot;identity&quot; of an instance then you need to consider each use case and decide on the definition of &quot;identity&quot; you want to employ.</p><p>In my article about booting an instance from an EBS volume <a
href="http://www.shlomoswidler.com/2009/07/boot-ec2-instances-from-ebs.html" rel="nofollow">http://www.shlomoswidler.com/2009/07/boot-ec2-instances-from-ebs.html</a> I present a technique to &quot;hibernate&quot; an  instance. In that case, the SSH host key should not change between boots from the EBS volume, and therefore the instructions there do not cause the SSH host key to be regenerated each time a new instance boots from the EBS volume. The only question is, should the instances that boot from the EBS volume have the same SSH host key as the instance that was used to create the AMI in the first place. The instructions in that article to create the AMI do not include chmod +x&#39;ing ec2-ssh-host-key-gen, but that is definitely something to be considered when preparing that AMI. Here too the use of an Elastic IP is not necessarily related to booting an instance from an EBS volume.</p><p>Let me know if that explanation clarifies things.</p> ]]></content:encoded> </item> <item><title>By: Rob Staveley (Tom)</title><link>http://www.shlomoswidler.com/2009/08/mount-ebs-volume-created-from-snapshot.html/comment-page-1#comment-73</link> <dc:creator>Rob Staveley (Tom)</dc:creator> <pubDate>Sat, 29 Aug 2009 12:01:19 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=29#comment-73</guid> <description>Got it - so you probably wouldn&#039;t want do to that if you were hibernating an instance using an elastic IP.</description> <content:encoded><![CDATA[<p>Got it &#8211; so you probably wouldn&#39;t want do to that if you were hibernating an instance using an elastic IP.</p> ]]></content:encoded> </item> <item><title>By: shlomo</title><link>http://www.shlomoswidler.com/2009/08/mount-ebs-volume-created-from-snapshot.html/comment-page-1#comment-74</link> <dc:creator>shlomo</dc:creator> <pubDate>Fri, 28 Aug 2009 16:57:31 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=29#comment-74</guid> <description>@rstaveley,&lt;br /&gt;&lt;br /&gt;The ec2-ssh-host-key-gen is a script on most public linux AMIs that generates a new SSH host key for the instance. It is executed only on the first boot - since you don&#039;t want the host key to change after a reboot. After it is executed in the first boot, the startup sequence prevents it from running again by chmod -x&#039;ing it.&lt;br /&gt;&lt;br /&gt;When I bundle a new AMI I don&#039;t want it to have the same SSH host key as the instance it was bundled from. So I chmod +x that script to allow it to run again when the AMI is launched.&lt;br /&gt;&lt;br /&gt;It&#039;s not strictly necessary to do this, but it&#039;s a good idea I think.</description> <content:encoded><![CDATA[<p>@rstaveley,</p><p>The ec2-ssh-host-key-gen is a script on most public linux AMIs that generates a new SSH host key for the instance. It is executed only on the first boot &#8211; since you don&#39;t want the host key to change after a reboot. After it is executed in the first boot, the startup sequence prevents it from running again by chmod -x&#39;ing it.</p><p>When I bundle a new AMI I don&#39;t want it to have the same SSH host key as the instance it was bundled from. So I chmod +x that script to allow it to run again when the AMI is launched.</p><p>It&#39;s not strictly necessary to do this, but it&#39;s a good idea I think.</p> ]]></content:encoded> </item> <item><title>By: Rob Staveley (Tom)</title><link>http://www.shlomoswidler.com/2009/08/mount-ebs-volume-created-from-snapshot.html/comment-page-1#comment-75</link> <dc:creator>Rob Staveley (Tom)</dc:creator> <pubDate>Fri, 28 Aug 2009 16:26:34 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=29#comment-75</guid> <description>I&#039;m puzzled about the chmod +x on:&lt;br /&gt;&lt;br /&gt; ec2-ssh-host-key-gen&lt;br /&gt;&lt;br /&gt;Why is that needed and where is that found?&lt;br /&gt;&lt;br /&gt;[Otherwise this follows nicely.]</description> <content:encoded><![CDATA[<p>I&#39;m puzzled about the chmod +x on:</p><p> ec2-ssh-host-key-gen</p><p>Why is that needed and where is that found?</p><p>[Otherwise this follows nicely.]</p> ]]></content:encoded> </item> <item><title>By: shlomo</title><link>http://www.shlomoswidler.com/2009/08/mount-ebs-volume-created-from-snapshot.html/comment-page-1#comment-76</link> <dc:creator>shlomo</dc:creator> <pubDate>Fri, 14 Aug 2009 09:00:04 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=29#comment-76</guid> <description>@MarkV,&lt;br /&gt;&lt;br /&gt;Thanks for the pointer to Chef. I had looked at it a while back but didn&#039;t use it. I shall look at it again.</description> <content:encoded><![CDATA[<p>@MarkV,</p><p>Thanks for the pointer to Chef. I had looked at it a while back but didn&#39;t use it. I shall look at it again.</p> ]]></content:encoded> </item> <item><title>By: MarkV</title><link>http://www.shlomoswidler.com/2009/08/mount-ebs-volume-created-from-snapshot.html/comment-page-1#comment-77</link> <dc:creator>MarkV</dc:creator> <pubDate>Fri, 14 Aug 2009 06:10:07 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=29#comment-77</guid> <description>Shlomo,&lt;br /&gt;Another very interesting post - I have yet to work through it fully... Nonetheless, thnank you!&lt;br /&gt;&lt;br /&gt;I do wonder if Chef doesn&#039;t provide a way to do what you want?  I looked at RightScale&#039;s approach but, to my mind, Chef offered a more attractive route and community experiences wider than just EC2.&lt;br /&gt;&lt;br /&gt;I don&#039;t /think/ Chef  would provide a proxy service in exactly the way you describe.  However, I am hoping a Chef recipe, or sequence of recipes, can be coerced to have an AMI boot from an EBS volume.  &lt;br /&gt;Chef seems to be making rapid progress so the community/wiki documentation/how-to is a little out of synch:&lt;br /&gt;&lt;br /&gt;http://wiki.opscode.com/display/chef/Chef+0.7.0+on+EC2+Rails+Infrastructure+Notes&lt;br /&gt;&lt;br /&gt;Do you use Chef at all?</description> <content:encoded><![CDATA[<p>Shlomo,<br
/>Another very interesting post &#8211; I have yet to work through it fully&#8230; Nonetheless, thnank you!</p><p>I do wonder if Chef doesn&#39;t provide a way to do what you want?  I looked at RightScale&#39;s approach but, to my mind, Chef offered a more attractive route and community experiences wider than just EC2.</p><p>I don&#39;t /think/ Chef  would provide a proxy service in exactly the way you describe.  However, I am hoping a Chef recipe, or sequence of recipes, can be coerced to have an AMI boot from an EBS volume. <br
/>Chef seems to be making rapid progress so the community/wiki documentation/how-to is a little out of synch:</p><p><a
href="http://wiki.opscode.com/display/chef/Chef+0.7.0+on+EC2+Rails+Infrastructure+Notes" rel="nofollow">http://wiki.opscode.com/display/chef/Chef+0.7.0+on+EC2+Rails+Infrastructure+Notes</a></p><p>Do you use Chef at all?</p> ]]></content:encoded> </item> <item><title>By: shlomo</title><link>http://www.shlomoswidler.com/2009/08/mount-ebs-volume-created-from-snapshot.html/comment-page-1#comment-78</link> <dc:creator>shlomo</dc:creator> <pubDate>Sat, 08 Aug 2009 21:05:08 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=29#comment-78</guid> <description>@Edward,&lt;br /&gt;&lt;br /&gt;Thanks for the encouragement!&lt;br /&gt;&lt;br /&gt;I am also not too happy about keeping account credentials on the instances.&lt;br /&gt;&lt;br /&gt;I&#039;ve been thinking about a web service that acts as a proxy for AWS (so existing libraries will work with a simple change of endpoint URL). Such a thing would allow your instances to be free of credentials, and the proxy service would, after authenticating the instance, sign the request with your AWS credentials, execute it, and pass back the result.&lt;br /&gt;&lt;br /&gt;[I imagine that RightScale&#039;s functionality is implemented in a similar manner.]&lt;br /&gt;&lt;br /&gt;If anyone is interested in collaborating on such an open-source project, please contact me.</description> <content:encoded><![CDATA[<p>@Edward,</p><p>Thanks for the encouragement!</p><p>I am also not too happy about keeping account credentials on the instances.</p><p>I&#39;ve been thinking about a web service that acts as a proxy for AWS (so existing libraries will work with a simple change of endpoint URL). Such a thing would allow your instances to be free of credentials, and the proxy service would, after authenticating the instance, sign the request with your AWS credentials, execute it, and pass back the result.</p><p>[I imagine that RightScale&#39;s functionality is implemented in a similar manner.]</p><p>If anyone is interested in collaborating on such an open-source project, please contact me.</p> ]]></content:encoded> </item> <item><title>By: Edward M. Goldberg</title><link>http://www.shlomoswidler.com/2009/08/mount-ebs-volume-created-from-snapshot.html/comment-page-1#comment-79</link> <dc:creator>Edward M. Goldberg</dc:creator> <pubDate>Sat, 08 Aug 2009 04:01:19 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=29#comment-79</guid> <description>Shlomo,&lt;br /&gt;&lt;br /&gt;Great post.  I work with AWS and EBS all of the time and like your ideas.  Keep up the great work.&lt;br /&gt;&lt;br /&gt;You may want to look at the http://RightScale.com/ interface.  They have an Attach Volume at boot feature that does not require you to have any information about the AWS account on the server.  This is a nice feature.&lt;br /&gt;&lt;br /&gt;Edward M. Goldberg&lt;br /&gt;http://myCloudWatcher.com/</description> <content:encoded><![CDATA[<p>Shlomo,</p><p>Great post.  I work with AWS and EBS all of the time and like your ideas.  Keep up the great work.</p><p>You may want to look at the <a
href="http://RightScale.com/" rel="nofollow">http://RightScale.com/</a> interface.  They have an Attach Volume at boot feature that does not require you to have any information about the AWS account on the server.  This is a nice feature.</p><p>Edward M. Goldberg<br
/><a
href="http://myCloudWatcher.com/" rel="nofollow">http://myCloudWatcher.com/</a></p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 1/19 queries in 0.008 seconds using disk
Content Delivery Network via Amazon Web Services: S3: blogstatic.shlomoswidler.com.s3.amazonaws.com

Served from: www.shlomoswidler.com @ 2010-08-01 00:25:04 -->