Operating System - HP-UX
1834827 Members
2116 Online
110070 Solutions
New Discussion

Re: Changing back and forth between single-user mode

 
David Owens_1
Advisor

Changing back and forth between single-user mode

I need to take my rp5405 server to single-user mode in order to extend the /tmp volume. Is there a way, possibly using init, to go to single-user mode and switch my run-level back after extending the logical volume without rebooting?

I know I can startup in single-user mode by interupting the boot sequence. However, I take a certain amount of pride in uptime on my Unix servers and prefer not to reboot.

Thanks in advance.
6 REPLIES 6
Gerald Taylor
Frequent Advisor

Re: Changing back and forth between single-user mode

You can log onto console and use "init" to switch run levels

man init

Gerald
Pete Randall
Outstanding Contributor

Re: Changing back and forth between single-user mode

David,

You can use "init 1", but this is not true single user mode. Not all the process get stopped and the file systems don't get un-mounted. You *might* be able to unmount /tmp and extend it but I doubt it.

Returning to multi-user mode is accomplished by running "init 3".


Pete

Pete
Pete Randall
Outstanding Contributor

Re: Changing back and forth between single-user mode

David,

Sorry - make that "init S"



Pete

Pete
Sanjay_6
Honored Contributor

Re: Changing back and forth between single-user mode

Hi David,

You may have to boot the system in single user mode to allow you to extend /tmp.

If you have OnlineJFS, you can extend the size of /tmp without any problem / no single user mode / no boot into single user.

Else you may have to boot the system in single user mode, extend /tmp and change the init level to 3.

"bo pri" after interrupting the boot process, selecy "y" to interact with IPL, & "hpux -is" at the ISL prompt" is the normal command to boot into single user mode .

Hope this helps.

Regds
Sanjay_6
Honored Contributor

Re: Changing back and forth between single-user mode

Hi,

Here is a documented process on how to extend /tmp without onlineJFS.

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000075563685

The doc id is AUSRCKBRC00001468.

Hope this helps.

Regds
Stf
Esteemed Contributor

Re: Changing back and forth between single-user mode

Hello,

to go in single user mode type "init 1"
then "fuser -ku /tmp"
and then you should be able to extend /tmp...

Stf ;-)