Something weird with the FS size

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Something weird with the FS size
# 1  
Old 09-12-2011
Something weird with the FS size

Hi,

I have a problem with a Files system.

Code:
[root@xxxpry01 log]# df -h
Sys. de fich.         Tail. Occ. Disp. %Occ. Monté sur
/dev/cciss/c0d0p3     5,7G  3,7G  1,8G  68% /
/dev/cciss/c0d0p1      97M  9,9M   82M  11% /boot
/dev/cciss/c0d0p7     2,9G  2,0G  802M  71% /cache
tmpfs                 506M     0  506M   0% /dev/shm
/dev/cciss/c0d0p6     2,9G  2,5G  250M  91% /log
/dev/cciss/c0d0p5     2,9G  1,1G  1,7G  40% /www

[root@xxxpry01 log]# du -sh /log
135M    /log

My FS was 91% full before to delete some files, and after that it was still 91%.
The su command show us the FS is only 135M and not 2,5Go... Smilie

Do you have any clue?

Thanks
# 2  
Old 09-12-2011
Probably some process still has a file opened there. Check with lsof +d /log which it is. When found, restart that process to have it close the filehandle, and thus really free the space.

Background: in Unix/Linux a file is only really deleted when the last reference to the first inode is removed. If the directory entry for it is removed, but there's still an open file handle by some process, the inode is still in use, and the associated space isn't marked as free. du reports a different number because it counts only the files it can see, while df reports the free space as seen by the filesystem.
This User Gave Thanks to pludi For This Post:
# 3  
Old 09-12-2011
Quote:
Originally Posted by pludi
Probably some process still has a file opened there. Check with lsof +d /log which it is. When found, restart that process to have it close the filehandle, and thus really free the space.

Background: in Unix/Linux a file is only really deleted when the last reference to the first inode is removed. If the directory entry for it is removed, but there's still an open file handle by some process, the inode is still in use, and the associated space isn't marked as free. du reports a different number because it counts only the files it can see, while df reports the free space as seen by the filesystem.
You're right!! I didn't think about that.
I have reloaded my service and now it's OK.
Thanks a lotSmilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Ls directory size reporting byte size instead of file count

I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms. Recently, my virtual server switched storage devices and I think the problem may be related to that change.... (2 Replies)
Discussion started by: jmgibby
2 Replies

2. Solaris

/tmp size is less whereas size allocated to swap is more

Hi, the /tmp size is less whereas the size allocated to swap is quite big. how to increase the size of /tmp - #: swap -l swapfile dev swaplo blocks free /dev/md/dsk/d20 85,20 8 273096 273096 #: swap -s total: 46875128k bytes allocated + 2347188k reserved =... (2 Replies)
Discussion started by: psb74
2 Replies

3. UNIX for Advanced & Expert Users

Physical disk IO size smaller than fragment block filesystem size ?

Hello, in one default UFS filesystem we have 8K block size (bsize) and 1K fragmentsize (fsize). At this scenary I thought all "FileSytem IO" will be 8K (or greater) but never smaller than the fragment size (1K). If a UFS fragment/blocksize is allwasy several ADJACENTS sectors on disk (in a ... (4 Replies)
Discussion started by: rarino2
4 Replies

4. Programming

[c] How to calculate size of the file from size of the buffer?

Hi, Can I find size of the file from size of the buffer written? nbECRITS = fwrite(strstr(data->buffer, ";") + 1, sizeof(char), (data->buffsize) - LEN_NOM_FIC, fic_sortie); Thank You :) (1 Reply)
Discussion started by: ezee
1 Replies

5. Shell Programming and Scripting

Script to read file size and send email only if size > 0.

Hi Experts, I have a script like $ORACLE_HOME/bin/sqlplus username/password # << ENDSQL set pagesize 0 trim on feedback off verify off echo off newp none timing off set serveroutput on set heading off spool Schemaerrtmp.txt select ' TIMESTAMP COMPUTER NAME ... (5 Replies)
Discussion started by: welldone
5 Replies

6. Shell Programming and Scripting

The scripts not able to make the file to size 0, every times it go back to its original size

#!/bin/sh ########################################################################################################## #This script is being used for AOK application for cleaning up the .out files and zip it under logs directory. # IBM # Created #For pdocap201/pdoca202 .out files for AOK #1.... (0 Replies)
Discussion started by: mridul10_crj
0 Replies

7. Solaris

Directory size larger than file system size?

Hi, We currently have an Oracle database running and it is creating lots of processes in the /proc directory that are 1000M in size. The size of the /proc directory is now reading 26T. How can this be if the root file system is only 13GB? I have seen this before we an Oracle temp file... (6 Replies)
Discussion started by: sparcman
6 Replies

8. Shell Programming and Scripting

find with file size and show the size

Hi All... is the below command be modified in sucha way that i can get the file size along with the name and path of the file the below command only gives me the file location which are more than 100000k...but I want the exact size of the file also.. find / -name "*.*" -size +100000k ... (3 Replies)
Discussion started by: rpraharaj84
3 Replies

9. Solaris

Weird swap size on Solaris 9

I have a machine: SunOS <server> 5.9 Generic_117171-15 sun4u sparc SUNW,Sun-Fire-480R It has these filesystems: Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 19G 15G 3.9G 80% / /proc 0K 0K 0K 0% /proc... (6 Replies)
Discussion started by: son_t
6 Replies

10. Solaris

command to find out total size of a specific file size (spread over the server)

hi all, in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders... please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies
Login or Register to Ask a Question