[Sheepdog] sheepdog image created but sheperd does not show it

Piavlo piavka at cs.bgu.ac.il
Sun Dec 27 11:29:40 CET 2009


 Hi,

The patched sheepdog version now immediately fails with:

shell-srv1>  kvm-img convert -f raw -O sheepdog /dev/sys/kvm-img zopa
find_vdi_name 1041: Invalid error code, zopa
find_vdi_name 1041: Invalid error code, zopa
qemu-img: Could not open 'zopa'
shell-srv1>

shell-srv1> find /sheepdog/
/sheepdog/
/sheepdog/0
/sheepdog/0/vdi
/sheepdog/0/vdi/zopa
/sheepdog/0/vdi/zopa/0000000000040000-00000000
/sheepdog/0/40000
shell-srv1>

shell-srv2>find /sheepdog/
/sheepdog/
/sheepdog/0
/sheepdog/0/vdi
/sheepdog/0/vdi/zopa
/sheepdog/0/vdi/zopa/0000000000040000-00000000
shell-srv2>

shell-srv3> find /sheepdog/
/sheepdog/
/sheepdog/0
/sheepdog/0/40000
shell-srv3>

shell-srv1> shepherd info -t vm
Name            |Vdi size |Allocated| Shared  | Status
----------------+---------+---------+---------+------------
zopa            |  5120 MB|     0 MB|     0 MB| not running
shell-srv1> shepherd info -t vdi
   40000 : zopa         5120 MB (allocated: 0 MB, shared: 0 MB),
2009-12-27 12:25:04, tag:        0, current
shell-srv1>

Thanks
Alex
                       

MORITA Kazutaka wrote:
> Hi,
>
> Thanks for reporting the bug.
> Can you try the below patch against the current git head?
>
>   
>> PS. another question since I've used --copies=2 , i've expected to find
>> each sheepdog  VM block repliacted to 2 nodes not 3 but
>> under /sheepdog/0/  i see that exactly the same number (with same names)
>> of files where created on all 3 nodes - the only exceptions
>> is that /sheepdog/0/vdi/zopa was created only on 2 nodes.
>> Is that expected and what is the actual meaning --copies=N ? 
>>     
>
> The meaning of --copies is just what you expected, and this patch will also fix
> the problem, I think.
>   




More information about the sheepdog mailing list