| Summary: | Two-part rebalance is unusable | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Vikas Gorur <vikas> |
| Component: | cli | Assignee: | Amar Tumballi <amarts> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.1.3 | CC: | gluster-bugs, rabhat, vraman |
| 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 committed for this. http://patches.gluster.com/patch/6496/ Once we have 3.2.0 ready, we will migrate it back to 3.1.x branch. Regards, Amar http://patches.gluster.com/patch/6649/ fixes bug in release-3.1 branch.. committed. Checked with the below commands and it worked fine. gluster volume add-brick mirror bigbang:/d/glusterfs/export/export1 bigbang:/e/glusterfs/export/export1 Add Brick successful root@bigbang:/mnt/client# gluster volume rebalance mirror fix-layout start starting rebalance on volume mirror has been successful root@bigbang:/mnt/client# gluster volume rebalance mirror fix-layout status rebalance step 1: layout fix in progress root@bigbang:/mnt/client# gluster volume rebalance mirror fix-layout status rebalance step 1: layout fix in progress: fixed layout 1 root@bigbang:/mnt/client# gluster volume rebalance mirror fix-layout status rebalance step 1: layout fix complete: fixed layout 1 root@bigbang:/mnt/client# gluster volume rebalance mirror fix-layout status rebalance step 1: layout fix complete: fixed layout 1 root@bigbang:/mnt/client# gluster volume rebalance mirror fix-layout status rebalance step 1: layout fix complete: fixed layout 1 root@bigbang:/mnt/client# gluster volume rebalance mirror migrate-data start starting rebalance on volume mirror has been successful root@bigbang:/mnt/client# gluster volume rebalance mirror migrate-data status rebalance step 1: layout fix in progress root@bigbang:/mnt/client# gluster volume rebalance mirror migrate-data status rebalance step 1: layout fix in progress root@bigbang:/mnt/client# gluster volume rebalance mirror migrate-data status rebalance step 1: layout fix in progress root@bigbang:/mnt/client# gluster volume rebalance mirror migrate-data status rebalance step 2: data migration in progress: rebalanced 2 files of size 20480 (total files scanned 5) root@bigbang:/mnt/client# gluster volume rebalance mirror migrate-data status rebalance step 2: data migration complete: rebalanced 54 files of size 552960 (total files scanned 154) root@bigbang:/mnt/client# gluster volume rebalance mirror migrate-data status rebalance step 2: data migration complete: rebalanced 54 files of size 552960 (total files scanned 154) |
[root@vikas-sb build]# /usr/sbin/gluster volume rebalance gl2 fix-layout status Usage: volume rebalance <VOLNAME> [fix-layout|migrate-data] {start|stop|status} The old way of invoking still works: [root@vikas-sb build]# /usr/sbin/gluster volume rebalance gl2 status rebalance completed The culprit code is in cli/src/cli-cmd-volume.c: cli_cmd_volume_defrag_cbk: if (strcmp (words[3], "start") && strcmp (words[3], "stop") && strcmp (words[3], "status")) { cli_usage_out (word->pattern); parse_error = 1; goto out; } words[3] is supposed to be [fix-layout|migrate-data]. The code is still checking for "start", "stop", and "status", and exiting.