From mboxrd@z Thu Jan 1 00:00:00 1970 From: lhh@sourceware.org Date: 18 Jan 2008 19:36:47 -0000 Subject: [Cluster-devel] cluster/rgmanager/src/utils clusvcadm.c Message-ID: <20080118193647.13278.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Changes by: lhh at sourceware.org 2008-01-18 19:36:47 Modified files: rgmanager/src/utils: clusvcadm.c Log message: fix 429248 Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/utils/clusvcadm.c.diff?cvsroot=cluster&r1=1.23&r2=1.24 --- cluster/rgmanager/src/utils/clusvcadm.c 2007/11/30 20:06:55 1.23 +++ cluster/rgmanager/src/utils/clusvcadm.c 2008/01/18 19:36:47 1.24 @@ -153,34 +153,38 @@ void usage(char *name) { +printf("usage: %s [command]\n\n", name); + printf("Resource Group Control Commands:\n"); -printf(" %s -v Display version and exit\n",name); -printf(" %s -d Disable \n", name); -printf(" %s -e Enable \n", - name); -printf(" %s -e -F Enable according to failover\n" - " domain rules\n", name); -printf(" %s -e -m Enable " - " on \n", name); -printf(" %s -r -m Relocate [to ]\n", - name); -printf(" %s -M -m Migrate to \n", - name); -printf(" (e.g. for live migration of VMs)\n"); -printf(" %s -q Quiet operation\n", name); -printf(" %s -R Restart a group in place.\n", - name); -printf(" %s -s Stop \n", name); -printf("\n"); +printf(" -v Display version and exit\n"); +printf(" -d Disable . This stops a group\n" + " until an administrator enables it again,\n" + " the cluster loses and regains quorum, or\n" + " an administrator-defined event script\n" + " explicitly enables it again.\n"); +printf(" -e Enable \n"); +printf(" -e -F Enable according to failover\n" + " domain rules (deprecated; always the\n" + " case when using central processing)\n"); +printf(" -e -m Enable on \n"); +printf(" -r -m Relocate [to ]\n" + " Stops a group and starts it on another" + " cluster member.\n"); +printf(" -M -m Migrate to \n"); +printf(" (e.g. for live migration of VMs)\n"); +printf(" -q Quiet operation\n"); +printf(" -R Restart a group in place.\n"); +printf(" -s Stop . This temporarily stops\n" + " a group. After the next group or\n" + " or cluster member transition, the group\n" + " will be restarted (if possible).\n"); printf("Resource Group Locking (for cluster Shutdown / Debugging):\n"); -printf(" %s -l Lock local resource group manager.\n" - " This prevents resource groups from\n" - " starting on the local node.\n", - name); -printf(" %s -S Show lock state\n", name); -printf(" %s -u Unlock local resource group manager.\n" - " This allows resource groups to start\n" - " on the local node.\n", name); +printf(" -l Lock local resource group managers.\n" + " This prevents resource groups from\n" + " starting.\n"); +printf(" -S Show lock state\n"); +printf(" -u Unlock resource group managers.\n" + " This allows resource groups to start.\n"); }