Increasing Local Storage Allocation to File System

Any reason as to why I should not allocate all available space on sda3 to the ubuntu–vg-ubuntu–lv logical volume? The installer appears to give it 50% of your drive size.

root@myserver:~# lsblk
NAME                      MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
fd0                         2:0    1     4K  0 disk 
loop0                       7:0    0  88.5M  1 loop /snap/core/7270
loop1                       7:1    0  99.4M  1 loop /snap/core/11993
sda                         8:0    0   250G  0 disk 
├─sda1                      8:1    0     1M  0 part 
├─sda2                      8:2    0     1G  0 part /boot
└─sda3                      8:3    0   249G  0 part 
  └─ubuntu--vg-ubuntu--lv 253:0    0 124.5G  0 lvm  /
sr0                        11:0    1  1024M  0 rom  
root@myserver:~# cd /home/mastodon/live/
root@myserver:/home/mastodon/live# df -h .
Filesystem                         Size  Used Avail Use% Mounted on
/dev/mapper/ubuntu--vg-ubuntu--lv  123G  9.2G  107G   8% /

This is what I ran on my dev instance:

# Increase the Physical Volume (pv) to max size
pvresize /dev/sda3

# Expand the Logical Volume (LV) to max size to match
lvresize -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv

# Expand the filesystem itself
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

This is not a really Mastodon problem, but maybe you can tell what does lvdisplay say?

Correct, this is performed by the Ubuntu installer. I was just curious if there would be any implications to Mastodon by expanding the LV and I haven’t seen any yet on my dev instance.

Here’s the outputs from my prod vs dev instances, both with 250GB Drives. One has been expanded, the other has not:

root@myprodserver:/home/mastodon/live# lvdisplay
  --- Logical volume ---
  LV Path                /dev/ubuntu-vg/ubuntu-lv
  LV Name                ubuntu-lv
  VG Name                ubuntu-vg
  LV UUID                2enMUG-Q80Q-ewre-ZQi8-QyNX-IfB4-vV83FU
  LV Write Access        read/write
  LV Creation host, time ubuntu-server, 2021-11-27 00:12:45 +0000
  LV Status              available
  # open                 1
  LV Size                124.50 GiB
  Current LE             31872
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

root@mydevserver:~# lvdisplay
  --- Logical volume ---
  LV Path                /dev/ubuntu-vg/ubuntu-lv
  LV Name                ubuntu-lv
  VG Name                ubuntu-vg
  LV UUID                GD66rh-FCfi-4g91-I1bF-48X3-x3sN-eyvrok
  LV Write Access        read/write
  LV Creation host, time ubuntu-server, 2021-11-25 02:26:39 +0000
  LV Status              available
  # open                 1
  LV Size                <249.00 GiB
  Current LE             63743
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0