Stopping a Node

You may want to stop a node if you want to replace hardware or software on the machine, and you need to stop the machine.


Caution

Do not stop a node if its mirror node is not running, because this may force the database into a Non Operational state. For details about node status, see "Getting the Status of the HADB".


To stop a node in the database, use the hadbm stopnode command. The syntax is as follows:

hadbm stopnode [--no-repair] nodeno [dbname]

For example:

hadbm stopnode 1


Note

If you have set up inetd, the node supervisor is automatically restarted when you stop a node. The result is that the node resumes the running state but is in the offline role. A node that is in the running state and has the offline role is equivalent to a stopped node. A host machine in which all nodes have offline roles can be shut down safely.

If you stop a node with hadbm stopnode, you must start it with hadbm startnode, even if inetd is used, because inetd can’t start an offline node.


The hadbm stopnode command options are listed in the following table.

Table 0-11  hadbm stopnode Options 

Long Form

Short Form

Default

Description

--no-repair

-R

not present

If present, the node is stopped and no spare node replaces the stopped node. By default, a spare node starts up and takes over the functioning of the stopped node.

nodeno

none

none

Specifies the node you want to stop. You can use the hadbm status command to display the numbers of all nodes in a database. The mirror node of this node number must be running.

dbname

none

hadb

Specifies the database name.


Legal Notices