You can also determine the machine architecture the platform directory in /usr/platform is likely symbolically linked to:% uname -i SUNW,Ultra-5_10
If clients and their server have the same processor architecture but different platform architectures, then they can share /usr but /usr/platform needs to include subdirectories for both the client and server platform architectures. Platform specific binaries for each client are normally placed in /export on the server. In Solaris, an unbundled product called AdminSuite is used to set up servers for diskless NFS clients. This product is currently available as part of the Solaris Easy Access Server (SEAS) 2.0 product and works on Solaris up to Solaris 7. For each new diskless client, the AdminSuite software can be used to perform the following steps:% uname -m sun4u
The first line indicates the name of the diskless client and the location of its root filesystem, and the second line gives the location of the client's swap filesystem. Note that:buonanotte root=sunne:/export/root/buonanotte \ swap=sunne:/export/swap/buonanotte
The rw option prevents other diskless clients from accessing this filesystem, while the root option ensures that the superuser on the client will be given normal root privileges on this filesystem.share -F nfs -o rw=vineyard,root=vineyard /export/root/vineyard share -F nfs -o rw=vineyard,root=vineyard /export/swap/vineyard
You then double click on the Host Manager icon. Host Manager comes up as simple screen with an Edit menu item that lets you add new diskless clients, modify existing ones, and delete existing ones. When you add a new diskless client, you have to tell it that you want it to be diskless. One reason for this is that Host Manager is intended to be what its name implies: a general means for managing hosts, whether they be diskless, servers, standalone or other types. The other reason is that "other types" includes another kind of NFS client: cache-only clients (referred to as AutoClient hosts in Sun's product documentation). There is another type of "diskless" client, which Host Manager doesn't support: a disk-full client that is installed over the network. A client with disks can have the operating system installed onto those disks, via a network install (netinstall ). Such netinstall clients are configured on the server in a manner very similar to how diskless clients are, except that unique root and swap filesystems are not created, and when the client boots over the network, it is presented with a set of screens for installation. We will discuss netinstall later in this chapter, in Section 8.8, "Brief introduction to JumpStart administration".# solstice &
Filesystem | Contents |
---|---|
/export/root | Root filesystems |
/export/swap | Swap filesystems |
/export/exec | /usr executables, libraries, etc. |
The /export/exec directory contains a set of directories specific to a release of the operating system, and processor architecture. For example, a Solaris 7 SPARC client would look for a directory called /export/exec/Solaris_2.7_sparc.all/usr. If all clients have the same processor architecture as the server, then /export/exec/<os-release-name>_<processor_name>.all will contain symbolic links to the server's /usr filesystem.
To configure a server with many disks and many clients, create several directories for root and swap filesystems and distribute them over several disks. For example, on a server with two disks, split the /export/root and /export/swap filesystems, as shown in Table 8-2.Disk | Root Filesystems | Swap Filesystems |
---|---|---|
0 | /export/root1 | /export/swap1 |
1 | /export/root2 | /export/swap2 |
Some implementations (not the AdminSuitesoftware) of the client installation tools do not allow you to specify a root or swap filesystem directory other than /export/root or /export/swap. Perform the installation using the tools' defaults, and after the client has been installed, move its root and swap filesystems. After moving the client's filesystems, be sure to update the bootparams file and NIS map with the new filesystem locations.
As an alternative to performing an installation and then juggling directories, use symbolic links to point the /export subdirectories to the desired disk for this client. To force an installation on /export/root2 and /export/swap2, for example, create the following symbolic links on the diskless client server:Verify that the bootparams entries for the client reflect the actual location of its root and swap filesystems, and also check the client's /etc/vfstab file to be sure it mounts its filesystems from /export/root2 and /export/swap2. If the client's /etc/vfstab file contains the generic /export/root or /export/swap pathnames, the client won't be able to boot if these symbolic links point to the wrong subdirectories.server# cd /export server# ln -s root2 root server# ln -s swap2 swap
8. Diskless Clients | 8.3. Diskless client boot process |
Copyright © 2002 O'Reilly & Associates. All rights reserved.