Solaris Troubleshooting NIS : Disabling NIS so machine can boot when network is down

It is usual problem for server to hang in middle of the boot process, when they are configured for NIS and not able to connect to the server while booting. In this case, the first thing that needs to be done is to reconfig the system to be a standalone.


Procedure 1:

1. Boot to single user mode with

ok>  boot -s

and  then comment the “Domain name” entry in  /etc/defaultdomain, now system boots all the way.

Procedure 2:  

1.  Boot to CDROM with

ok>  boot cdrom -s 

2. mount root disk  to /a with

#mount /dev/dsk/c0t0d0s2 /a

3. Edit the file /etc/nsswitch.conf

# cd /a/etc,
# cp nsswitch.conf  nsswitch.conf.orig
# cp nsswitch.files  nsswitch.conf
# mv /var/yp/ypbind  /var/yp/ypbind.orig
# umount /a
# fsck /dev/rdsk/c0t0d0s2
# reboot.

Ramdev

Ramdev

I have started unixadminschool.com ( aka gurkulindia.com) in 2009 as my own personal reference blog, and later sometime i have realized that my leanings might be helpful for other unixadmins if I manage my knowledge-base in more user friendly format. And the result is today's' unixadminschool.com. You can connect me at - https://www.linkedin.com/in/unixadminschool/

2 Responses

  1. September 16, 2015

    […] Read – Disabling NIS so machine can boot when network is down […]

  2. September 17, 2015

    […] Read – Disabling NIS so machine can boot when network is down […]

What is in your mind, about this post ? Leave a Reply

Close
  Our next learning article is ready, subscribe it in your email

What is your Learning Goal for Next Six Months ? Talk to us