The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cat operation trichyselva UNIX for Dummies Questions & Answers 0 03-24-2008 03:55 AM
Array operation phamp008 Shell Programming and Scripting 3 01-18-2008 02:31 AM
string operation fongthai Shell Programming and Scripting 6 11-24-2006 03:26 AM
AIX 4.3 Openssh 3.7.1.0 Operation ripley AIX 2 03-07-2005 10:56 AM
multiple operation ajnabi Shell Programming and Scripting 2 09-01-2004 01:56 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-21-2007
Registered User
 

Join Date: Nov 2006
Posts: 36
RPC failure on yp operation

Hi....I just changed the hostnname on some of my servers.., changing the NIS master hostname first...

I was able to bring the NIS master back up but when I tried to si - to a different group of users, I got the following error message:
RPC failure on yp operation

Anyone knows what else I need to change.

Thanks
Remi
Reply With Quote
Forum Sponsor
  #2  
Old 05-22-2007
RTM's Avatar
RTM RTM is offline
Hog Hunter
 
Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
It would be helpful if you told us exactly what you did to change the hostname? What files you changed, commands you ran, what OS/version you are running?

Be careful using sys-unconfig - warning note in doc id 3602
Quote:
NOTE: When using this command on a system that is a master or slave within a NIS, NIS+, DNS, etc., use special care to ensure the system being unconfigured has it's services redirected to another system before unconfiguring. Failure to do so could possibly erase domain mapping directories or cause inconsistent behavior of the domain.
And you might want to look at doc id 21105
Quote:
This article assumes that the new NIS master server will be running
Solaris 2.6 or higher. If the new server will be running an
older Solaris OS, such as Solaris 2.5.1, then NSKIT 1.2 will
need to be installed on the system first. Refer to Infodoc #11989
for installation NSKIT instructions.

1. On the old NIS master backup or make a copy of
any and all nis files used to build the maps. These
might live in the /etc directory or whatever directory you
specified for DIR= and PWDIR= in the /var/yp/Makefile.
Here is a possible list of files, though you may not
need them all.

passwd
shadow
group
hosts
ethers
networks
rpc
services
protocols
netgroup
bootparams
aliases
publickey
netid
passwd.adjunct
group.adjunct
netmasks
timezone
auto.master
auto.home

2. On the new NIS master copy all the files over from the old NIS master
machine and put them in the directory used to store the database files,
i.e. /var/etc.

3. Modify the /var/yp/Makefile to reflect this directory.
Have the Makefile DIR and PWDIR variable point to the correct directory for
the target files.

From the Makefile:

DIR =/etc <---- this should point to location of all files aside
from the passwd/shadow file.
* /var/etc for this example

PWDIR = /etc <---- this should point to the passwd/shadow file
DOM = `domainname` * /var/etc for this example


4. If the new master is currently an NIS client, then remove NIS
from this machine prior to configuring it as the new NIS master.
See section 2.9 of the NIS PSD. Refer to Infodoc #12000.

5. Bring down the old NIS master.

6. Setup the new Solaris machine as a NIS Master according
the NIS PSD (infodoc #12000) section 2.1: How to Setup a NIS Master Server

Note: ***** the /var/yp/Makefile was modified earlier ******

7. Once the new NIS master is configured, then remove NIS from the old
master. If you plan to reconfigure the old master as an NIS client or slave,
then refer to section 2.2 and 2.3 of the NIS PSD to set it up as a slave or
section 2.5 to set it up as a NIS client.

8. If you are keeping the hostname and IP address of the NIS master the same,
then you will not have to rebuild the slaves. If the new NIS master will have
a different IP address or hostname, then you will need to remove NIS from the
slave(s) and rebuild all of the NIS slave servers. Refer to section 2.2 and 2.3
of the NIS PSD to set up a NIS slave.

9. All the nis clients will now bind to either a slave(s) currently configured
or the new NIS master. If you ran the ypinit -c to setup the clients, then you
will need to edit the file,

/var/yp/binding/'domainname'/ypservers

adding the name of the new NIS master to the list of servers and also removing
the name of the old NIS master.

If the clients are running ypbind with the -broadcast option, then
this step is not necessary.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:27 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0