Build the Clients

Team-Fly    

Solaris™ Operating Environment Boot Camp
By David Rhodes, Dominic Butler
Table of Contents
Chapter 12.  Naming Services and NIS


Next we'll configure the clients. The reason for doing these now is that the slaves need to be built as clients before they can become slave servers. We'll look at the reasons for this later on in the section "Build the Slave Servers" on page 296.

Building the client follows similar steps to building the master. First we need to set the domainname so that ypbind knows which domain the machine is a client of, and therefore which domain to search for a server in. After that we can run ypinit again to initialize the clientwe'll use carbon for our example here:

 carbon# domainname nis.solarisbootcamp.com carbon# domainname > /etc/defaultdomain carbon# domainname nis.solarisbootcamp.com carbon# 

Now start the actual client installation by running ypinit, specifying the "client" option:

[View full width]

carbon# ypinit -c In order for NIS to operate successfully, we have to construct a list of the NIS servers. graphics/ccc.gifPlease continue to add the names for YP servers in order of preference, one per line. When you are done with the list, type a <control D> or a return on a line by itself. next host to add: tin next host to add: fluorine next host to add: iodine next host to add: ^D The current list of yp servers looks like this: tin fluorine iodine Is this correct? [y/n: y] carbon#

Simpleypinit doesn't actually need to do very much for the client, so let's try to start the NIS daemons and make sure everything runs OK:

 carbon# /usr/lib/netsvc/yp/ypstart starting NIS (YP server) services: ypbind done carbon# 

This time we can see that the only daemon started is the client side (ypbind). The other big difference is that we cannot bind to ourselves, so we must be bound to tin since it's the only available server:

 carbon# ypwhich tin carbon# 

Lastly, we'll update the switch file to use NIS as we did for the master:

 carbon# cp /etc/nsswitch.nis /etc/nsswitch.conf carbon# 

Good. That appears to be working OK, so we can carry out these steps on all the remaining machines that will be configured as clients.


    Team-Fly    
    Top
     



    Solaris Operating Environment Boot Camp
    Solaris Operating Environment Boot Camp
    ISBN: 0130342874
    EAN: 2147483647
    Year: 2002
    Pages: 301

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net