[Sheepdog] [PATCH v5 15/17] collie: enable cluster-wide snapshot command

Liu Yuan namei.unix at gmail.com
Thu Jan 12 11:41:47 CET 2012


On 01/05/2012 05:30 AM, MORITA Kazutaka wrote:

> I confirmed some bugs.
> 
>  - If I took a cluster-wide snapshot just after cluster format, I
>    couldn't restore it.
> 
>     $ collie cluster format -b farm
>     $ collie cluster snapshot   
>     $ qemu-img create sheepdog:test 128G
>     Formatting 'sheepdog:test', fmt=raw size=137438953472 
>     $ collie cluster snapshot -l
>     Index           Snapshot Time
>     1               Thu Jan  5 06:34:36 2012
>     $ collie cluster snapshot -R 1
>     Restore failed: I/O error


Um, I get you wrong. On my box I couldn't reproduce it. Maybe you can
try my v6 patch set.

I used following script:

for i in 0 1 2; do sheep/sheep -d /home/tailai.ly/sheepdog/store/$i -z
$i -p 700$i;sleep 1;done
collie/collie cluster format $1
qemu-img create -f raw sheepdog:test 128G
collie/collie cluster snapshot
collie/collie cluster snapshot -l
collie/collie cluster snapshot -R 1


Thanks,
Yuan



More information about the sheepdog mailing list