[Sheepdog] A question about vdi's disappearance.

Tao Lin especiallyl at 126.com
Tue Nov 22 11:41:08 CET 2011


Hi,
  I'm now testing this interesting project and I went into a problem during the
process.
  I have 3 host machines, I used commands on machine A as following:
  [root at novanode1 /home/sae]# sheep /home/sae/sheep-test
  [root at novanode1 /home/sae]# sudo mount -o remount,user_xattr /
  [root at novanode1 /home/sae]# collie cluster format --copies=3

  On machine B:
  root at node2:/home/sae#  sheep /home/sae/sheep-test
  root at node2:/home/sae#  sudo mount -o remount,user_xattr /

  Up to now,it seemed that sheepdog was working well. I then created two vdis
using commands:
  [root at novanode1 /home/sae]# collie vdi create alice 5M
  [root at novanode1 /home/sae]# collie vdi create BOB 5M

  Anyway, I was able to list all the vdis I had created.
  [root at novanode1 /home/sae]# collie vdi list
  name        id    size    used  shared    creation time   vdi id
------------------------------------------------------------------
  alice        1  5.0 MB  0.0 MB  0.0 MB 2011-11-22 04:45   a03907
  BOB          1  5.0 MB  0.0 MB  0.0 MB 2011-11-22 04:45   a67b34

  Then I tried to add machine C to the system, inputting commands as below:
  root at node3:/home/sae# sheep /home/sae/sheep-test
  root at node3:/home/sae# sudo mount -o remount,user_xattr /


  Well, sheep was still working well.
  root at node3:/home/sae# collie vdi list
  name        id    size    used  shared    creation time   vdi id
------------------------------------------------------------------
  alice        1  5.0 MB  0.0 MB  0.0 MB 2011-11-22 17:45   a03907
  BOB          1  5.0 MB  0.0 MB  0.0 MB 2011-11-22 17:45   a67b34



After having uesd this command rashly:collie cluster format --copies=2, all the
vdis were gone! 
root at node3:/home/sae# collie vdi list
  name        id    size    used  shared    creation time   vdi id
------------------------------------------------------------------


  Here is my question: if one makes mistake rashly as mine, can he restore the
vdis and how?



Thanks a lot.



  





  



  




  






More information about the sheepdog mailing list