1851035 Members
1829 Online
104056 Solutions
New Discussion

Re: /opt 98% full...

 
SOLVED
Go to solution
Patrick Wallek
Honored Contributor

Re: /opt 98% full...

Your plan looks pretty good. On item #5 of your Ignite backup step -- The command to view the contents of the Ignite tape should be:

# tar -tvf /dev/rmt/0mn


One observation -- While you can use the 'fuser -ku ' to kill any processes on the /opt file system, I would be VERY CAREFUL using that. There more than likely are some HP-UX processes running and just blindly killing them without knowing what they are could lead to problems.

If you do the 'fuser -ku' and are successful in extending /opt, I would then reboot the system so that any HP-UX process that were running within /opt get restarted.

In a situation like this, I would still feel better rebooting and coming up in single-user mode, but that's just my preference.

One side note -- If you had Advanced JFS / Online JFS you wouldn't have these issues. You could just resize this LV on the fly without worrying about unmounting the filesystem.
Adrian Sobers2
Super Advisor

Re: /opt 98% full...

Ok, I'm going to go with the majority and do this via single user mode. Attached is the now infamous 'revised plan'.

About the Online JFS product. Can we purchase this now after the fact. What would installation of this Online JFS product now require? Reconfiguration of machine and volume groups etc?? Just need this for informational purposes.

Thanks for all your help. You guys are truly amazing.
Sridhar Bhaskarla
Honored Contributor

Re: /opt 98% full...

Hi Adrian,

You don't need to reconfigure anything. Installation of OnlineJFS will reconfigure the kernel and you will need to reboot the system. It may not help you now as you have to reboot in either the case. But it can help you in future. You will have to 'swinstall' it and it will take care of the configuration itself.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Adrian Sobers2
Super Advisor

Re: /opt 98% full...

I am wondering what could have caused the mount point /opt to grow to 98%. I have IgniteUX installed and I saw earlier in the post that this as well as the mx directory needs to be watched closely.

Are there anyfiles that I should be looking for in particular under Ignite that is eating up my /opt space?
Sridhar Bhaskarla
Honored Contributor

Re: /opt 98% full...

Well, the magical command is 'du -kx /opt|tail -n' and see the top most culprits.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Adrian Sobers2
Super Advisor

Re: /opt 98% full...

Sri,

How do I interpret the output from my command:

# du -kx /opt > space.txt

The file space.txt is attached. This is pratically meaningless to me.

Any suggestions?
Sridhar Bhaskarla
Honored Contributor

Re: /opt 98% full...

Hi Adrian,

The first column is the size of that directory in KB. I did a sort for you and here is how it looks.

65736 /opt/ignite/boot
68872 /opt/perl
70120 /opt/java1.2
70392 /opt/mozilla/components
76808 /opt/VRTSob
103072 /opt/java1.4/jre/lib
103808 /opt/mx/j2re/lib
109000 /opt/java1.4
109000 /opt/java1.4/jre
109744 /opt/mx/j2re
118208 /opt/mx
120560 /opt/ignite
132896 /opt/hpws/xmltools
138432 /opt/mozilla
229224 /opt/hpws
1364864 /opt

See the last 10-12 entries except /opt. Those are the big hitters in /opt directory. See if you are using them (for ex., mozilla). If not, remove it (using swremove it was installed as a SD depot).

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Adrian Sobers2
Super Advisor

Re: /opt 98% full...

Sri,

Yes thanks for that info. We do not use some of that optional software under /opt. However this raises another question that I'm sure I've asked but I've never been clear about it. It is this:

How do you remove software like mozilla, netscape etc. which did not seem to be installed using swinstall so there is no corresponding swremove to get rid of it?
Sridhar Bhaskarla
Honored Contributor

Re: /opt 98% full...

Hi,

I am pretty sure 90% of the softwares that go under are installed through swinstall. In 'swremove' window, if you don't see them then choose 'product view'.

View -> Change software view -> Start with Products

Then you should see them. You can then select and remove them.

For the ones that didn't get installed through 'swinstall', you will have to manuall y remove them.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Adrian Sobers2
Super Advisor

Re: /opt 98% full...

Sri,

That is question. How do I go about manually removing software in HP-UX. What does it involve?
Adrian Sobers2
Super Advisor

Re: /opt 98% full...

Ok I've sorted it out. Went through SAM and uninstalled some of that optional software that we do not use. Can breathe on /opt now.

Thanks to all who contributed to this thread, great job!