[sheepdog] [PATCH 1/4] sheep: cleanup update_cluster_info

Liu Yuan namei.unix at gmail.com
Sat Jun 2 17:55:24 CEST 2012


On 06/02/2012 11:36 PM, Christoph Hellwig wrote:

> Independent of any discussion on the rest of this series, does this one
> look okay to you?
> 


Failed the following script:
============================
#!/bin/bash

set -e

pkill -9 sheep
rm store/* -rf
# start three sheep daemons
for i in 0 1 2 3; do
    ./sheep/sheep -d /home/tailai.ly/sheepdog/store/$i -z $i -p 700$i -W
done

sleep 1
./collie/collie cluster format -c 2

# create a pre-allocated vdi
./collie/collie vdi create test0 200M
dd if=/dev/urandom | collie/collie vdi write test0 -p 7000 &
sleep 3

echo stop the one sheep
pkill -f "sheep -d /home/tailai.ly/sheepdog/store/1"
sleep 3
echo stop the one sheep
pkill -f "sheep -d /home/tailai.ly/sheepdog/store/2"
echo write data to the vdis

echo wait for object recovery to finish
for ((;;)); do
	if [ "$(pgrep collie)" ]; then
		sleep 1
	else
		break
	fi
done
# show md5sum of the vdi on each node
for i in 0 3; do
    ./collie/collie vdi read test0 -p 700$i | md5sum
done
==================

Thanks,
Yuan



More information about the sheepdog mailing list