Introducing Network File System Version 4 on HP-UX 11i v3

27
Figure 22. Example Setting Up Physical File system with nfs4deleg Stackable Module
Figure 22 shows an example using the steps provided to create a mount with the stackable module.
For convenience, once the physical file system is set up, the stackfs= mount option can be used in
the /etc/fstab to mount the file system at boot time with the nfs4deleg module. For example:
/dev/vg00/lvol10 /skippy vxfs stackfs=nfs4deleg,delaylog 0 2
Once the physical file system is ready to use, the NFS server must be configured to support NFS
version 4 and the delegation feature must be enabled.
Setup NFS_SERVER_VERSMAX and NFS_SERVER_DELEGATION
# setoncenv NFS_SERVER_VERSMAX 4
# setoncenv NFS_SERVER_DELEGATION on
Restart the NFS server
# /sbin/init.d/nfs.server stop
# /sbin/init.d/nfs.server start
Once the NFS server is restarted, the physical file system /skippy will be able to support delegations
with local access. The stackable module is not supported on the root file system (“/”) and is
discouraged for use on /stand. All physical file systems that support NFSv4 delegations with local file
access must have the nfs4deleg stackable module mounted through the stackfs= option.
In general, the delegation stackable module for local access does the following if an NFS delegation
has been granted on the file:
1. The nfs4deleg module will intercept all vnode operations
2. If vnode operation does not issue a delegation recall, then directly call the physical file system