I am going to show how to do a failover of ServiceGroup in RHEL6 Cluster
[root@node1 /]# clustat
Cluster Status for mycluster @ Mon Jan 13 21:33:34 2014
Member Status: Quorate
Member Name ID Status
------ ---- ---- ------
node1 1 Online, Local, rgmanager
node2 2 Online, rgmanager
Service Name Owner (Last) State
------- ---- ----- ------ -----
service:Oracle_SG node1 started
[root@node1 /]#
The Oracle_SG is running on node1
I am going to run on node2.
[root@node1 /]# clusvcadm -r service:Oracle_SG -m node2
Trying to relocate service:Oracle_SG to node2...Success
service:Oracle_SG is now running on node2
[root@node1 /]#
[root@node1 /]# clustat
Cluster Status for mycluster @ Mon Jan 13 21:37:14 2014
Member Status: Quorate
Member Name ID Status
------ ---- ---- ------
node1 1 Online, Local, rgmanager
node2 2 Online, rgmanager
Service Name Owner (Last) State
------- ---- ----- ------ -----
service:Oracle_SG node2 started
[root@node1 /]#
[root@node1 /]# clustat
Cluster Status for mycluster @ Mon Jan 13 21:33:34 2014
Member Status: Quorate
Member Name ID Status
------ ---- ---- ------
node1 1 Online, Local, rgmanager
node2 2 Online, rgmanager
Service Name Owner (Last) State
------- ---- ----- ------ -----
service:Oracle_SG node1 started
[root@node1 /]#
The Oracle_SG is running on node1
I am going to run on node2.
[root@node1 /]# clusvcadm -r service:Oracle_SG -m node2
Trying to relocate service:Oracle_SG to node2...Success
service:Oracle_SG is now running on node2
[root@node1 /]#
[root@node1 /]# clustat
Cluster Status for mycluster @ Mon Jan 13 21:37:14 2014
Member Status: Quorate
Member Name ID Status
------ ---- ---- ------
node1 1 Online, Local, rgmanager
node2 2 Online, rgmanager
Service Name Owner (Last) State
------- ---- ----- ------ -----
service:Oracle_SG node2 started
[root@node1 /]#
No comments:
Post a Comment