[sheepdog] [PATCH v2 0/7] different redundancy level for different VDIs

levin li levin108 at gmail.com
Mon Aug 6 13:34:08 CEST 2012


On 2012年08月06日 18:59, Liu Yuan wrote:
> On 08/06/2012 04:40 PM, levin li wrote:
>> v1 ---- > v2 :
>> 1. rename ctime in vdi.c to create_time
>> 2. rename get_*_copies to get_*_copy_number
>> 3. merge vdi_copy.c to vdi.c
>> ------------------------------------
> 
> This patch set can't pass following script:
> 
> ===============================
> #!/bin/bash
> 
> pkill -9 sheep
> pkill -9 collie
> rm store/* -rf
> 
> for i in `seq 0 7`; do sheep/sheep -d /home/tailai.ly/sheepdog/store/$i
> -z $i -p $((7000+$i));done
> sleep 1
> for ((;;)); do
>         if [ $(collie/collie node list | wc -l) -ne 9 ]; then
> 		sleep 1
>         else
> 		break
>         fi
> done
> collie/collie cluster format
> collie/collie cluster info
> 
> for i in `seq 0 4`;do
> 	collie/collie vdi create test$i 100M -p 7000 -c 3
> done
> 
> echo begin write
> for i in `seq 0 4`;do
> dd if=/dev/urandom | collie/collie vdi write test$i -p 7000 &
> done
> 
> echo begin kill
> for i in `seq 1 5`; do pkill -f "sheep/sheep -d
> /home/tailai.ly/sheepdog/store/$i -z $i -p 700$i";sleep 3;done;
> for i in `seq 1 5`; do sheep/sheep -d /home/tailai.ly/sheepdog/store/$i
> -z $i -p $((7000+$i));done
> 
> echo wait for object recovery to finish
> for ((;;)); do
>         if [ "$(pgrep collie)" ]; then
>                 sleep 1
>         else
>                 break
>         fi
> done
> 
> for i in `seq 0 7`; do
> 	for j in `seq 0 4`; do
> 		./collie/collie vdi read test$j -p 700$i | md5sum
> 	done
> done
> 

It's indeed a big problem, I'll update later.

thanks,

levin



More information about the sheepdog mailing list