All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tommi Virtanen <tv@inktank.com>
To: ramu <ramu.freesystems@gmail.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: ceph was didn't stop.
Date: Thu, 28 Jun 2012 09:55:24 -0700	[thread overview]
Message-ID: <CADvuQRHr+HEzMoQ3xwrqPW5OZrjUOLwwzkk0AZJg0XTOUYyC8w@mail.gmail.com> (raw)
In-Reply-To: <loom.20120628T065725-838@post.gmane.org>

On Wed, Jun 27, 2012 at 10:05 PM, ramu <ramu.freesystems@gmail.com> wrote:
> + ssh gamma cd /etc/ceph ; ulimit -c unlimited ; while [ 1 ]; do
>        [ -e /var/run/ceph/osd.1.pid ] || break
>        pid=`cat /var/run/ceph/osd.1.pid`
>        while [ -e /proc/$pid ] && grep -q ceph-osd /proc/$pid/cmdline ; do
>            cmd="kill  $pid"
>            echo -n $cmd...
>            $cmd
>            sleep 1
>            continue
>        done
>        break
>    done

Well, if that didn't do it (and I don't see the "echo -n $cmd..."
output anywhere, so if was most likely false), then it's highly likely
the PID file has gone missing or is corrupt. This is a classic failure
mode of sysvinit style self-daemonizing and PID file handling. Kill
the process manually for now, and let us know of this keeps happening;
right now "somebody rm -rf /var/run/ceph" is as good a guess as any.

This is one of the reasons why I advocate upstart/runit/etc, and why
the "new style" of deployment uses upstart.
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2012-06-28 16:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-27  4:19 ceph was didn't stop ramu
2012-06-28  0:20 ` Josh Durgin
2012-06-28  5:05   ` ramu
2012-06-28 16:55     ` Tommi Virtanen [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=CADvuQRHr+HEzMoQ3xwrqPW5OZrjUOLwwzkk0AZJg0XTOUYyC8w@mail.gmail.com \
    --to=tv@inktank.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=ramu.freesystems@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.