srvctl remove exportfs

Removes the specified export file system configuration.

Note:

This command is only available with Oracle Clusterware.

Syntax and Parameters

Use the srvctl remove exportfs command with the following syntax:

srvctl remove exportfs -name exportfs_name [-force]

Table F-48 srvctl remove exportfs Parameters

Parameter Description
-name exportfs_name

Enter the unique name of the NFS export configuration you want to remove.

-force

Forcibly remove the resource, ignoring all dependencies.

Usage Notes

  • You must run this command as root user on Linux and UNIX platforms.

  • If you do not use the -force parameter, then you must first stop the NFS export you want to remove before you remove it.

  • If you use the -force parameter, the resulting configuration can cause errors when attempting to shut down the Oracle Clusterware stack.

Examples

To remove the stopped export file system named export1:

# srvctl remove exportfs -name export1

To remove a running export, leaving it exported:

# srvctl remove exportfs -name export1 -force