1830165 Members
6022 Online
109999 Solutions
New Discussion

Filesystem monitoring

 
Andre' McL:ean
Occasional Advisor

Filesystem monitoring

I have a script with uses df -nv to report the percentage of used blocks for each filesystem. The problem is that the output reported via bdf does not support same percentage as reported by df -nv. Why is there such a diffence here and how can I correct this for a more accurate report.
2 REPLIES 2
James A. Donovan
Honored Contributor

Re: Filesystem monitoring

The difference is that bdf is reporting %free space. Freespace = (block-size * KB/block)

Therefore it's possible that bdf and df -nv will report slightly different numbers.
Remember, wherever you go, there you are...
Mark Grant
Honored Contributor

Re: Filesystem monitoring

Generally the way to correct this is to do "df -k" on Linux and "bdf -l" on HPUX. That way they both look the same.
Never preceed any demonstration with anything more predictive than "watch this"