- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /opt 98% full...
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 04:48 AM
11-05-2004 04:48 AM
Does anyone have any ideas on how I can free up some space under /opt?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 04:51 AM
11-05-2004 04:51 AM
Re: /opt 98% full...
the only reasonable method to resolve this problem is to increase the size of /opt filesystem (or remove some not needed software)
Regards,
Zygmunt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 04:52 AM
11-05-2004 04:52 AM
Re: /opt 98% full...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 04:55 AM
11-05-2004 04:55 AM
Re: /opt 98% full...
/opt/mx and /opt/ignite are the directories you want to look at for housekeeping.
/opt is supposedly a static filesystem (unless,ofcourse, if you dont install softwares everyday :-). You have enough Free PE in the volume group. I would suggest increasing the LV size. Do u have online JFS installed ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 04:59 AM
11-05-2004 04:59 AM
Re: /opt 98% full...
Plenty of oracle some being "old" . Are all these version of oracle in use ?
Also, "inventory" (oracle again) is used when you install the product(s). They copuld be moved elsewhere and you can keep a link otherwise the location of such installation directory is kept in /var/opt/oracle/oraInst.loc
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 05:02 AM
11-05-2004 05:02 AM
Re: /opt 98% full...
I don't think we have Online JFS, how would I check?
What is under /opt/mx? I know the /opt/ignite is the Ignite-UX tools that was installed last month.
Also is it possible to just remove things like netscape, mozilla, etc and other software under /opt that we do not use and need. It is a production database server, period.
I tried swremove for netscape, mozilla etc but it does not work. How do you get the exact "argument" for swremove for applications under HP-UX like Netscape, Mozilla etc?
Thanks for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 05:02 AM
11-05-2004 05:02 AM
Re: /opt 98% full...
Do you have Online-JFS?
type:
swlist|grep JFS
or swlist -l product|grep JFS
While you check that I will have a look to your joined files
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 05:06 AM
11-05-2004 05:06 AM
Re: /opt 98% full...
Here is the output from the commands:
root:INLAND8>swlist | grep JFS
root:INLAND8>swlist -l product | grep JFS
JFS B.11.11 The Base VxFS File System
PHKL_24026 1.0 JFS Filesystem swap corruption
PHKL_28512 1.0 Fix for POSIX_AIO in JFS3.3
PHKL_29115 1.0 JFS Direct I/O cumulative patch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 05:12 AM
11-05-2004 05:12 AM
Re: /opt 98% full...
trimming logs won't help with space on /opt
/opt is generally used for optinal software.
/var is for logs.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 05:13 AM
11-05-2004 05:13 AM
Re: /opt 98% full...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 05:14 AM
11-05-2004 05:14 AM
Re: /opt 98% full...
That means you will have to stop oracle
all of it with the listener...
then
umount
/opt/oracle/data
/opt/oracle/archive_logs
/opt/oracle/app
then give a try with sam to extend /dev/vg00/lvol6 to 1.8 GB
Tell me if it works
What does bdf says now and what does du -sk * in /opt produce now?
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 05:20 AM
11-05-2004 05:20 AM
Re: /opt 98% full...
Do I have to boot to ISL prompt or just stop Oracle and then do the business?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 05:24 AM
11-05-2004 05:24 AM
SolutionJust stop all that oracle and try to umount the file systems I mentionned
then you can try using sam if I remember right you did this once
or use command line:
umount /opt
lvextend -L 1800 /dev/vg00/lvol6
extendfs /dev/vg00/rlvol6
mount -a
#done!
Good luck
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 05:29 AM
11-05-2004 05:29 AM
Re: /opt 98% full...
When oracle is stopped
and you umount /opt/oracle/data etc..
If they do not saying device busy then:
fuser -cku /opt/oracle/data etc...
How does oracle start anyway? at boot that is do you hace a start/stop script? in /sbin/rc3.d ?
if so type init 2 when you can...
and when finished
init 3 or 4 whatever you have as value for initdefault in /etc/inittab
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 05:41 AM
11-05-2004 05:41 AM
Re: /opt 98% full...
Thanks, I will do this. Yes I did do something similar before practicing on the old server. Look, it came in handy!
One more question, how do I tell how much space I have to extend my volume groups? Is this available from a command or through SAM?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 05:49 AM
11-05-2004 05:49 AM
Re: /opt 98% full...
you have
Free PE 2136
that means so many blocks of 8 MB...
You can lvextend to using -L
so I now would say -L 2500
So your new filesystem size after extendfs will be of 2.5GB..
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 06:07 AM
11-05-2004 06:07 AM
Re: /opt 98% full...
I just drafted up a plan to extend the filesystem. Could you please review it and comment please? I'll pass it on to superiors after your feedback and confirmation ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 06:25 AM
11-05-2004 06:25 AM
Re: /opt 98% full...
Once Oracle is stopped, do an 'fuser -cu /opt' to see other processes are using the mount point.
I have a feeling you will find a lot.
I think it would be easier to reboot the machine, interrupt the boot, and then come up into single-user mode. At that point you can do all you need to do to extend /opt. Just note that in single-user mode you will need to use the statically linked LVM commands located in the /sbin directory.
Making and Ignite tape is a good idea, but I'm not sure why you are copying the kernel. You aren't making any kernel changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 06:47 AM
11-05-2004 06:47 AM
Re: /opt 98% full...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 07:37 AM
11-05-2004 07:37 AM
Re: /opt 98% full...
following Patrick advice will let you get more familiar with single user mode..
I vote for it not that the other alternativeisnt good I do it when needed but maybe experience makes me unaware of difficulties a novice may find...
So In single user you will go remember extendefs the character device rlvol6
the alternate method will be a init 2 or init S
With luck it will close all applications running, if not you will have to ...
then umount all the /opt/* lvol before /opt
extend...
then mount -a (lazy way)
then init 3 (4?)
You will see on the console the new processes start, you can see them logged in /etc/rc.log
if oracle doesnt have a stop/start script in /sbin/init.d linked to the good level (/sbin/rc3.d) then start oracle by ???
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 08:28 PM
11-05-2004 08:28 PM
Re: /opt 98% full...
from ur bdf I understood the /opt/oracle/data and /opt/oracle/archive_logsis are in a diffrent disk.
This situation i would sugest you to back up both oracle/data and oracle/archive_logsis.
then
#pvcreate -f /dev/rdsk/
#vgextend vg00 /dev/dsk/
#lvextend -L
don't forget to umount /opt/oracle/app/ before doing this.
then create oracle/data and oracle/archive_logsis under /opt.Then restore data.
regards
SK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2004 08:59 PM
11-05-2004 08:59 PM
Re: /opt 98% full...
you can extend the /opt without rebooting in single user mode.i have done it so many times (last one was 1 week before).
take the backup as per your procedure.
1. stop all the database applications and database.
2. check anybody is using the mount point by fuser.
#fuser -cu /opt
3.if no user is existing you can proceed the umount
4.if it is showing root only then use fuser to remove it.(if some other user is existing then findout it is any application related one.if not proceed with following.otherwise shutdown that application)
#fuser -ku /dev/vg00/lvol6
check again by fuser -cu command.
5. umount /opt
6. lvextend -L 2500 /dev/vg00/lvol6
7. extendfs -F vxfs /dev/vg00/rlvol6
8. mount /dev/vg00/lvol6 /opt
9.check by lvdisplay,bdf
#lvdisplay /dev/vg00/lvol6
9.start database and applications.
regds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2004 01:14 AM
11-08-2004 01:14 AM
Re: /opt 98% full...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2004 01:18 AM
11-08-2004 01:18 AM
Re: /opt 98% full...
You seem to go for the second alternative..
So remember You will NOT be able to umount /opt while the other file system under /opt are mounted
You will need to umount them first..
Good luck
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2004 01:20 AM
11-08-2004 01:20 AM
Re: /opt 98% full...
I am afraid you will need to boot the system in singleuser mode to extend /opt. It's not a good idea to kill the processes accessing /opt. Even if you do, you wouldn't know how to start them back. For ex., 'dced' runs from /opt.
If you have OnlineJFS installed
swlist -l product |grep -i onlinejfs
grep vxadv /stand/system
then you can do it online.
lvextend -L 2560 /dev/vg00/lvol6
fsadm -b 2560m /opt
If you don't have OnlineJFS, bring down the applicatiosn and the database, reboot the system, interact with ISL and bring it up in single user mode. Once in there, do
#mount /usr
#mount /tmp
#mount /var
#lvextend -L 2560 /dev/vg00/lvol6
#extendfs -F vxfs /dev/vg00/rlvol6
#mount /opt
#bdf /opt
(verify that it is 2.5 Gigs)
#init 3
-Sri