Apple x Tablet User Manual


 
Setting Up NetInfo Hierarchies 55
This command copies the database tagged “myschool” from its host (server1) to a database
having the same tag on the current computer, server2.
5 Restart server2. Now server2 hosts two master domains and a clone:
[server2:~] root# ps aux | grep netinfod
root 183 0.0 0.4 1784 500 ?? S 0:00.34
netinfod local (master)
root 184 0.0 0.3 2168 404 ?? S 0:00.12
netinfod myschool (clone)
root 185 0.0 0.3 1784 408 ?? S 0:00.16
netinfod network (master)
root 271 0.0 0.2 1384 304 std S+ 0:00.02
grep netinfod
Replacing a Master With a Clone
If a computer hosting a NetInfo master database becomes unusable, a clone can be used to
replace it. Follow these steps:
1 Disconnect the computer hosting the damaged master from the network.
2 Log in as the root user to one of the computers hosting a clone of the damaged master.
3 Edit /etc/hostconfig and change the values of the name variable to the name of the master
database.
4 Use the Network pane of System Preferences to change the computer’s IP address to
match that of the computer hosting the damaged master domain.
5 Restart the computer. The computer takes the name and IP address of the former
master’s computer and now hosts the master domain. Depending on your network
configuration, this computer might need to be moved to the location of the former
master’s computer.
6 If the former master computer hosted home directories, ensure that they are re-created
on the new master’s computer.
7 Although the clone now functions as a master, NetInfo has an entry for it as a clone. To
remove the entry, in NetInfo Manager open the former clone and delete the “./network”
value from the serves property in the machines subdirectory. Since there is no longer a
machines entry with the former clone’s name, it should no longer be recorded as a clone
server for the master domain.
If you reconnect the former master’s computer to the network, use a different host name
and IP address so they don’t conflict with those of the new master domain’s computer.