[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Linux-cluster] Update cluster.conf in Fedora 10



As far as I'm aware, your not supposed to edit /etc/cluster/cluster.conf directly.

Doing so will cause cman to detect an unregistered change to
/etc/cluster/cluster.conf and roll back to the previous version (someone correct
me if I'm wrong here).

The correct procedure is to take a copy of the file, then increment number of the
cluster version, then use ccs_tool update to increment the cluster.

That is: -

# cp /etc/cluster/cluster.conf /tmp
# vi /tmp/cluster.conf  [increment it's number to a number higher than all nodes
in the cluster]
# ccs_tool update /tmp/cluster.conf

ccs_tool will then distribute the new file to all cluster nodes, and cause this
new version to be backed up as well (for further rollbacks of
/etc/cluster/cluster.conf).

Regards,

Stewart





On Wed Mar  4  7:34 , Doug Bunger  sent:

>I'm having trouble making the cluster aware of changes in Fedora 10 (x86_64). 
The setup has three VMs accessing a shared, attached partition, formatted as GFS.
   When modifying the cluster.conf and incrementing version number, I have to
boot the nodes.  I've found some online resources that say use cman_tool and
others that say use ccs_tool.  What is the correct commanf for Fedora 10?
>
> # cman_tool nodes 
> Node Sts Inc Joined Name 
> 2 M 172 2009-03-04 08:39:52 gfs2
> 3 M 172 2009-03-04 08:39:52 gfs3
> 4 M 160 2009-03-04 08:39:52 gfs4
> # head -2 /etc/cluster/cluster.conf
> <?xml version="1.0" ?>
> <cluster config_version="9" name="clust">
> # cman_tool version
> 6.1.0 config 9
> # vi /etc/cluster/cluster.conf
> # head -2
> /etc/cluster/cluster.conf
> <?xml version="1.0" ?>
> <cluster config_version="10" name="clust">
> # cman_tool version -r 10
> # cman_tool version
> 6.1.0 config 9
> # ccs_tool update /etc/cluster/cluster.conf
> Unknown command, update
> Try 'ccs_tool help' for help
>
>Thanks.
>
>
>
>      



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]