{"id":41411,"date":"2023-11-23T02:57:43","date_gmt":"2023-11-23T02:57:43","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=41411"},"modified":"2023-11-23T02:57:45","modified_gmt":"2023-11-23T02:57:45","slug":"aws-storage-faq-2","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/aws-storage-faq-2\/","title":{"rendered":"AWS Storage: FAQ"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Can u attach Aws vm or you can&#8217;t attach disks to a running VM?<\/h2>\n\n\n\n<p>Yes, you can attach EBS volumes to running EC2 instances in AWS. This is a convenient way to add storage to an instance without having to stop it and restart it. The process of attaching an EBS volume to a running EC2 instance is as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Stop the EC2 instance.<\/strong><\/li>\n\n\n\n<li><strong>Attach the EBS volume to the EC2 instance.<\/strong><\/li>\n\n\n\n<li><strong>Start the EC2 instance.<\/strong><\/li>\n\n\n\n<li><strong>Make the EBS volume available for use.<\/strong><\/li>\n<\/ul>\n\n\n\n<p>The process of attaching an EBS volume to a running EC2 instance is called &#8220;hot attaching&#8221;. Hot attaching an EBS volume is a more complex process than attaching an EBS volume to a stopped EC2 instance, and it is not supported for all types of EBS volumes.<\/p>\n\n\n\n<p>Here are some of the benefits of hot attaching EBS volumes to running EC2 instances:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>You can add storage to an EC2 instance without having to stop it and restart it.<\/strong><\/li>\n\n\n\n<li><strong>You can add storage to an EC2 instance that is already in use.<\/strong><\/li>\n\n\n\n<li><strong>You can avoid downtime for your applications.<\/strong><\/li>\n<\/ul>\n\n\n\n<p>Here are some of the risks of hot attaching EBS volumes to running EC2 instances:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>The process may fail, and you may not be able to attach the EBS volume to the EC2 instance.<\/strong><\/li>\n\n\n\n<li><strong>The process may cause performance problems for the EC2 instance.<\/strong><\/li>\n\n\n\n<li><strong>The process may corrupt the data on the EBS volume.<\/strong><\/li>\n<\/ul>\n\n\n\n<p>If you are considering hot attaching an EBS volume to a running EC2 instance, you should weigh the benefits and risks carefully. You should also make sure that you have a backup of the data on the EBS volume in case something goes wrong.<\/p>\n\n\n\n<p>Here are some additional things to keep in mind when hot attaching EBS volumes to running EC2 instances:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>You can only hot attach an EBS volume to an EC2 instance that is in the same Availability Zone as the EBS volume.<\/strong><\/li>\n\n\n\n<li><strong>You can only hot attach an EBS volume to an EC2 instance that is running an instance store-backed AMI.<\/strong><\/li>\n\n\n\n<li><strong>You cannot hot attach an EBS volume to an EC2 instance that is encrypted with AWS KMS.<\/strong><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Can u attach Aws vm or you can&#8217;t attach disks to a running VM? Yes, you can attach EBS volumes to running EC2 instances in AWS. This is a convenient way to add storage to an instance without having to stop it and restart it. The process of attaching an EBS volume to a running&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-41411","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/41411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=41411"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/41411\/revisions"}],"predecessor-version":[{"id":41412,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/41411\/revisions\/41412"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=41411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=41411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=41411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}