Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP! Can not get my sol 8 server to come up in run level 3 2

Status
Not open for further replies.

novicesolaris

Technical User
Sep 30, 2003
8
US
Hello All,

I have a sol 8 server that I have recently powercycled. It does not have a keyboard or a monitor attached to it.. When I finally was able to log onto the server. i noticed that it came back in single user mode and not run level 3 which is what it should have come back as. Has anyone ran across this issue before.. and can anyone please help me out on what files I need to check in order to ensure that when I power cycle this server again, it will come back in multi user mode?

Thank you so much for any help!
 
Possibly you could have a disk problem which is requiring
a fsck. You could check your /etc/vfstab (write this down
and save) and see what filesystem(s) should be mounted. Next do a df -k and see what filesystem(s) are actually mounted.

If you were lucky you could issue a fsck command
The fsck will fsck the filesystem(s) if possible. If you are able to fsck then do a " control d" to enter multi users.

If unable to fsck .
Then find the cd media and insert.
boot -s cdrom

after booting single from the cdrom , do fsck on the filesystems , use the output of the /etc/vfstab which was done in an above step.
if you didn't save the /etc/vfstab then:

fsck the root disk
mount the rootdisk to /mnt
cd /mnt/etc
more vfstab
look at the filesystems and fsck each.
If fsck was successful then do a reboot.
 
Find the file [tt]/etc/inittab[/tt]. Find the line with "[tt]initdefault[/tt]" in it. Make sure the second comma delimited field is a "[tt]3[/tt]". It should look like...
Code:
is:[b]3[/b]:initdefault:
Hope this helps.
 
Thank you BOTH for your help.. I checked in /etc/inittab and it does say "3" in it.. but Im still confused as to why the server would have come up in single user mode instead of just coming up in mult level mode. Do you know of any other files that I can check to make sure that if I power cycle this server again, that it will not come up in single user mode?

Thank you once again for your input.. they are very valued!
 
Try typing "[tt]who -r[/tt]". This will show you the current run level, but more importantly, it will show the previous run level. It's possible that something in your startup scripts has put it back to single user mode during the boot process. The last character in the output should be the previous run level. If it's a "3", something in your startup might be sending it back to single user mode.

Also, there could be a script in your startup that has an error and it stopping the startup at single user mode. This could be any script in [tt]/etc/init.d[/tt] or something in one of the "rc" directories ([tt]/etc/rc*.d[/tt]). You're have to check these.

Also, look for errors in the [tt]dmesg[/tt] command output. This gives you system diagnostic messages from the last boot.

Also try checking [tt]/var/adm/messages[/tt]. There might be a clus in there.

Hope this helps.
 
Great info!! Thank you for all the fabulous information!! This helps out a lot with troubleshooting the issue.

Many Many Thanks!!!
 
Please let us know your solution when you finally fix this. Thanks.
 
I must admit I tended to agree with Tuka's fsck diagnosis at first, but it would be interesting to see the conclusion if at all possible.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top