Forum Discussion

tanislavm's avatar
tanislavm
Level 6
11 years ago

Are VCS commands executed on all nodes

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

  • 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

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

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