[sheepdog] howto stop a sheep?

Dietmar Maurer dietmar at proxmox.com
Wed Jul 18 08:11:08 CEST 2012


My current init.d script simply send a kill -15 to stop sheep daemons.

Is there a better way to do that?

When I try to restart the sheep I get (only sometimes): 

Jul 18 07:57:36 [main] crash_handler(402) sheep pid 10672 exited unexpectedly.
Jul 18 07:57:37 [main] jrnl_recover(237) opening the directory /var/lib/sheepdog/disc1/journal/
Jul 18 07:57:37 [main] jrnl_recover(242) starting journal recovery
Jul 18 07:57:37 [main] jrnl_recover(298) journal recovery complete
Jul 18 07:57:37 [main] init_sys_vdi_bitmap(306) found the working directory /var/lib/sheepdog/disc1/obj/
Jul 18 07:57:37 [main] send_join_request(964) IPv4 ip:192.168.2.2 port:7000
Jul 18 07:57:37 [main] main(313) sheepdog daemon (version 0.4.0) started
Jul 18 07:57:37 [main] update_cluster_info(780) status = 4, epoch = 12, finished: 0
Jul 18 07:57:37 [main] sd_check_join_cb(921) 192.168.2.2:7001: ret = 0x0, cluster_status = 0x4
Jul 18 07:57:37 [main] update_cluster_info(780) status = 4, epoch = 12, finished: 1
Jul 18 07:57:37 [main] cluster_sanity_check(501) joining node epoch too large: 13 vs 12
Jul 18 07:57:37 [main] cluster_wait_for_join_check(524) transfer mastership (13, 12)
Jul 18 07:57:37 [main] sd_check_join_cb(921) 192.168.2.2:7002: ret = 0x3, cluster_status = 0x4
Jul 18 07:57:37 [main] __corosync_dispatch_one(312) failed to join sheepdog cluster: please retry when master is up
Jul 18 07:57:37 [main] crash_handler(402) sheep pid 27848 exited unexpectedly.

Any idea why that happens. It work if I simply try again.

- Dietmar




More information about the sheepdog mailing list