Removing Non-LFS Filesets

When you remove a non-LFS fileset, it becomes inaccessible in the DCE namespace. However, it is still available on the local disk of the machine on which it resides. (You can use the appropriate command in your local operating system to remove the partition that houses the non-LFS fileset from the disk.)

To remove a non-LFS fileset from the DCE namespace, use the fts delfldbentry command to remove the entry for the fileset from the FLDB. This prevents the FL Server from reporting the location of the fileset to a Cache Manager that requests data from the fileset. The fts delfldbentry command lets you remove multiple FLDB entries simultaneously; be careful to remove only those FLDB entries you no longer need.

Once you remove the fileset's FLDB entry, use the fts delmount command to remove the mount point for the fileset. Then issue the dfsexport command with the -detach option to detach the non-LFS partition on which the fileset resides from the namespace; when you detach a partition, it is no longer exported. These steps make the fileset unavailable in the DCE namespace. After you issue the dfsexport command, remove the partition's entry from the dcelocal/var/dfs/dfstab file to prevent it from being exported the next time the machine is rebooted; note that this occurs only if the dfsexport command is included in the machine's initialization file (/etc/rc or its equivalent).

Any of these steps performed alone makes the fileset inaccessible. However, you should always perform all of the steps whenever you remove a non-LFS fileset to prevent future problems, such as a mount point that refers to a fileset that is no longer exported.

To remove a non-LFS fileset and its mount point, do the following:

1. Verify that you have the necessary privileges. You must be included in the admin.fl file on each Fileset Database machine or own the server entry for the machine on which the fileset resides. 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 d (delete) ACL permissions for the directory in which the fileset is mounted. If necessary, issue the dcecp acl show command to list the permissions for the directory.

3. Issue the fts delfldbentry command to remove the fileset entry from the FLDB:

$ fts delfldbentry {-fileset {name | ID} | -prefix string} [-server machine] [-aggregate name]

The -prefix string option specifies a character string of any length. Every FLDB entry that lists a fileset whose name begins with string is removed. If the -server and -aggregate options are specified, only entries for filesets on the specified server machine and the specified aggregate are removed. Use the -prefix option, or use the -fileset option to specify the name or ID number of the fileset whose FLDB entry is to be removed.

4. Enter the fts delmount command to remove the fileset's mount point:

$ fts delmount -dir directory_name

The -dir directory_name option is the name of the mount point you want to remove.

5. Log in as root on the machine on which the fileset resides.

6. Enter the dfsexport command with the -detach option to detach the partition from the DCE namespace:

# dfsexport -aggregate name -detach

The -aggregate name option specifies the device name or exported aggregate name of the partition to be detached.

The -detach option indicates that the specified partition is to be detached.

7. Use a text editor to remove the partition's entry from the dfstab file. An entry for a non-LFS partition in the dfstab file has the following format:

/dev/lv02 /usr ufs 1 0,,18756