1753401 Members
7451 Online
108792 Solutions
New Discussion юеВ

/opt 98% full...

 
SOLVED
Go to solution
Victor BERRIDGE
Honored Contributor

Re: /opt 98% full...

OK no Online-JFS installed...

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
Adrian Sobers2
Super Advisor

Re: /opt 98% full...

Well I will have to schedule that for after hours, working hours now...

Do I have to boot to ISL prompt or just stop Oracle and then do the business?
Victor BERRIDGE
Honored Contributor
Solution

Re: /opt 98% full...

No need to boot single user..
Just 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
Victor BERRIDGE
Honored Contributor

Re: /opt 98% full...

I forgot
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
Adrian Sobers2
Super Advisor

Re: /opt 98% full...

Victor,

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?
Victor BERRIDGE
Honored Contributor

Re: /opt 98% full...

Looking at your vgdisplay of vg00
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
Adrian Sobers2
Super Advisor

Re: /opt 98% full...

Victor,

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 ;)
Patrick Wallek
Honored Contributor

Re: /opt 98% full...

I think you will have a hard time umounting /opt even after you stop the Oracle processes.

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.
Adrian Sobers2
Super Advisor

Re: /opt 98% full...

updated plan
Victor BERRIDGE
Honored Contributor

Re: /opt 98% full...

Hi Adrian,
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