Extend Fedora Server Lvm Disk Space

Ensure you have unused space:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
[ecomaikgolf@lab1 ~/]$ sudo vgdisplay 
  --- Volume group ---
  VG Name               fedora_lab1
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  2
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               <110.20 GiB
  PE Size               4.00 MiB
  Total PE              28211
  Alloc PE / Size       3840 / 15.00 GiB
  Free  PE / Size       24371 / <95.20 GiB
  VG UUID               ZXoCo7-Qi2Y-AcGI-lhC6-KxYU-SLWS-fgdg9m

Then extend it:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
[ecomaikgolf@lab1 ~/]$  sudo lvextend -r -l100%free /dev/fedora_lab1/root 
ree /dev/fedora_lab1/root  Size of logical volume fedora_lab1/root changed from 15.00 GiB (3840 extents) to <95.20 GiB (24371 extents).
  File system xfs found on fedora_lab1/root mounted at /.
  Extending file system xfs to <95.20 GiB (102219382784 bytes) on fedora_lab1/root...
xfs_growfs /dev/fedora_lab1/root
meta-data=/dev/mapper/fedora_lab1-root isize=512    agcount=4, agsize=983040 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=1, sparse=1, rmapbt=1
         =                       reflink=1    bigtime=1 inobtcount=1 nrext64=1
data     =                       bsize=4096   blocks=3932160, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0, ftype=1
log      =internal log           bsize=4096   blocks=16384, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
data blocks changed from 3932160 to 24955904
xfs_growfs done
  Extended file system xfs on fedora_lab1/root.
  Logical volume fedora_lab1/root successfully resized.