1833313 Members
3215 Online
110051 Solutions
New Discussion

Re: Filesystem Full

 
Henry Tuason Macasiano
Occasional Contributor

Filesystem Full


When i issue the command df -k, one of the filesystems indicates 0% availability. I tried to remove some files in the filesystem but status didn't change. There is still lack of disk space.
8 REPLIES 8
Mike Miller_8
Regular Advisor

Re: Filesystem Full

Are you saying that the % free didn't change from 0 or that the free K did not change ?

Note - If you removed less that 1% of the file system, it's %free will not change.
Pete Randall
Outstanding Contributor

Re: Filesystem Full

You're going to need to do a little more work to find out where the congestion is. Use "du -sk /filesystem/*" to find out where most of the usage is. If it turns out to be a directory, drill down into the directory with "du -sk /filesystem/directory/*". Use the find command to get rid of core files "find /filesystem -type f -name core -exec rm {} \;". You can also use find to find files with a size greater than x amount with -size option.

The other option you have is to try to enlarge the filesystem.


Pete

Pete
Stuart Abramson_2
Honored Contributor

Re: Filesystem Full

The above answers are true. However, sometimes the space doesn't get release right away. If you remove a file that is being used by a process, the space doesn't go away until the process finishes.

So, log off and come back, and you may see the space has disappeared.

Do "fuser -cu /mountpoint" on the mountpoint to see if anyone is in there.
Lixin Qin
New Member

Re: Filesystem Full

Also make sure you are deleting files in that particular filesystem, not a in the sub directory which is a mount point.
Con O'Kelly
Honored Contributor

Re: Filesystem Full

It's also possible that a process has not cleanly exited and as such a file handle is being kept open but the file will not be visible in the filesystem using find, ls commands etc. The du command will report the space being as being used but you will need to use lsof or glance to identify the process that is keeping the file handle open & hence not releasing the space. Once you kill the process the space will be released to the FS.

Cheers
Con
Sunil Sharma_1
Honored Contributor

Re: Filesystem Full

Hi,

If you are telling free is 0% it will not come down till you reduce atleast by 1% but you can see channges in KB free/ KB used.

Sometime if you remove a file which is in use than also space will not be released.

2. make sure you are removing files from perticuler file system and the directory inside that FS is not symolic link to other place.

This may help u...
SS
*** Dream as if you'll live forever. Live as if you'll die today ***
Suhas_2
Regular Advisor

Re: Filesystem Full

Hi,
Here is a 1-2-3-4-... I would do in this case...
1> #df -k /filesystem
2> #du -sk /filesystem
if there is a difference in the usage shown by both these commands, then

3> #fuser -cu /filesystem
check the processes using the file system.
Check whether any of them has become defunct.
if nobody is using the file system
4> #fuser -cuk /filesystem
5> #umount /file system
note the volume group and logical volume of the filesystem
6> #fsck -y /dev/volumegroup/logicalvolume
7> #mount /filesystem
8> Cross-check the "du -sk" and "df -k" output.
And check available free space.

Hope this helps.

Regards...
Suhas.
Never say "Die"
Radhakrishnan Venkatara
Trusted Contributor

Re: Filesystem Full

hi,

i faced this issue. after removing the files also the filesystem shows full.

is any application is using the file system ?

so u have to stop the application and umount the filesystem and mount it again.

run fsck also.

some applications causes like this problems.so before removing the files shutdown the application and remove it.

radhakrishnan
Negative thinking is a highest form of Intelligence