srvctl add exportfs

Creates an export file system configuration in Oracle Clusterware.

Note:

This command is only available with Oracle Clusterware.

Syntax and Parameters

Use the srvctl add exportfs command with the following syntax:

srvctl add exportfs -name unique_name -id havip_name -path path_to_export
    [-clients nfs_client_string] [-options nfs_client_string]

Table F-25 srvctl add exportfs Parameters

Parameter Description
-name unique_name

Enter a unique name for the NFS export you are creating. This parameter is required.

-id havip_name

Enter the number or name that identifies an existing HAVIP, that you specified in the srvctl add havip command. This parameter is required.

-path path_to_export

Enter the path to the Oracle Automatic Storage Management Cluster File System (Oracle ACFS) that you want to export. This parameter is required.

-clients nfs_client_string
-options nfs_client_string

Optionally, enter a comma-delimited list of clients to which you want the file system exported. You can enter net groups and wildcards. For example:

-clients @netgroup1,
*.us.___domain.com,
16.140.0.0, hostname1

Note: You can use the -clients parameter only for Linux systems. Use the -options parameter for Solaris and AIX systems.

Usage Notes

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

Examples

To export with operating system defaults:

# srvctl add exportfs -name export1 -id havip1 -path /u01/db1

To export read-only to certain clients:

# srvctl add exportfs -name export1 -id havip1 -path /u01/db1 -clients node1
-options ro