"Full" means, no, not enough.trevor14smith wrote: ↑2020/06/30 10:58:09Did I allocate enough root space when installing?Code: Select all
Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/centosVG-root ext4 9.1G 8.6G 50M 100% / /dev/sda2 ext4 453M 376M 50M 89% /boot /dev/sda1 vfat 476M 12M 465M 3% /boot/efi /dev/mapper/centosVG-var ext4 9.1G 2.4G 6.2G 28% /var /dev/mapper/centosVG-home ext4 92G 70G 18G 81% /home
How much is enough depends on the purpose: what software and data has to be there.
Two examples. First a server that runs one service. No GUI. The /usr is "small"
Code: Select all
$ sudo du -m -x -d 1 /
1 /root
34 /etc
340 /opt
1 /media
1 /mnt
1 /home
1361 /usr
1 /tmp
1 /lost+found
1 /srv
250 /var
119 /boot
2103 /
Code: Select all
$ sudo du -m -x -d 1 /
458 /boot
6 /root
829 /var
47 /etc
736 /opt
12684 /usr
1 /media
1 /srv
1 /lost+found
1 /mnt
14757 /
Note. Red Hat does not recommend mounting the /var from separate filesystem. Essential things get mounted under /var early in boot and therefore /var has to be mounted really early too.trevor14smith wrote: ↑2020/06/30 10:58:09Code: Select all
/dev/mapper/centosVG-var ext4 9.1G 2.4G 6.2G 28% /var
It is fine to mount subdirectories (/var/xxx) from separate filesystems, for example http, ftp, sql, or docker data, for those services start much later.
The /tmp holds temporary files. There can be lots, so having it on the root partition is a risk.
There is a way to have /tmp in RAM too; it will be completely cleaned on every reboot.
A file in /tmp is safe to remove if no process needs it any more. However, well-behaving processes would remove temporaries when they end, so files there may well be in use.
You have one saving grace: ext4. CentOS's default filesystem is xfs, which cannot be shrunk. Ext4 can be resized smaller.
It is thus possible to shrink /var and /home and give / more. However, like Trevor pointed out, you don't have much to play with.
PS. Other information gathering commands:
Code: Select all
lsblk
blkid
findmnt