{"id":26282,"date":"2016-07-24T23:45:37","date_gmt":"2016-07-24T21:45:37","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/?p=26282"},"modified":"2016-07-25T07:28:49","modified_gmt":"2016-07-25T05:28:49","slug":"how-to-recover-an-unreachable-linux-instance","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2016\/07\/24\/how-to-recover-an-unreachable-linux-instance\/","title":{"rendered":"How to Recover an Unreachable EC2 Linux Instance"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p><a href=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2016\/07\/volume.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"26283\" data-permalink=\"https:\/\/mamchenkov.net\/wordpress\/2016\/07\/24\/how-to-recover-an-unreachable-linux-instance\/volume\/\" data-orig-file=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2016\/07\/volume.png?fit=1189%2C680&amp;ssl=1\" data-orig-size=\"1189,680\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"volume\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2016\/07\/volume.png?fit=660%2C378&amp;ssl=1\" class=\"aligncenter size-medium wp-image-26283\" src=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2016\/07\/volume-500x286.png?resize=500%2C286&#038;ssl=1\" alt=\"volume\" width=\"500\" height=\"286\" srcset=\"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2016\/07\/volume.png?resize=500%2C286&amp;ssl=1 500w, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2016\/07\/volume.png?resize=768%2C439&amp;ssl=1 768w, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2016\/07\/volume.png?resize=1024%2C586&amp;ssl=1 1024w, https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2016\/07\/volume.png?w=1189&amp;ssl=1 1189w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>Here is a tutorial that will come handy one day, in the moment of panic &#8211;\u00a0<a href=\"https:\/\/aws.amazon.com\/articles\/5213606968661598\">How to Recover an Unreachable Linux Instance<\/a>. It has plenty of screenshots and shows each step in detail.<\/p>\n<p>TL;DR version:<\/p>\n<ol>\n<li>Start a new instance (or pick one from the existing ones).<\/li>\n<li>Stop the broken instance.<\/li>\n<li>Detach the volume from the broken instance.<\/li>\n<li>Attach the volume to the new\/existing instance as additional disk.<\/li>\n<li>Troubleshoot and fix the problem.<\/li>\n<li>Detach the volume from the new\/existing instance.<\/li>\n<li>Attach the volume to the broken instance.<\/li>\n<li>Start the new instance.<\/li>\n<li>Get rid of the useless new instance, if you didn&#8217;t reuse the existing one for the troubleshooting and fixing process.<\/li>\n<li>???<\/li>\n<li>PROFIT!<\/li>\n<\/ol>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>Here is a tutorial that will come handy one day, in the moment of panic &#8211;\u00a0How to Recover an Unreachable Linux Instance. It has plenty of screenshots and shows each step in detail. TL;DR version: Start a new instance (or pick one from the existing ones). Stop the broken instance. Detach the volume from the &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2016\/07\/24\/how-to-recover-an-unreachable-linux-instance\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to Recover an Unreachable EC2 Linux Instance<\/span><\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"How to Recover an Unreachable Linux Instance #AWS #SysAdmin #DevOps","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,6,133,62],"tags":[3270,3333],"keyring_services":[],"class_list":["post-26282","post","type-post","status-publish","format-standard","hentry","category-general","category-linux","category-sysadmin","category-technology","tag-amazon-aws","tag-amazon-ec2"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":26931,"url":"https:\/\/mamchenkov.net\/wordpress\/2016\/11\/21\/using-ansible-to-bootstrap-an-amazon-ec2-instance\/","url_meta":{"origin":26282,"position":0},"title":"Using Ansible to bootstrap an Amazon EC2 instance","author":"Leonid Mamchenkov","date":"November 21, 2016","format":false,"excerpt":"This article - \"Using Ansible to Bootstrap My Work Environment Part 4\" is pure gold for anyone trying to figure out all the moving parts needed to automate the provisioning and configuration of the Amazon EC2 instance with Ansible. Sure, some bits are easier than the other, but it takes\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":27312,"url":"https:\/\/mamchenkov.net\/wordpress\/2017\/02\/09\/amazon-aws-mtu-for-ec2\/","url_meta":{"origin":26282,"position":1},"title":"Amazon AWS : MTU for EC2","author":"Leonid Mamchenkov","date":"February 9, 2017","format":false,"excerpt":"I came across this handy Amazon AWS manual for the maximum transfer unit (MTU) configuration for EC2 instances. \u00a0This is not something one needs every day, but, I'm sure, when I need it, I'll otherwise be spending hours trying to find it. The maximum transmission unit (MTU) of a network\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2017\/02\/packet-headers-500x337.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":23425,"url":"https:\/\/mamchenkov.net\/wordpress\/2015\/01\/29\/on-amazon-ec2-instances\/","url_meta":{"origin":26282,"position":2},"title":"On Amazon EC2 instances","author":"Leonid Mamchenkov","date":"January 29, 2015","format":false,"excerpt":"I am staring at the t2.micro (the smallest available instance type) server running MySQL 5.5.40 (using the my-huge.cnf example configuration shipped with MySQL, which ironically matches t2.micro specs). \u00a0Here's why (as reported by Nagios for the last few hours): Queries per second avg: 12888.839 The number is fluctuating between about\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":25053,"url":"https:\/\/mamchenkov.net\/wordpress\/2015\/12\/12\/cpu-steal-time-now-on-amazon-ec2\/","url_meta":{"origin":26282,"position":3},"title":"CPU Steal Time. Now on Amazon EC2","author":"Leonid Mamchenkov","date":"December 12, 2015","format":false,"excerpt":"Yesterday I wrote the blog post, trying to figure out what is the CPU steal time and why it occurs. \u00a0The problem with that post was that I didn't go deep enough. I was looking at this issue from the point of view of a generic virtual machine. \u00a0The case\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26308,"url":"https:\/\/mamchenkov.net\/wordpress\/2016\/08\/04\/setting-up-nat-on-amazon-aws\/","url_meta":{"origin":26282,"position":4},"title":"Setting up NAT on Amazon AWS","author":"Leonid Mamchenkov","date":"August 4, 2016","format":false,"excerpt":"When it comes to Amazon AWS, there are a few options for configuring Network Address Translation (NAT). \u00a0Here is a brief overview. NAT Gateway NAT Gateway is a configuration very similar to Internet Gateway. \u00a0My understanding is that the only major difference between the NAT Gateway and the Internet Gateway\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":25199,"url":"https:\/\/mamchenkov.net\/wordpress\/2016\/02\/25\/upgrading-amazon-ec2-instance-type\/","url_meta":{"origin":26282,"position":5},"title":"Upgrading Amazon EC2 instance type","author":"Leonid Mamchenkov","date":"February 25, 2016","format":false,"excerpt":"By now everybody knows that one of the major benefits to using cloud services rather than hosting on your own hardware is the ease to scale quickly. \u00a0Many web applications and large companies benefit from this, but what about smaller customers? \u00a0How about a single server? Well, today one of\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/26282","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=26282"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/26282\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=26282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=26282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=26282"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=26282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}