| Summary: | rebalance command usage and help mis-match | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | shishir gowda <sgowda> |
| Component: | cli | Assignee: | shishir gowda <sgowda> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | mainline | CC: | 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: | |
PATCH: http://patches.gluster.com/patch/6496 in master (Added checks for fix-layout & migrate-data usage.) 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) |
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