Where are the data ?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Where are the data ?
# 1  
Old 11-29-2007
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 Smilie
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 !!
# 2  
Old 11-29-2007
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.
# 3  
Old 11-30-2007
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 !!
# 4  
Old 11-30-2007
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.
# 5  
Old 12-01-2007
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 !
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk --> math-operation in data-record and joining with second file data

Hi! I have a pretty complex job - at least for me! i have two csv-files with meassurement-data: fileA ...... (2 Replies)
Discussion started by: IMPe
2 Replies

2. Shell Programming and Scripting

Parsing XML (and insert data) then output data (bash / Solaris)

Hi folks I have a script I wrote that basically parses a bunch of config and xml files works out were to add in the new content then spits out the data into a new file. It all works - apart from the xml and config file format in the new file with XML files the original XML (that ends up in... (2 Replies)
Discussion started by: dfinch
2 Replies

3. Shell Programming and Scripting

Generate tabular data based on a column value from an existing data file

Hi, I have a data file with : 01/28/2012,1,1,98995 01/28/2012,1,2,7195 01/29/2012,1,1,98995 01/29/2012,1,2,7195 01/30/2012,1,1,98896 01/30/2012,1,2,7083 01/31/2012,1,1,98896 01/31/2012,1,2,7083 02/01/2012,1,1,98896 02/01/2012,1,2,7083 02/02/2012,1,1,98899 02/02/2012,1,2,7083 I... (1 Reply)
Discussion started by: himanish
1 Replies

4. Shell Programming and Scripting

Converting variable space width data into CSV data in bash

Hi All, I was wondering how I can convert each line in an input file where fields are separated by variable width spaces into a CSV file. Below is the scenario what I am looking for. My Input data in inputfile.txt 19 15657 15685 Sr2dReader 107.88 105.51... (4 Replies)
Discussion started by: vharsha
4 Replies

5. UNIX for Dummies Questions & Answers

How to get data only inside polygon created by points which is part of whole data from file?

hiii, Help me out..i have a huge set of data stored in a file.This file has has 2 columns which is latitude & longitude of a region. Now i have a program which asks for the number of points & based on this number it asks the user to enter that latitude & longitude values which are in the same... (7 Replies)
Discussion started by: reva
7 Replies

6. Shell Programming and Scripting

Extract data based on match against one column data from a long list data

My input file: data_5 Ali 422 2.00E-45 102/253 140/253 24 data_3 Abu 202 60.00E-45 12/23 140/23 28 data_1 Ahmad 256 7.00E-45 120/235 140/235 22 data_4 Aman 365 8.00E-45 15/65 140/65 20 data_10 Jones 869 9.00E-45 65/253 140/253 18... (12 Replies)
Discussion started by: patrick87
12 Replies

7. UNIX for Dummies Questions & Answers

converting a tabular format data to comma seperated data in KSH

Hi, Could anyone help me in changing a tabular format output to comma seperated file pls in K-sh. Its very urgent. E.g : username empid ------------------------ sri 123 to username,empid sri,123 Thanks, Hema:confused: (2 Replies)
Discussion started by: Hemamalini
2 Replies

8. Shell Programming and Scripting

how to verify that copied data to remote system is identical with local data.

I have created simple shell script #!/bin/sh echo `date`; echo "Start .... find . -mtime +95 -print > /tmp/files.txt for file in `cat /tmp/files.txt` do echo "copying file - $file" /usr/local/bin/scp -p -P 2222 $file remote.hostname:/file/path echo "copid file -... (3 Replies)
Discussion started by: ynilesh
3 Replies

9. UNIX for Dummies Questions & Answers

Howto capture data from rs232port andpull data into oracle database-9i automatically

Hi, i willbe very much grateful to u if u help me out.. if i simply connect pbx machine to printer by serial port RS232 then we find this view: But i want to capture this data into database automatically when the pbx is running.The table in database will contain similar to this view inthe... (1 Reply)
Discussion started by: boss
1 Replies
Login or Register to Ask a Question