1821982 Members
4101 Online
109638 Solutions
New Discussion юеВ

Single User Mode

 
Fuad_1
Regular Advisor

Single User Mode

How can I reboot the server in single user mode.
Set goals, and work to achieve them
9 REPLIES 9
Scott Van Kalken
Esteemed Contributor

Re: Single User Mode

if it's an HPUX server

you do the following:

watch the console during boot.

there will be a massges to press the spacebar (or some other key if it's a workstation)

this will bring you to a prompt :

type in

bo pri

the make the OS boot from the primary disk

when asked if you would like to interact with IPL say "y" for yes.

you will get to an IPL prompt where you should type in

hpux -is

that's it, you'll be in single user mode.

Trap is that not all filesystems are mounted so you may have to activate volume groups and mount filesystems

to activate a volume group you use the command

vgchange -a y /dev/vgXX

Scott.


Roger Baptiste
Honored Contributor

Re: Single User Mode


shutdown -r -y now will reboot the server. Then, when the bootup process starts, interrupt it by pressing any key.
At ISL prompt type hpux -is , to get into single user mode.

HTh
raj
Take it easy.
Niraj Kumar Verma
Trusted Contributor

Re: Single User Mode

At ISL prompt type hpux -is


-Niraj
Niraj.Verma@philips.com

Re: Single User Mode

Use only command "shutdown" in HP-UX.
Automatically boot in "single user mode".
Wodisch
Honored Contributor

Re: Single User Mode

Hello,

shutting down to single-user mode is not supported any more, as some daemons stay up, and hence some filesystem cannot be unmounted (i.e. /usr, and /var).
So to be certain, reboot into single-user mode with the already mentioned procedure.
Then you still might have to issue an "mount -a" to be able to use tools like "vi", as those are NOT available as long as "/usr" isr not mounted...
ONLY the root-and-boot Volume Group (usually "vg00") is automatically activated upon booting, all the other need the "vgchange -a y /dev/vgXX" before you can mount any file-system.

But if you need to do some "maintainance" work with the LVM, then you have to start your kernel with "hpux -is -lm" and then you MUST NOT use any other Logical Volume, except for "root", "boot", and "primary swap", usually lvol1/lvol2/lvol3 - even trying to use another one may cause DAMAGE to the data stored there!

Just my $0.02,
Wodisch
Juan Manuel L├│pez
Valued Contributor

Re: Single User Mode

Just use " shutdown " command, so if you want to have more experience about this:

1 You can use " reboot " command or " shutdown .r ".
2 Wait until the " type any key on 10 seconds to stop the autoboot " message appears.
3 Them, choose the device whitch to use to boot : " bo px "
4 And choose " ISL ( YES ) "
5 Finally, type " hpux -is " and wait.

With this procedure, also you can start up your server on single user mode. You can verify that you have only /stand filesystem mount it. If you need to use the Unix commands, it is necesary to mount /usr.

Well, I hope thi help you.

Juanma.
I would like to be lie on a beautiful beach spending my life doing nothing, so someboby has to make this job.
kish_1
Valued Contributor

Re: Single User Mode

I suggest you go through man hpux , is very good
share the power of the knowledge
pap
Respected Contributor

Re: Single User Mode

Hi Fuad,


This is very simple no need to do any complecated tasks.
Just enter the commnad "shutdown" the machine will rebooted in Single user mode.

Thanks
-pap
"Winners don't do different things , they do things differently"
pap
Respected Contributor

Re: Single User Mode

Hi,
Just to make correcttion to my earlier response to this question.
Actually if you give shutdown command alone, it will not reboot the system, it will just bring the system to single user mode without rebooting.

Sorry about that.

-pap
"Winners don't do different things , they do things differently"