cluster/ccs ccs_tool/ccs_tool.c ccs_tool/editc ...
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL4
Changes by: pcaulfield at sourceware.org 2007-02-14 10:15:47
Modified files:
ccs/ccs_tool : ccs_tool.c editconf.c editconf.h
ccs/man : ccs_tool.8
Log message:
Add the 'addnodeids' feature to ccs_tool so that people can fix cluster.conf before upgrading to RHEL5.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/ccs_tool/ccs_tool.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.2&r2=1.1.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/ccs_tool/editconf.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.8.2.2&r2=1.8.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/ccs_tool/editconf.h.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.4.1&r2=1.1.4.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/ccs/man/ccs_tool.8.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.1.2.3&r2=1.1.2.4
ccs/ccs_tool/ccs_tool.c +5 -0
@@ -82,6 +82,10 @@create_skeleton (argc-1 , argv+1 );exit (EXIT_FAILURE ); } +else if (!strcmp (argv[optind],"addnodeids" )){ +add_nodeids (argc-1 , argv+1 ); +exit (EXIT_FAILURE ); + }else { fprintf(stderr, "Unknown command, %s.\n"
@@ -116,5 +120,6 @@" addfence <fencedev> Add a new fence device\n" " delfence <fencedev> Delete a fence device\n" " create Create a skeleton config file\n" +" addnodeids Assign node ID numbers to all nodes\n" "\n"); }
ccs/ccs_tool/editconf.c +191 -0
226 lines not on this page · raw message
ccs/ccs_tool/editconf.h +1 -0
@@ -11,6 +11,7 @@******************************************************************************/ void add_node (int argc,char **argv); +void add_nodeids (int argc,char **argv);void add_fence (int argc,char **argv);void del_node (int argc,char **argv);void del_fence (int argc,char **argv);
ccs/man/ccs_tool.8 +9 -0
@@ -187,8 +187,16 @@ \fB-h --help\fP Display this help text for \fBccs_tool lsnode\fP. + .TP +\fBaddnodeids\fP +Adds node ID numbers to all the nodes in cluster.conf. In RHEL4, node IDs were optional +and assigned by cman when a node joined the cluster. In RHEL5 they must be pre-assigned +in cluster.conf. This command will not change any node IDs that are already set in +cluster.conf, it will simply add unique node ID numbers to nodes that do not already +have them. +.TP \fBupdate\fP \fI<xml file>\fP This command is used to update the config file that ccsd is working with while the cluster is operational (i.e. online). Run this on a single
@@ -205,6 +213,7 @@ xml format. \fI<location>\fP is the location of the old archive, which can be either a block device archive or a file archive. The converted configuration will be printed to stdout. +.TP .SH SEE ALSO ccs(7), ccsd(8), cluster.conf(5)