The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to read the data from an excel sheet and use those data as variable in the unix c Anne Grace UNIX for Advanced & Expert Users 1 03-03-2008 04:21 AM
how to verify that copied data to remote system is identical with local data. ynilesh Shell Programming and Scripting 3 01-31-2008 05:55 AM
Howto capture data from rs232port andpull data into oracle database-9i automatically boss UNIX for Dummies Questions & Answers 1 09-22-2007 11:35 PM
Using loop reading a file,retrieving data from data base. Sonu4lov Shell Programming and Scripting 1 01-19-2007 12:38 AM
Convert Binary data to ascii data krishna UNIX for Advanced & Expert Users 4 11-05-2004 01:12 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-29-2007
Registered User
 

Join Date: Nov 2007
Posts: 5
Where are the data ?

Hello,

I have a strange thing, when I want to see where my data are on a partition, and to check too if the partition is filling up...

So, first I check with :
Code:
df -k /my/partition
here is the ouput of this command
Code:
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/md/dsk/d8       14115659 7272935 6701568    53%    /logs
Sorry, I'm on solaris, and
Code:
df -h
still don't exist unfortunately
So, then, I decide to see wich directory are taking a lot of space, and I do this with :
Code:
du -sk /logs
and here the output :
Code:
5463367 /logs
This was my first surprise, as the last command tell me that only +/- 5.5 go was used, and with the command df, it tell me someting others.
And when I want to see the size of sub-directory on this partition with :
Code:
du -sk /logs/*
I can see this :
Code:
367713  /logs/apache
584     /logs/backup
1243    /logs/firewall
280     /logs/ftp
12      /logs/interface
1       /logs/logcheck
5405    /logs/logrotation
8       /logs/lost+found
1       /logs/mount_as
2       /logs/oracle
405     /logs/solaris
1719    /logs/sysload
1       /logs/tmp
5085992 /logs/websphere
and I have no hidden sub-directoy on the partition as this command :
Code:
ls -al /logs
tell me this :
Code:
drwx------   6 root     other        512 Nov 21 08:00 apache/
drwx------   3 root     other        512 Mar  2  2006 backup/
drwx------   4 root     other        512 Oct 21  2003 firewall/
drwx------   3 root     other        512 Oct 21  2003 ftp/
drwx------   4 root     other        512 Oct 21  2003 interface/
drwx------   2 root     other        512 Oct 21  2003 logcheck/
drwx------   2 root     other       7680 Nov 29 08:30 logrotation/
drwx------   2 root     root        8192 Sep 23  2001 lost+found/
-rw-------   1 root     other         34 Dec  5  2003 mount_as
drwx------   3 root     other        512 Oct 21  2003 oracle/
drwx------   6 root     other        512 Mar  2  2006 solaris/
drwx------   6 root     other        512 Mar  2  2006 sysload/
drwx------   2 root     other        512 Mar 15  2005 tmp/
drwx------   8 root     other        512 Oct 11  2006 websphere/
So, my question, can anyone tell me where are the 1809568 kbytes that I cannot find !! any idea ??

We are using disksuite if I'm right, with metadevices if it can help !!
Reply With Quote
Forum Sponsor
  #2  
Old 11-29-2007
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
Suppose that a program was writing to a file called /logs/tmp/uselessfile. Then someone does an "rm /logs/tmp/uselessfile". Now you have a file with no path to it. It won't actually be deleted until the program closes it. My guess is that something like this has happened. Sometimes a program will create a temporary file and then immediately unlink it to create this situation intentionally. The file is very secure since no other process can open it without special help from the original process. And the file is guaranteed to be deleted when the program exits.
Reply With Quote
  #3  
Old 11-30-2007
Registered User
 

Join Date: Nov 2007
Posts: 5
someone tell me about also a certain amount ( 5 or 10% ) of a partition are reserved for the root user ?
do you thingk that the place reserved for root user can be seen with the command
Code:
df -k
or not ?

If you were true, it seems that I have a lot of wasted space !! Damned !!
Reply With Quote
  #4  
Old 11-30-2007
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
No, it's not the reserved space. If it were, all of your filesytems will have the same effect. If you reboot the box, the process holding the space will die and the space will be freed. This is one way to see if I'm right.
Reply With Quote
  #5  
Old 12-01-2007
Registered User
 

Join Date: Nov 2007
Posts: 5
As it is a production system, I don't think my boos will appreciate to reboot the system ! But we have a system, that has been reboot not too long ago, so I'll see if we have also there some wasted space !!
Thanks anyway for the advice !
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0