1819853 Members
2782 Online
109607 Solutions
New Discussion юеВ

Re: file system full

 
SOLVED
Go to solution
jackfiled
Advisor

file system full

After removed a largest file about 3GB,
but /usr remains full.
how could it be? /usr allocated total 3.8GB

[root@ecfarm3 /]# df -h

Filesystem Size Used Avail Use% Mounted on

/dev/ida/c0d0p1 1.9G 408M 1.4G 22% /

/dev/ida/c0d0p5 26G 19G 5.7G 77% /data5

/dev/ida/c0d0p6 3.8G 3.8G 0 100% /usr

/dev/ida/c0d0p7 984M 246M 688M 27% /var

what is the problem?
Dose linux has bugs?
can you explain above that.?

give me the solution to resolve the problem..
except rebooting linux box.
6 REPLIES 6
Alexander Chuzhoy
Honored Contributor

Re: file system full

if you can umount this partition
then umount it and run fsck on it.

unfet that mount it back and see it it's still full.
jackfiled
Advisor

Re: file system full

I cannot umount it
still using.
Alexander Chuzhoy
Honored Contributor

Re: file system full

You can't or you wish not to?
Cause if you can't
there is
umount -l /dev/ida/c0d0p6

or you can use the fuser command to see who is using the partition.
Claudio Cilloni
Honored Contributor
Solution

Re: file system full

remembeber that you can delete a file that is still in use by one or more processes. These processes will not realize that the file was deleted, and the disk space used by that file will not be freed until the processes stop using it.
If you know that there are one or more program that were using that file, close them.

Ciao
Claudio
Petr Simik_1
Valued Contributor

Re: file system full

#fuser -v (disk/dir) tells you who is using this file or try #fuser -k it kills users using this file. Than you can umnount and mount it as you wish.
jackfiled
Advisor

Re: file system full

OK it works.

first I could get the process used the file
fuser -v /dir

then,

I could kill the process, file system

remains normal capacity as it removed file.


as you tell me that

the disk space used by that file will not be

freed until the processes stop using it.

thanks all