DCE and DFS for Linux Installation and Configuration Guide
5
Configuring DFS
[Previous]
[Next]
[Contents]
[Index]
This chapter describes how to configure DFS and contains the following sections:
5.1 Before You Configure DFS
5.3 Preparing for the Configuration: Worksheet
5.4 Configuring Servers and Clients
5.5 Modifying the Configuration for Startup
5.1 Before You Configure DFS
This section describes the preparations you must make before you configure DFS for Linux.
5.1.1 Verifying That the DCE and DFS Packages Have Been Installed
Before you can configure DCE or DFS for Linux, the DCE product must be installed and configured on the system. See the appropriate chapters in this guide for information on installing and configuring DCE and installing the DFS packages.
5.1.2 Verifying Necessary Privileges
To configure DFS for Linux, you need root privileges on that system.
5.2 Identifying Your System's Role in the DFS Environment
A system can have the following roles in a DCE DFS environment:
See Understanding DCE, Introduction to OSF DCE, and OSF DCE DFS Administration Guide and Reference for more information.
5.3 Preparing for the Configuration: Worksheet
After the DFS package is installed, configure the DFS services by running /usr/sbin/dfssetup, a script that generates the initial configuration using default information and information you provide.
Appendix A contains the DFS Configuration Worksheet for you to copy and use as you prepare to configure DFS. Before you begin, write the cell name on the top line of each worksheet completed. This enables you to keep all worksheets for a particular cell together.
The following sections explain the additional information to record on the worksheet. Choose the sections that apply to your particular machine.
5.3.1 Information for DFS System Control Machine Configuration
A DFS System Control Machine updates other machines in the cell domain with common configuration files such as administrative lists. Figure 5-1 shows the System Control Machine part of the DFS Configuration Worksheet. Table 5-1 describes the worksheet.
Figure 5-1: System Control Machine Section of the DFS Configuration Worksheet
Table 5-1: System Control Section of the DFS Configuration Worksheet
5.3.2 Information for FLDB Server Configuration
Each DCE cell using DFS requires at least one Fileset Location Database (FLDB) Server. This machine is also usually the System Control Machine. Figure 5-2 shows the server section of the DFS Configuration Worksheet. Table 5-2 explains how to use this form when configuring FLDB Servers.
If the FLDB Server is also going to be a DFS Client or a DFS Server, see Section 5.3.4, Information for DFS Client Configuration and Section 5.3.3, Information for DFS File Server Configuration, respectively, after filling out this part of the worksheet.
Figure 5-2: Server Section of the DFS Configuration Worksheet
Table 5-2: DFS Configuration Worksheet for FLDB Servers
5.3.3 Information for DFS File Server Configuration
A DFS File Server receives requests from DFS clients and serves the requested DFS filesets to them. Figure 5-2 shows the File Server part of the DFS Configuration Worksheet. Table 5-3 explains how to use this form when configuring File Servers.
Table 5-3: DFS Configuration Worksheet for File Servers
5.3.4 Information for DFS Client Configuration
DFS client machines are those machines that request DFS filesets from DFS File Servers, import the filesets, and keep track of operations on those filesets. Figure 5-3 shows the DFS Client part of the DFS Configuration Worksheet. Table 5-4 describes what you need to know before you configure a DFS client.
Figure 5-3: Client Section of the DFS Configuration Worksheet
Table 5-4: DFS Configuration Information for Client.
5.4 Configuring Servers and Clients
Use the steps in this section to configure your machine depending on its role: System Control, FLDB Server, DFS File Server, or DFS Client.
You need superuser privileges to configure DFS on the system. You should have already configured into a DCE cell that has a DFS server and installed the DFS software on your machine.
Answer the prompts based on the DFS Configuration Worksheet.
5.4.1 Configuring the System Control Machine
If System Control is part of the FLDB Server, follow the directions in the next section.
If System Control is on a different machine than the FLDB server, configure the software, as follows:
-
At the command line, enter /opt/dcelocal/bin/dfssetup. The DFS Setup Main Menu is displayed as follows:
*** DFS Setup Main Menu ***
DCE/DFS for Linux 2.3
1) Configure Configure DFS services on this system
2) Show Show DFS configuration and active daemons
3) Stop Terminate all active DFS daemons
4) Start Start all DFS daemons
5) Clobber Terminate all active DFS daemons
and remove all permanent local DFS databases
6) Version Show DFS Version number
X) Exit
Please enter your selection: 1 <Return>
-
Choose option 1, Configure. The screen displays the DFS Configuration Choice Menu as follows:
*** DFS Configuration Choice Menu ***
1) Configure this system as a DFS Client
2) Configure a new cell: DFS Primary FLDB Server
3) Configure this system as a DFS File Server
4) Configure this system as a DFS System Control Machine
R) Return to previous menu
Please enter your selection (or '?' for help):
-
Choose option 4, Configure this system as a DFS System Control Machine.
The installation script displays a message indicating that it is configuring.
-
When the installation script prompts you, enter the Cell Administrator's principal name and password.
The installation script displays the following initialization messages:
initializing Episode: syscall return value = 0
Modifying the registry database for DFS server operation...
Starting bosserver...
Waiting for bosserver to sync up...
Creating BOS admin lists...
Starting upserver...
The installation script redisplays the main menu.
5.4.2 Configuring the DFS Primary FLDB Server
If you chose to configure the FLDB server, use your worksheet section for the DFS Server (FLDB and File) to configure, as follows.
-
At the command line, enter /opt/dcelocal/bin/dfssetup to display the DFS Setup Main Menu.
-
Choose option 1, Configure. The screen displays the DFS Configuration Choice Menu.
-
Choose option 2, Configure a New Cell: DFS Primary FLDB Server.
The installation script displays a message indicating that it is configuring.
-
When the installation script prompts you, enter the Cell Administrator's principal name and password. If DCE has been configured, the current cell administrator's principal name is displayed as the default. Press Return to accept the default.
The installation script displays some configuration messages.
-
When prompted, enter the name of the system control machine (for example, foobar).
If a System Control Machine (SCM) has already been configured, the
current SCM is the default. If no SCM is configured, the current system
name is the default. Press Return to accept the default.
-
When prompted, enter the Episode device to be used for the DFS root (for example, /dev/hdb1).
-
You are asked if you want to format the partition as an Episode aggregate. Answer y or n. Press Return to accept the default.
The installation script displays numerous configuration messages.
-
If you have not already configured a DFS client, you are asked if you want to configure one now. Answer y or n. Press Return to accept the default.
If you answer y, the system prompts you for DFS client configuration
information.
If you do not want to configure this system as a DFS client, enter n and
press Return; the configuration is completed and the DFS Setup Main
Menu is displayed.
5.4.3 Configuring a DFS File Server
Answer the prompts based on your worksheet section for the DFS File Server.
NOTE:
If you are reconfiguring, use dfssetup option 5, Clobber, before you
reconfigure.
-
At the command line, enter /opt/dcelocal/bin/dfssetup to display the DFS Setup Main Menu.
-
Choose option 1, Configure. The screen displays the DFS Configuration Choice Menu.
-
Choose option 3, Configure This System as a DFS File Server.
The installation script displays a message indicating that it is configuring
the DFS File Server.
-
The following prompt appears:
Cell Administrator's principal name [cell_admin]: <Return> 1
If DCE is configured, the current cell administrator's principal name is
displayed as the default. Press Return to accept the default.
-
The script prompts:
Password:
Enter the cell administrator's password. This is identical to the password
entered during DCE configuration.
-
The script displays initialization messages and then prompts:
Enter the name of the system control machine:
Enter the name of the system control machine and press Return. There is
no default.
-
The script prompts:
Enter the Episode fileset to be exported:
Enter the name of the Episode fileset (for example, /dev/hda5).
-
The script prompts:
Enter the LFS fileset name: (lfs_set):
Enter an LFS fileset name or press Return to accept the default.
-
The script asks if you want to format the Episode fileset as an Episode aggregate. Answer y or n.
-
After displaying some status messages, the script prompts:
Enter the LFS aggregate name: (lfs_aggr):
Enter an LFS aggregate name or press Return to accept the default.
-
The script prompts:
Enter the LFS aggregate ID: (1):
Enter an LFS aggregate ID or press Return to accept the default.
-
After displaying some status messages, the script prompts:
Press <RETURN> to continue:
Press Return. The script displays status messages.
-
If you have not already configured a DFS client, you are asked if you want to configure one now.
If you do not want to configure this system as a DFS client, enter n and
press Return; the configuration is completed and the DFS Setup Main
Menu is displayed.
-
If you answer y, the script prompts.
Enter cache type: <Return>
Enter the type of cache your system will use for DFS caching:
1 for memory caching or 2 for local disk caching. Press Return.
NOTE:
The memory value you use for the DFS cache is not available to
your operating system and applications.
If you chose Memory, 1:
At the prompt:
Enter RAM cache size (KB) [1000]: <Return>
Press Return to accept the default, or enter a new value and press
Return. Configuration begins.
If you chose Local Disk, 2:
After the prompts:
Enter disk cache size (KB) [10000]: <Return>
Enter disk cache directory
[/opt/dcelocal/var/adm/dfs/cache]: <Return>
A. Enter the cache size.
The default is [10000] kilobytes (10MB). Press Return to accept the
default, or enter a new value and press Return.
B. Enter the name of the cache directory. The default is /opt/dcelocal/
var/adm/dfs/cache. Press Return to accept the default. To change the
default value, enter a new value and press Return. Entegrity
recommends that you dedicate a disk partition for DFS caching and use
that directory name as the cache directory (for disk caching only).
When the DFS file server configuration is complete, the DFS Setup Main
Menu is displayed.
5.4.4 Configuring a DFS Client
Answer the prompts based on your worksheet section for the DFS Client.
-
At the command line enter /opt/dcelocal/bin/dfssetup. The DFS Setup Main Menu is displayed as follows:
1) Configure Configure DFS services on this system
2) Show Show DFS configuration and active daemons
3) Stop Terminate all active DFS daemons
4) Start Start all DFS daemons
5) Clobber Terminate all active DFS daemons and remove all permanent
local DFS databases
6) Version Show DCE DFS Version number
X) Exit
Please enter your selection: 1 <Return>
-
Choose option 1, Configure.
The Configuration Choice Menu is displayed as follows:
1) Configure this system as a DFS Client
2) Configure a new cell: DFS Primary FLDB Server
3) Configure this system as a DFS File Server
4) Configure this system as a DFS System Control Machine
R) Return to previous menu
Please enter your selection (or ? for help): 1 <Return>
-
From the Configuration menu, choose option 1, Configure this system as a DFS Client.
After starting to configure, the following choices are displayed:
1) Memory
2) Local Disk
Enter cache type: <Return>
-
Enter the type of cache your system will use for DFS caching:1 for memory caching or 2 for local disk caching. Press Return.
NOTE:
The memory value you use for the DFS cache is not available to
your operating system and applications.
If you chose Memory, 1:
At the prompt:
Enter RAM cache size (KB) [1000]: <Return>
Press Return to accept the default, or enter a new value and press
Return.
Configuration begins.
If you chose Local Disk, 2:
After the prompts:
Enter disk cache size (KB) [10000]: <Return>
Enter disk cache directory
[/opt/dcelocal/var/adm/dfs/cache]: <Return>
A. Enter the cache size.
The default is [10000] kilobytes (10MB). Press Return to accept the
default, or enter a new value and press Return.
B. Enter the name of the cache directory. The default is /opt/dcelocal/
var/adm/dfs/cache. Press Return to accept the default. To change the
default value, enter a new value and press Return. Entegrity
recommends that you dedicate a disk partition for DFS caching and use
that directory name as the cache directory (for disk caching only).
When the DFS client configuration is complete, the DFS Setup Main Menu is displayed.
5.4.5 Removing DFS
From the DFS Setup Main Menu, use option 5, Clobber, and then reboot.
5.5 Modifying the Configuration for Startup
Most DFS configurations use default settings when starting DFS processes on various machines. Thus, most users can skip the information in this section and proceed to the configuration instructions
DFS for Linux provides a configuration file called opt/dcelocal/etc/setup_state. This file lets advanced users specify non-default options for commands (dfsd, dfsbind, and fxd) that dfssetup executes to start DFS processes on the local server or client machine.
The rpm process that installs the DCE software packages checks whether the setup_state file is present, and installs it if it is not present. The unmodified setup_state file includes the following default settings:
DFSD_OPTS=""
DFSBIND_OPTS=""
DFSFXD_OPTS="-mainprocs 7"
Use any ASCII editor to modify the file. The following example shows a modified setup_state file.
DFSD_OPTS="-mainprocs 2 -tokenprocs 2 -files 300"
DFSBIND_OPTS="-expressprocs 1 -regularprocs 1 -junctionlife 86400
-prefixlife 86400 -notfoundlife 3600"
[Previous]
[Next]
[Contents]
[Index]
To make comments or ask for help, contact
support@entegrity.com.
Copyright © 2001-2004 Entegrity Solutions Corporation & its subsidiaries