{"id":1571,"date":"2024-08-09T12:19:09","date_gmt":"2024-08-09T17:19:09","guid":{"rendered":"https:\/\/it.thelibrarie.com\/weblog\/?p=1571"},"modified":"2024-08-09T12:19:09","modified_gmt":"2024-08-09T17:19:09","slug":"add-disk-space-ubuntu-server","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2024\/08\/add-disk-space-ubuntu-server\/","title":{"rendered":"Add Disk Space Ubuntu Server"},"content":{"rendered":"\n<p>Using Ubuntu 22.04LTS on my proxmox system.<\/p>\n\n\n\n<p>Added 70GB to my 30GB partition for a total of 100GB &#8211; used the Proxmox GUI to handle this change.<\/p>\n\n\n\n<p>Logged into the Ubuntu VM (CLI Only)<br>Verify my disk (sda) shows 100GB and my partition (sda3) shows 30GB<br>lsblk<\/p>\n\n\n\n<p>Verify \/dev\/mapper with df -h (needed for lvextend below, see example)<\/p>\n\n\n\n<p>FDISK<br>fdisk \/dev\/sda<br>p<br>d<br>3<br>n<br>3<br>w<\/p>\n\n\n\n<p>p to verify the partitions, although this also shows in lsblk. d to delete, selecting 3. n for new partition, 3, start and end are defaults to fill the disk. w to write the changes. MAKE SURE YOU DON&#8217;T SELECT TO DELETE THE LVM SIGNATURE OTHERWISE YOUR DATA MAY BE LOST.<\/p>\n\n\n\n<p>Resize the partition table in LVM<br>pvresize \/dev\/sda3<\/p>\n\n\n\n<p>Extend the logical volume in LVM<br>lvextend -l +100%FREE \/dev\/mapper\/ubuntu&#8211;vg-ubuntu&#8211;lv<\/p>\n\n\n\n<p>Resize the filesystem for Ubuntu<br>resize2fs \/dev\/mapper\/ubuntu&#8211;vg-ubuntu&#8211;lv<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using Ubuntu 22.04LTS on my proxmox system. Added 70GB to my 30GB partition for a total of 100GB &#8211; used the Proxmox GUI to handle this change. Logged into the Ubuntu VM (CLI Only)Verify my disk (sda) shows 100GB and my partition (sda3) shows 30GBlsblk Verify \/dev\/mapper with df -h (needed for lvextend below, see &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2024\/08\/add-disk-space-ubuntu-server\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Add Disk Space Ubuntu Server<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1571","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1571","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=1571"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1571\/revisions"}],"predecessor-version":[{"id":1572,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1571\/revisions\/1572"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}