1820236 Members
2860 Online
109620 Solutions
New Discussion юеВ

Re: /opt 100% full.

 
yogeshmp
Occasional Contributor

/opt 100% full.

Hi Guru's

I am working on HP-ux 11i.I face the the problem of opt 100% full frequently on some servers.So can you help me out, what are the area that we could concern to make the saficient space on /opt.Thanks in advance.

- yogesh
13 REPLIES 13
Court Campbell
Honored Contributor

Re: /opt 100% full.

my best advice would be to start with

# du -sk /opt/* | sort -rn

start looking through the directories for anything that can be removed/moved. Hopefully you have OnlineJFS. If so, once you get some free space you can lvextend the lvol and use fsadm to extend the file system.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Andrew Young_2
Honored Contributor

Re: /opt 100% full.

Hi Yogesh

I would also do a

find /opt -name "*log*" -exec ll {} \;

as a lot of things tend to log in /opt instead of /var.

HTH

Andrew Y
Si hoc legere scis, nimis eruditionis habes
Andrew Young_2
Honored Contributor

Re: /opt 100% full.

Hi.

A small change:

find /opt -name "*log*" -exec ls -l {} \;

Regards

Andrew Y
Si hoc legere scis, nimis eruditionis habes
Jov
Honored Contributor

Re: /opt 100% full.

The real issue is there might be apps using /opt as /var (e.g. CiscoWorks) and if so you'll need to change this to really address this.


Jov
Yogeeraj_1
Honored Contributor

Re: /opt 100% full.

hi yogesh,

also check your apache logs.

they are by default found in : /opt/apache/logs/

hopethis helps!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Sudalaimani
Frequent Advisor

Re: /opt 100% full.

Hi

You may try some of these

1. #find /opt -xdev -size +10000 -exec ls -l {} \;

2. #find /opt -name "*tar"

3. Check for the openview/omniback/OV related files.

regards

Mani
A Long Journey Starts with Single Foot Step
Noble Sebastian
Frequent Advisor

Re: /opt 100% full.

Hi


Application installed in /opt mount point,
Some application create, log files, core, tar
Files, So that /opt automatically increasing.

1 Inform to application team, copy to
another mount point, which more file generated
2 create cron script for removing core , log files
3 Unwanted files Remove Manual

Eg: Remove more than 30 days log files

find /opt -mtime +30 -type f -name "*.log" -exec rm {} \+


Remove more than 30 days core files


find /opt -mtime +30 -type f -name core -exec ll {} \+



Regards,

Noble Sebastian
MarkSyder
Honored Contributor

Re: /opt 100% full.

Before you remove any log file, be 100% sure that no process is going to want to use it in the future. If you are only 99% sure, null the file instead: > old.log (or whatever the log file is actually called).

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
yogeshmp
Occasional Contributor

Re: /opt 100% full.


Thnx everybody!!
Prasanth Vattoly
Frequent Advisor

Re: /opt 100% full.

Hi yogesh


I can suggest one UNIX script that will find all biggest files in your filesystem. It will work in hpux, Solaris and Linux.

ftp this script to /usr/sbin



Usage :-
biggest.sh /opt


Regards
Prasanth
prasanth.v.a
Manuales
Super Advisor

Re: /opt 100% full.

hI !!!!!
I can not see the file attached , i can not open the file !!!!!
Manuales
Super Advisor

Re: /opt 100% full.

Prasanth, could you please attache the file again? i mean, i can not open it ... nothing happened ... or if you can copy and paste ... thanks a lot !!!!
Manuales
Super Advisor

Re: /opt 100% full.

I could picked it up !!!!

THANKS A LOT !!!