{"id":1456,"date":"2020-01-26T16:57:29","date_gmt":"2020-01-26T21:57:29","guid":{"rendered":"https:\/\/enterpriseadmins.org\/blog\/?p=1456"},"modified":"2020-01-26T16:57:29","modified_gmt":"2020-01-26T21:57:29","slug":"ubuntu-18-04-grow-filesystem","status":"publish","type":"post","link":"https:\/\/enterpriseadmins.org\/blog\/virtualization\/ubuntu-18-04-grow-filesystem\/","title":{"rendered":"Ubuntu 18.04 Grow Filesystem"},"content":{"rendered":"\n<p>In a previous post we created an Ubuntu 18.04 template that only has a 16GB disk.  The template is fairly lean, without many packages installed, but the root filesystem is already at 21% full.  For many applications this will be enough space, but some will require more.  In this post, we will grow that file system by extending the disk from 16GB to 50GB.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Check existing free space with the command <strong>df -h<\/strong>.<\/li><li>Use the vSphere client to increase the size of Hard Disk 1.<\/li><li>Rescan the devices to find the new space with the command: <strong>echo 1 &gt; \/sys\/class\/block\/sda\/device\/rescan<\/strong><\/li><li>Run <strong>lsblk<\/strong> to list available blocks.<\/li><li>Grow the partition by running <strong>growpart \/dev\/sda 1<\/strong> (that&#8217;s the disk, a space, and the partition number)<\/li><li>Grow the filesystem with the command <strong>resize2fs \/dev\/sda1<\/strong><\/li><li>Confirm the disk has grown with <strong>df -h<\/strong><\/li><\/ul>\n\n\n\n<p>We now have 93% free on the root filesystem instead of the previous 79%.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a previous post we created an Ubuntu 18.04 template that only has a 16GB disk. The template is fairly lean, without many packages installed, but the root filesystem is already at 21% full. For many applications this will be &hellip; <a href=\"https:\/\/enterpriseadmins.org\/blog\/virtualization\/ubuntu-18-04-grow-filesystem\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":6,"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,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1456","post","type-post","status-publish","format-standard","hentry","category-virtualization"],"_links":{"self":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/1456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/comments?post=1456"}],"version-history":[{"count":3,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/1456\/revisions"}],"predecessor-version":[{"id":1462,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/1456\/revisions\/1462"}],"wp:attachment":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/media?parent=1456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/categories?post=1456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/tags?post=1456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}