CentOS /var full

maelamrani

Member
Joined
Jan 3, 2020
Messages
76
Reaction score
7
Credits
437
Hello,

I face an issue with the /var full, inodes :
/dev/mapper/rootvg-var_lv 512000 3908 508092 1% /var
we have 2Gb almost full
/dev/mapper/rootvg-var_lv 1.9G 1.6G 169M 91% /var

/var/..
87024 ./log
86096 ./lib
66744 ./lib/rpm
49248 ./log/sa
44452 ./account
32824 ./log/journal
24592 ./log/journal/64a16deee0f04193983feda7ad811676
10404 ./lib/yum
8956 ./lib/yum/yumdb
8200 ./log/journal/178930f9a12e4f21ace2d55bfed63682

how can i clean this fs ?
 


peichen

New Member
Joined
May 28, 2021
Messages
3
Reaction score
1
Credits
23
Hi, you need to find the folder where it located in /var/ ,
then may try to use rm "directory-name" or rm -r "directory folder" to delete the directory folder or files as well.

Or you can try this method:
How To Clean Log Files in Linux
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Top