mirror of
https://github.com/ceph/ceph
synced 2024-12-28 06:23:08 +00:00
22332f6bae
When booting a server with 20+ HDDs udev has to process a *lot* of events (especially if dm-crypt is used), and 2 minutes might be not enough for that. Make it possible to override the timeout (via systemd drop-in files), and use a longer timeout (5 minutes) by default. Fixes: http://tracker.ceph.com/issues/18740 Signed-off-by: Alexey Sheplyakov <asheplyakov@mirantis.com>
12 lines
325 B
Desktop File
12 lines
325 B
Desktop File
[Unit]
|
|
Description=Ceph disk activation: %f
|
|
After=local-fs.target
|
|
Wants=local-fs.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
KillMode=none
|
|
Environment=CEPH_DISK_TIMEOUT=300
|
|
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
|