[sheepdog] Using sheepfs to modify virtual machine images of window7 takes a long time

周鹏 zhoupeng at cloudkc.net
Fri Aug 23 07:17:21 CEST 2013


>On Fri, Aug 23, 2013 at 03:27:00AM +0000, ?? wrote:
>> Hello,i test the sheepfs of sheepdog version 0.6.0_22_g8032354.
>> I build a cluster of 4 linux machine and it works well.
>> But i want to inject metadata to the basic image of windows7 when it is created first time.
>> So i use the sheepfs to mount the image,here is my command:
>> 
>> #mount -o loop,rw,offset=105906176 /home/sheepfs/volume/win7_clone /home/win7 -t ntfs-3g
>> 
>> It takes about 2 minutes to finish the mount. what a long time!
> >
>> I think the time is mainly spented on the mount,so if i user "collie vdi write" can shorten the time.
>> but i am not sure.
>> Can you give me some advice to improve the performance? thanks.

>what is the command you started sheepfs and sheep?

starting sheepfs commad:
#sheepfs /home/sheepfs -n

starting sheep commnd:

#!/bin/bash
mountdir=/cloud
zookeeper="192.168.10.45:2181 192.168.10.46:2181 192.168.10.41:2181 192.168.10.47:2181"
sheep /home/gateway -p 7000 -g 64 -z 3 -D -c zookeeper:${zookeeper}
sheep ${mountdir}/0,${mountdir}/1,${mountdir}/2,${mountdir}/3,${mountdir}/4 -i host=192.168.10.46,port=7010 -p 7020 -D -c zookeeper:${zookeeper}


More information about the sheepdog mailing list