1823472 Members
2353 Online
109660 Solutions
New Discussion юеВ

Help with init 3

 
SOLVED
Go to solution
Alessandra Di Paola
Occasional Advisor

Help with init 3

Hello everybody,

after shutdown and reboot the WS wait in single user mode. I can access to CDE only typing init 3 at the prompt.

I have checked the inittab file and seems to be ok (init:3:initdefault:)

What can I do now?
Thanks in davance for any help.
Regards,
Alessandra
13 REPLIES 13
Sridhar Bhaskarla
Honored Contributor

Re: Help with init 3

Hi Alessandra,

Checkup your auto string and make sure it doesn't have -is with it.

Find your boot disk by lvlnboot -v or strings /etc/lvmtab

then do a

lifcp /dev/dsk/cxtyd0:AUTO -

This is the auto string that is used by ISL to bring up the system. Make sure it doesn't have -is. It should be looking something like this.

hpux -lq (;0)/stand/vmunix

or

hpux

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
A. Clay Stephenson
Acclaimed Contributor

Re: Help with init 3

Check /etc/rc.log for errors.
If it ain't broke, I can fix that.

Re: Help with init 3

Can you send us the /etc/rc.log?

Re: Help with init 3

Perhaps your boot string specifies single user mode... this owuld override the initdefault setting.
What does your boot string say...

Identify the boot disk using lvlnboot -v vg00

# lvlnboot -v vg00
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t5d0 (8/4.5.0) -- Boot Disk
/dev/dsk/c0t9d0 (8/4.9.0)
/dev/dsk/c0t8d0 (8/4.8.0)
Boot: lvol1 on: /dev/dsk/c0t5d0
Root: lvol3 on: /dev/dsk/c0t5d0
Swap: lvol2 on: /dev/dsk/c0t5d0
Dump: lvol2 on: /dev/dsk/c0t5d0, 0

Then take a look at the boot string currently defined by copying the LIF file to your terminal device:

# lifcp /dev/dsk/c0t5d0:AUTO `tty`

If it has a '-i' argument on it, then this will be the run level the server will boot to.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Alessandra Di Paola
Occasional Advisor

Re: Help with init 3

Thanks to all,
The auto string does not have -is inside (it says hpux)
I attach the rc.log file as requested.

Regards,
Ale


Wodisch
Honored Contributor

Re: Help with init 3

Hello Alessandra,

try to rename that link "/sbin/rc3.d/S991vuelogin.rc" to something like "/sbin/rc3.d/s991vuelogin.rc" (lower case starting letter) as there seem to be some problems with the VUE startup and it might block the CDE startup.

Just guessing here,
Wodisch
A. Clay Stephenson
Acclaimed Contributor

Re: Help with init 3

Hi:

We need to be clear on a couple of things:

1) Does your box really stop ar run-level 1 after a reboot? Do a who -r after a reboot and make sure.

2) Whereever your box stops, we need an /etc/rc.log at that point - before the init 3 is run manually.

Clay


If it ain't broke, I can fix that.
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Help with init 3

Hi (again),

What is the shell for the root account?. Try changing it to /sbin/sh and see if it works. If the shell is /usr/bin/(k)sh, the system will think it as an unknown shell will get into single user mode without invoking runlevel 3.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Darrell Allen
Honored Contributor

Re: Help with init 3

Hi Alessandra,

I believe your system is booting into run level 3 - it just isn't completing the transition. /sbin/rc isn't finishing else you would see at the end of your rc.log something like:

**************************************************
HP-UX run-level transition completed
Sat Nov 24 11:41:56 EST 2001
**************************************************

When you try to boot again, before doing the init 3 enter "who -r" to see what run-level you're at. Also, ps -ef | grep rc to see if /sbin/rc is running. This will verify my theory.

Do you want to run VUE? If not, disable it from starting (mv /sbin/rc3.d/S991vuelogin.rc to /sbin/rc3.d/s991vuelogin.rc). You should be able to get CDE since you are running S990dtlogin.rc.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Alessandra Di Paola
Occasional Advisor

Re: Help with init 3


Grazie, Thank you very very much to ALL!

SPECIALLY TO Sridhar.

Changing the root shell to /sbin/sh has fixed the problem.

Regards,
Ale

P.S I tried to assign points but I have not understood how to do it...anyway thanks again to all for the time spent with me!

Alessandra Di Paola
Occasional Advisor

Re: Help with init 3

Ophs..now the assign point button works..
Ciao,
Ale
Darrell Allen
Honored Contributor

Re: Help with init 3

Hello again,

In case no one else said it, never change root's shell in /etc/profile on an HP from /sbin/sh. To do so invites many problems later (such as when trying to boot in single user or maintenance mode).

If you prefer working in an alternate shell when root, simply start a sub-shell.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Ivan Ferro
New Member

Re: Help with init 3

non ci posso credere!!!!
ma sei proprio tu?

ciao

ivan.ferro@aaasgr.it