This chapter describes how to use the
dmu
utility
to manage Dataless Management Services (DMS) environments and clients.
The
information in this chapter includes the following topics:
Locating and interpreting the DMS client database file (Section 12.1)
Adding a client to a DMS environment (Section 12.2)
Booting a DMS client (Section 12.3)
Deleting a DMS environment (Section 12.4)
Modifying a DMS client (Section 12.5)
Removing a DMS client (Section 12.6)
Listing registered DMS clients (Section 12.7)
Showing software environments in the server's DMS area (Section 12.8)
Maintaining the server's DMS areas (Section 12.9)
The DMS client database is located in the
/var/adm/dms/clients/dmsdb
file.
Entries in this file are similar to the following:
client1:xx-xx-xx-xx-xx-xx:/var/adm/dms/dms0.alpha:/clients/client1: rz0b:RZ26:None:ln0:255.255.255.0
In this example:
client1
is the client's host name
xx-xx-xx-xx-xx-xx
is the client's hardware network address
/var/adm/dms/dms0.alpha
is the DMS environment
being served to the client
/clients/client1
is the location of the
client's root area
rz0b
is the client's swap device and partition
RZ26
is the swap disk
None
specifies the client has no kernel
build area
ln0
is the network interface type
255.255.255.0
is the network subnet mask
When you use add, modify, or delete a DMS client from the DMU Main Menu,
the client's entry in the
dmsdb
file is added, modified,
or deleted, respectively.
12.2 Adding a DMS Client
The information you need to add a DMS client is shown in the Client
Setup Worksheet in
Appendix B.
Fill out a worksheet
for each client you want to add before you use the
dmu
utility to add clients to a DMS environment.
Before you can add a client, you already must have followed the procedures
in
Chapter 11
to install software in at least one DMS environment.
Optionally, you may want to customize the
.proto..
files
as described in
Section 11.4.1.
The DMS client must be connected to a local area network (LAN) and must
be registered with the DMS server through one of the network naming services
(see
Section 10.8) or must have an entry in the
server's
/etc/hosts
file.
When you add a client to a DMS environment, the root directory from the server's DMS environment gets copied to the client area.
Follow these steps to add a client to a DMS environment:
Log in to the DMS server as
root
or use
the
su
command to gain superuser privileges.
Enter
/usr/sbin/dmu
to start the
dmu
utility.
You see the DMU Main Menu:
*** DMU Main Menu *** a) ADD a client c) CONFIGURE software environments d) DELETE software environments i) INSTALL software environments l) LIST registered clients m) MODIFY a client r) REMOVE a client s) SHOW software environments x) EXIT Enter your choice:
Enter
a
to select
ADD a client
.
You see a prompt similar to the following:
You have chosen to add a client for dataless service. The following conditions must be met to add a client: 1. You must know the client processor's hostname. 2. The client's hostname must be in your system's host database(s).
3. You must know the client's interface type, subnet mask. 4. You must know the type of kernel build area. 5. You must know the swap device and partition on the client. 6. You must know the client's hardware Ethernet or FDDI address. 7. If the client and the server reside on different subnets, you will need the address of the gateway(s) that the client can sue to communicate with the server. Do you want to continue? (y/n) [y]:
Enter
y
to continue.
You see the following
prompt:
Enter the client processor's hostname or press RETURN to quit:
Enter the host name for the DMS client.
If you enter a host name that is not in the server's host database, you see a message similar to the following:
arp failed on hostname "client1"
In the above message,
arp
is the Address Resolution
Protocol.
If you receive this message, check the
/etc/hosts
file to determine the correct host name.
If the client was never registered
with a network naming service (such as BIND or NIS) or was never entered in
the
/etc/hosts
file, press
[Ctrl/C]
to exit
the
dmu
utility and manually add the client to the
/etc/hosts
file before you restart the procedure.
Note
For the remaining examples, assume that the [Return] key is pressed to accept the default response.
You see a prompt similar to the following:
Enter the path to contain the root file system. [/clients/client1]:
Enter a path, or press
[Return]
for the default,
/clients/hostname
.
If you specify a path
other than the default , the directories in that path must already exist.
The path must begin with
/clients
, and can be no longer
than 25 characters.
For example, if you want to differentiate between client systems in
different departments at your site, you could specify
/clients/deptname/hostname
as the
root location.
The
deptname
directory must exist
already under the
/clients
directory.
You see a prompt similar to the following:
Enter the swap device and partition on client1. [dsk0b]:
Enter the swap device and partition on the DMS client. You see a prompt similar to the following:
Enter the swap device drive type for dsk0b. [RZ26]:
Enter the swap device drive type for your previous entry. You see a prompt similar to the following:
Enter the network interface for client1 (nn.nn.nnn.nnn) [ln0]:
Enter the DMS client's network hardware address. You see a prompt similar to the following:
Enter the subnet mask for ln0. [255.255.255.0]:
Enter the DMS client's network subnet mask.
You may see the following prompts:
If the DMS client is on a different subnet than the DMS server, you see a prompt similar to the following:
Enter the default route for network nn.nn.nnn [nn.nn.nnn.nnn]:
Note
The default network interface is
ln0
for the DEC 3000 series and other systems that use the Lance Ethernet module. Some systems such as the EB64+ use the Tulip Ethernet module, which may be identified astu0
. Be sure to enter the correct network device identifier for the Ethernet or FDDI interface on the client system.
If there is an entry for the client's subnet in the
/var/adm/dms/gateways
file on the server, the following message
is displayed:
The following are the known gateway[s] between the client subnet and server subnet. If these value[s] are not correct, please enter the proper address[s]. If these value[s] are correct, press Return. (For example, nn.nn.nnn.???) [nn.nn.nnn.nnn]:
If there is no entry for the client's subnet in the
/var/adm/dms/gateways
file on the server, you see a prompt similar
to the following:
Enter the IP address of the gateway[s] between the client subnet and server subnet. (For example, nn.nn.nnn.???) :
Refer to the Network Administration guide for information about obtaining the client's network information.
You see a prompt similar to the following:
Enter the type of kernel build area for client1. You may select one of [F]ull, [P]artial, [N]one or [H]elp for more information. [P]:
Enter the letter corresponding with the type of kernel build that you want. You see a prompt similar to the following:
You have specified the following configuration for client1: ROOT: /clients/client1 SWAP_DEVICE: /dev/disk/dsk0b SWAP_TYPE: RZ26 BUILD_TYPE: Partial INTERFACE: ln0 (nn.nn.nnn.nnn) SUBNET_MASK: 255.255.255.0 ROUTE: network: nn.nn.nnn gateway: nn.nn.nnn.nnn Is this correct (y/n) [y]:
Enter
y
to confirm your selections
or
n
to return to the DMU Main Menu.
If you enter
y
, you see a prompt similar to the
following:
The existing environment is /var/adm/dms/dms0.alpha. The following environment will be installed from /var/adm/dms/dms0.alpha: Description 1 'Tru64 UNIX VAAA Operating System (Rev nnn)' Is that correct? (y/n) [y]:
If there is more than one DMS environment, you are prompted to select one and confirm your selection.
Enter
y
to confirm your selection or
n
to return to the DMU Main Menu.
You see a prompt similar to
the following:
Enter the client processor's hardware network address. For example, 08-00-2b-02-67-e1:
Enter the DMS client's hardware network address.
Note
The
dms
utility does not check the validity of the address you enter, but it does check to make sure the address you enter is in the correct format.
You see a prompt similar to the following:
Checking file system space required for client root and var file systems.
If there is not enough free space available to create the file systems, you see a prompt similar to the following:
There is not enough free space in /clients to create the root and var file systems for client1. client1 has not been added.
If there is enough free space to create file systems, you see the following prompt:
Creating the root and var file systems for client1 Client client1 has been added.
You see the DMU Main Menu.
Notify the client's system administrator when client registration is
complete and inform them that they now can boot the client across the network.
See
Section 12.3
for basic information about booting
a client.
Refer to the
Installation Guide -- Advanced Topics
for additional information.
12.3 Booting a DMS Client
After a DMS client is added to the appropriate environment, the client's
system administrator can boot the client over the network.
When the client
starts to boot, the kernel that boots over the network is:
/clients/hostname
/.vmunix
The following steps occur when the client boots:
The
/clients/hostname
directory is mounted by NFS as root ( /
).
The
/var/adm/dms/dmsN
.alpha/root/usr
directory is mounted by NFS as
/usr
.
The network information you entered about the client when you added it to the DMS environment is sufficient to boot the DMS client across the LAN.
DMS clients must be able to boot over Ethernet or FDDI LAN. The basic procedure for booting a processor over the network from a server is to shut down the client system to console mode and then issue a boot command from the client.
Refer to the Installation Guide -- Advanced Topics for information about booting systems over the network.
When the client system boots, the client system administrator is prompted to enter a superuser password:
*** SUPERUSER PASSWORD SPECIFICATION ** Changing password for root. Enter root password: Retype root password:
System information is displayed while the client system boots.
When
the Common Desktop Environment (CDE) login window or the
login
prompt appears, enter
root
as the login name.
At the prompt
for a password, enter the superuser password that was specified previously.
12.4 Deleting a Software Environment
When you delete a software environment, the environment itself and all clients registered to that environment are deleted. Once you confirm your choice, there is no opportunity to undo the deletion.
Caution
Make sure that the clients registered to the environment have been notified and shut down before you delete the environment. Failure to do so will cause a running client to lose its operating system.
To delete a software environment, follow these steps:
Log in to the DMS server as
root
or use
the
su
command to gain superuser privileges.
Enter
/usr/sbin/dmu
to start the DMS utility.
You see the DMU Main Menu:
*** DMU Main Menu *** a) ADD a client c) CONFIGURE software environments d) DELETE software environments i) INSTALL software environments l) LIST registered clients m) MODIFY a client r) REMOVE a client s) SHOW software environments x) EXIT Enter your choice:
Enter
d
to select
DELETE software
environments
.
You see a prompt similar to the following example,
which lists three DMS environments:
Select the remote dataless environment: 1) /var/adm/dms/dms0.alpha 'Tru64 UNIX VAAA Operating System (Rev nnn)' 2) /var/adm/dms/dms1.alpha 'Tru64 UNIX VBBB Operating System (Rev nnn)' 3) /var/adm/dms/dms2.alpha 'Tru64 UNIX VCCC Operating System (Rev nnn)' Enter your choice:
Enter the number that corresponds to the DMS environment you
want to delete, for example:
1
.
You see a prompt similar
to the following:
After you select the dataless environment to delete, a confirmation displays your choice:
The following environment will be deleted from /var/adm/dms/dms0.alpha: Description 'Tru64 UNIX VAAA Operating System (Rev nnn)' Is that correct? (y/n) [y]:
Confirm your selection.
If you enter
n
, the
dmu
utility returns to the DMU Main Menu.
If you enter
y
, you see a prompt similar
to the following:
After this deletion, the area /var/adm/dms/dms0.alpha will be empty. The following clients are registered for /var/adm/dms/dms0.alpha: client1 client2 client3 This procedure will completely remove /var/adm/dms/dms0.alpha. Do you want to continue? (y/n) [n]:
If you enter
n
, the
dmu
utility returns to the DMU Main Menu and does not delete the environment or
its registered clients.
If you enter
y
, you see a prompt similar
to the following:
Do you want to remove the client's root file system [/clients/client1]? (y/n) [n]:
This is your opportunity to save customized data in the root directory.
If you enter
n
, all customized data in the root directory
is lost.
The
dmu
utility also prompts you to remove the root
and
/var
file systems for each client registered to the
environment.
Once you confirm your selections, the
dmu
utility
proceeds to delete the DMS environment and all its registered clients.
After the DMS environment is deleted, the
dmu
utility
returns to the DMU Main Menu.
12.5 Modifying Client Information
The
dmu
utility lets you modify the network hardware
address of a client.
Refer to
Section 1.3
for instructions
about how to obtain the hardware address of a client.
Perform the following steps to modify a DMS client's information:
Log in to the DMS server as
root
or use
the
su
command to gain superuser privileges.
Enter
/usr/sbin/dmu
to start the
dmu
utility.
You see the DMU Main Menu:
*** DMU Main Menu *** a) ADD a client c) CONFIGURE software environments d) DELETE software environments i) INSTALL software environments l) LIST registered clients m) MODIFY a client r) REMOVE a client s) SHOW software environments x) EXIT Enter your choice:
Enter
m
to select
MODIFY a
client
.
You see a prompt similar to the following:
The following clients are available to modify: client4 client5 client6 Enter the client processor's hostname or press RETURN to quit:
Enter the name of the client you want to modify, for example:
client4
.
You see a prompt similar to the following, with the DMS client's current hardware network address as the default response:
Enter the client processor's hardware network address. For example, 08-00-2b-02-67-e1 [xx-xx-xx-xx-xx-xx]:
Caution
The
dms
utility checks the format of the address you enter but does not check its validity.
Enter the DMS client's hardware network address or press [Return] to accept the default. You see a message similar to the following:
Client client4 has been modified. *** DMU Main Menu *** a) ADD a client c) CONFIGURE software environments d) DELETE software environments i) INSTALL software environments l) LIST registered clients m) MODIFY a client r) REMOVE a client s) SHOW software environments x) EXIT Enter your choice:
If you want to change the client's IP address or the environment to which the client is registered, follow these steps:
Log in to the DMS client as
root
or use
the
su
command to gain superuser privileges.
Use the SysMan Menu or the
shutdown -h
command to shut down the DMS client.
Log in to the DMS server as
root
or use
the
su
command to gain superuser privileges.
Enter
/usr/sbin/dmu
to start the
dmu
utility.
You see the DMU Main Menu:
*** DMU Main Menu *** a) ADD a client c) CONFIGURE software environments d) DELETE software environments i) INSTALL software environments l) LIST registered clients m) MODIFY a client r) REMOVE a client s) SHOW software environments x) EXIT Enter your choice:
Enter
r
to select
REMOVE a
client
, and follow the instructions in
Section 12.6.
You see the DMU Main Menu again.
Enter
a
to select
ADD a client
, and follow the instructions in
Section 12.2.
Restart the DMS client.
Follow these steps to remove a client from a DMS environment:
Log in to the DMS client as
root
or use
the
su
command to gain superuser privileges.
Use the
shutdown -h
command to shut down
the DMS client.
Log in to the DMS server as
root
or use
the
su
command to gain superuser privileges.
Enter
/usr/sbin/dmu
to start the
dmu
utility.
You see the DMU Main Menu
*** DMU Main Menu *** a) ADD a client c) CONFIGURE software environments d) DELETE software environments i) INSTALL software environments l) LIST registered clients m) MODIFY a client r) REMOVE a client s) SHOW software environments x) EXIT Enter your choice:
Enter
r
to select
REMOVE a
client
.
You see the following prompt:
You have chosen to remove a client from the remote dataless service. Enter the client processor's hostname or press RETURN to quit:
Enter the DMS client's host name, for example:
client5
.
You see a prompt similar to the following:
Remove client5? (y/n) [n]:
Enter
y
to delete the client.
The
dmu
utility removes the client's registration to the DMS environment,
along with the following additional items:
The client's root directory (including any customized files that may have been added to that directory)
The DMS client's entries in
/etc/exports
(described in
Chapter 13)
The DMS client's entries in
/etc/bootptab
The DMS client's entry in the DMS client database file (described in Section 12.1).
If you remove a client but save the root ( /
)
file system, you cannot reuse that root file system if you subsequently add
a client with the same client name.
12.7 Listing DMS Clients
Follow these steps to view registered DMS clients:
Log in to the DMS server as
root
or use
the
su
command to gain superuser privileges.
Enter
/usr/sbin/dmu
to start the
dmu
utility.
You see the DMU Main Menu:
*** DMU Main Menu *** a) ADD a client c) CONFIGURE software environments d) DELETE software environments i) INSTALL software environments l) LIST registered clients m) MODIFY a client r) REMOVE a client s) SHOW software environments x) EXIT Enter your choice:
Enter
l
to select
LIST registered
clients
.
You see output similar to the following:
The following clients are registered for /var/adm/dms/dms0.alpha: client1 client2 client3 The following clients are registered for /var/adm/dms/dms1.alpha: client4 client5 client6 The following clients are registered for /var/adm/dms/dms2.alpha: client7 client8 client9
12.8 Showing Software Environments
The
dmu
utility lets you display a list of the current
DMS environments:
Log in to the DMS server as
root
or use
the
su
command to gain superuser privileges.
Enter
/usr/sbin/dmu
to start the
dmu
utility.
You see the DMU Main Menu:
*** DMU Main Menu *** a) ADD a client c) CONFIGURE software environments d) DELETE software environments i) INSTALL software environments l) LIST registered clients m) MODIFY a client r) REMOVE a client s) SHOW software environments x) EXIT Enter your choice:
Enter
s
to select
SHOW software
environments
.
You see output similar to the following:
1) /var/adm/dms/dms0.alpha 'Tru64 UNIX VAAA Operating System (Rev nnn)' 2) /var/adm/dms/dms1.alpha 'Tru64 UNIX VBBB Operating System (Rev nnn)'' 3) /var/adm/dms/dms2.alpha 'Tru64 UNIX VCCC Operating System (Rev nnn)'' *** DMU Main Menu *** a) ADD a client c) CONFIGURE software environments d) DELETE software environments i) INSTALL software environments l) LIST registered clients m) MODIFY a client r) REMOVE a client s) SHOW software environments x) EXIT Enter your choice:
12.9 Maintaining the DMS Environment
This section contains information about maintaining the DMU server area, and includes the following topics:
Controlling root file system growth (Section 12.9.1)
Listing installed software subsets (Section 12.9.2)
Removing software subsets (Section 12.9.3)
12.9.1 Controlling Root File System Growth
The
df
command displays statistics about the amount
of free space on a specified file system or on a file system that contains
a specified file.
The
du
command displays a summary of disk usage for
file systems.
Use this command to monitor the file growth in each client's
root directory.
If clients use too much space, performance is adversely
affected.
Users must then be told to delete all unnecessary files from their
file systems.
Monitor disk usage periodically depending upon the systems'
use.
Refer to the
df
(1)
and
du
(1)
reference pages for more information
about monitoring file system growth.
12.9.2 Listing Installed Software Subsets
Use the
setld
utility to determine which software
subsets are installed into a particular
dmsN
.alpha
area.
For example, the following command produces a list
of the subsets installed into the client root area of
/var/adm/dms/dms0.alpha
:
# setld -D /var/adm/dms/dms0.alpha/root -i
Refer to the
setld
(8)
reference page for more information.
12.9.3 Removing Subsets
Use the
setld
utility to remove software subsets
from a
dmsN
.alpha
area.
For example, if you want to remove the Document Preparation
Tools Extensions subset,
OSFDCMTEXT505
,
use a command similar to the following:
# setld -D /var/adm/dms/dms0.alpha/root -d OSFDCMTEXT505
The Installation Guide contains a list of all software subsets.
Caution
If the
setld
utility placed files in the root file system during the installation, the product may not be fully removed from the client's root file system. Be careful about removing any subset that may be used by client systems. For example:
If you remove a subset that contains kernel build files, the clients may not be able to build new kernels.
If you remove a subset that contains NFS components, the clients may not be able to reboot.
You should understand client dependencies before you remove a software component. You may need to delete and reregister all clients before you can reload a subset.