Bug 764279 (GLUSTER-2547)

Summary: rebalance command usage and help mis-match
Product: [Community] GlusterFS Reporter: shishir gowda <sgowda>
Component: cliAssignee: shishir gowda <sgowda>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: mainlineCC: gluster-bugs, nsathyan, rahulcs, vbhat
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description shishir gowda 2011-03-17 06:31:25 UTC
here is the usage format:

gluster> volume rebalance 
Usage: volume rebalance <VOLNAME> [fix-layout|migrate-data] {start|stop|status}

on issuing the command:

gluster> volume rebalance new fix-layout start
Usage: volume rebalance <VOLNAME> [fix-layout|migrate-data] {start|stop|status}
<-----fails.

whereas without subcommand succeeds:

gluster> volume rebalance new start
starting rebalance on volume new has been successful

Comment 1 Vijay Bellur 2011-03-19 00:36:29 UTC
PATCH: http://patches.gluster.com/patch/6496 in master (Added checks for fix-layout & migrate-data usage.)

Comment 2 M S Vishwanath Bhat 2011-04-07 03:50:00 UTC
Now the help message is consistent with the actual usage

root@tortuga:/disk1# gluster volume rebalance hosdu fix-layout start
starting rebalance on volume hosdu has been successful
root@tortuga:/disk1# gluster volume rebalance hosdu fix-layout status
rebalance step 1: layout fix complete: fixed layout 1

root@tortuga:/disk1# gluster volume rebalance hosdu migrate-data start
starting rebalance on volume hosdu has been successful
root@tortuga:/disk1# gluster volume rebalance hosdu migrate-data status
rebalance step 2: data migration in progress: rebalanced 9 files of size 47185920 (total files scanned 16)
root@tortuga:/disk1# gluster volume rebalance hosdu migrate-data status
rebalance step 2: data migration complete: rebalanced 54 files of size 283115520 (total files scanned 154)