How to solve the problem of Linux not releasing disk space

  

One of the problems that often plague us when we use computers is that there is not enough disk space. Users in Linux systems often face this problem. Sometimes we delete the large files on the disk, but the disk space is still insufficient, so how to solve this problem? Let's take a look at the solution to this problem with Xiaobian.

Solution:

Check disk space

[@ 74.114 var] # df -h

Filesystem Size Used Avail Use% Mounted On

/dev/xvda2 9.7G 284M 8.9G 4% /

/dev/xvda1 251M 13M 226M 6% /boot

none 1.1G 0 1.1G 0% /dev/shm

/dev/xvda10 97G 60G 33G 65% /home

/dev/xvda3 3.9G 2.7G 1.1G 72% /usr

/dev/Xvda5 3.9G 3.6G 77M 98% /var

The var partition is almost full, find large files, and delete

[@74.114 var]# cd /var

[ @74.114 var]# du –sh *

3.3G account

111M cache

53M log

0 mail

156K Run

344K spool


[@74.114 var]# rm –rf account/*

df –h look, but Still /var is 98%, not released at all.

[@74.114 var]# df -h

Filesystem Size Used Avail Use% Mounted on

/dev/xvda2 9.7G 284M 8.9G 4% /

/dev/xvda1 251M 13M 226M 6% /boot

none 1.1G 0 1.1G 0% /dev/shm

/dev/xvda10 97G 60G 33G 65% /home< Br>

/dev/xvda3 3.9G 2.7G 1.1G 72% /usr

/dev/xvda5 3.9G 3.6G 77M 98% /var

But du –sh * But there is no big file

[@74.114 ~]# cd /var && du –sh *

120K account

111M cache

53M log

0 mail

156K run

344K spool

… Previous12Next Total 2 Pages

Copyright © Windows knowledge All Rights Reserved