sun.com | docs.sun.com | How To Buy | My Sun | Worldwide Sites |  |

| Previous Contents Index Next
2. ## Integrating a Diskless Node Into the Cluster You must update the `/etc/hosts` file on each peer node in the cluster to include the IP addresses of the diskless node. You must also update the `nhfs.conf` file and the `cluster_nodes_table` file on the master-eligible nodes to include the diskless node. See the following procedures. To Update the `/etc/hosts` File on Each Peer Node To Add the Diskless Node to the `cluster_nodes_table`File To Update the Shared Directory Configuration ### To Update the `/etc/hosts` File on Each Peer Node To declare the diskless node to all peer nodes in the cluster, follow this procedure: Log in to the master node as superuser. Edit the `/etc/hosts` file to add the following lines:
       IP-address-NIC0		nic0-diskless-node-name
       IP-address-NIC1		nic1-diskless-node-name
       IP-address-cgtp0		cgtp0-diskless-node-name
2. Now, the master node can "see" the three network interfaces of the new diskless node. Log in to the vice-master node as superuser. Repeat Step 2. Now, the vice-master node can "see" the three network interfaces of the new diskless node. Log in to a diskless node that is part of the cluster, if a diskless node already exists. Repeat Step 2. Now, the diskless node can "see" the three network interfaces of the new diskless node. Repeat Step 5 and Step 6 on all other diskless nodes that are already part of the cluster. ### To Add the Diskless Node to the `cluster_nodes_table` File Update the cluster node table file, `cluster_nodes_table`, and the cluster configuration file, `nhfs.conf`, with the addressing information for the new diskless node. Log in to the master node as superuser. Using the following format, edit the `/etc/opt/SUNWcgha/cluster_nodes_table` file to add an entry for the diskless node:
       #NodeId     Domain_id		Name             Attributes
       nodeid        domainid		  diskless-node-name    -
3. The nodeid that you define in the `cluster_nodes_table` file must be the decimal representation of the host part of the node's IP address. For more information, see the `cluster_nodes_table`(4) man page. Create the `cluster_nodes_table` file on the master node disk:
       # /opt/SUNWcgha/sbin/nhcmmstat -c reload
2. Repeat Step 2 for each diskless node you are adding to the cluster. ### To Update the Shared Directory Configuration Specify the shared directory configuration in the `nhfs.conf` file on the master node and the vice-master node. Ensure that there is no existing shared directory configuration already specified in the `/etc/dfs/dfstab` file. Log in to the master node as superuser. Edit the `/etc/opt/SUNWcgha/nhfs.conf` file to add the following:
       Rnfs.Share.0=share -F nfs -o rw=nic0-diskless-node-name: \
       nic1-diskless-node-name:cgtp0-diskless-node-name, \
       root=nic0-diskless-node-name:nic1-diskless-node-name: \
       cgtp-diskless-node-name /export/swap/diskless-node-name

       Rnfs.Share.1=share -F nfs -o rw=nic0-diskless-node-name: \
       nic1-diskless-node-name:cgtp0-diskless-node-name, \
       root=nic0-diskless-node-name:nic1-diskless-node-name: \
       cgtp0-diskless-node-name /export/root/diskless-node-name
2. Update the `RNFS.Share.0` parameter that is used to share the `/SUNWcgha/local/export` directory to include the cgtp0-diskless-node-name of the diskless node: Log in to the vice-master node. Repeat Step 2 and Step 3 on the vice-master node. On the master node, edit the `/etc/dfs/dfstab` file to remove all uncommented lines. ## Starting the Cluster To integrate the new diskless node into the cluster, you delete the `not_configured` file and reboot the master-eligible nodes. When the Solaris operating system and the Foundation Services have been booted onto the diskless nodes, verify the new configuration before the cluster is restarted. ### To Delete the `not_configured` File The `/export/root/`diskless-node-name`/etc/opt/SUNWcgha/not_configured` file is automatically created during the installation of the CMM packages for the diskless node. This file enables you to reboot a cluster node during the installation and configuration process without starting the Foundation Services. After you complete the installation and configuration procedures, but before starting the cluster, delete this file for the diskless node. ### To Boot a Diskless Node Log in to the master node as superuser. Reboot the master node:
       # init 6
4. After the master node has completed booting, log in to the vice-master node as superuser. Reboot the vice-master node:
       # init 6
5. After the vice-master node has completed booting, get the `ok` prompt on the diskless node:
       # halt
       # Control-C
       telnet> send brk
       Type 'go' to resume
       ok>
6. Configure the OpenBoot PROM parameters:
       ok> setenv local-mac-address? true
       ok> setenv auto-boot-retry? true
       ok> setenv diag-switch? false
       ok> setenv boot-device net:dhcp,,,,,5 net2:dhcp,,,,,5
7. Reboot the diskless node:
       ok> boot
2. ### To Verify the Cluster Configuration Use the `nhadm` tool to verify that the diskless nodes have been configured correctly and are integrated into the cluster. Log in to the diskless node as superuser. Run the `nhadm` tool to validate the configuration:
       # nhadm check
If all checks pass the validation, the installation of the Foundation Services software was successful. For more information, see the `nhadm`(1M) man page.
Previous Contents Index Next

Copyright 1994-2004 Sun Microsystems