All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sage Weil <sage@inktank.com>
To: huangjun <hjwsm1989@gmail.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: /etc/init.d/ceph script will restart stop start the daemon twice
Date: Wed, 7 Aug 2013 09:24:34 -0700 (PDT)	[thread overview]
Message-ID: <alpine.DEB.2.00.1308070923260.5427@cobra.newdream.net> (raw)
In-Reply-To: <52026465.2020905@gmail.com>

On Wed, 7 Aug 2013, huangjun wrote:
> hi,
> we use the ceph 0.613, write all the and when
> operate(restart|start|stop) the cluster daemon(osd|mds|mon), it will
> excecute the operation twice.
> from the code init-ceph.in:
> get_localname_list
> get_name_list "$@"
> for name in $what; do
> .....
> done
> so the result $what will include twice the local daemons, shall we only
> use the get_name_list? what's get_localname_list do here?

It sounds like you have the osds listed in ceph.conf (with a host = ... 
line) *and* have touched /var/lib/ceph/osd/*/sysvinit ?  You should only 
do one or the other.. preferably touching the sysvinit file so that 
ceph.conf is simple (this is what ceph-deploy does).

sage

      reply	other threads:[~2013-08-07 16:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-07 15:14 /etc/init.d/ceph script will restart stop start the daemon twice huangjun
2013-08-07 16:24 ` Sage Weil [this message]

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=alpine.DEB.2.00.1308070923260.5427@cobra.newdream.net \
    --to=sage@inktank.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=hjwsm1989@gmail.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.