This section describes two different methods of setting up an NIS+ namespace:
Before you start setting up NIS+ at your site, you must do the following:
To create the sample namespace, you need only do steps 2, 4, and 5 above. The tutorial does the NIS+ layout planning for you and chooses a domain name.
To plan the structure of your NIS+ namespace, do the following:
See Designing the NIS+ Namespace for a full description of these steps and use the Configuration Worksheets to help plan your namespace.
You do not need planning to practice the tutorial with test machines, but be sure to plan your site's hierarchy before setting up your real NIS+ namespace.
Once you have determined the domain structure of your namespace, choose the servers that will support them. Differentiate between the requirements imposed by NIS+ and those imposed by the traffic load of your namespace.
NIS+ requires at least one server, the master, for each NIS+ domain. Although you can assign any number of replicas to a domain, more than 10 per domain is not recommended. The number of servers a domain requires is determined by the traffic load and the configuration of its servers.
Here are some guidelines for determining how many servers you will need:
Note: If the root master server is unavailable and the NIS+ domain is being served solely by a replica, you cannot change information in the NIS+ tables. You can obtain information from a replica, but changes to the master tables can be made only when the master server is available.
How much disk space you need depends on four factors:
AIX 4.3.3 BOS software requires at least 32 MB of disk space. You must also consider the disk space consumed by other software the server may use. For more details on the BOS installation and requirements, see the AIX Version 4.3 Installation Guide.
Although NIS+ is part of the AIX 4.3.3 distribution, it is not automatically installed in the base installation. NIS+ directories, groups, tables, and client information are stored in /var/nis. The /var/nis directory uses about 5 KB of disk space per client. For example purposes only, if a namespace has 1000 clients, /var/nis requires about 5 MB of disk space. However, because transaction logs (also kept in /var/nis) can grow large, you may want additional space per client--an additional 10-15 MB is recommended. In other words, for 1000 clients, allocate 15 to 20 MB for /var/nis. You can reduce this if you checkpoint transaction logs regularly.
If you plan to use NIS+ concurrently with NIS, allocate space equal to the amount you are allocating to /var/nis for /var/yp to hold the NIS maps that you transfer from NIS.
You also need swap space equal to three times or more of the size of the NIS+ server process--in addition to the server's normal swap-space requirements. The size of the rpc.nisd process is shown by the ps -efl command. Most of this space is used during callback operations or when directories are checkpointed (with nisping -C) or replicated, because during such procedures, an entire NIS+ server process is forked.
If an NIS domain already exists at your site, you can use the same flat domain structure for your NIS+ namespace. (You can change it later to a hierarchical structure.) Read Chapter 3, Moving from NIS to NIS+ for important planning and preparation information. The NIS+ scripts let you start NIS+ with data from NIS maps. Using NIS+ Setup Scripts shows you how to use the NIS+ scripts to create a NIS+ namespace from either system files or NIS maps.
For the scripts to run smoothly, however, you must prepare your existing namespace (if you have one) for conversion to NIS+.
Key preparations are summarized below:
If you have more than one domain, make copies of the blank
worksheets.
Servers, Credentials, Directories, and Groups Worksheet | ||||||
---|---|---|---|---|---|---|
Domain: | ||||||
Servers | Type | Name | Specifications | |||
Master | ||||||
First Replica | ||||||
Second Replica | ||||||
Credentials | Type of Principal | Type of Credential | ||||
Servers | ||||||
Clients | ||||||
Administrators | ||||||
Users | ||||||
Rights | Types of Objects | Category & Rights | ||||
Directories | N | O | G | W | Use Defaults? | |
Groups | N | O | G | W | Description | |
NIS+ Tables Worksheet | ||||||
---|---|---|---|---|---|---|
Domain: | ||||||
Rights | Types of Objects | Category & Rights | ||||
Tables | N | O | G | W | Notes | |
bootparams | ||||||
hosts | ||||||
passwd | ||||||
cred | ||||||
group | ||||||
netgroup | ||||||
mail_aliases | ||||||
timezone | ||||||
networks | ||||||
netmasks | ||||||
ethers | ||||||
services | ||||||
protocols | ||||||
rpc | ||||||
auto_home | ||||||
auto_master | ||||||
sendmailvars | ||||||
client_info |