Can anyone help me in cleaning /opt filesystem..
i have checked all the options and i have cleared all the logs and the total size of the files in /opt is shown as 1.8GB were as the size of /opt is 4.8GB
In desperation there are likely to be applications in /opt that are not constantly running that could therefore be moved to a different filesystem and then linked to from /opt to make them appear to be still in /opt. e.g. if you had Adobe Acrobat (highly unlikely on a backup server but it will serve for this example) then you could do the following to move Adobe Acrobat to the root file system:
Are we sure that some log file isn't leaking or ran crazy and caused this, or perhaps some temp file or what not?
What does du display of the /opt directory? You can do it at a directory level and if you know certain directories should not be that large then you can narrow the problem down, or are you really just out of space on that volume due to having too much installed in /opt?
if there is a big difference between the output of du and df, there are
probably open files (by a running process), that are deleted or moved.
you can find them, as already reported, with
Sorry for the late reply. Thanks for the Help
I rebooted the server and things are back to normal now.
as mentioned this issue was due to OPEN FILES. and reeboot was the easiest way to sort it out.
In the first post you "cleared all the logs". Time to acquaint yourself with which processes hold log files open and the correct procedure to maintain those logs. Where there is no procedure supplied it is often better to copy and trunctate active logs rather than just deleting them.
As with all Systems Administration issues it helps to know which Operating System.