[sheepdog-users] cluster reweight works fine

Valerio Pachera sirio81 at gmail.com
Thu May 30 10:33:19 CEST 2013


I've been testing reweight on my testing cluster and it seems to work fine.
Cluster has been started by
Node 0,1,2
  sheep -w size=20000 /sheep/meta,/sheep/sda
Node 3
  sheep -w size=20000 /sheep/meta,/sheep/sda

sda is 50G, sdb is 5G.
I created a few vdi and run a guest.
Then I added the small disk (sdb) to Node 1,2,3; and the big disk to node 3.
With the guest running, I used 'cluster reweight' and waited for the
recovery to be complete.
Then you see the results.

root at test004:~# collie node list
M   Id   Host:Port         V-Nodes       Zone
-    0   192.168.2.44:7000      64  738371776
-    1   192.168.2.45:7000      64  755148992
-    2   192.168.2.46:7000      64  771926208
-    3   192.168.2.47:7000      64  788703424

root at test004:~# collie node info
Id      Size    Used    Avail   Use%
 0      50 GB   5.1 GB  45 GB    10%
 1      50 GB   5.6 GB  44 GB    11%
 2      50 GB   6.3 GB  44 GB    12%
 3      4.6 GB  500 MB  4.1 GB   10%
Total   154 GB  17 GB   137 GB   11%
Total virtual image size        17 GB

root at test004:~# collie node md info --all
Id      Size    Used    Avail   Use%    Path
Node 0:
 0      50 GB   5.1 GB  45 GB    10%    /sheep/sda
Node 1:
 0      50 GB   5.6 GB  44 GB    11%    /sheep/sda
Node 2:
 0      50 GB   6.3 GB  44 GB    12%    /sheep/sda
Node 3:
 0      4.6 GB  500 MB  4.1 GB   10%    /sheep/sdb

Node 0,1,2
collie node md plug /sheep/sdb
Node 3
collie node md plug /sheep/sda

root at test004:~# collie node info
Id      Size    Used    Avail   Use%
 0      55 GB   5.1 GB  50 GB     9%
 1      55 GB   5.6 GB  49 GB    10%
 2      55 GB   6.3 GB  48 GB    11%
 3      55 GB   500 MB  54 GB     0%
Total   218 GB  17 GB   201 GB    8%
Total virtual image size        17 GB

root at test004:~# collie node md info --all
Id      Size    Used    Avail   Use%    Path
Node 0:
 0      50 GB   4.7 GB  45 GB     9%    /sheep/sda
 1      4.6 GB  356 MB  4.3 GB    7%    /sheep/sdb
Node 1:
 0      50 GB   5.2 GB  45 GB    10%    /sheep/sda
 1      4.6 GB  464 MB  4.2 GB    9%    /sheep/sdb
Node 2:
 0      50 GB   5.8 GB  44 GB    11%    /sheep/sda
 1      4.6 GB  516 MB  4.1 GB   10%    /sheep/sdb
Node 3:
 0      4.6 GB  48 MB   4.6 GB    1%    /sheep/sdb
 1      50 GB   452 MB  50 GB     0%    /sheep/sda

root at test004:~# collie cluster reweight

root at test004:~# collie node recovery
Nodes In Recovery:
  Id   Host:Port         V-Nodes       Zone
   3   192.168.2.47:7000      64  788703424

root at test004:~# collie node info
Id      Size    Used    Avail   Use%
 0      55 GB   4.1 GB  50 GB     7%
 1      55 GB   4.3 GB  50 GB     7%
 2      55 GB   5.0 GB  50 GB     9%
 3      55 GB   4.1 GB  50 GB     7%
Total   218 GB  17 GB   201 GB    8%
Total virtual image size        17 GB

root at test004:~# collie node md info --all
Id      Size    Used    Avail   Use%    Path
Node 0:
 0      50 GB   3.8 GB  46 GB     7%    /sheep/sda
 1      4.6 GB  304 MB  4.3 GB    6%    /sheep/sdb
Node 1:
 0      50 GB   4.0 GB  46 GB     7%    /sheep/sda
 1      4.6 GB  296 MB  4.3 GB    6%    /sheep/sdb
Node 2:
 0      50 GB   4.6 GB  45 GB     9%    /sheep/sda
 1      4.6 GB  348 MB  4.3 GB    7%    /sheep/sdb
Node 3:
 0      4.6 GB  376 MB  4.2 GB    7%    /sheep/sdb
 1      50 GB   3.7 GB  46 GB     7%    /sheep/sda

root at test004:~# collie node list
M   Id   Host:Port         V-Nodes       Zone
-    0   192.168.2.44:7000      64  738371776
-    1   192.168.2.45:7000      64  755148992
-    2   192.168.2.46:7000      64  771926208
-    3   192.168.2.47:7000      64  788703424


More information about the sheepdog-users mailing list