[sheepdog-users] n copies > n nodes
morita.kazutaka at lab.ntt.co.jp
Fri Mar 15 07:40:35 CET 2013
At Fri, 15 Mar 2013 14:17:58 +0800,
Liu Yuan wrote:
> On 03/13/2013 07:23 PM, Valerio Pachera wrote:
> > 2013/2/25 MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>:
> >> At Sun, 24 Feb 2013 19:17:10 +0900,
> > On a cluster with 4 nodes, sheep 0.5.5_186_gf9c15bc, it is still possible
> > collie vdi create -c 7 test 5G
> > collie vdi object test
> > Looking for the inode object 0x7c2b25 with 4 nodes
> > 192.168.2.41:7000 has the object (should be 4 copies)
> > 192.168.2.42:7000 has the object (should be 4 copies)
> > 192.168.2.43:7000 has the object (should be 4 copies)
> > 192.168.2.44:7000 has the object (should be 4 copies)
> > If sheepdog creates a vdi with copies = nodes when copies > nodes,
> > it's ok, but I suggest to print out a warning.
> I think we shouldn't allow creating VDI when there are not enough nodes to hold the required copies.
> Bellow is the patch to prohibit this behavior. I've pushed to devel branch.
write_object() in create_vdi_obj() should fail in such case, no?
More information about the sheepdog-users