Solved

filesystem boot problems after a power cycle

Posted on 2002-04-18
5
274 Views
Last Modified: 2013-12-27
re: filesystem boot problems after a power cycle

I had a power outage which knocked out a solaris box.
Did fsck and fixed errors.
I can boot in single user mode and have access to file
systems.
But when boot in multi user mode - it gets stuck and hangs.
0
Comment
Question by:weinerk
5 Comments
 
LVL 4

Expert Comment

by:Otetelisanu
ID: 6949998
If you make system down must be
with
/etc/shutdown -y -i5 -g0
y is for yes in the fsck
look man shutdown

only shutdown make work from /etc/rc0.d
 all script with K*
0
 
LVL 5

Expert Comment

by:ecw
ID: 6950225
shutdown -y option means answer you to confirmation as to whether you realy want to shutdown, it's got nothing to do with fsck.

More importantly, where does the machine hang while goinf mutli-user?  Can you boot single user and then go multi successfully?
0
 
LVL 4

Accepted Solution

by:
jlms earned 300 total points
ID: 6950300
In the directory /etc there are several shell scripts that are executed depending to the level to which you want to take the machine.

There is a file called /etc/rc2 you can edit it to make sure every single step in the boot procedure is in a verbose manner.

The relevant part is the following:

if [ x$9 != "x2" -a x$9 != "x3" -a -d /etc/rc2.d ]
then
        for f in /etc/rc2.d/S*
        {
                if [ -s ${f} ]
                then
                        case ${f} in
                                *.sh)   .        ${f} ;;        # source it
                                *)      /sbin/sh ${f} start ;;  # sub shell
                        esac
                fi
        }
fi


Just add the -x option in the equivalent line above as in the example:

 *)      /sbin/sh -x  ${f} start ;;  # sub shell

and try to carry on in multiuser mode. You should see exactly where the machine is hanging and thus will be able to diagnose and troubleshoot  the problem.

0
 
LVL 1

Author Comment

by:weinerk
ID: 6952371
THANKS!!!!!!!!!!!!!!!!!!!!!!!!!!!

It gets stuck in /usr/sbin/nsrd
Any advice is welcome!!!
0
 
LVL 4

Expert Comment

by:jlms
ID: 6952823
Mmmm.

I don't have /usr/sbin/nsrd in my machine.

It may be something related to Legato Networker.

To find out to which software package does this command belong (if hopefully it was installed as part of a standard package) you can run the following:

grep nsrd /var/sadm/install/contents

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now