[sheepdog-users] 答复: sheepdog cannot start

redtone kelphon at redtone.hk
Fri Jun 27 08:52:24 CEST 2014


When I complier the sheepdog with  --enable-diskvnodes the sheep can started

But when is start a VM with imported Image, the sheep log said no object found, in fact I can found the object in the disk

The following is the log message and object found in the disk 

[root at pangkvm11 sda]# cat /var/lib/sheepdog/sheep.log
Jun 27 13:37:45   INFO [main] md_add_disk(338) /var/lib/sheepdog/obj, vdisk nr 7, total disk 1
Jun 27 13:37:45 NOTICE [main] get_local_addr(519) found IPv4 address
Jun 27 13:37:45   INFO [main] send_join_request(828) IPv4 ip:103.24.1.172 port:7000
Jun 27 13:37:45 NOTICE [main] nfs_init(600) nfs server service is not compiled
Jun 27 13:37:45   INFO [main] check_host_env(493) Allowed open files 65536, suggested 830000
Jun 27 13:37:45   INFO [main] main(942) sheepdog daemon (version 0.8.50) started
Jun 27 13:38:04   INFO [main] rx_main(811) req=0x7f9f940008c0, fd=21, client=127.0.0.1:33465, op=MAKE_FS, data=(not string)
Jun 27 13:38:04   INFO [main] tx_main(863) req=0x7f9f940008c0, fd=21, client=127.0.0.1:33465, op=MAKE_FS, result=00
Jun 27 13:38:16  ERROR [block] do_read(236) failed to read from socket: -1, Resource temporarily unavailable
Jun 27 13:38:16  ERROR [block] exec_req(347) failed to read a response
Jun 27 13:38:16  ALERT [block] do_get_vdis(528) failed to get vdi bitmap from IPv4 ip:103.24.1.162 port:7000
Jun 27 13:38:21   INFO [main] rx_main(811) req=0x7f9f940008c0, fd=44, client=127.0.0.1:33623, op=NEW_VDI, data=(not string)
Jun 27 13:38:21   INFO [main] tx_main(863) req=0x7f9f940008c0, fd=44, client=127.0.0.1:33623, op=NEW_VDI, result=00
Jun 27 13:40:14   INFO [main] zk_find_master(836) detect master leave, start to compete master
Jun 27 13:40:14   INFO [main] zk_find_master(836) detect master leave, start to compete master
Jun 27 13:40:14   INFO [main] zk_find_master(836) detect master leave, start to compete master
Jun 27 13:40:14   INFO [main] zk_find_master(836) detect master leave, start to compete master
Jun 27 13:40:14   INFO [main] zk_find_master(836) detect master leave, start to compete master
Jun 27 13:40:14   INFO [main] zk_find_master(836) detect master leave, start to compete master
Jun 27 13:40:14   INFO [main] zk_find_master(836) detect master leave, start to compete master
Jun 27 13:40:14   INFO [main] zk_find_master(836) detect master leave, start to compete master
Jun 27 13:40:14   INFO [main] zk_find_master(836) detect master leave, start to compete master
Jun 27 13:40:14   INFO [main] zk_find_master(836) detect master leave, start to compete master
Jun 27 13:40:14 NOTICE [main] cluster_recovery_completion(704) all nodes are recovered, epoch 2
Jun 27 13:41:12 NOTICE [main] cluster_recovery_completion(704) all nodes are recovered, epoch 3
Jun 27 13:47:01   INFO [main] rx_main(811) req=0x7f9f940008c0, fd=45, client=127.0.0.1:33744, op=NEW_VDI, data=(not string)
Jun 27 13:47:01   INFO [main] tx_main(863) req=0x7f9f940008c0, fd=45, client=127.0.0.1:33744, op=NEW_VDI, result=00
Jun 27 13:57:33 NOTICE [main] cluster_recovery_completion(704) all nodes are recovered, epoch 4
Jun 27 13:59:38 NOTICE [main] cluster_recovery_completion(704) all nodes are recovered, epoch 5
Jun 27 14:47:44  ERROR [gway 9455] wait_forward_request(438) fail c3e76800000469, No object found
Jun 27 14:47:44  ERROR [gway 9455] wait_forward_request(438) fail c3e76800000469, No object found
Jun 27 14:47:44  ERROR [gway 9455] wait_forward_request(438) fail c3e76800000469, No object found
Jun 27 14:47:44  ERROR [gway 9455] wait_forward_request(438) fail c3e76800000469, No object found
[root at pangkvm11 sda]# find /home/|grep c3e76800000469
/home/sdh/obj/00c3e76800000469_0
/home/sdb/obj/00c3e76800000469_2
/home/sdl/obj/00c3e76800000469_4
/home/sdi/obj/00c3e76800000469_1
/home/sdc/obj/00c3e76800000469_3
/home/sdg/obj/00c3e76800000469_8
/home/sda/obj/00c3e76800000469_9
/home/sde/obj/00c3e76800000469_5
/home/sdf/obj/00c3e76800000469_10
/home/sdm/obj/00c3e76800000469_6
[root at pangkvm11 sda]# sheep -v
Sheepdog daemon version 0.8.50

________________________________________
发件人: sheepdog-users [mailto:sheepdog-users-bounces at lists.wpkg.org] 代表 redtone
发送时间: 2014年6月27日 9:02
收件人: 'Lista sheepdog user'
主题: [sheepdog-users] sheepdog cannot start


wget https://github.com/sheepdog/sheepdog/archive/master.zip
unzip master
cd sheepdog-master
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib64  --disable-corosync --enable-zookeeper 
make install

[root at pangkvm11 sda]# sheep -n -c zookeeper:103.24.1.171:2181,103.24.1.163:2181,103.24.1.164:2181,timeout=1000 -D -p 7001 -P /var/tmp/sheepdog01 -z 1 /home/sda
[root at pangkvm11 sda]# sheep -v
Sheepdog daemon version 0.8.50
[root at pangkvm11 sda]# cat sheep.log
Jun 27 09:01:23   INFO [main] md_add_disk(338) /home/sda/obj, vdisk nr 871, total disk 1
Jun 27 09:01:23 NOTICE [main] get_local_addr(519) found IPv4 address
Jun 27 09:01:23   INFO [main] send_join_request(828) IPv4 ip:103.24.1.172 port:7001
Jun 27 09:01:23 NOTICE [main] nfs_init(600) nfs server service is not compiled
Jun 27 09:01:23   INFO [main] check_host_env(493) Allowed open files 65536, suggested 6144000
Jun 27 09:01:23   INFO [main] main(942) sheepdog daemon (version 0.8.50) started
Jun 27 09:01:23  ERROR [main] cluster_join_check(912) invalid protocol version: 0, 9
Jun 27 09:01:23  ERROR [main] sd_accept_handler(942) failed to join Sheepdog






More information about the sheepdog-users mailing list