<div dir="ltr"><div><div><div><div><div><div>Hi, I'm trying to run sheepdog with zookeeper on devian wheezy.<br><br></div>I think zookeeper configuration is fine, the process is running on 3 nodes of 4 total.<br></div>
When I run zookeeper, sheepdog crashes<br><br>sheep.log<br>Dec 14 09:09:25 INFO [main] md_add_disk(310) /mnt/sheep/dsk02, vdisk nr 233, total disk 1<br>Dec 14 09:09:25 DEBUG [main] init_signal(257) register signal_handler for 13<br>
Dec 14 09:09:25 DEBUG [main] init_disk_space(326) disk free space is 249842946048<br>Dec 14 09:09:25 DEBUG [main] zk_init(1312) version 3.3.5, address <a href="http://192.168.2.44:2181">192.168.2.44:2181</a>,:<a href="http://192.168.2.45:2181">192.168.2.45:2181</a>,:<a href="http://192.168.2.46:2181">192.168.2.46:2181</a>, timeout 30000<br>
Dec 14 09:09:25 ERROR [main] zk_init(1315) failed to connect to zk server <a href="http://192.168.2.44:2181">192.168.2.44:2181</a>,:<a href="http://192.168.2.45:2181">192.168.2.45:2181</a>,:<a href="http://192.168.2.46:2181">192.168.2.46:2181</a><br>
Dec 14 09:09:25 ERROR [main] main(817) failed to create sheepdog cluster<br>Dec 14 09:09:25 ERROR [main] crash_handler(528) sheep pid 1282 exited unexpectedly.<br><br></div>These are the sheep's options:<br><br>sheep -n /var/sheep,/mnt/sheep/dsk02 \<br>
-c zookeeper:<a href="http://192.168.2.44:2181">192.168.2.44:2181</a>,:<a href="http://192.168.2.45:2181">192.168.2.45:2181</a>,:<a href="http://192.168.2.46:2181">192.168.2.46:2181</a> \<br>-i host=192.168.10.4,port=3333 \<br>
-w size=200000G,dir=/mnt/sheep/dsk01 \<br>-l dir=/tmp,level=7,format=server<br><br>Sheepdog daemon version 0.7.0_197_g9f718d2<br><br></div>This is zookeeper process<br>ps aux | grep zookeeper<br>root 1336 0.0 0.0 7848 844 pts/0 S+ 09:13 0:00 grep zookeeper<br>
107 25912 0.1 2.1 1108808 42416 ? Sl dic13 1:16 /usr/bin/java -cp /etc/zookeeper/conf:/usr/share/java/jline.jar:/usr/share/java/log4j-1.2.jar:/usr/share/java/xercesImpl.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/zookeeper.jar -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false -Dzookeeper.log.dir=/var/log/zookeeper -Dzookeeper.root.logger=INFO,ROLLINGFILE org.apache.zookeeper.server.quorum.QuorumPeerMain /etc/zookeeper/conf/zoo.cfg<br>
<br></div>This is zookeeper config file:<br></div>(note: on the other 2 nodes leaderServes is commented)<br><div><div><br>grep -v -e ^# -e ^$ /etc/zookeeper/conf/zoo.cfg <br>tickTime=2000<br>initLimit=10<br>syncLimit=5<br>
dataDir=/var/lib/zookeeper<br>clientPort=2181<br>server.44=192.168.2.44:2888:3888<br>server.45=192.168.2.45:2888:3888<br>server.46=192.168.2.46:2888:3888<br>leaderServes=yes<br>maxClientCnxns=0<br><br></div><div>cat /etc/zookeeper/conf/myid<br>
44<br></div></div></div>