On 30/03/16 17:09 +0200, Roberto Munoz Gomez wrote: > I am trying to migrate the bindnetaddr option from corosync.conf to > cluster.conf but couldn't make it work. I want to use this interface for > corosync traffic. > > inet addr:10.76.125.236 Bcast:10.76.125.239 Mask:255.255.255.240
Looking at cluster.rng schema (/var/lib/cluster/cluster.rng or the respective counterpart tracked statically in the repository[1]), you'll want to configure what can be described with XPath "/cluster/totem/interface/@bindnetaddr", for instance using ccs: # ccs --sync --exp interface 'cluster:totem' bindnetaddr=10.76.125.224 (value obtained with: ipcalc -n 10.76.125.236 255.255.255.240) You will likely have to restart the cluster software for this change to be taken into account. I haven't tested this will work, it also depends on if you have pre-existing "interface" element in that place. > In man cluster.conf says the last octect must be 0. Here, you are likely confusing cluster.conf with corosync.conf. Or perhaps something entirely else, as even that man page states that network address should be used (last octet zeroed is only for a specific case of /24 netmask, i.e., 255.255.255.0). > But despite ccs_config validate says it is ok, the cman_tool fails. ccs_config is a very weak form of a validation and only performs superficial data type checking, if at all (most of the cases). It's more a syntactical sanity check + "only defined resource/fence agents referred?" detector. Keep that in mind. [1] https://git.fedorahosted.org/cgit/cluster.git/tree/config/tools/xml/cluster.rng.in.head?h=cluster-3.2.0#n310 -- Jan (Poki)
pgparEuRQCEJo.pgp
Description: PGP signature
_______________________________________________ Users mailing list: Users@clusterlabs.org http://clusterlabs.org/mailman/listinfo/users Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://bugs.clusterlabs.org