Video Screencast Help
Symantec Appoints Michael A. Brown CEO. Learn more.

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

Created: 19 Dec 2009 • Updated: 19 Feb 2013 | 4 comments
xhawk's picture
This issue has been solved. See solution.

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!

Comments 4 CommentsJump to latest comment

Dev Roy's picture

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

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.
 

davidnoy's picture

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

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.-

SOLUTION