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

Cell Administrator's Principal Name

The principal name for the DCE cell administrator. This is the same default principal name used in DCE installation and Configuration, cell_admin.

Password

The password for cell_admin. This is the same password that is specified in the DCE cell configuration.

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

Cell Administrator's Principal Name

The principal name for the DCE cell administrator. This is the same default principal name used in DCE installation and configuration, cell_admin.

Password

The password for cell_admin. This is the same password that is specified in the DCE cell configuration.

System Control Machine Name

The name of the machine that distributes common configuration files to other server machines in the cell or administrative domain. The default is the name of the FLDB Server or another machine, depending on how you chose to set up your DFS environment.

Device Name

The block device name of the DFS root fileset. For example, /dev/hdb1.

Fileset Mount Point

The local mount point for the DFS root fileset. Enter 1 to 31 alphanumeric characters. For example, /dfs.root.

Caution: Do not specify the local system root directory (/\) as the mount point for the DFS root fileset. If you do, serious data corruption might occur.

Aggregate ID

A positive integer to identify the root aggregate. This ID is unique for each DFS server and cannot be used by any other entries in the dfstab file.

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

Cell Administrator's Principal Name

The principal name for the DCE cell administrator. This is the same default principal name used in DCE installation and configuration, cell_admin.

Password

The password for cell_admin. This is the same password that is specified in the DCE cell configuration.

System Control Machine Name

The name of the machine that distributes common configuration files to other server machines in the cell or administrative domain. The default is the name of the FLDB Server or another machine, depending on how you chose to set up your DFS environment.

File System Type

The file system type for the exported DFS fileset. This is the Episode (LFS) file system

Device Name

The block device name of the exported DFS fileset. For example, /dev/hdb1.

Fileset Mount Point

The local mount point for the exported DFS fileset.

Aggregate ID

A positive integer to identify the exported aggregate. This ID is unique and cannot be used by any other entries in the dfstab file.

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.

Cache Type

The type of cache your system will use for DFS caching. The choices are disk or memory. If you choose a memory cache, the system will not perform disk caching even if there is disk space available. In addition, a memory cache is permanently allocated from system memory and is typically smaller than a disk cache.

Cache Size

The size of the DFS cache in kilobytes. For disk caching, the default is 10,000 kilobytes (10 MB). For memory caching, the default is 1000 kilobytes (1 MB).

Cache Directory

The name of the caching directory. The default is /opt/dcelocal/var/adm/dfs/cache. Entegrity recommends that you dedicate a disk partition for DFS caching and use that directory name as the cache directory (for disk caching only).

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:

  1. 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>
    

     
    

  2. 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):
    

  3. Choose option 4, Configure this system as a DFS System Control Machine.

    The installation script displays a message indicating that it is configuring.

  4. 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.

  1. At the command line, enter /opt/dcelocal/bin/dfssetup to display the DFS Setup Main Menu.

  2. Choose option 1, Configure. The screen displays the DFS Configuration Choice Menu.

  3. Choose option 2, Configure a New Cell: DFS Primary FLDB Server.

    The installation script displays a message indicating that it is configuring.

  4. 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.

  5. 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.

  6. When prompted, enter the Episode device to be used for the DFS root (for example, /dev/hdb1).

  7. 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.

  8. 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.

  1. At the command line, enter /opt/dcelocal/bin/dfssetup to display the DFS Setup Main Menu.

  2. Choose option 1, Configure. The screen displays the DFS Configuration Choice Menu.

  3. 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.

  4. 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.

  5. The script prompts:

    Password:  
    

    Enter the cell administrator's password. This is identical to the password entered during DCE configuration.

  6. 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.

  7. The script prompts:

    Enter the Episode fileset to be exported:   
    

    Enter the name of the Episode fileset (for example, /dev/hda5).

  8. The script prompts:

    Enter the LFS fileset name: (lfs_set): 
    

    Enter an LFS fileset name or press Return to accept the default.

  9. The script asks if you want to format the Episode fileset as an Episode aggregate. Answer y or n.

  10. 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.

  11. The script prompts:

    Enter the LFS aggregate ID: (1): 
    

    Enter an LFS aggregate ID or press Return to accept the default.

  12. After displaying some status messages, the script prompts:

    Press <RETURN> to continue: 
    

    Press Return. The script displays status messages.

  13. 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.

  14. 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.

  1. 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>
    

  2. 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>

  1. 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>
    

  2. 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