Sun GlassFish Enterprise Server 2.1 High Availability Administration Guide

Stopping a Node

You might need to stop a node to repair or upgrade the host machine’s hardware or software. To stop a node, use the hadbm stopnode command. The command syntax is:

hadbm stopnode  
[--adminpassword=password | --adminpasswordfile=file]  

The nodeno operand specifies the number of the node to stop. The mirror node of this node number must be running. Use hadbm status to display the numbers of all nodes in a database.

The dbname operand specifies the database name. The default is hadb.

The hadbm stopnode command has one special option, --no-repair (short form -R) that indicates no spare node is to replace the stopped node. Without this option, a spare node starts up and takes over the functioning of the stopped node.

See General Options for a description of other command options. For more information, see hadbm-stopnode(1).

Example 3–7 Example of stopping a node

hadbm stopnode 1