Linux RHCS basic maintenance commands
This article only describes some of the most basic maintenance commands for Linux RHCS.
1. view the cluster status
2. The cluster is started normally.
3. The cluster is shut down normally.
4. Check whether the service is turned off and started.
1. view the cluster status
Clustat
Cman_tool status
Cman_tool nodes-
The following is an example of the display results of these command queries:
#1.1 clustat view Cluster status (most commonly used)
In Node 1, the Local state is displayed on node 1.
# Clustat
Cluster Status for new_cluster @ Tue Sep 1 12:23:09 2015
Member Status: Quorate
Member Name ID Status
--------------------
Heartdb1 Online, Local, rgmanager
Heartdb2 2 Online, rgmanager
Service Name Owner (Last) State
---------------------------
Service: orares heartdb1 started
#1.2 view cman_tool status
# Cman_tool status
Version: 6.2.0
Config Version: 18
Cluster Name: new_cluster
Cluster Id 23732
Cluster Member: Yes
Cluster Generation: 432
Membership state: Cluster-Member
Nodes: 2
Expected votes: 1
Total votes: 2
Quorum: 1
Active subsystems: 8
Flags: 2 node Dirty
Ports Bound: 0 177
Node name: heartdb1
Node ID: 1
Multicast addresses: 239.192.92.17
Node addresses: 192.168.1.1
#1.3 cman_tool view nodes information
# Cman_tool nodes-
Node Sts Inc Joined Name
1 M 404 2015-08-03 17:52:20 heartdb1
Addresses: 192.168.1.1
2 M 432 2015-09-01 14:32:27 heartdb2
Addresses: 192.168.1.2
2. The cluster is started normally.
Start cman and then rgmanager.
Service cman start
Service rgmanager start
The following is an example of a normal cluster startup process:
Note: Each node starts cman in sequence and then rgmanager in sequence. Pay attention to the startup sequence.
# Service cman start
Starting cluster:
Loading modules... done
Mounting configfs... done
Starting ccsd... done
Starting cman... done
Starting daemons... done
Starting fencing... done
[OK]
# Service rgmanager start
Start Cluster Service Manager: [OK]
3. The cluster is shut down normally.
Disable rgmanager and then cman.
Service rgmanager stop
Service cman stop
The following is an example of a normal cluster shutdown process:
Note: Each node first closes rgmanager and then cman.
# Service rgmanager stop
Shutting down Cluster Service Manager...
Waiting for service to stop: [OK]
Cluster Service Manager is stopped.
# Service cman stop
Stopping cluster:
Stopping fencing... done
Stopping cman... done
Stopping ccsd... done
Unmounting configfs... done
[OK]
4. Check whether the service is turned off and started.
Chkconfig -- list | grep cman
Chkconfig -- list | grep rgmanager
The following results are all disabled:
# Chkconfig -- list | grep cman
Cman 0: Close 1: Close 2: Close 3: Close 4: Close 5: Close 6: Close
# Chkconfig -- list | grep rgmanager
Rgmanager 0: Close 1: Close 2: Close 3: Close 4: Close 5: Close 6: Close
RHCS + GFS (Red Hat HA + GFS)
Web Service shared storage cluster architecture based on RHCS + iSCSI + CLVM
RHCS multi-node deployment application enterprise environment
RedHat 5.8x64 RHCS Oracle 10gR2 HA practice Configuration
RHCS Java-based HA dual-machine hot standby
Illustration of RHCS installation configuration and application
This article permanently updates the link address: