NAME | DESCRIPTION | FILES | EXAMPLES | ATTRIBUTES | SEE ALSO | NOTES
The nfs resource type implementation operates on a set of share commands stored in a “per-resource” file. The format of this file is exactly the same as that described in the dfstab(4) man page. This file's location is relative to the Pathprefix property of the containing resource group. This file must reside as SUNW.nfs/dfstab.resource_name under the Pathprefix directory that contains the resource group.
See r_properties(5) for a complete description of the following resource properties.
Type integer. Default is 120. This propery indicates the time out value (in seconds) to use when probing lockd.
Type integer. Default is 4. This property controls the restarts of the fault monitor. It indicates the number of times that the fault monitor is restarted by the Process Monitor Facility (PMF) and corresponds to the -n option passed to the pmfadm(1M) command. The number of restarts is counted in a specified time window (see the property Monitor_retry_interval). Note that this property refers to the restarts of the fault monitor itself, not the NFS daemons.
Type integer. Default is 2. This property indicates that the failures of the fault monitor are counted and corresponds to the -t option passed to thepmfadm(1M) command. If the number of times the fault monitor fails exceeds the extension property Monitor_retry_count, the fault monitor is not restarted by the Process Monitor Facility.
Type Boolean. Default is TRUE. Indicates if mountd should be restarted when a null rpc call fails.
Type integer; defaults to 120. This property indicates the time out value (in seconds) to use when probing mountd.
Type Boolean. Default is FALSE. This property indicates if nfsd should be restarted when a null rpc call fails.
Type integer. Default is 120. This property indicates the time out value (in seconds) to use when probing nfsd.
Type Boolean. Default is TRUE. Indicates if the system is to be rebooted when a null rpc call on rpcbind fails.
Type integer. Default is 120. This property indicates the time out value (in seconds) to use when probing rpcbind.
Type integer. Defaults to 120. This property indicates the time out value (in seconds) to use when probing statd.
The file is in dfstab format, which contains the list of share commands to be managed by the resource. This file must reside in the SUNW.nfs subdirectory under the Pathprefix directory of the containing resource group.
Critical state files used by the implementation.
For this example to work, the data service must first be installed. This example instantiates a failover NFS resource named hanfs-rs in a resource group named hanfs-rg. The hanfs-rg resource group is assumed to contain at least one logical hostname resource, which identifies the logical hostnames associated with the resource group.
example# clresourcetype register SUNW.nfs example# clresource create -g hanfs-rg -t SUNW.nfs hanfs-rs |
The resource group hanfs-rg must contain a valid path name as its Pathprefix property. A file named dfstab.hanfs-rs must reside in the subdirectory SUNW.nfs under the Pathprefix directory.
For this example to work, the data service must first be installed. This example instantiates a failover NFS resource named sap-nfs in a resource group named sap-rg. The system-defined property Thorough_probe_interval is set to 30 for this resource. The Network_resources_used property is set to a logical hostname relo-sap, which must reside in the same resource group, sap-rg.
example# clresourcetype register SUNW.nfs example# clresource create –g sap-rg –t SUNW.nfs \ -p Thorough_probe_interval=30 \ -p Network_resources_used=relo-sap sap-nfs |
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE |
ATTRIBUTE VALUE |
---|---|
Availability |
SUNWnfs |
lockd(1M), mountd(1M), nfsd(1M), pmfadm(1M),rpcbind(1M), scha_resource_get(3HA), clresourcetype(1CL), clresourcegroup(1CL), share(1M), statd(1M), rpc(3NSL), dfstab(4), attributes(5), r_properties(5)
Sun Cluster Data Services for NFS Guide for Solaris OS, Sun Cluster Data Services Planning and Administration Guide for Solaris OS
The path names being shared by means of dfstab.resource_name must be unique across all resources, and they cannot be present in the system dfstab file on any cluster node.
The implementation supports customization of the /etc/init.d/nfs.server script to start the nfsd daemon with a customized set of options.
The SUNW.nfs subdirectory under the Pathprefix directory of the containing resource group is also used by statd to save its state.
NAME | DESCRIPTION | FILES | EXAMPLES | ATTRIBUTES | SEE ALSO | NOTES