-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ceph.spec.in,debian/rules: change aio-max-nr to 1048576
when osd is more than 14 in one host,it report error that aio is not enough. As the default aio-max-nr is 65536, one OSD needs 4096 aios and other programs may use aios. This patch change aio-max-nr to 1048576 when install ceph-osd rpm package and debian package Signed-off-by: chenliuzhong <[email protected]>
- Loading branch information
Showing
5 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -885,6 +885,7 @@ mkdir -p %{buildroot}%{_sbindir} | |
install -m 0644 -D src/logrotate.conf %{buildroot}%{_sysconfdir}/logrotate.d/ceph | ||
chmod 0644 %{buildroot}%{_docdir}/ceph/sample.ceph.conf | ||
install -m 0644 -D COPYING %{buildroot}%{_docdir}/ceph/COPYING | ||
install -m 0644 -D src/90-ceph-osd.conf %{buildroot}%{_sysctldir}/90-ceph-osd.conf | ||
|
||
# firewall templates and /sbin/mount.ceph symlink | ||
%if 0%{?suse_version} | ||
|
@@ -1425,6 +1426,7 @@ fi | |
%{_unitdir}/[email protected] | ||
%{_unitdir}/ceph-osd.target | ||
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/osd | ||
%config(noreplace) %{_sysctldir}/90-ceph-osd.conf | ||
|
||
%post osd | ||
%if 0%{?suse_version} | ||
|
@@ -1438,6 +1440,11 @@ fi | |
if [ $1 -eq 1 ] ; then | ||
/usr/bin/systemctl start ceph-osd.target >/dev/null 2>&1 || : | ||
fi | ||
%if 0%{?sysctl_apply} | ||
%sysctl_apply 90-ceph-osd.conf | ||
%else | ||
/usr/lib/systemd/systemd-sysctl %{_sysctldir}/90-ceph-osd.conf > /dev/null 2>&1 || : | ||
%endif | ||
|
||
%preun osd | ||
%if 0%{?suse_version} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fs.aio-max-nr = 1048576 |