The Solaris 8 software release includes new diskless client functionality.
For the most current man pages, use the man command. The Solaris 8 Update release man pages include new feature information that is not in the Solaris 8 Reference Manual Collection.
For the 1/01 release, Diskless Client Management updates the Solstice AdminSuiteTM 2.3 Diskless Client tool. The AdminSuite 2.3 Diskless Client tool is GUI based, whereas Diskless Client Management consists solely of a command-line interface.
The following are supported:
SPARC architecture or IA OS servers that run the Solaris 8 1/01 operating environment.
SPARC architecture diskless clients that run either the Solaris 8 1/01, Solaris 2.7, or Solaris 2.6 operating environments from their OS server.
A diskless client is a workstation that depends on an OS server, or host, for its operating system, software, and storage. A diskless client mounts its root (/), /usr, and other file systems from its OS server. A diskless client has its own CPU and physical memory and can process data locally. However, a diskless client cannot operate if it is detached from its network or if its OS server malfunctions. A diskless client generates significant network traffic because of its continual need to function across the network.
You use the command-line interface to work with the Diskless Client Management tool. By writing your own shell scripts and using the commands shown in Table 4-1, you can easily set up and manage your diskless client environment.
Table 4-1 Diskless Client Management Commands
Command |
Subcommand |
Task |
---|---|---|
/usr/sadm/bin/smosservice |
add |
Add OS services |
delete |
Delete OS services |
|
list |
List OS services |
|
patch |
Manage OS service patches |
|
/usr/sadm/bin/smdiskless |
add |
Add a diskless client to an OS server |
delete |
Delete a diskless client from an OS server |
|
list |
List the diskless clients on an OS server |
|
modify |
Modify the attributes of a diskless client |
You can obtain help on these commands in two ways:
Usage statements - To display a usage statement, use the -h option after you type the command and subcommand. For example, to display the usage statement for smdiskless add, type /usr/sadm/bin/smdiskless add -h.
Man pages - To view a man page, type man and the command name. For example, to display the man page for smdiskless, type man smdiskless.
Users can make use of either a subset or all of the Diskless Client Management commands, according to the rights to which they are assigned. Table 4-2 lists the rights that are required to use the Diskless Client Management commands.
Table 4-2 Required Rights
Right |
Command |
Task |
---|---|---|
Basic Solaris User,Network Management |
smosservice list smosservice patch smdiskless list |
List OS services List OS patches List diskless clients |
Network Management |
smdiskless add |
Add diskless clients |
System Administrator |
All commands |
Before you begin to set up your diskless client environment, make sure you have the required space available for each partition that is created. Table 4-3 lists the disk space requirements for each Diskless Client Management partition.
Table 4-3 Disk Space Requirements
Partition |
Required Space (MB) |
---|---|
/export/Solaris_version |
10 |
/export/exec |
800 |
/export/share |
5 |
/export/dump/diskless_client_name |
32 |
/export/root/templates/Solaris_version |
30 |
/export/root/clone/Solaris_version/machine_class |
30-60, depending on machine class |
/export/root/diskless_client_name(clone of above) |
30-60, depending on machine class |
/export/swap/diskless_client_name |
32 |
/tftpboot/inetboot.machine_class.Solaris_version |
200 KB per machine_class.Solaris_version |
Choose where to start.
Remove the existing diskless clients by using the /usr/sadm/bin/admhostdel command.
Remove the existing OS services by using the /usr/sadm/bin/admhostmod command.
Upgrade the machine(s) designated as the OS server(s) to the Solaris 8 1/01 operating environment.
To view Diskless Client error messages in the Solaris Management Console (SMC) Log Viewer, start the SMC by typing the following at the command line:
% /usr/sadm/bin/smc & |
Then choose Log Viewer from the SMC main screen.
Add the required OS services. See "Preparing to Add OS Services" and "How to Add an OS Service".
Add the diskless client(s). See "How to Add a Diskless Client".
Boot each diskless client from the PROM level by using the boot net command. For more information on the boot net command, refer to System Administration Guide, Volume 1.
When you use the smosservice add command to add OS services, you must type the platform, mediapath, and cluster of each diskless client platform that you want to support. Therefore, you must first do some high-level work to determine the following for each diskless client:
Platform - You designate the diskless client platform in the format of instruction_set.machine_class.Solaris_os_version. For example, sparc.sun4u.Solaris_8. The following are the possible platform options:
instruction_set |
machine_class |
Solaris_os_version |
---|---|---|
sparc |
sun4usun4msun4csun4d |
Solaris_8Solaris_2.7Solaris_2.6 |
i386 |
i86pc |
Solaris_8Solaris_2.7Solaris_2.6 |
Media path - The full path to the CD-ROM or network image that contains the operating system that you want to install for the diskless client. For example, /net/install_files.
If you are loading OS services from the Solaris 8 software CDs - The Solaris 8 operating environment is delivered on multiple CDs. However, the Diskless Client Management software does not support this multiple CD distribution. You must run the scripts that are found on the Solaris 8 software CDs (and optional Language CD) to:
Create an install image on a server. For information on setting up an install server, refer to Solaris 8 Advanced Installation Guide.
Load the required OS services from the image.
CD 1 of 2 - /cdrom/cdrom0/s0/Solaris_8/Tools/setup_install_server
CD 2 of 2 - /cdrom/cdrom0/s0/Solaris_8/Tools/add_to_install_server
Language CD - /cdrom/cdrom0/s0/Solaris_8/Tools/add_to_install_server
Cluster - Depending on the configuration of the diskless client, you can specify one of four clusters that contain the Diskless Client functionality: SUNWCXall, SUNWCall, SUNWCprog, or SUNWCuser. You must use the same cluster for diskless clients that run the same operating environment on the same machine (SPARC or IA).
For example, to set up the following diskless clients:
sparc.sun4m.Solaris_8
sparc.sun4u.Solaris_8
sparc.sun4d.Solaris_8
If you are using a sun4u machine, or if you are using a machine with an accelerated 8-bit color memory frame buffer (cgsix), you must specify SUNWCXall as the cluster.
After you determine the platform, media path, and cluster for each diskless client, you are ready to add OS services. The following directories are created and populated for each OS service that you add:
/export/Solaris_version/Solaris_version_instruction_set.all (symbolic link to /export/exec/Solaris_version/Solaris_version_instruction_set.all)/export/Solaris_version/export/Solaris_version/var/export/Solaris_version/opt/export/share/export/dump/export/root/templates/Solaris_version/export/root/clone/export/root/clone/Solaris_version/export/root/clone/Solaris_version/machine_class
Use the /usr/sadm/bin/smosservice add command, including the required mediapath, platform, and cluster options, to add the first OS service.
For example, the following command adds an OS service for the Solaris 8 software for the sun4u machine class, where the OS server is not using a name service:
% /usr/sadm/bin/smosservice add -- -x mediapath=/net/image/5.8/sparc \ -x platform=sparc.sun4u.Solaris_8 -x cluster=SUNWCXall |
Continue to use the /usr/sadm/bin/smosservice add command to add any other OS services.
When you are finished adding OS services, use the /usr/sadm/bin/smosservice list command to verify that the OS services were installed.
The following default directories are created and populated on the OS server for each diskless client that you add:
/export/root/diskless_client_name/export/swap/diskless_client_name/export/dump/diskless_client_name/tftpboot/diskless_client_ipaddress_in_hex
You can modify the default locations of the /root, /swap, and /dump directories by using the -x option. However, do not create these directories under the /export branch.
To add a diskless client:
Use the smdiskless add command, including the required IP address, Ethernet address (MAC address), name, and operating system options, for the first diskless client that you want to add.
For example, the following adds the "client1" diskless client, which runs Solaris 8 on a sun4u machine:
% /usr/sadm/bin/smdiskless add -- -i 129.9.200.1 \ -e 8:0:11:12:13:14 -n client1 -x os=sparc.sun4u.Solaris_8 \ |
The operating system is in the format of instruction_set.machine_class.Solaris_os_version and is equivalent to the platform you specified when you used the smosservice command to set up OS services.
Continue to use the /usr/sadm/bin/smdiskless add command to add each remaining diskless client.
When you are finished adding diskless clients, use the /usr/sadm/bin/smdiskless list command to verify that the diskless clients were installed.
You use the /usr/sadm/bin/smosservice patch command to manage the OS service patches. You can:
Establish an /export/diskless/Patches patch spool directory on an OS server.
Add patches to the patch spool directory.
Delete patches from the patch spool directory.
List the patches in the patch spool directory.
Synchronize spooled patches out to clients. (You must reboot each synchronized client for the client to recognize the patch update.)
Diskless clients share the /export/exec/Solaris_version/Solaris_version_instruction_set.all directory on the OS server. Because this directory is shared, patches that you apply to this directory are not printed when you type the showrev -p command from the diskless client. However, kernel patches are applied to the diskless client's root directory, and therefore print when you type the showrev -p command from the diskless client.
If you want to add non-Solaris patches to an OS server, do the following:
Create a .copyof* "staging area" for the patches, using the following command:
% /usr/sadm/bin/smosservice patch -- -m -U |
Add the patch(es) to the staging area using the following command:
% /usr/sadm/bin/smosservice patch -- -a staging area |
Push the patch(es) out to the clients using the following command:
% /usr/sadm/bin/smosservice patch -- -a -m -U |