Operating System - HP-UX
1831645 Members
1913 Online
110029 Solutions
New Discussion

Server starting in single user mode only?

 
Irfan Ahmed_1
Advisor

Server starting in single user mode only?

Hi all,
My server is starting in single user mode everytime I restart. Also I am not able to use most of the commands. If I do cd /directory & then again inside that
cd /directory it is not working.
What should I do?

Thanks
-Irfan
7 REPLIES 7
RAC_1
Honored Contributor

Re: Server starting in single user mode only?

Boot into single user mode. Do a mountall
Now do
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/dsk/cxtxdx

User the real boot disk.
lvlnboot -R
lvlnboot -v

Reboot. Now it should boot into multiuser mode.

Anil
There is no substitute to HARDWORK
Stf
Esteemed Contributor

Re: Server starting in single user mode only?

Hello,

try to change your AUTO file in boot LIF area like this:

# mkboot -a "hpux /stand/vmunix" /dev/rdsk/cXtZdY
where /dev/rdsk/cXtZdY is your boot disk

it is better to make an ignite tape before...

Stf ;-)
Suraj_2
Valued Contributor

Re: Server starting in single user mode only?

Hi Irfan

Please check the entries of /etc/inittab

Check for the entry
initdefault

It may be pointing to single user mode.
By default it will be run level 3 with NFS Server run option.

Just a thought

Rgds
Suraj
Victor Fridyev
Honored Contributor

Re: Server starting in single user mode only?

Hi,

Could you please try to find the reason of such a behaviour ?
First, stop the boot and answer "Y" on the question whether you want IPL.
If the boot fail, you have to edit mkboot as:
mkboot -a "hpux /stand/vmunix" /dev/rdsk/XX
after boot completion
If the boot from the primary disk is OK, give the command:
hpux -is
This will boot the computer into single-user mode.
Run
fsck -y
mount -a
and look at /etc/inittab file
If initdefault entry is not 3, update it as following:
init:3:initdefault:
and run
init 3
Look at error messages. If everything is OK, reboot the computer, it must go level 3

HTH

Entities are not to be multiplied beyond necessity - RTFM
Victor BERRIDGE
Honored Contributor

Re: Server starting in single user mode only?

Hi,
What kind of server is it? Did you change any hardware lately?
If it boots single user, you must have some error message on the console explaining whats going on unless someone changed the initdefault but since you seem to have a strange behaviour I would look for error message, knowing the type of box and OS would help here...

All the best
Victor
Cheryl Griffin
Honored Contributor

Re: Server starting in single user mode only?

Are you seeing errors on the console during boot?
"Downtime is a Crime."
kamalnathan
Occasional Advisor

Re: Server starting in single user mode only?

check the root shell,
it shold be "/bin/sh" in /etc/passwd file.