Sun Microsystems
Products & Services
 
Support & Training
 
 

Previous Previous     Contents     Index     Next Next

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.

ProcedureTo Update the /etc/hosts File on Each Peer Node

To declare the diskless node to all peer nodes in the cluster, follow this procedure:

  1. Log in to the master node as superuser.

  2. 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

    Now, the master node can "see" the three network interfaces of the new diskless node.

  3. Log in to the vice-master node as superuser.

  4. Repeat Step 2.

    Now, the vice-master node can "see" the three network interfaces of the new diskless node.

  5. Log in to a diskless node that is part of the cluster, if a diskless node already exists.

  6. Repeat Step 2.

    Now, the diskless node can "see" the three network interfaces of the new diskless node.

  7. Repeat Step 5 and Step 6 on all other diskless nodes that are already part of the cluster.

ProcedureTo 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.

  1. Log in to the master node as superuser.

  2. 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    -

    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.

  3. Create the cluster_nodes_table file on the master node disk:

    # /opt/SUNWcgha/sbin/nhcmmstat -c reload

  4. Repeat Step 2 for each diskless node you are adding to the cluster.

ProcedureTo 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.

  1. Log in to the master node as superuser.

  2. 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

  3. 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:

  4. Log in to the vice-master node.

  5. Repeat Step 2 and Step 3 on the vice-master node.

  6. 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.

ProcedureTo 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.

  1. After you complete the installation and configuration procedures, but before starting the cluster, delete this file for the diskless node.

ProcedureTo Boot a Diskless Node

  1. Log in to the master node as superuser.

  2. Reboot the master node:

    # init 6

  3. After the master node has completed booting, log in to the vice-master node as superuser.

  4. 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

ProcedureTo Verify the Cluster Configuration

Use the nhadm tool to verify that the diskless nodes have been configured correctly and are integrated into the cluster.

  1. Log in to the diskless node as superuser.

  2. 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 Previous     Contents     Index     Next Next