Hi Ante,
thanks a lot for your bugfix!
I do not need 'alias' at all. So that's OK!
'cman_tool version -r' just produces not a very nice error message. Maybe you just write a little ccs_sync that outputs a nice error message and exits with error code?
That's my tiny solution for ccs_sync:
#!/bin/bash
CLUSTERCONF=/etc/cluster/cluster.conf
nodes="$( cman_tool nodes | tail -n +2 | awk '{print $6}' )" localnode="$( cman_tool status | grep '^Node name: ' | awk '{print $3}' )" othernodes="$( echo ' '$nodes' ' | sed 's/ '$localnode' / /g' )"
for node in $othernodes; do scp $CLUSTERCONF $node:$CLUSTERCONF done
Best regards Christian
Hi Ante,
thanks a lot for your bugfix!
I do not need 'alias' at all. So that's OK!
'cman_tool version -r' just produces not a very nice error message.
Maybe you just write a little ccs_sync that outputs a nice error message and exits with error code?
That's my tiny solution for ccs_sync:
#!/bin/bash
CLUSTERCONF= /etc/cluster/ cluster. conf
nodes="$( cman_tool nodes | tail -n +2 | awk '{print $6}' )"
localnode="$( cman_tool status | grep '^Node name: ' | awk '{print $3}' )"
othernodes="$( echo ' '$nodes' ' | sed 's/ '$localnode' / /g' )"
for node in $othernodes; do
scp $CLUSTERCONF $node:$CLUSTERCONF
done
Best regards
Christian