I'm running docker containers on my machine which puts it all in /var/. df
shows that /var/ is only 5G but I know the total amount of this system if 40G and it has at least 24G available. How can increase the size of /var/ an extra 15G? I'm unclear on if I should be doing this in my docker-compose file or through CentOS itself. The docker documentation on filesystems is incredibly confusing.
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 27G 2.9G 24G 11% /
/dev/mapper/centos-var 5.0G 4.1G 944M 82% /var
pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 centos lvm2 a-- <39.50g 4.00m
vgs
VG #PV #LV #SN Attr VSize VFree
centos 1 4 0 wz--n- <39.50g 4.00m
pvs
andvgs
to your question.centos
volume group is out of space. There are two other logical volumes in that volume group, most likelycentos-home
andcentos-tmp
, that are taking up the rest of the 40GB. You'll need to add a new virtual disk to your VM, create a new physical volume, add it to thecentos
volume group, and expand some of the free space tocentos-var
.