Mac OS X Server 10.0, 10.1: Setting Up Multiple Servers to Host User Home Directories

This document outlines the steps required to create a multi-server infrastructure using Mac OS X Server versions 10.0.3 to 10.1.5.
This document outlines the steps required to create a multi-server infrastructure using Mac OS X Server 10.0.3 to 10.1.5. Before proceeding, you should review Chapters 1 to 4 of the Mac OS X Server Administrator's Guide and the "Understanding and Using NetInfo" whitepaper. These documents are available at the Mac OS X Server product page (http://www.apple.com/macosx/server/). Please read through this entire document carefully before attempting to configure your servers.

Introduction

In this example scenario, one of the servers (parent1.apple.com) will be the NetInfo parent, providing the user and group information for the other servers on the network. There will be three other servers that can each provide various services including file, print and Web. For now, we will focus on each of the three servers hosting the Home directories for the students of a high school.

In addition to spreading user Home directories across multiple servers (for performance reasons), it may be useful to have the users on a specific server divided into multiple share points. One example would be to have the users distributed as follows:

server1.apple.com has the home directories for students with names A to H
server2.apple.com has the home directories for students with names I to Q
server3.apple.com has the home directories for students with names R to Z

As represented by Figure 1, the admin distributes users in different share points, reducing the number of folders per share point. This action reduces complexity to the user and increases security. Each of these servers has four share points in which the user Home directories are located, based upon the student's class year.




Figure 1 Four share points per server, named by class year, distributed by student last name across three servers

Overview of Steps

Preparation

Setting up the parent (parent1.apple.com)Set up and configure the NetInfo parent server (parent1)
Create the parent domain on parent1
Back up the local NetInfo database
Import all users for a given share point into the network domain of parent1
Setting up the children (server1-server3.apple.com)

Set up and configure the child servers (server1-server3)
Set up the parent-child relationship for each server
Back up the local NetInfo database of child servers (server1-server3)
Import users into the local domain of server1
Restore the local NetInfo domain on each child server from the backup
What's Next

Having read through this overview, you should:
Step-by-Step Walkthrough

Preparation

The students using this multi-server network will have their Home directories distributed across three servers, so we need to divide the list containing all users into three smaller lists. There should be a list for users with last names starting with different letter ranges, such as A to H, I to Q, and R to Z. Each of these three will then be broken into four lists representing the students graduating in the years 2002, 2003, 2004 and 2005. If these lists still contain more than 4000 users each, then you should consider further dividing them so that you do not import more than 4000 users at a time. Creating share points by class also simplifies the task of removing the large batch of graduates each year.

With this arrangement, the network load should be evenly spread across servers 1 to 3 as students log in and access their documents. The server parent1 will handle all authentication (and could be used as a Macintosh Manager server if some of the clients are using Mac OS 8 or Mac OS 9).

These user lists now need to be put into the XML format described on page 308 of the Mac OS X Server Administrator's Guide. That can be done in a number of ways including merging the list (as a database) into a text document. Other utilities are also available from third parties to generate an XML import file from a tab delimited text file, such as Passenger or MM Helper.

Example of the minimum user info required for XML import:

Note: See page 308 of the Mac OS X Server Administrator's Guide for more detail.

Setting Up the Parent Server (parent1.apple.com)

Installing the Software:
Setting Up the Server:
Creating the NetInfo Parent Domain:
Backing up the Users & Groups:
Importing the first user list (students A to H, 2002):
Importing the next user list (students A to H, 2003):
Checkpoint: At this point, the Users & Groups list in the Server Admin should display the complete list of users in the path: /NetInfo/root. Home directories will be created in the following steps.

Setting Up the Child Servers (server1, server2 and server3)

Installing the Software:
Setting Up the Server:
Creating the NetInfo Child Domain:
Setting up the share points:
Backing up the Users & Groups:
Importing Users to Create the Home Directories

Importing the user lists:
Restoring the local NetInfo Domain from Backup:
Additional information

For information concerning possible NetInfo configurations involving Macintosh Manager, please see technical document 106454: "Macintosh Manager 2.0: Common Setup Strategies".
Published Date: Feb 20, 2012