Sun Microsystems
Products & Services
 
Support & Training
 
 

Previous Previous     Contents     Index     Next Next
Chapter 6

Starting and Stopping Services, Nodes, and Clusters

This chapter describes how to stop and start the Foundation Services, a node, or a cluster. This chapter contains the following sections:

Stopping and Restarting the Foundation Services

Maintenance on a peer node can disrupt communication between this node and services and applications running on other peer nodes. During maintenance, you must isolate a node from the cluster by starting the node without the Foundation Services. After maintenance, reintegrate the node into the cluster by restarting the Foundation Services.

ProcedureTo Start a Node Without the Foundation Services

  1. Log in as superuser to the node on which you want to stop the Foundation Services.

  2. Create the not_configured file on the node:

    # touch /etc/opt/SUNWcgha/not_configured

  3. Reboot the node:

    # init 6

    The node restarts without the Foundation Services running. If the node is the master node, this procedure causes a failover.

  4. Verify that the Foundation Services are not running

    # pgrep -x nhcrfsd

    If the Foundation Services have been stopped, no process identifier should be displayed for the nhcrfsd daemon.

ProcedureTo Restart the Foundation Services

Use this procedure to restart the Foundation Services on a node after performing the procedure in To Start a Node Without the Foundation Services.

  1. Log in as superuser to the node on which you want to restart the Foundation Services.

  2. Check that the /etc/opt/SUNWcgha/not_configured file is not present.

    If the /etc/opt/SUNWcgha/not_configured file is present, delete it.

  3. Reboot the node:

    # init 6

  4. Verify the configuration of the node:

    # nhadm check configuration

    If the node is configured correctly, the nhadm command does not encounter any errors.

    For information about the nhadm command, see the nhadm(1M) man page.

  5. Verify that the services have started correctly:

    # nhadm check starting

    If the Foundation Services have started correctly, the nhadm command does not encounter any errors.

Stopping and Restarting Daemon Monitoring

Sometimes you need to stop Daemon Monitoring to investigate why a monitored daemon has failed. This section describes how to stop and restart Daemon Monitoring.

For information about the causes of daemon failure at startup and runtime, see the Netra High Availability Suite Foundation Services 2.1 6/03 Troubleshooting Guide.

ProcedureTo Stop Daemon Monitoring


Note - Use this procedure with extreme caution. Incorrect editing of the /etc/inittab file can lead to major problems on your cluster.


This procedure stops the Daemon Monitoring. On reboot, the Daemon Monitoring is not automatically restarted.

  1. Log in as superuser to the node on which you want to stop the nhpmd daemon.

  2. Open the /etc/inittab file in a text editor.

  3. Delete the string .HA from the rc2.HA and rc3.HA entries shown here.

    s2:23:wait:/sbin/rc2.HA	>/dev/msglog 2<>/dev/msglog </dev/console
    s3:3:wait:/sbin/rc3.HA	>/dev/msglog 2<>/dev/msglog </dev/console

    This converts these entries back to the original Solaris rc2 and rc3 entries.

  4. Save and close the /etc/inittab file.

  5. Reboot the node.

    # init 6

    The Foundation Services start, and the Solaris and Foundation Services daemons that were monitored are no longer monitored.

ProcedureTo Restart Daemon Monitoring


Note - Use this procedure with extreme caution. Incorrect editing of the /etc/inittab file can lead to major problems on your cluster.


If Daemon Monitoring was stopped using To Stop Daemon Monitoring, restart Daemon Monitoring as follows:

  1. Log in to the node on which you want to restart the Daemon Monitoring.

  2. Open the /etc/inittab file in a text editor.

  3. Paste the string .HA in the rc2 and rc3 entries of the /etc/inittab file.

    The entries should be as follows:

    s2:23:wait:/sbin/rc2.HA	>/dev/msglog 2<>/dev/msglog </dev/console
    s3:3:wait:/sbin/rc3.HA	>/dev/msglog 2<>/dev/msglog </dev/console

  4. Use the sync command, as described in the sync(1M) man page.

  5. Reboot the node.

    The Foundation Services start and are monitored by the Daemon Monitor.

Previous Previous     Contents     Index     Next Next