Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ypservers file vs. ypservers map? 1

Status
Not open for further replies.
Aug 8, 2002
65
US
OK, I know they aren't the same thing. So far I have:

If you don't have a ypservers file you must start up ypbind with a -broadcast option and have a NIS master or slave on the same subnet. Makes sense.

Now, if I have a ypservers file, are those the only servers that the machine will bind to? What is the role of the ypservers NIS map at that point? If I only have one machine in my ypservers file and it fails, will a machine fail over to a slave listed in the ypservers map?

Just about to replace our NIS master and I want to be sure how the map/file fit into the grand scheme.

Thanks,
Brian
 
In my experience if you specify a server in the ypservers file, the client will only try to bind to whats listed. So if your primary goes down without the secondardy listed it will hang. The ypservers map I believe is for the NIS server itself to know who to propagate the maps to.
 
So I know that if I don't have a ypservers file the machine broadcasts for a NIS server/slave on the subnet. If there is more than one slave on a given subnet, will the machine broadcast again in case of a failure of the server it is bound to?

I'm trying to achieve failover without having to maintain a bunch of files.
 
Yes, it should resend out another broadcast if your primary server goes down.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top