1848719 Members
6793 Online
104036 Solutions
New Discussion

umount /tmp

 
uadm26
Super Advisor

umount /tmp

OS: HP-UX B.11.11

I can umount /tmp to increase the the FS, without state on single user?

By the way how can i pass to single user using init command, i try the "init s , or, init S" it doesn't work.

Thanks,
Joel
4 REPLIES 4
RAC_1
Honored Contributor

Re: umount /tmp

/tmp is used by different system/user process. so if you do not have Online JFS, you can not extend it online. You will have to go ot single user mode and extend it.(lvextend and extendfs)

After 10.20, doing init s or init S, is no longer the confirmed way of going to single user mode.

You will have to reboot the server, interrupt the boot process, interact with ISL and once on ISL prompt, do hpux -is

Anil
There is no substitute to HARDWORK
Cheryl Griffin
Honored Contributor

Re: umount /tmp

You would have to free up any processes that are holding the filesystem open. Since /tmp is used by many system processes, you may find that freeing up /tmp is impossible without rebooting into single user mode.

# fuser -cu /tmp

Using init s is not the same as true single user mode. There is no bypassing the reboot into single user mode.
"Downtime is a Crime."
Sundar_7
Honored Contributor

Re: umount /tmp

Hi Joel,

# fuser -cu /tmp | xargs -n1 ps -fp

The above command will tell you the processes using the /tmp file system

Though it is not preferred to unmount /tmp in multiuser mode, in most cases you could kill the processes and unmount the /tmp file system (I could unmount in my system).

The processes using /tmp are mostly OVO processes, SNMP process (and few others).

But if you can take the system offline for sometime, then preferred way is to bring the system to single user mode and unmount /tmp

# init s

or

# shutdown -y 0

should bring you to the single user mode

Run the who -r command to see the current run state.

But if you have online JFS installed in your system then you dont even have to unmount /tmp to increase it

# swlist | grep -i online

See if online JFS is installed. If yes you dont have to unmount the file system to increase it. You can do it online.
Learn What to do ,How to do and more importantly When to do ?
Steven E. Protter
Exalted Contributor

Re: umount /tmp

You should be able to try this to umount /tmp

Its best to shut down all applicatons and databases first because this could distrupt them.

fuser -cu /tmp
# list processes. You may want to manually kill them.

fuser -cuk /tmp

umount /tmp

If this does not work the only way I've been in single single user mode is this:

shutdown -ry now

interupt at the 10 second prompt at console

bo

Y # means yes, interact

hpux -is

Now you are in single user mode.

OnlineJFS probably negates the need for this process. Good buy, per processor licensing.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com