Bug 764279 (GLUSTER-2547) - rebalance command usage and help mis-match
Summary: rebalance command usage and help mis-match
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-2547
Product: GlusterFS
Classification: Community
Component: cli
Version: mainline
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: shishir gowda
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-17 06:31 UTC by shishir gowda
Modified: 2013-12-09 01:23 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

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)


Note You need to log in before you can comment on or make changes to this bug.