LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-23-2013, 04:19 AM   #1
robbtek
LQ Newbie
 
Registered: Mar 2009
Posts: 26

Rep: Reputation: 0
nis master server and slave, client problem


My server/client OS is CentOS.

I have setup a nis master and slave server.
Master and slave server works fine, but I have problem with client configuration.

Test example from client:

Code:
ypcat -h nis.master.my_domain passwd.byname | grep PIPPO
PIPPO:x:6106:6106::/home/PIPPO:/bin/bash

ypcat -h nis.slave.my_domain passwd.byname | grep PIPPO
PIPPO:x:6106:6106::/home/PIPPO:/bin/bash
I have setup a file /etc/yp.conf

Code:
domain my_domain server nis.master.my_domain
domain my_domain server nis.slave.my_domain
After that I restart service ypbind

Code:
/etc/init.d/ypbind restart
The is that client using slave instead of master server .

Code:
ypwhich 
nis.slave.my_domain
 
Old 08-26-2013, 09:18 AM   #2
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 99
robbtek,

I am not sure I understand the problem... from the information that you posted, it appears the client is using NIS correctly... are you simply wondering why the client is using the slave server instead of the master?
 
Old 08-26-2013, 10:19 AM   #3
robbtek
LQ Newbie
 
Registered: Mar 2009
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by netnix99 View Post
are you simply wondering why the client is using the slave server instead of the master?
Yes, all client using slave instead of master nis server .
There is an error on the client configuration ?

Thanks
 
Old 08-26-2013, 10:56 AM   #4
netnix99
Member
 
Registered: Jun 2011
Distribution: redhat, CentOS, OpenBSD
Posts: 298

Rep: Reputation: 99
No, not at all.... technically, the NIS clients should talk to the slave-servers, and the NIS slave-servers get their information from the NIS master(s). However, if you have only one master and only one slave, and the slave server goes down, an NIS client connected to that server will try to find another NIS server that is up and/or faster, and it will connect to the master at that point.

You can test this by shutting down the interface on the slave-server and checking to see if the client fails over to the NIS master. If this is a production network, I would not suggest doing this when it could affect the users. I am not sure how long it takes for the clients to switch over.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how the NIS information will propagate fron NIS master to NIS slave & vicevarsa? dezavu Linux - Server 5 10-14-2011 04:08 AM
Distribute securenets file from NIS master to slave? AlucardZero Linux - Server 1 01-26-2011 06:29 AM
NIS Client can not login to NIS Master Server Free_beer Ubuntu 3 10-09-2006 03:57 PM
Nis master and slave servers on diff architecture breenbaron Linux - Networking 0 07-25-2004 10:34 AM
NIS Solaris 8 (MASTER) ---> RH9 NIS (Slave) Help x86br Linux - Networking 4 05-12-2003 06:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration