Displaying wrong available space

One of my file system (/opt/apache) is showing wrong available space. What happend to the remaining space?
/dev/vg00/apache      7213153      5941812      550025      92%      /opt/apache

If you see here ( 7213153 -5941812=1271341 ) is the real availabel space, but it is showing only 550025. we have monitoring scrits that delete old logs every 15days.

Any one have any idea about my space?

Thanks,





GopivinodAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kamran ArshadIT AssociateCommented:
Hi,


These are apache log files, and I think apache is still running in the background it keeps the file handles in memory. Shutt down and restart apache. I think it will do the trick.
0
tfewsterCommented:
uetian1707 makes a good point about deleted files that are still open not releasing space, though that usually shows up as a difference between "df" and "du" results.

I suspect that the filesystem has been created (or tuned) to reserve 10%
(Used+Available)/Size=.8999999  

df doesn't show the reserved space and only root can use it (So you could have a filesystem 110% used ;-)

Reserving space is generally done for improved performance, so I wouldn't change it (using "tunefs" ) unless you're sure disk/filesystem performance is not an issue.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Gabriel OrozcoSolution ArchitectCommented:
generally you can avoid problems when you sync your filesystem before you check free space.

I do not recall well if the comand sync can do that for all filesystems, but certainly df --sync will do.

check this man page for df:
http://www.gnu.org/software/coreutils/manual/html_chapter/coreutils_14.html

and look for the word "sync"
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

gheistCommented:
We are looking for handles to deleted files.
Please post "uname -a" from your system.
btw apache has finest "rotatelogs" utility to keep disks clean, no need for custom scripts.
0
GopivinodAuthor Commented:
Last week i deleted some logs and the space reduced to 87%, which means space reclaimed even though apache is running. Another thing i foget to mention, there are total 3 fs on /opt (/opt,/opt/apache,/opt/oracle). Will this be the reason for the problem( showing wrong available space)?

/dev/vg00/lvol6    2002251 1590085  211940   88% /opt
/dev/vg00/apache   7213153 5702997  788840   88% /opt/apache
/dev/vg00/lvol11   2048000  457559 1491046   23% /opt/oracle

Hi ghiest, here is the uname info

HP-UX MITOCONDRIA B.10.20 C 9000/785 2001853180 32-user license
0
gheistCommented:
Why do yo say "wrong space"
trr dd-ing /dev/zero to some file on the disk - this will show you what is right.
0
tfewsterCommented:
/opt and /opt/apache have been created with the default "minfree" (10%)
/opt/oracle has been tuned to minfree=5%

You can verify that safely with
/usr/sbin/mkfs -m /dev/vg00/apache
(man mkfs for info on the output)

Please also post the output of  `grep /opt /etc/fstab` - I suspect all these filesystems are HFS filesystems
From `man df_hfs`:
"When df is used on an HFS file system, the file space reported is the space available to the ordinary user, and does not include the reserved file space specified by fs_minfree.

Unreported reserved blocks are available only to users who have appropriate privileges. See fs(4) for information about fs_minfree."

`bdf` might show diffrent info...
0
Hanno P.S.IT Consultant and Infrastructure ArchitectCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I will leave the following recommendation for this question in the Cleanup Zone:
ACCEPT tfewster's comment {http:#18785310} as answer

Any objections should be posted here in the next 4 days. After that time, the question will be closed.
JustUNIX, Experts Exchange Cleanup Volunteer
0
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.