![]() |
|||
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
![]() ![]() |
![]() |
| |||||||
|
# cp /etc/opt/SUNWcgha/nhfs.conf.template /etc/opt/SUNWcgha/nhfs.conf |
Edit the nhfs.conf file to suit your cluster configuration.
An example file for a dataless node on a cluster with the domain ID 250, with network interfaces eri0, eri1, and cgtp0 would be as follows:
Node.NodeId=40 Node.NIC0=eri0 Node.NIC1=eri1 Node.NICCGTP=cgtp0 Node.UseCGTP=True Node.Type=Dataless Node.DomainId=250 CMM.IsEligible=False CMM.LocalConfig.Dir=/etc/opt/SUNWcgha |
Choose a unique nodeid and unique node name for the dataless node. To view the nodeid of each node already in the cluster, see the /etc/opt/SUNWcgha/cluster_nodes_table file on the master node. For more information, see the nhfs.conf(4) man page.
If you have not installed the CGTP patches and packages, do the following:
Disable the Node.NIC1 and Node.NICCGTP parameters.
To disable these parameters, add a comment mark (#) at the beginning of the line containing the parameter if this mark is not already present.
Configure the Node.UseCGTP and the Node.NIC0 parameters:
Node.UseCGTP=False
Node.NIC0=interface-name
where interface-name is the name of the NIC0 interface, for example, hme0, qfe0, or eri0.
To enable the Watchdog Timer, you must modify the nhfs.conf file. The Watchdog Timer can be configured differently on each node according to your requirements. For more information, see the nhfs.conf(4) man page.
Update the /etc/vfstab file in the dataless node's root directory to add the NFS mount points for master node directories that contain middleware data and services.
Log in to a dataless node as superuser.
Edit the entries in the /etc/vfstab file.
If you have configured the CGTP, replace the host name of the master node with the host name associated with the floating IP address for the cgtp0 interface that is assigned to the master role, for example, master-cgtp.
If you have not configured the CGTP, replace the host name of the master node with the host name associated with the floating IP address for the NIC0 interface that is assigned to the master role, for example, master-nic0.
For more information about floating addresses of the master nodes, see To Create Floating Address Triplet Assigned to the Master Role.
Define the mount points /SUNWcgha/remote, SUNWcgha/services, and /SUNWcgha/swdb:
If you have configured the CGTP, use the floating IP address for the cgtp0 interface that is assigned to the master role to define the mount points.
master-cgtp:/SUNWcgha/local/export/data - \ /SUNWcgha/remote nfs - yes rw,hard,fg,intr master-cgtp:/SUNWcgha/local/export/services/ha_v1/opt - \ /SUNWcgha/services nfs - yes rw,hard,fg,intr master-cgtp:/SUNWcgha/local/export/services - \ /SUNWcgha/swdb nfs - yes rw,hard,fg,intr |
If you have not configured the CGTP, use the floating IP address for the NIC0 interface that is assigned to the master role.
master-nic0:/SUNWcgha/local/export/data - \ /SUNWcgha/remote nfs - yes rw,hard,fg,intr master-nic0:/SUNWcgha/local/export/services/ha_v1/opt - \ /SUNWcgha/services nfs - yes rw,hard,fg,intr master-nic0:/SUNWcgha/local/export/services - \ /SUNWcgha/swdb nfs - yes rw,hard,fg,intr |
All file systems that you mount by using NFS must be mounted with the options fg, hard, and intr. You can also set the noac mount option, which suppresses data and attribute caching. Use the noac option only if the impact on performance is acceptable.
Note - Do not use IP addresses in the /etc/vfstab file for the dataless node. Instead, use logical host names. Otherwise, the pkgadd -R command fails and return the following message:
WARNING: <cannot install to or verify on <master_ip> |
Create the mount points /SUNWcgha/remote, /SUNWcgha/services, and /SUNWcgha/swdb:
# mkdir -p SUNWcgha/remote # mkdir -p SUNWcgha/services # mkdir -p SUNWcgha/swdb |
Repeat Step 1 through Step 4 for all dataless nodes in the cluster.
The following procedures explain how to integrate a dataless node into the cluster.
Log in to the master node as superuser.
Edit the /etc/hosts file to add the following lines:
IP-address-NIC0 nic0-dataless-node-name IP-address-NIC1 nic1-dataless-node-name IP-address-cgtp0 cgtp0-dataless-node-name |
This modification enables the master node to "see" the network interfaces of the dataless node.
Log in to the vice-master node as superuser.
Repeat Step 2.
This modification enables the vice-master node to "see" the three network interfaces of the dataless node.
Log in to a dataless node that is part of the cluster, if a dataless node already exists.
Repeat Step 2.
This modification enables the dataless node to "see" the three network interfaces of the dataless node.
Repeat Step 5 and Step 6 on all other diskless and dataless nodes that are already part of the cluster.
![]() ![]() |