File 0013-systemd-ceph-osd-.service-two-bugfi.patch of Package ceph.2107

From: Owen Synge <osynge@suse.com>
Date: Fri, 23 Jan 2015 12:04:37 +0100
Subject: [PATCH] systemd/ceph-osd@.service: two bugfixes

This is a squash of two commits:

aecc4878c8127731af0a236c0c6e3e78fd388464 Changed prestart script path

Ceph was teh only application I could find in suse which used the path
/usr/libexec so I changed this to the /usr/lib/ patch for
/usr/lib/ceph/ceph-osd-prestart.sh

Signed-off-by: Owen Synge <osynge@suse.com>

ebda4ba1c67172852587e47a8e6fb538809a1b1c Increase max files open limit for OSD daemon.

Under heavy load the number of file descriptors opened
by the OSD can go beyond the 64K file limit. This patch
increases the default to 128K.

Signed-off-by: Owen Synge <osynge@suse.com>
(cherry picked from commit 1d3d81411aede7f7ab9b28a996ddfc26b34d9f19)
---
 systemd/ceph-osd@.service | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/systemd/ceph-osd@.service b/systemd/ceph-osd@.service
index edb24ad..09f51c5 100644
--- a/systemd/ceph-osd@.service
+++ b/systemd/ceph-osd@.service
@@ -8,7 +8,8 @@ PartOf=ceph.target
 EnvironmentFile=-/etc/sysconfig/ceph
 Environment=CLUSTER=ceph
 ExecStart=/usr/bin/ceph-osd -f --cluster ${CLUSTER} --id %i
-ExecStartPre=/usr/libexec/ceph/ceph-osd-prestart.sh --cluster ${CLUSTER} --id %i
+ExecStartPre=/usr/lib/ceph/ceph-osd-prestart.sh --cluster ${CLUSTER} --id %i
+LimitNOFILE=131072
 
 [Install]
 WantedBy=ceph.target
openSUSE Build Service is sponsored by