The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > 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 06:55 AM
Array operation phamp008 Shell Programming and Scripting 3 01-18-2008 05:31 AM
string operation fongthai Shell Programming and Scripting 6 11-24-2006 06:26 AM
AIX 4.3 Openssh 3.7.1.0 Operation ripley AIX 2 03-07-2005 01:56 PM
multiple operation ajnabi Shell Programming and Scripting 2 09-01-2004 04:56 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-21-2007
Remi Remi is offline
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
  #2 (permalink)  
Old 05-22-2007
RTM's Avatar
RTM RTM is offline Forum Advisor  
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:36 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0