Operating System - HP-UX
1827810 Members
1877 Online
109969 Solutions
New Discussion

Re: /tmp directory extension help needed!!!!

 
SOLVED
Go to solution
Horia Chirculescu
Honored Contributor

Re: /tmp directory extension help needed!!!!

Oracle (both database and application) have scripts to start/stop the instance and the application. First you must stop the oracle application and then the instance (database).

Find out the scripts -those are usually called by some special user - one for application, another for instance.

Then su as those user(s)

su -

then run the stop script

The same for oracle application

Horia.
Best regards from Romania,
Horia.
Zishan
Regular Advisor

Re: /tmp directory extension help needed!!!!

Oracle DB is stop following is my output.

# fuser /tmp/*
/tmp/MSV2V3Check_B.11.23.0907_HP-UX_B.11.23_IA_PA.depot:
/tmp/ipv6agt.crashlog: 1372o
/tmp/llbdbase.dat:
/tmp/mail-metamail.6789.200:
/tmp/patches11g1:
/tmp/portmap.file:
/tmp/prngd.log:
/tmp/root.errorlog:
/tmp/rpcbind.file:
/tmp/sensor_info:
/tmp/stcp.conf.513:
/tmp/wd_action.dbg:

#

How to kill the remaining processes?
Pete Randall
Outstanding Contributor

Re: /tmp directory extension help needed!!!!

WHOA, WHOA, WHOA!

How about just cleaning the junk out /tmp? Using "rm -rf" is appropriate but maybe overkill. You might want to look at what is in there to start with, but /tmp is just that: a repository for temporary files for which no retention is required. If someone is misusing /tmp for other purposes, this will be a great way to find out.

The fullest /tmp I have is about 50MB so you've obviously got some crap in there.


Pete

Pete
Zishan
Regular Advisor

Re: /tmp directory extension help needed!!!!

I know but I need 3 GB space in /tmp bec I need to install oracle 11g and I put this source in /tmp.
Is there any possibility and I can create /tmp in anyother location then after installtion switch to current one ???

This I did in Tru64 Unix:
#mkfset usr_domain#tmp /tmp
#mount usr_domain#tmp /tmp
change is entry in /etc/fstab

Is there something like this in HP Ux

Regards,
Dennis Handly
Acclaimed Contributor

Re: /tmp directory extension help needed!!!!

>Is there any possibility and I can create /tmp in any other location then after installation switch to current one?

You can create a directory under /tmp and mount on top of that and if you can get Oracle to use that path it would work.

>Horia: A lot of daemons have sockets that are located on /tmp.

Right:
# lsof /tmp
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
hp_unixag 1212 root 1r DIR 64,0x3 40960 12 /tmp
ipv6agt 1223 root 1r DIR 64,0x3 40960 12 /tmp
mib2agt 1233 root 1r DIR 64,0x3 40960 12 /tmp
trapdesta 1253 root 2r DIR 64,0x3 40960 12 /tmp
Zishan
Regular Advisor

Re: /tmp directory extension help needed!!!!

Hello,

Its sounds like good for me. I apprecaite if you could give an example

#mkdir /tmp/tmp
#mount
(where i can mount ? I have lot of space in /u01)

Regards
Zishan
Regular Advisor

Re: /tmp directory extension help needed!!!!

Hello Horia,

I followed the steps as u told me and I am on >HPUX prompt (see attached file). Now when I issue "bo pri" command there is no found message arise. Will you guide me ?

Regards,
Horia Chirculescu
Honored Contributor

Re: /tmp directory extension help needed!!!!

Hello, Zishan

Did you managed to get into single user mode?

You must enter single user mode in order to be able to extend the logical volume.

Horia.
Best regards from Romania,
Horia.
Zishan
Regular Advisor

Re: /tmp directory extension help needed!!!!

Hello Horia,

I issued "init s" command to enter into single user mode then then killed the processes. Then I issued "shutdown -r" command and press key to enter into "HPUX>" prompt.
Pls tell me now what to do or did i make any mistake?
Horia Chirculescu
Honored Contributor

Re: /tmp directory extension help needed!!!!

It is ok.

Then issue a:

HPUX> boot -is

And you will enter into single mode. After logging, enter the command from the above post.

Horia.
Best regards from Romania,
Horia.
Dennis Handly
Acclaimed Contributor
Solution

Re: /tmp directory extension help needed!!!!

>where I can mount? I have lot of space in /u01

Ah, you can just create a symlink instead of that directory.

And if Oracle honors TMPDIR, you can just point it to /u01/somewhere.