This section describes problems that are encountered when managing diskless clients and possible solutions.
The smosservice add command does not install any
packages that are designated ARCH=all
in the root (/
) or /usr
file systems. As a result, these
packages are skipped. No warning or error messages are displayed. You must
add these packages to the newly-created Solaris OS service manually. This behavior has existed since the Solaris 2.1 OS.
The behavior applies to both SPARC based and x86 based clients.
Note that the list of missing packages varies, depending on which Solaris
OS you are running.
How to Locate and Install Missing ARCH=all
Packages
This procedure shows you how to locate and install missing ARCH=all
packages after you have created the Solaris OS service on the server.
Examples that are provided in this procedure apply to the Solaris 10 6/06
OS.
Locate all the packages with the ARCH=all
parameter.
Change directories to the Product
directory
of the media for the Solaris 10 image. For example:
% cd /net/server/export/Solaris/s10u2/combined.s10s_u2wos/latest/Solaris_10/Product
List all the packages in the pkginfo
file
that have the ARCH=all
parameter.
% grep -w ARCH=all */pkginfo
If an error message indicating the arguments list is too long is displayed, you can alternately run the following command to generate the list:
% find . -name pkginfo -exec grep -w ARCH=all {} /dev/null \;
Note that running this command takes longer to produce results.
The output is similar to the following:
./SUNWjdmk-base/pkginfo:ARCH=all ./SUNWjhdev/pkginfo:ARCH=all ./SUNWjhrt/pkginfo:ARCH=all ./SUNWjhdem/pkginfo:ARCH=all ./SUNWjhdoc/pkginfo:ARCH=all ./SUNWmlibk/pkginfo:ARCH=all
The information that is provided in this list enables you to determine
which packages are installed in the /usr
file system
and which packages are installed in the root (/
) file
system.
Check the value of the SUNW_PKGTYPE
parameter
in the package list you generated.
Packages that belong in the /usr
file system are designated as SUNW_PKGTYPE=usr
in
the pkginfo
file. Packages that belong in the root (/
) file system are designated as SUNW_PKGTYPE=root
in
the pkginfo
file. In the preceding output, all the packages
belong in the /usr
file system.
Become superuser or assume an equivalent role.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services .
Create the temporary installation administration files.
You
must create a separate installation administration file for packages that
are installed in the root (/
) file system and a separate
installation administration file for packages that are installed in the /usr
file system.
For ARCH=all
packages that are installed
in the /usr
file system, create the following temporary
installation administration file:
# cat >/tmp/admin_usr <<EOF mail= instance=unique partial=nocheck runlevel=nocheck idepend=nocheck rdepend=nocheck space=nocheck setuid=nocheck conflict=nocheck action=nocheck basedir=/usr_sparc.all EOF #
For ARCH=all
packages that are installed
in the root (/)
file system, if any exist, create the
following temporary installation administration file:
# cat >/tmp/admin_root <<EOF mail= instance=unique partial=nocheck runlevel=nocheck idepend=nocheck rdepend=nocheck space=nocheck setuid=nocheck conflict=nocheck action=nocheck EOF #
Install the missing ARCH=all
packages.
If the current directory is not the Product directory of the media for the Solaris 10 image, change directories to that directory. For example:
# cd /net/server
/export/Solaris/s10u2/combined.s10s_u2wos/latest/Solaris_10/Product
You can run the pwd command to determine the current directory.
Install the missing ARCH=all
packages in the /usr
file system.
# pkgadd -R /export/Solaris_10 -a /tmp/admin_usr -d `pwd` [package-A
package-B
...]
Multiple packages can be listed when you running the pkgadd command.
Check that the ARCH=all
packages were installed.
# pkginfo -R /export/Solaris_10 [package-A
package-B
...]
Install the missing ARCH=all
packages that
in the root (/
) file system.
Note that it is possible that none of these packages exist.
# pkgadd -R /export/root/clone/Solaris_10/sun4u -a /tmp/admin_root -d `pwd` [package-X
package-Y
...]
Check that the ARCH=all
packages were installed.
# pkginfo -R /export/root/clone/Solaris_10/sun4u [package-X
package-
...]
After you have finished adding the missing ARCH=all
packages,
remove the temporary installation administration file.
# rm /tmp/administration-file
Example 7.10. Locating and Installing Missing ARCH=all
Packages
This example shows how to install the missing ARCH=all
package, SUNWjdmk-base
, in the /usr
file system.
%uname -a
SunOS t1fac46 5.10 Generic_118833-02 sun4u sparc SUNW,UltraSPARC-IIi-cEngine %cat /etc/release
Solaris 10 6/06 s10s_u2wos_03 SPARC Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 06 February 2006 %cd /net/ventor/export/Solaris/s10u2/combined.s10s_u2wos/latest/Solaris_10/Product
%grep -w ARCH=all */pkginfo
Arguments too long %find . -name pkginfo -exec grep -w ARCH=all {} /dev/null \;
./SUNWjdmk-base/pkginfo:ARCH=all ./SUNWjhdev/pkginfo:ARCH=all ./SUNWjhrt/pkginfo:ARCH=all ./SUNWjhdem/pkginfo:ARCH=all ./SUNWjhdoc/pkginfo:ARCH=all ./SUNWmlibk/pkginfo:ARCH=all %grep -w SUNW_PKGTYPE=usr ./SUNWjdmk-base/pkginfo ./SUNWjhdev/pkginfo ...
./SUNWjdmk-base/pkginfo:SUNW_PKGTYPE=usr ./SUNWjhdev/pkginfo:SUNW_PKGTYPE=usr ./SUNWjhrt/pkginfo:SUNW_PKGTYPE=usr ./SUNWjhdem/pkginfo:SUNW_PKGTYPE=usr ./SUNWjhdoc/pkginfo:SUNW_PKGTYPE=usr %grep -w SUNW_PKGTYPE=root ./SUNWjdmk-base/pkginfo ./SUNWjhdev/pkginfo ...
%su
Password:xxxxxx # cat >/tmp/admin_usr <<EOF mail= instance=unique partial=nocheck runlevel=nocheck idepend=nochec> k rdepend=nocheck space=nocheck setuid=nocheck conflict=nocheck action=nocheck basedir=/usr_sparc.all EOF
#pwd
/net/ventor/export/Solaris/s10u2/combined.s10s_u2wos/latest/Solaris_10/Product #pkginfo -R /export/Solaris_10 SUNWjdmk-base
ERROR: information for "SUNWjdmk-base" was not found #pkgadd -R /export/Solaris_10 -a /tmp/admin_usr -d `pwd` SUNWjdmk-base
Processing package instance <SUNWjdmk-base> </net/ventor/export/Solaris/s10u2/combined.s10s_u2wos... Java DMK 5.1 minimal subset(all) 5.1,REV=34.20060120 Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Using </export/Solaris_10/usr_sparc.all> ## Processing package information. ## Processing system information. Installing Java DMK 5.1 minimal subset as <SUNWjdmk-base> ## Installing part 1 of 1. 2438 blocks Installation of <SUNWjdmk-base> was successful. #pkginfo -R /export/Solaris_10 SUNWjdmk-base
application SUNWjdmk-base Java DMK 5.1 minimal subset #rm /tmp/admin_usr
This section lists some common problems with diskless clients that you might encounter and possible solutions.
Boot program downloads but panics early in the process | |
Use the snoop command to verify that the intended OS server is answering the client's TFTP and NFS requests. |
Diskless client hangs. | |
Restart the following daemons on the OS server: # |