Name

ocf:exportfs — Manages NFS exports

Synopsis

[OCF_RESKEY_clientspec=string] [OCF_RESKEY_options=string] [OCF_RESKEY_directory=string] OCF_RESKEY_fsid=string [OCF_RESKEY_unlock_on_stop=boolean] [OCF_RESKEY_wait_for_leasetime_on_stop=boolean] [OCF_RESKEY_rmtab_backup=string] exportfs [start | stop | monitor | meta-data | validate-all]

Description

Exportfs uses the exportfs command to add/remove nfs exports. It does NOT manage the nfs server daemon. It depends on Linux specific NFS implementation details, so is considered not portable to other platforms yet.

Supported Parameters

OCF_RESKEY_clientspec= Client ACL.

The client specification allowing remote machines to mount the directory over NFS.

OCF_RESKEY_options= Export options.

The options to pass to exportfs for the exported directory.

OCF_RESKEY_directory= The directory to export.

The directory which you wish to export using NFS.

OCF_RESKEY_fsid= Unique fsid within cluster.

The fsid option to pass to exportfs. This can be a unique positive integer, a UUID, or the special string "root" which is functionally identical to numeric fsid of 0. 0 (root) identifies the export as the root of an NFSv4 pseudofilesystem -- avoid this setting unless you understand its special status. This value will override any fsid provided via the options parameter.

OCF_RESKEY_unlock_on_stop= Unlock filesystem on stop?

Relinquish NFS locks associated with this filesystem when the resource stops. Enabling this parameter is highly recommended unless the path exported by this exportfs resource is also exported by a different resource.

OCF_RESKEY_wait_for_leasetime_on_stop= Ride out the NFSv4 lease time on resource stop?

When stopping (unexporting), wait out the NFSv4 lease time. Only after all leases have expired does the NFS kernel server relinquish all server-side handles on the exported filesystem. If this exportfs resource manages an export that resides on a mount point designed to fail over along with the NFS export itself, then enabling this parameter will ensure such failover is working properly. Note that when this parameter is set, your stop timeout MUST accommodate for the wait period. This parameter is safe to disable if none of your NFS clients are using NFS version 4 or later.

OCF_RESKEY_rmtab_backup= Location of the rmtab backup, relative to directory.

Back up those entries from the NFS rmtab that apply to the exported directory, to the specified backup file. The filename is interpreted as relative to the exported directory. This backup is required if clients are connecting to the export via NFSv3 over TCP. Note that a configured monitor operation is required for this functionality. To disable rmtab backups, set this parameter to the special string "none".


SUSE Linux Enterprise High Availability Extension High Availability Guide 11 SP3