This issue has been solved.

In SFCFS, How to manually force a node to be master?

Created: 19 Dec 2009 • Updated: 19 Feb 2013
xhawk's picture
Login to vote
0 0 Votes

I have a 2-node cluster under SFCFS: Sun1 and Sun2

The command shows:
sun1#vxdctl -c mode
mode: enabled: cluster active - SLAVE
master: sun2
--------------------------------------
How can I manually force sun1 to be the master node of the cluster?
The command below is used to set primaryship(master) of a mounted volume:
#fsclustadm -v setprimary mount_point

Is there a command to set the "master of cluster", instead of "master of mounted volume" ?
Thanks!

Quick Look Solution

Here's an update with the new

Here's an update with the new version functionalities.

 

[root@cfs01 host0]# vxdctl -c mode

mode: enabled: cluster active - SLAVE

master: cfs03

[root@cfs01 host0]# vxclustadm setmaster cfs01

[root@cfs01 host0]# vxdctl -c mode

mode: enabled: cluster active - MASTER

master: cfs01

[root@cfs01 host0]#

 

 

Thanks,

 

Carlos.-

Filed Under

Comments

Dev Roy's picture
Dev Roy
Accredited
Accredited
Certified
19
Dec
2009

There is no manual command to

There is no manual command to switch the mastership. If you shutdown master then slave takes over the mastership.

Consulting Storage Foundation, VCS, VVR and CVM/CFS on Unix. If this post has helped you, please "Vote" or "Mark as Solution" as appropriate.

Gaurav Sangamnerkar's picture
Gaurav Sangamnerkar
Trusted Advisor
Certified
21
Dec
2009

Hello, Yes, there is no way

Hello,

Yes, there is no way uptil now to switch mastery.... If you see "vxclustadm nodeid" command, the node with lower nodeid will take the mastery if you shutdown master.....

Nodeid is decided on the basis of LLT host id defined in /etc/llthosts file....

Gaurav

PS: If you are happy with the answer provided, please mark the post as solution. You can do so by clicking link "Mark as Solution" below the answer provided.
 

15
Apr
2010

In the next version of CVM

In the next version of CVM coming later this year you can do an online master switch for CVM and you can set the prefered order
for CVM masters before the CVM diskgroup is brought online.

ccarrero's picture
ccarrero
Admin
19
Feb
2013
SOLUTION

Here's an update with the new

Here's an update with the new version functionalities.

 

[root@cfs01 host0]# vxdctl -c mode

mode: enabled: cluster active - SLAVE

master: cfs03

[root@cfs01 host0]# vxclustadm setmaster cfs01

[root@cfs01 host0]# vxdctl -c mode

mode: enabled: cluster active - MASTER

master: cfs01

[root@cfs01 host0]#

 

 

Thanks,

 

Carlos.-