All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabio M. Di Nitto <fdinitto@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] when do I need to start cpglockd
Date: Tue, 19 Jun 2012 10:04:57 +0200	[thread overview]
Message-ID: <4FE032A9.9020402@redhat.com> (raw)
In-Reply-To: <24E144B8C0207547AD09C467A8259F754B95DD91@lisa.maurer-it.com>

On 6/19/2012 9:24 AM, Dietmar Maurer wrote:
>> And then again, expressing an order is correct. If "Required-Start"
>> behavior in Debian is different than in other distro (I can speak for
>> Fedora/RHEL here), then clearly there needs to be some distro specific
>> "tuning".
> 
> You simply start a daemon which is not necessary.


>  And I guess you do that on 
> all distros if there is a Required-Start start dependency.

Fresh install on Fedora:

root at fedora16-node2 ~]# chkconfig --list |grep cpg
cpglockd        0:off   1:off   2:off   3:off   4:off   5:off   6:off

[root at fedora16-node2 ~]# chkconfig rgmanager on
[root at fedora16-node2 ~]# chkconfig --list |grep rg
rgmanager       0:off   1:off   2:on    3:on    4:on    5:on    6:off

[root at fedora16-node2 ~]# chkconfig --list |grep cpg
cpglockd        0:off   1:off   2:off   3:off   4:off   5:off   6:off

[reboot]

[root at fedora16-node2 ~]# ps ax|grep cpglockd
 3741 pts/1    S+     0:00 grep --color=auto cpglockd
[root at fedora16-node2 ~]#

[root at fedora16-node2 ~]# clustat
[SNIP]
 service:vip1                   fedora16-node2                 started

As you can see, rgmanager is on, cpglockd off.

At boot rgmanager starts fine, without cpglockd running.

I think the problem here is the interpretation of the LSB specifications
between different distributions. I am not going to argue which one is
right or wrong but the key issue is here:

"An init.d shell script may declare using the "Required-Start: " header
that it shall not be run until certain boot facilities are provided.
This information is used by the installation tool or the boot-time
boot-script execution facility to assure that init scripts are run in
the correct order."

In the fedora world that means that if cpglockd is enabled (via
chkconfig), the Required-Start: make sure that cpglockd is started
before rgmanager, always.

It is possible that other distributions might interpret that as:
"cpglockd must be started even if disabled" when rgmanager
Required-Start: cpglockd and rgmanager is enabled.

So based on the platform I use for testing/development, the daemon does
not start unless it is necessary :)

Fabio



  reply	other threads:[~2012-06-19  8:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-13 15:26 [Cluster-devel] when do I need to start cpglockd Dietmar Maurer
2012-06-14 12:21 ` Ryan McCabe
2012-06-14 15:41   ` Dietmar Maurer
2012-06-14 16:06     ` Ryan McCabe
2012-06-19  3:44       ` Fabio M. Di Nitto
2012-06-19  4:23         ` Dietmar Maurer
2012-06-19  6:20           ` Fabio M. Di Nitto
2012-06-19  6:54             ` Dietmar Maurer
2012-06-19  7:03               ` Fabio M. Di Nitto
2012-06-19  7:24                 ` Dietmar Maurer
2012-06-19  8:04                   ` Fabio M. Di Nitto [this message]
2012-06-19  8:12                     ` Dietmar Maurer
2012-06-19  8:33                       ` Fabio M. Di Nitto
2012-06-19  8:36                         ` Dietmar Maurer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FE032A9.9020402@redhat.com \
    --to=fdinitto@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.