[Debian-ha-maintainers] Bug#690342: corosync: cannot set lrm parameters
root
james.harper at bendigoit.com.au
Fri Oct 12 22:37:37 UTC 2012
Package: corosync
Version: 1.4.2-3
Severity: normal
Dear Maintainer,
I need to set the lrm max-children parameter when corosync/pacemaker starts as it is not persisted, but the corosync init script provides no way to do this. I have inserted the following code into /etc/init.d/corosync:
maxwait=10
while [ $maxwait -gt 0 -a "`pidof lrmd`" = "" ]
do
echo waiting $maxwait
maxwait=`expr $maxwait - 1`
sleep 1
done
/usr/sbin/lrmadmin -p max-children 16
at the end of the start function, but something a bit more flexible is required. Also the "wait 10 seconds for lrmd to appear" code might be a a bit fragile - it might still be possible for lrmd to have started but not be ready to accept lrmadmin requests so the script could race.
I'm thinking something along the lines of LRM_MAX_CHILDREN= in /etc/default/corosync file and parsing that in the init script.
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages corosync depends on:
ii adduser 3.113+nmu2
ii libc6 2.13-32
ii libcfg4 1.4.2-3
ii libconfdb4 1.4.2-3
ii libcoroipcc4 1.4.2-3
ii libcoroipcs4 1.4.2-3
ii libcpg4 1.4.2-3
ii libevs4 1.4.2-3
ii liblogsys4 1.4.2-3
ii libpload4 1.4.2-3
ii libquorum4 1.4.2-3
ii libsam4 1.4.2-3
ii libtotem-pg4 1.4.2-3
ii libvotequorum4 1.4.2-3
ii lsb-base 4.1+Debian4
corosync recommends no packages.
corosync suggests no packages.
-- Configuration Files:
/etc/corosync/corosync.conf changed [not included]
/etc/default/corosync changed [not included]
/etc/init.d/corosync changed [not included]
-- no debconf information
More information about the Debian-ha-maintainers
mailing list