hi all,<\/p>\n
installed ubuntu 20.04.6 LTS on a server and the disk is 600GB but when i did a “df -h”<\/p>\n
/dev/mapper/ubuntu–vg-ubuntu–lv<\/p>\n
was only 100gig so i thought that was odd as i could swear the disk was 600gb<\/p>\n
when i did a “fdisk -l” and “pvdisplay” it said 558GB so i wasnt going mad<\/p>\n
what i had to do was this to expand it<\/p>\n
lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv\nresize2fs /dev/mapper/ubuntu--vg-ubuntu--lv\n<\/code><\/pre>\nso why doesnt it do this when youve installed ubuntu out the box?<\/p>\n
thanks,
\nrob<\/p>","upvoteCount":3,"answerCount":6,"datePublished":"2025-03-28T17:20:09.342Z","author":{"@type":"Person","name":"robertkwild","url":"https://community.spiceworks.com/u/robertkwild"},"suggestedAnswer":[{"@type":"Answer","text":"
hi all,<\/p>\n
installed ubuntu 20.04.6 LTS on a server and the disk is 600GB but when i did a “df -h”<\/p>\n
/dev/mapper/ubuntu–vg-ubuntu–lv<\/p>\n
was only 100gig so i thought that was odd as i could swear the disk was 600gb<\/p>\n
when i did a “fdisk -l” and “pvdisplay” it said 558GB so i wasnt going mad<\/p>\n
what i had to do was this to expand it<\/p>\n
lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv\nresize2fs /dev/mapper/ubuntu--vg-ubuntu--lv\n<\/code><\/pre>\nso why doesnt it do this when youve installed ubuntu out the box?<\/p>\n
thanks,
\nrob<\/p>","upvoteCount":3,"datePublished":"2025-03-28T17:20:09.409Z","url":"https://community.spiceworks.com/t/ubuntu-need-to-expand-lv-by-default/1190594/1","author":{"@type":"Person","name":"robertkwild","url":"https://community.spiceworks.com/u/robertkwild"}},{"@type":"Answer","text":"