[sheepdog] enable-diskvnodes question

Valerio Pachera sirio81 at gmail.com
Wed Dec 3 15:42:53 CET 2014


2014-12-03 10:24 GMT+01:00 Liu Yuan <namei.unix at gmail.com>:
> If I remember well, it can only be enabled by configure option for now.

Hi Yuan, nice to hear from you.
Now I understand how to enable it :-D

./autogen.sh
./configure --enable-diskvnodes
make install

dog cluster format

And here are the results

dog vdi list
  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
  test         0   20 GB   20 GB  0.0 MB 2014-12-03 15:30   7c2b25    2:1

dog node list
  Id   Host:Port         V-Nodes       Zone
   0   192.168.10.4:7000        106   67807424
   1   192.168.10.5:7000        107   84584640
   2   192.168.10.6:7000        122  101361856
   3   192.168.10.7:7000        122  118139072

dog node info
Id      Size    Used    Avail   Use%
 0      419 GB  7.2 GB  412 GB    1%
 1      423 GB  7.7 GB  415 GB    1%
 2      484 GB  7.6 GB  476 GB    1%
 3      484 GB  7.6 GB  476 GB    1%
Total   1.8 TB  30 GB   1.7 TB    1%
Total virtual image size        20 GB

dog node md info --all
Id      Size    Used    Avail   Use%    Path
Node 0:
 0      202 GB  3.8 GB  198 GB    1%    /mnt/sheep/0
 1      217 GB  3.4 GB  214 GB    1%    /mnt/sheep/1
Node 1:
 0      205 GB  4.1 GB  201 GB    1%    /mnt/sheep/0
 1      217 GB  3.6 GB  214 GB    1%    /mnt/sheep/1
Node 2:
 0      205 GB  3.0 GB  202 GB    1%    /mnt/sheep/0
 1      278 GB  4.6 GB  274 GB    1%    /mnt/sheep/1
Node 3:
 0      205 GB  3.7 GB  202 GB    1%    /mnt/sheep/0
 1      278 GB  3.9 GB  274 GB    1%    /mnt/sheep/1

dog node md unplug /mnt/sheep/1

dog node list
  Id   Host:Port         V-Nodes       Zone
   0   192.168.10.4:7000        106   67807424
   1   192.168.10.5:7000        107   84584640
   2   192.168.10.6:7000        122  101361856
   3   192.168.10.7:7000        52  118139072

dog node info
Id      Size    Used    Avail   Use%
 0      419 GB  8.5 GB  411 GB    2%
 1      423 GB  8.8 GB  414 GB    2%
 2      484 GB  8.6 GB  475 GB    1%
 3      205 GB  5.3 GB  200 GB    2%
Total   1.5 TB  31 GB   1.5 TB    2%
Total virtual image size        20 GB

dog node md info --all
Id      Size    Used    Avail   Use%    Path
Node 0:
 0      202 GB  4.3 GB  197 GB    2%    /mnt/sheep/0
 1      217 GB  4.1 GB  213 GB    1%    /mnt/sheep/1
Node 1:
 0      205 GB  4.3 GB  201 GB    2%    /mnt/sheep/0
 1      217 GB  4.5 GB  213 GB    2%    /mnt/sheep/1
Node 2:
 0      205 GB  3.4 GB  202 GB    1%    /mnt/sheep/0
 1      278 GB  5.2 GB  273 GB    1%    /mnt/sheep/1
Node 3:
 0      205 GB  5.3 GB  200 GB    2%    /mnt/sheep/0

Thank you!



More information about the sheepdog mailing list