Summary: Question on NIS Slave

From: Tristan Hau (cowby@hotmail.com)
Date: Tue Sep 22 1998 - 21:08:12 CDT


Hi,

  I've got > 10 answers in just one day and here are my org question and
sum.

Q & A
=====

Hi,

  We are going to setup an NIS env. and we have the following questions
:

1) Is it a good idea to place an slave on each sub-net ?

>> Most ppl told me that it is a good idea to reduce the sub-net traffic
   THANKS TO :-> vikram@miel.mot.com

>> Depends. If you have a homogeneous mix of Solaris 2.5.1 machines and
above it is
not strictly necessary to have a slave on each sub-net. This is because
ypbind
uses multicast instead of broadcast for binding purposes.
   THANKS TO :-> blained@kostabi.gdls.com

>> you need to have an nis slave server on each subnet. technically,
nis does not
cross subnets. you can force it using the ypsetme option, but that has
other
not so good ramifications. the client always binds to the server that
responds
first. that may or may not have any relation to the order in which you
enter
host names in the ypinit -c command. binding is dynamic and will change
throughout the day.
   THANKS TO :-> csmith@dalsemi.com

    

2) If we use "ypinit -c" in the client, we can add many servers
as needed. say

   # ypinit -c

   .......
   next host to add : host1
   next host to add : host2
   next host to add : hostn

   Then if we start the ypstart script, is it true (the first server
on the above list) that the client will always bind on host1 ?

>> You can list as many servers to bind to using ypinit -c. They will be
tried all
at once (kinda like a spray) although the order of servers gives some
preference. Whoever responds first will be the server bound to
(generally this
is the first in list).
   THANKS TO :-> blained@kostabi.gdls.com

3) If host1 (our master) is crashed, will the client rebind to the
next nearest one ?

>> Will re-bind but need to wait for serval mins.
   THANKS TO :-> COOKEEA@mail.northgrum.com

4) Very interested in : How can we know what is the name of the
slave server(s) in our lan. Are there any command to do it ?

>> Yes, "ypcat -k ypservers"

    TOO MANY FRIENDS TO TAHNK TO .... :)

    Again, thanks to everybody who took care of my questions and sorry
if I didn't mentioned your big name here. I hope you don't mind ...

Tristan

-----------------------------------------------------------

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:49 CDT