Solved

filesystem boot problems after a power cycle

Posted on 2002-04-18
5
275 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
dot directory in FreeBSD??? 4 79
Invalid password trying to cannect to Unix server 2 78
LINUX ZIP - UNCOMPRESS WINDOWS PATH 3 97
Unix/bash: scripted arithmetic 13 99
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating 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…

786 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