<?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: Creating Consistent Snapshots of a Live Instance with XFS on a Boot-from-EBS AMI</title> <atom:link href="http://shlomoswidler.com/2010/01/creating-consistent-snapshots-of-live.html/feed" rel="self" type="application/rss+xml" /><link>http://shlomoswidler.com/2010/01/creating-consistent-snapshots-of-live.html</link> <description>Cloud Developer Tips: Practical tips for developers of cloud computing applications.</description> <lastBuildDate>Tue, 31 Jan 2012 07:15:49 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: What XFS configuration should I use for EC2 disks (mysql db-server) - Admins Goodies</title><link>http://shlomoswidler.com/2010/01/creating-consistent-snapshots-of-live.html/comment-page-1#comment-660</link> <dc:creator>What XFS configuration should I use for EC2 disks (mysql db-server) - Admins Goodies</dc:creator> <pubDate>Tue, 16 Aug 2011 10:08:09 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=5#comment-660</guid> <description>[...] Somewhat related: http://shlomoswidler.com/2010/01/creating-consistent-snapshots-of-live.html [...]</description> <content:encoded><![CDATA[<p>[...] Somewhat related: <a
href="http://shlomoswidler.com/2010/01/creating-consistent-snapshots-of-live.html" rel="nofollow">http://shlomoswidler.com/2010/01/creating-consistent-snapshots-of-live.html</a> [...]</p> ]]></content:encoded> </item> <item><title>By: shlomo</title><link>http://shlomoswidler.com/2010/01/creating-consistent-snapshots-of-live.html/comment-page-1#comment-641</link> <dc:creator>shlomo</dc:creator> <pubDate>Mon, 16 May 2011 12:09:57 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=5#comment-641</guid> <description>@ec2-do,Sorry to hear that utility is giving you trouble. If it works from the command-line but not from cron then it&#039;s very likely a PATH issue.
Eric Hammond, the author of ec2-consistent-snapshot, has put great error-handling in that script. Try looking at (or adding to) the comments on &lt;a href=&quot;http://alestic.com/2009/09/ec2-consistent-snapshot&quot; rel=&quot;nofollow&quot;&gt;Eric Hammond&#039;s page for ec2-consistent-snapshot&lt;/a&gt;.
BTW, it&#039;s not necessary to fire up another EC2 instance just to use the command-line tools to start/stop instances. You can install those tools locally. Or you can use the AWS Management Console.</description> <content:encoded><![CDATA[<p>@ec2-do,</p><p>Sorry to hear that utility is giving you trouble. If it works from the command-line but not from cron then it&#8217;s very likely a PATH issue.<br
/> Eric Hammond, the author of ec2-consistent-snapshot, has put great error-handling in that script. Try looking at (or adding to) the comments on <a
href="http://alestic.com/2009/09/ec2-consistent-snapshot" rel="nofollow">Eric Hammond&#8217;s page for ec2-consistent-snapshot</a>.<br
/> BTW, it&#8217;s not necessary to fire up another EC2 instance just to use the command-line tools to start/stop instances. You can install those tools locally. Or you can use the AWS Management Console.</p> ]]></content:encoded> </item> <item><title>By: ec2-do</title><link>http://shlomoswidler.com/2010/01/creating-consistent-snapshots-of-live.html/comment-page-1#comment-640</link> <dc:creator>ec2-do</dc:creator> <pubDate>Sun, 15 May 2011 21:03:48 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=5#comment-640</guid> <description>Got this thing working on Ubuntu 10.10. 64-bit. Then tried using the script ec2-consistent-snapshot from cron, and the instance got totally stuck. Shortly after all IO got stuck. Incoming ssh connections also kept failing. Had to stop/start the instance from another instance using ec2 tools. And it&#039;s consistently reproducible. Could it be that something fails in ec2-consistent-snapshot, and the script fails to release the xfs lock due to sloppy error handling? (I&#039;m not using db locking)</description> <content:encoded><![CDATA[<p>Got this thing working on Ubuntu 10.10. 64-bit. Then tried using the script ec2-consistent-snapshot from cron, and the instance got totally stuck. Shortly after all IO got stuck. Incoming ssh connections also kept failing. Had to stop/start the instance from another instance using ec2 tools. And it&#8217;s consistently reproducible. Could it be that something fails in ec2-consistent-snapshot, and the script fails to release the xfs lock due to sloppy error handling? (I&#8217;m not using db locking)</p> ]]></content:encoded> </item> <item><title>By: shlomo</title><link>http://shlomoswidler.com/2010/01/creating-consistent-snapshots-of-live.html/comment-page-1#comment-462</link> <dc:creator>shlomo</dc:creator> <pubDate>Thu, 09 Dec 2010 07:39:12 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=5#comment-462</guid> <description>@Bart B.,Nice to know about that workaround for this issue. Thanks for sharing the solution.</description> <content:encoded><![CDATA[<p>@Bart B.,</p><p>Nice to know about that workaround for this issue. Thanks for sharing the solution.</p> ]]></content:encoded> </item> <item><title>By: Bart B.</title><link>http://shlomoswidler.com/2010/01/creating-consistent-snapshots-of-live.html/comment-page-1#comment-461</link> <dc:creator>Bart B.</dc:creator> <pubDate>Thu, 09 Dec 2010 00:45:07 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=5#comment-461</guid> <description>I just wanted to say that I found a solution to this problem in this thread:
https://forums.aws.amazon.com/thread.jspa?threadID=51267&amp;start=25&amp;tstart=0The last comment explains nicely how to recover the unbootable instance.</description> <content:encoded><![CDATA[<p>I just wanted to say that I found a solution to this problem in this thread:<br
/> <a
href="https://forums.aws.amazon.com/thread.jspa?threadID=51267&#038;start=25&#038;tstart=0" rel="nofollow">https://forums.aws.amazon.com/thread.jspa?threadID=51267&#038;start=25&#038;tstart=0</a></p><p>The last comment explains nicely how to recover the unbootable instance.</p> ]]></content:encoded> </item> <item><title>By: Bart B.</title><link>http://shlomoswidler.com/2010/01/creating-consistent-snapshots-of-live.html/comment-page-1#comment-460</link> <dc:creator>Bart B.</dc:creator> <pubDate>Wed, 08 Dec 2010 20:56:05 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=5#comment-460</guid> <description>I have a similar issue where my instance is inaccessible via ssh following a reboot. I&#039;m using ami-8c0c5cc9 (Lucid 10.4.1 32bit) micro instance, with kernel aki-e40c5ca1. The root partition is on EBS volume. The only thing I updated yesterday was openssl then the instance was rebooted. It shows as running but I cannot ssh to it. Is there anything I can do to it now to resurrect it? I am sure it is the same fstab mapping issue as described above.Here are the last few lines of my System Log:
[code]
[    0.566980] VFS: Mounted root (ext3 filesystem) readonly on device 8:1.[    0.592904] devtmpfs: mounted[    0.592957] Freeing unused kernel memory: 216k freed[    0.594161] Write protecting the kernel text: 4332k[    0.594500] Write protecting the kernel read-only data: 1336kinit: console-setup main process (63) terminated with status 1%Ginit: plymouth main process (45) killed by SEGV signalinit: plymouth-splash main process (244) terminated with status 2cloud-init running: Wed, 08 Dec 2010 12:30:33 -0800. up 3.87 seconds
mountall: Disconnected from Plymouth
[/code]</description> <content:encoded><![CDATA[<p>I have a similar issue where my instance is inaccessible via ssh following a reboot. I&#8217;m using ami-8c0c5cc9 (Lucid 10.4.1 32bit) micro instance, with kernel aki-e40c5ca1. The root partition is on EBS volume. The only thing I updated yesterday was openssl then the instance was rebooted. It shows as running but I cannot ssh to it. Is there anything I can do to it now to resurrect it? I am sure it is the same fstab mapping issue as described above.</p><p>Here are the last few lines of my System Log:<br
/> [code]<br
/> [    0.566980] VFS: Mounted root (ext3 filesystem) readonly on device 8:1.</p><p>[    0.592904] devtmpfs: mounted</p><p>[    0.592957] Freeing unused kernel memory: 216k freed</p><p>[    0.594161] Write protecting the kernel text: 4332k</p><p>[    0.594500] Write protecting the kernel read-only data: 1336k</p><p>init: console-setup main process (63) terminated with status 1</p><p> %Ginit: plymouth main process (45) killed by SEGV signal</p><p>init: plymouth-splash main process (244) terminated with status 2</p><p>cloud-init running: Wed, 08 Dec 2010 12:30:33 -0800. up 3.87 seconds<br
/> mountall: Disconnected from Plymouth<br
/> [/code]</p> ]]></content:encoded> </item> <item><title>By: Daniel</title><link>http://shlomoswidler.com/2010/01/creating-consistent-snapshots-of-live.html/comment-page-1#comment-433</link> <dc:creator>Daniel</dc:creator> <pubDate>Thu, 04 Nov 2010 03:00:34 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=5#comment-433</guid> <description>After failing for quite some time to get this working on a Micro instance using alestic.com&#039;s Ubuntu 10.10 Maverick EBS boot (ami-548c783d) 64-bit, I finally discovered what the problem was.The above call to format the volume with XFS needs to use the -L flag. I discovered this by opening /etc/fstab and seeing &quot;LABEL=uec-rootfs / &quot; instead of the expected &quot;/dev/sda1 /&quot;Therefore, use:sudo mkfs.xfs -L uec-rootfs /dev/sdh</description> <content:encoded><![CDATA[<p>After failing for quite some time to get this working on a Micro instance using alestic.com&#8217;s Ubuntu 10.10 Maverick EBS boot (ami-548c783d) 64-bit, I finally discovered what the problem was.</p><p>The above call to format the volume with XFS needs to use the -L flag. I discovered this by opening /etc/fstab and seeing &#8220;LABEL=uec-rootfs / &#8221; instead of the expected &#8220;/dev/sda1 /&#8221;</p><p>Therefore, use:</p><p>sudo mkfs.xfs -L uec-rootfs /dev/sdh</p> ]]></content:encoded> </item> <item><title>By: Peter</title><link>http://shlomoswidler.com/2010/01/creating-consistent-snapshots-of-live.html/comment-page-1#comment-422</link> <dc:creator>Peter</dc:creator> <pubDate>Mon, 27 Sep 2010 15:30:31 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=5#comment-422</guid> <description>After carefully walking through the steps in the posting and using the most recent Lucid AMI, I&#039;ve had success! In my previous attempts, I was also installing some default packages before doing the rsync so maybe something we causing issues there. Now that I have my basic XFS AMI, I&#039;m going to try installing the packages I need and creating a new AMI from that. If I run into any issues, I&#039;ll report back. Otherwise, thanks for the great walkthrough and follow-up help!</description> <content:encoded><![CDATA[<p>After carefully walking through the steps in the posting and using the most recent Lucid AMI, I&#8217;ve had success! In my previous attempts, I was also installing some default packages before doing the rsync so maybe something we causing issues there. Now that I have my basic XFS AMI, I&#8217;m going to try installing the packages I need and creating a new AMI from that. If I run into any issues, I&#8217;ll report back. Otherwise, thanks for the great walkthrough and follow-up help!</p> ]]></content:encoded> </item> <item><title>By: Peter</title><link>http://shlomoswidler.com/2010/01/creating-consistent-snapshots-of-live.html/comment-page-1#comment-420</link> <dc:creator>Peter</dc:creator> <pubDate>Sun, 26 Sep 2010 17:31:16 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=5#comment-420</guid> <description>Unfortunately no. I was using the latest release last night for testing hoping that it would fix the issue but it didn&#039;t. I&#039;ll try again later this evening and document my steps and post here again so you can see what I did ... and hopefully point out my mistake! :)</description> <content:encoded><![CDATA[<p>Unfortunately no. I was using the latest release last night for testing hoping that it would fix the issue but it didn&#8217;t. I&#8217;ll try again later this evening and document my steps and post here again so you can see what I did &#8230; and hopefully point out my mistake! <img
src='http://blogstatic.shlomoswidler.com.s3.amazonaws.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: shlomo</title><link>http://shlomoswidler.com/2010/01/creating-consistent-snapshots-of-live.html/comment-page-1#comment-419</link> <dc:creator>shlomo</dc:creator> <pubDate>Sun, 26 Sep 2010 08:12:39 +0000</pubDate> <guid
isPermaLink="false">http://orchestratus.com/shlomoswidler.com/?p=5#comment-419</guid> <description>@Peter,This is likely related to an Ubuntu bug https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/634102 that was recently fixed. Do things work if you do
&lt;code&gt;sudo apt-get update &amp;&amp; sudo apt-get -y upgrade&lt;/code&gt;
?</description> <content:encoded><![CDATA[<p>@Peter,</p><p>This is likely related to an Ubuntu bug <a
href="https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/634102" rel="nofollow">https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/634102</a> that was recently fixed. Do things work if you do<br
/> <code>sudo apt-get update &#038;&#038; sudo apt-get -y upgrade</code><br
/> ?</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (User agent is rejected)
Database Caching 5/18 queries in 0.020 seconds using disk: basic
Object Caching 412/422 objects using disk: basic
Content Delivery Network via Amazon Web Services: S3: blogstatic.shlomoswidler.com.s3.amazonaws.com

Served from: shlomoswidler.com @ 2012-02-04 22:25:57 -->
