]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-disk: set the default systemd unit timeout to 3h 17133/head
authorLoic Dachary <ldachary@redhat.com>
Thu, 8 Jun 2017 20:29:48 +0000 (22:29 +0200)
committerNathan Cutler <ncutler@suse.com>
Tue, 22 Aug 2017 08:05:06 +0000 (10:05 +0200)
There needs to be a timeout to prevent ceph-disk from hanging
forever. But there is no good reason to set it to a value that is less
than a few hours.

Each OSD activation needs to happen in sequence and not in parallel,
reason why there is a global activation lock.

It would be possible, when an OSD is using a device that is not
otherwise used by another OSD (i.e. they do not share an SSD journal
device etc.), to run all activations in parallel. It would however
require a more extensive modification of ceph-disk to avoid any chances
of races.

Fixes: http://tracker.ceph.com/issues/20229
Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit a9eb52e0a4c06a80e5dbfaac394aac940edf4c68)

systemd/ceph-disk@.service

index 57a35ce5f61f2da8737cb939da5e5a39a1b9f218..1fdf2af6c918581c8d50b870571580e52332ab7b 100644 (file)
@@ -6,6 +6,6 @@ Wants=local-fs.target
 [Service]
 Type=oneshot
 KillMode=none
-Environment=CEPH_DISK_TIMEOUT=300
+Environment=CEPH_DISK_TIMEOUT=10000
 ExecStart=/bin/sh -c 'timeout $CEPH_DISK_TIMEOUT flock /var/lock/ceph-disk-$(basename %f) /usr/sbin/ceph-disk --verbose --log-stdout trigger --sync %f'
 TimeoutSec=0