The following describes how to install nodeC NFS. For this part, we provide specific operation steps and related code. Hope to help you.
1. On nodeC, become a super user or use a role that provides solaris. cluster. admin RBAC authorization.
2. Create a mount point directory for the NFS file system on nodeC.
For example:
NodeC # mkdir/global/mountpoint
3. On nodeC, configure the master volume to be automatically installed on the Installation Point.
Add or replace the following text in the/etc/vfstab file of nodeC. The text must be in one line.
/Dev/vx/dsk/devgrp/vol01/dev/vx/rdsk/devgrp/vol01 \
/Global/mountpoint ufs 3 no global, logging
4. On nodeC, create a volume for the file system information used by the Sun Cluster HA for NFS data service.
NodeC # vxassist-g devgrp make vol05 120 m disk1
Volume 5 (vol05) contains the file system information used by the Sun Cluster HA for NFS data service.
5. On nodeC, the device group and Sun Cluster software are re-synchronized.
NodeC # cldevicegroup sync devgrp
6. Create a file system for vol05 on nodeC.
NodeC # newfs/dev/vx/rdsk/devgrp/vol05
7. On nodeC, create an installation point for vol05.
The following example creates a mount point/global/etc.
NodeC # mkdir/global/etc
8. On nodeC, configure vol05 to automatically install on the Installation Point.
Add or replace the following text in the/etc/vfstab file of nodeC. The text must be in one line.
/Dev/vx/dsk/devgrp/vol05/dev/vx/rdsk/devgrp/vol05 \
/Global/etc ufs 3 yes global, logging
9. Install vol05.
NodeC # mount/global/etc
10. enable remote system access to vol05.
A. Create a directory named/global/etc/SUNW. nfs on nodeC.
NodeC # mkdir-p/global/etc/SUNW. nfs
B. Create the/global/etc/SUNW. nfs/dfstab. nfs-rs file on nodeC.
NodeC # touch/global/etc/SUNW. nfs/dfstab. nfs-rs
C. Add the following line to the/global/etc/SUNW. nfs/dfstab. nfs-rs file of nodeC:
Share-F nfs-o rw-d "ha nfs"/global/mountpoint