cancel
Showing results for 
Search instead for 
Did you mean: 

Are VCS commands executed on all nodes

tanislavm
Level 6

Moved from post "vcs upgrade" as a separate issue:

When a resource is added from one vcs node with: haconf -makerw hagrp -add groupw hares -add diskgroup haconf -dump -makero Then all the above commands are executed on all vcs nodes.right?had from every vcs nodes using gab knows that now should to execute the above commands. when a new node join to an vcs then all the information regarding nodes,resource group so on are loaded into memory from the remote vcs nodes.right? tnx so much, marius

7 REPLIES 7

mikebounds
Level 6
Partner Accredited

The command issued on one node will result in the config copy held in memory being updated on all nodes, so that all nodes have the same in-memory config containing the newly added resource.

When a new node joins, the config is read from memory from the other nodes.

Mike

tanislavm
Level 6
Hi Mike, Fine but in the same time the main.cf from every local system disk is updated on every node being executed in every node commands like hares -modify , haconf -makerw,so on.right? tnx a lot, marius

mikebounds
Level 6
Partner Accredited

When you run" hares -modify", the main.cf on local system disk is not updated, even on the node you run it on.  When you run "haconf -makerw" - the in-memory contents of the VCS config is written to local disk - i.e main.cf and *types.cf.

Mike

tanislavm
Level 6
Hi Mike, Only a thing. When a node join to a vcs,and the service which normally runs on this node,runs on a different node in vcs,then after the content of memory from other nodes loads in memory of this node,this node will check if the service is started on other node.So base on this information this node will not start now the service.right? tnx a lot, marius

mikebounds
Level 6
Partner Accredited

Correct

g_lee
Level 6

correction to post above ( https://www-secure.symantec.com/connect/forums/are-vcs-commands-executed-all-nodes#comment-9226331 )

haconf -makerw only changes the config to read-write mode.

The config is only written to disk once you issue haconf -dump [-makero]

per man page: https://sort.symantec.com/public/documents/sfha/5.1sp1/solaris/manualpages/html/manpages/cluster_server/html/man1m/haconf.1m.html

-makerw

Change VCS to read-write mode, after which changes to the configuration can be made while VCS is running. The configuration must be written back to disk by specifying the -dump option. Otherwise, when VCS stops and restarts later the configuration changes are not effective.

Girish_Puppala
Level 3

You are right Lee

 

-Girish Puppala