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
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)