Score:1

Resizing Virtual Ubuntu Server

cn flag

I have a virtual instance of Ubuntu Server running. Increased the virtual disk from 37GB to 50GB, but now stuck on getting the additional space to the LVM.

I have tried lvextend and resize2fs with the following results;

sudo lvextend -L +14G /dev/ubuntu-vg/ubuntu-lv
Insufficient free space: 3584 extents needed, but only 0 available

sudo resize2fs -p /dev/ubuntu-vg/ubuntu-lv 
The filesystem is already 9042944 (4k) blocks long.  Nothing to do!

sudo lsblk
NAME                      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
loop0                       7:0    0 55.4M  1 loop /snap/core18/2066
loop1                       7:1    0 70.3M  1 loop /snap/lxd/21029
loop2                       7:2    0 67.6M  1 loop /snap/lxd/20326
loop3                       7:3    0 32.3M  1 loop /snap/snapd/12704
loop4                       7:4    0 55.5M  1 loop /snap/core18/2074
loop5                       7:5    0 32.3M  1 loop /snap/snapd/12398
sda                         8:0    0   50G  0 disk
├─sda1                      8:1    0  512M  0 part /boot/efi
├─sda2                      8:2    0    1G  0 part /boot
└─sda3                      8:3    0 48.5G  0 part
  └─ubuntu--vg-ubuntu--lv 253:0    0 34.5G  0 lvm  /
sr0                        11:0    1 1024M  0 rom

What step am I completely blanking on?

Score:1
cz flag

You forgot pvresize /dev/sda3.

wally40 avatar
cn flag
That was exactly it. I think I need a vacation. Thank you!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.