Exporting a DCE LFS Aggregate

To export a DCE LFS aggregate, do the following:

1. Verify that you have the necessary privileges. You must be included in the admin.ft file on the machine from which the aggregate is to be exported, and you must be included in the admin.fl file on each Fileset Database machine or own the server entry for the machine from which the aggregate is to be exported. If necessary, issue the bos lsadmin command to verify the members of an administrative list.

2. Verify that you have the w (write), x (execute), and i (insert) ACL permissions for the directories in which the mount points for any filesets are to be created. If necessary, issue the dcecp acl show command to check the ACL permissions for the directories. Note that you need to have the w and x permissions for any directories in non-LFS filesets.

3. Log in as root on the machine from which the aggregate is to be exported.

4. Use a text editor to edit the dfstab file to include an entry for the DCE LFS aggregate to be exported. The following fields appear for each entry in the file, in the order listed. Each field must be separated by a minimum of one space or tab; each entry must be on a separate line.

· Device Name: The block device name of the aggregate (for example, /dev/lv03).

· Aggregate Name: The name to be associated with the exported aggregate. An aggregate name can contain any characters, but it can be no longer than 31 characters, and it must be different from any other aggregate name in the file. Aggregate names cannot be abbreviated, so you should choose a short, explicit name (for example, lfs1).

· File System Type: The identifier for the file system type of the aggregate. For DCE LFS aggregates, this must be lfs. It must be in lowercase letters.

· Aggregate ID: A positive integer to act as the aggregate ID of the exported aggregate. The integer must be different from any other aggregate ID in the dfstab file. (If the ID is changed after the aggregate contains one or more filesets, fileset operations on those filesets will fail.)

The following entry from a dfstab file is for a DCE LFS aggregate:

/dev/lv03 lfs1 lfs 3

5. Issue the dfsexport command to export the aggregate to the DCE namespace. Before exporting, this command reads the dfstab file to determine which aggregates and partitions are available to be exported. Omit all of the command's options to list the aggregates and partitions currently exported from the local disk to the DCE namespace.

# dfsexport [{-all | -aggregate name}] [-type name]

The -all option specifies that all aggregates and partitions listed in the dfstab file are to be exported. Use the -all option with the -type option to export only DCE LFS aggregates or only non-LFS partitions. Use this option or use the -aggregate option.

The -aggregate name option specifies the device name or aggregate name of a specific aggregate or partition. These names are specified in the first and second fields of the entry for the aggregate or partition in the dfstab file. Use the -aggregate option or use the -all option.

The -type name option is the file system type to be exported. Specify lfs to export only DCE LFS aggregates; specify ufs to export only non-LFS partitions. Use the -type option only with the -all option (it is ignored if it is used without -all); omit -type and use -all to export all aggregates and partitions.

6. Log out as root from the machine to return to your authenticated DCE identity.

7. Issue the fts create command to create a DCE LFS fileset on the aggregate and register the fileset in the FLDB. The FL Server allocates a unique fileset ID number for the fileset. (See Creating Read/Write DCE LFS Filesets for detailed information about DCE LFS fileset creation.)

$ fts create -ftname name -server machine -aggregate name

The -ftname name option is the complete name to be associated with the fileset being created. The name can contain no more than 102 characters, and it must contain at least one alphabetic character or an _ (underscore). (See Fileset Names for more information on fileset naming conventions.)

Repeat the fts create command for each fileset you want to create on the aggregate.

8. Enter the fts crmount command to create a mount point in the file system for the new DCE LFS fileset. This makes the contents of the fileset visible to other users. (See Using Mount Points for more information about mounting filesets.)

$ fts crmount -dir directory_name -fileset {name | ID}

The -dir directory_name option is the location for the root directory of the fileset; the specified location must not already exist. However, the parent directory of the mount point must exist in the DCE namespace. Include a complete path name unless you want to mount the fileset in the working directory.

Repeat the fts crmount command for each fileset created in the previous step.