Last active
July 5, 2016 16:53
-
-
Save kylejohnson/0576bb85edfdad04b38584896bd8b7fa to your computer and use it in GitHub Desktop.
glusterfs rebalance woes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| root@colossus ~]# gluster volume create fubar 192.168.110.2:/ftp/bricks/fubar | |
| volume create: fubar: success: please start the volume to access data | |
| [root@colossus ~]# gluster volume start fubar | |
| volume start: fubar: success | |
| [root@colossus ~]# mount -t glusterfs 192.168.110.2:/fubar /mnt/test | |
| [root@colossus ~]# touch /mnt/test/file{1..100} | |
| [root@colossus ~]# ls /mnt/test/| wc -l | |
| 100 | |
| [root@colossus ~]# ls /ftp/bricks/fubar | wc -l | |
| 100 | |
| [root@colossus ~]# gluster volume add-brick fubar 192.168.110.1:/tank/bricks/fubar | |
| volume add-brick: success | |
| [root@colossus ~]# gluster volume rebalance fubar fix-layout start | |
| volume rebalance: fubar: success: Rebalance on fubar has been started successfully. Use rebalance status command to check status of the rebalance process. | |
| ID: 2da23238-dbe4-4759-97b2-08879db271e7 | |
| [root@colossus ~]# gluster volume rebalance fubar status | |
| Node Rebalanced-files size scanned failures skipped status run time in secs | |
| --------- ----------- ----------- ----------- ----------- ----------- ------------ -------------- | |
| localhost 0 0Bytes 0 0 0 fix-layout completed 0.00 | |
| 192.168.110.1 0 0Bytes 0 0 0 fix-layout completed 0.00 | |
| volume rebalance: fubar: success | |
| [root@colossus ~]# gluster volume rebalance fubar start | |
| volume rebalance: fubar: success: Rebalance on fubar has been started successfully. Use rebalance status command to check status of the rebalance process. | |
| ID: 67160a67-01b2-4a51-9a11-114aa6269ee9 | |
| [root@colossus ~]# gluster volume rebalance fubar status | |
| Node Rebalanced-files size scanned failures skipped status run time in secs | |
| --------- ----------- ----------- ----------- ----------- ----------- ------------ -------------- | |
| localhost 0 0Bytes 100 0 0 completed 0.00 | |
| 192.168.110.1 0 0Bytes 0 0 0 completed 0.00 | |
| volume rebalance: fubar: success | |
| [root@colossus ~]# ls /mnt/test/ | wc -l | |
| 101 | |
| [root@colossus ~]# ls /ftp/bricks/fubar/ | wc -l | |
| 100 | |
| root@colossus2:~ # ls /tank/bricks/fubar/ | |
| .glusterfs .trashcan file10 | |
| [root@colossus ~]# touch /mnt/test/file{101..200} | |
| [root@colossus ~]# ls /ftp/bricks/fubar/ | wc -l | |
| 199 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment