Logical Volume and mounted volume are different
Hello fellow redditors. Normally I do not have much issue with extending volumes and such with logical volumes. However, I'm a bit perplexed by my findings on a system today.
The LV Size shows <58.00 GiB and the mounted file system is only 8GB. Thoughts? What is my pee brain missing?
lvm> pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 rhel lvm2 a-- <59.00g 0
lvm> vgs
VG #PV #LV #SN Attr VSize VFree
rhel 1 2 0 wz--n- <59.00g 0
lvm> lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root rhel -wi-ao---- <58.00g
swap rhel -wi-ao---- 1.00g
lvm> exit
Exiting.
[root@SERVER1 ~]# mount | grep root
/dev/mapper/rhel-root on / type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
[root@SERVER1 ~]# df -h | grep root
/dev/mapper/rhel-root 8.0G 7.2G 813M 91% /
[root@SEVER1 ~]#
---------
[root@SERVER1 ~]# lvdisplay
--- Logical volume ---
LV Path /dev/rhel/swap
LV Name swap
VG Name rhel
LV UUID l0vISK-8Htu-fZuZ-9ahV-rZBh-7Ov2-K2ULQ0
LV Write Access read/write
LV Creation host, time localhost, 2019-06-03 13:06:19 -0400
LV Status available
# open 2
LV Size 1.00 GiB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:1
--- Logical volume ---
LV Path /dev/rhel/root
LV Name root
VG Name rhel
LV UUID AFm6fI-rwrx-KOm9-1vrS-OCn0-ZpcS-r7tETX
LV Write Access read/write
LV Creation host, time localhost, 2019-06-03 13:06:19 -0400
LV Status available
# open 1
LV Size <58.00 GiB
Current LE 14847
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:0
Posted Sep 16, 2019, 1:20 AM UTC
[deleted]
How would one extend the FS when PFree is 0 and LFree is 0? can you tell xfs to only format 8GB of a 58GB volume?
[deleted]