From 97d786366adb149346a6206274295880ad83fda7 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 2 Apr 2019 14:31:05 +0800 Subject: [PATCH] init-ceph: wait longer before resending $signal if ceph-osd takes longer than 1 seconds to unmount the objectstore, it won't get a chance to fully persist all of its stuff to disk before init-ceph kills it again. in my case, `MemStore::_save()` fails to write $path/collections before it gets killed, if it has more than 512 PGs. Signed-off-by: Kefu Chai --- src/init-ceph.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init-ceph.in b/src/init-ceph.in index 184371006918..8ea9ef076edb 100755 --- a/src/init-ceph.in +++ b/src/init-ceph.in @@ -141,7 +141,7 @@ stop_daemon() { cmd=\"kill $signal \$pid\" printf \"\$cmd...\" \$cmd - sleep 1 + sleep 2 continue done fi" -- 2.47.3