du and dfspace reporting


 
Thread Tools Search this Thread
Operating Systems SCO du and dfspace reporting
# 15  
Old 09-13-2012
Hello guys,

Thanks for joining my discussion. hicksd8 didn't get my question exactly. jlliagre got me right.


jlliagre

< du isn't adding up file sizes but adding up file disk usage (as its name implies) i.e. a 4 bytes file will use at least one block.
What du isn't adding up is size it can't see, like removed but still used files, file system specific areas (e.g. journal, superblocks, ...), files hidden by an overlay mount, files unreachable by a non root user due to permissions, blocks lost due to file system corruption, and so on ...
>

Both du and df add any file between 512 bytes as 1 block . So the point is not of "the space of actual file size and the lefet over space in a block " . With both taking them as 1 block and counting the blocks based on that, my question was what exactly tyhe data du is not showing (relating to a partition) which df is adding (around 25 gb). Please note that I DONOT have any left over file opened which is occuping space . This I checked with

lsof | grep tmp

System seems to show this difference without having any such left over process or other discrepency.

I didn't rebooted the server yet and that is teh last option I am left with.

Thanks and regards,

Dexter
# 16  
Old 09-13-2012
If one of your non root file systems (eg: /var, /opt, /export, ...) is mounted on a previously non empty directory, this directory size is unaccounted by du.
# 17  
Old 09-13-2012
I only have /stand partition on / partition . This is of very small size , almost negligible to whole / size. I think I shall report status again after reboot, which may be tommorow.

Thanks and regards,


Dexter
# 18  
Old 09-13-2012
What matters here is not /stand file system size but the size of what might be present under the /stand directory when no file system is mounted there.
# 19  
Old 09-14-2012
My stand is only in mb's .

Code:
# # du  -k | tail -1
11540   .                                                     <-

Code:
# df -k -v |
Mount Dir  Filesystem              blocks      used      free   %used
/          /dev/root            871678974  64133868 807545106     8%
/stand     /dev/boot                40959      6413     34546    16%

^

So , the stand is 11.5 mb by du and 6.4 mb by df -v .


Also see :

Code:
# dfspace
/         : Disk space: 788618.26 MB of 851248.99 MB available (92.64%).
/stand    : Disk space:    33.73 MB of    39.99 MB available (84.34%).
 
# mount
/ on /dev/root read/write on Mon Sep 10 10:04:57 2012
/stand on /dev/boot read/write on Mon Sep 10 10:07:36 2012
/proc on /proc read/write on Mon Sep 10 10:09:39 2012
/dev/fd on /dev/fd read/write on Mon Sep 10 10:09:39 2012
/dev/_tcp on /dev/_tcp read/write on Mon Sep 10 10:09:39 2012
/system/processor on /processorfs read/write on Mon Sep 10 10:10:18 2012



regards,


Dexter

Last edited by radoulov; 09-18-2012 at 08:23 AM..
# 20  
Old 09-14-2012
Not that it is necessarily the root cause of your problem but I'm afraid you are still missing what I mean. You need to unmount /stand to know if this directory is empty or not in the first place.
# 21  
Old 09-14-2012
I am really not getting. If /stand is a partition , I can just ls /stand to see its contents. Why mounting/unmounting is required. May it be a directory on in / OR a separate partition , seeing the dats is always same , and so as the use of du and df. I apologise if I am too unknowledgable on the topic. Thats why I am here .

regards,

Dexter
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Reporting lines above a particular pattern

Below is a typical report each of the lines represent the fields in the report component1 component2 <pattern> .. .. n lines ... .. VIOL = 2 the command should display component1 component2 VIOL = 2 only if pattern field of the report is "good" component1 and... (8 Replies)
Discussion started by: dll_fpga
8 Replies

2. Solaris

Monitoring and Reporting Solutions

Hi, I am hunting for a low cost Monitoring & Reporting Tool for the SUN Environment. I have all and all SUN Environment with LDOMs, Zones. The monitoring Tool 1. Hardware failure. 2. Disk space and failure. 3. LDOMS,Zones. 4. CPU,Memory Utilization. 5. ping,URL Monitors 6. Send... (4 Replies)
Discussion started by: menonk
4 Replies

3. Shell Programming and Scripting

Disk space reporting

I need to accomplish the following task - I have a number of accounts for a number of applications that i deploy on a unix server. There are a number of directories for each account in /prod/apps directory. eg. For an account Application1 I have /prod/apps/Application1_1 /prod/apps/Application1_2... (4 Replies)
Discussion started by: niranjandighe
4 Replies

4. Filesystems, Disks and Memory

Storage Monitoring/Reporting?

Hi. How do you guys, monitor/report your Storage environment? I have people (don't we all? ) that like to have monthly reports on space (raw/assigned/available), ports available/used, switches and the such. Do you use anything special? Or are you like me, a nice big Excel spreadsheet? How... (1 Reply)
Discussion started by: Stephan
1 Replies

5. UNIX for Dummies Questions & Answers

Error reporting script

I am very new to unix/linux and am unsure how to do the following tasks within my script 1) append a log file and add a timestamped echo "Error occured" to it, if posibble to print it to file and on screen at the same time would be even better. 2) As my main script will be calling on a couple... (1 Reply)
Discussion started by: shamwick
1 Replies

6. Shell Programming and Scripting

Reporting SU and Failedlogins

Hi:- I am working on an audit report that produces a monthly summary of account activity on a particular AIX host. I am struggling with su activity and failed logins as these tend to come back with more then a month's data. Is there a easy way that these files can be rotated/cleaned out on a... (1 Reply)
Discussion started by: janet
1 Replies

7. SCO

regarding dfspace

hi, i m having a sco unix system...i want to store the output of dfspace command ie %free space of each partition to different variable so that i can use it for further processing.......can anybody pls help me out thx girish (1 Reply)
Discussion started by: girish_shukla
1 Replies

8. UNIX for Dummies Questions & Answers

Progress reporting

Hi everyone, I'm completely new to the board and to UNIX and I have the following question regarding a script I am building. I am trying to copy an entire directory into a new directory and I was wondering if there is any way of printing on screen a progress report, for example a percentage. It... (9 Replies)
Discussion started by: Ypnos
9 Replies

9. UNIX for Dummies Questions & Answers

Reporting

I have to do a lot of reporting for the company that I work for and was wondering if anyone had suggestions for a way to create professional looking reports. I currently use Filepro so much that I rarely see the shell. Any help is appreciated. (3 Replies)
Discussion started by: Mike11
3 Replies
Login or Register to Ask a Question