[Sheepdog] A question about vdi's disappearance.

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Tue Nov 22 12:19:31 CET 2011


At Tue, 22 Nov 2011 19:10:43 +0800,
Yibin Shen wrote:
> 
> On Tue, Nov 22, 2011 at 6:41 PM, Tao Lin <especiallyl at 126.com> wrote:
> > 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!
> Yes, this is what 'format' command do

I think we should prompt before removing existing data, and add a
force option to a 'cluster format' command.

Thanks,

Kazutaka



More information about the sheepdog mailing list