For Example: You have a service group(sg1) currently running on nodeA and you want to fail it over to node B. Then you need to run the below command to perform the failover.
hagrp -switch sg1 to nodeB
hagrp -switch sg1 to nodeB
This blog is to share the knowledge that I possessed in my career while working with multiple technologies across IT environments. I try to share as much relevant things as much possible to make the life system administrators easy and creative.
#
cfscluster status
NODE CLUSTER MANAGER STATE CVM STATE
serverA running not-running
serverB running not-running
serverC running not-running
serverD running not-running
Error: V-35-41: Cluster not configured for data sharing application
#
vxdctl -c mode
mode: enabled: cluster inactive
#
/etc/vx/bin/vxclustadm nidmap
Out of cluster: No mapping information available
#
/etc/vx/bin/vxclustadm -v nodestate
state: out of cluster
#
hastatus -sum
-- SYSTEM STATE
-- System State Frozen
A serverA RUNNING 0
A serverB RUNNING 0
A serverC RUNNING 0
A serverD RUNNING 0
Configure the cluster for CFS
During
configuration, veritas will pick up all information that is set on your
cluster configuration. And will activate CVM on all the nodes.
#
cfscluster config
The cluster configuration information as read from cluster
configuration file is as follows.
Cluster : MyCluster
Nodes : serverA serverB serverC serverD
You will now be prompted to enter the information pertaining
to the cluster and the individual nodes.
Specify whether you would like to use GAB messaging or TCP/UDP
messaging. If you choose gab messaging then you will not have
to configure IP addresses. Otherwise you will have to provide
IP addresses for all the nodes in the cluster.
------- Following is the summary of the information: ------
Cluster : MyCluster
Nodes : serverA serverB serverC serverD
Transport : gab
-----------------------------------------------------------
Waiting for the new configuration to be added.
========================================================
Cluster File System Configuration is in progress...
cfscluster: CFS Cluster Configured Successfully
Check the status of the cluster#
cfscluster status
Node : serverA Cluster Manager : running CVM state : running No mount point registered with cluster configuration Node : serverB Cluster Manager : running CVM state : running No mount point registered with cluster configuration Node : serverC Cluster Manager : running CVM state : running No mount point registered with cluster configuration Node : serverD Cluster Manager : running CVM state : running No mount point registered with cluster configuration#
vxdctl -c mode
mode: enabled: cluster active - MASTER master: serverA#
/etc/vx/bin/vxclustadm nidmap
Name CVM Nid CM Nid State serverA 0 0 Joined: Master serverB 1 1 Joined: Slave serverC 2 2 Joined: Slave serverD 3 3 Joined: Slave#
/etc/vx/bin/vxclustadm -v nodestate
state: cluster member nodeId=0 masterId=1 neighborId=1 members=0xf joiners=0x0 leavers=0x0 reconfig_seqnum=0xf0a810 vxfen=off#
hastatus -sum
-- SYSTEM STATE -- System State Frozen A serverA RUNNING 0 A serverB RUNNING 0 A serverC RUNNING 0 A serverD RUNNING 0 -- GROUP STATE -- Group System Probed AutoDisabled State B cvm serverA Y N ONLINE B cvm serverB Y N ONLINE B cvm serverC Y N ONLINE B cvm serverD Y N ONLINE