From: Josh Durgin <josh.durgin@inktank.com>
To: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>,
"ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: Re: Osd magic detection failure in master
Date: Mon, 02 Dec 2013 18:47:23 -0800 [thread overview]
Message-ID: <529D463B.4040601@inktank.com> (raw)
In-Reply-To: <529D4528.3050901@catalyst.net.nz>
On 12/02/2013 06:42 PM, Mark Kirkwood wrote:
> I just updated master (a5eda4fcc34461dbc0fcc47448f8456097de15eb), and am
> seeing OSDs failing to start:
>
> 2013-12-03 15:37:01.291200 7f488e1157c0 -1 OSD magic != my ceph osd
> volume v026
> failed: 'ulimit -n 32768; /usr/bin/ceph-osd -i 0 --pid-file
> /var/run/ceph/osd.0.pid -c /etc/ceph/ceph.conf '
>
> Now it appears that the magic is not being read. It is however there and
> seemingly ok:
>
> $ cat /var/lib/ceph/osd/ceph-0/magic
> ceph osd volume v026
>
> Looking at src/osd/OSD.cc I wonder if something like this is needed (as
> it seems that magic is being assigned to an empty val otherwise):
Exactly, I merged the same fix independently a little while ago.
> --- a/src/osd/OSD.cc
> +++ b/src/osd/OSD.cc
> @@ -731,7 +731,7 @@ int OSD::peek_meta(ObjectStore *store, std::string&
> magic,
> {
> string val;
>
> - int r = store->read_meta("magic", &magic);
> + int r = store->read_meta("magic", &val);
> if (r < 0)
> return r;
> magic = val;
>
>
> This makes the osd's start ok, but the mon does not detect them
> (possibly another issue or my patch is wrong). I'll keep looking :-)
Not sure what's going on here yet, as the boot message is sent and
received.
prev parent reply other threads:[~2013-12-03 2:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-03 2:42 Osd magic detection failure in master Mark Kirkwood
2013-12-03 2:47 ` Josh Durgin [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=529D463B.4040601@inktank.com \
--to=josh.durgin@inktank.com \
--cc=ceph-devel@vger.kernel.org \
--cc=mark.kirkwood@catalyst.net.nz \
/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.