{"id":1035,"date":"2022-10-15T14:41:33","date_gmt":"2022-10-15T08:41:33","guid":{"rendered":"https:\/\/staging.arifbillah.com\/new\/?p=1035"},"modified":"2022-10-15T14:41:33","modified_gmt":"2022-10-15T08:41:33","slug":"how-to-increase-ec2-instance-root-volume-size","status":"publish","type":"post","link":"https:\/\/arifbillah.com\/?p=1035","title":{"rendered":"How to increase EC2 Instance root volume size"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">1st of all we need to format the partition<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">the command of formatting the partition is<br \/>$mkfs.ext4 \/dev\/xvdf<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">then we have to mount the partition to another directory for example we mount the partition on \/opt directori. so now we have to cmnd<br \/>$mount \/dev\/xvdf \/opt<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So now our new volume is mounted on the \/opt directory. But not visible. we can check it using the command<br \/>$df -h<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now we have to do visible this partition to the \/opt directory<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">===================Another way====================<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">df -h<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">lsblk<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">growpart \/dev\/xvda1<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">lsblk -f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">trdoxr2fs \/dev\/xvda1<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now check the size.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1st of all we need to format the partition the command of formatting the partition is$mkfs.ext4 \/dev\/xvdf then we have to mount the partition to another directory for example we mount the partition on \/opt directori. so now we have to cmnd$mount \/dev\/xvdf \/opt So now our new volume is mounted on the \/opt directory. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3203,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[119],"tags":[],"class_list":["post-1035","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website"],"_links":{"self":[{"href":"https:\/\/arifbillah.com\/index.php?rest_route=\/wp\/v2\/posts\/1035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arifbillah.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arifbillah.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arifbillah.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arifbillah.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1035"}],"version-history":[{"count":0,"href":"https:\/\/arifbillah.com\/index.php?rest_route=\/wp\/v2\/posts\/1035\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arifbillah.com\/index.php?rest_route=\/wp\/v2\/media\/3203"}],"wp:attachment":[{"href":"https:\/\/arifbillah.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arifbillah.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arifbillah.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}