Chapter 6. Managing Red Hat High Availability Add-On With Command Line Tools
This chapter describes various administrative tasks for managing Red Hat High Availability Add-On and consists of the following sections:
6.1. Starting and Stopping the Cluster Software
6.1.1. Starting Cluster Software
To start the cluster software on a node, type the following commands in this order:
service cman start
service clvmd start
, if CLVM has been used to create clustered volumes
service gfs2 start
, if you are using Red Hat GFS2
service rgmanager start
, if you using high-availability (HA) services (rgmanager
).
For example:
[root@example-01 ~]# service cman start
Starting cluster:
Checking Network Manager... [ OK ]
Global setup... [ OK ]
Loading kernel modules... [ OK ]
Mounting configfs... [ OK ]
Starting cman... [ OK ]
Waiting for quorum... [ OK ]
Starting fenced... [ OK ]
Starting dlm_controld... [ OK ]
Starting gfs_controld... [ OK ]
Unfencing self... [ OK ]
Joining fence domain... [ OK ]
[root@example-01 ~]# service clvmd start
Starting clvmd: [ OK ]
Activating VG(s): 2 logical volume(s) in volume group "vg_example" now active
[ OK ]
[root@example-01 ~]# service gfs2 start
Mounting GFS2 filesystem (/mnt/gfsA): [ OK ]
Mounting GFS2 filesystem (/mnt/gfsB): [ OK ]
[root@example-01 ~]# service rgmanager start
Starting Cluster Service Manager: [ OK ]
[root@example-01 ~]#
6.1.2. Stopping Cluster Software
To stop the cluster software on a node, type the following commands in this order:
service rgmanager stop
, if you using high-availability (HA) services (rgmanager
).
service gfs2 stop
, if you are using Red Hat GFS2
service clvmd stop
, if CLVM has been used to create clustered volumes
service cman stop
For example:
[root@example-01 ~]# service rgmanager stop
Stopping Cluster Service Manager: [ OK ]
[root@example-01 ~]# service gfs2 stop
Unmounting GFS2 filesystem (/mnt/gfsA): [ OK ]
Unmounting GFS2 filesystem (/mnt/gfsB): [ OK ]
[root@example-01 ~]# service clvmd stop
Signaling clvmd to exit [ OK ]
clvmd terminated [ OK ]
[root@example-01 ~]# service cman stop
Stopping cluster:
Leaving fence domain... [ OK ]
Stopping gfs_controld... [ OK ]
Stopping dlm_controld... [ OK ]
Stopping fenced... [ OK ]
Stopping cman... [ OK ]
Waiting for corosync to shutdown: [ OK ]
Unloading kernel modules... [ OK ]
Unmounting configfs... [ OK ]
[root@example-01 ~]#
Stopping cluster software on a node causes its HA services to fail over to another node. As an alternative to that, consider relocating or migrating HA services to another node before stopping cluster software. For information about managing HA services, refer to
Section 6.3, “Managing High-Availability Services”.