All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
To: "ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: Osd magic detection failure in master
Date: Tue, 03 Dec 2013 15:42:48 +1300	[thread overview]
Message-ID: <529D4528.3050901@catalyst.net.nz> (raw)

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):

--- 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 :-)

Cheers

Mark

             reply	other threads:[~2013-12-03  2:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-03  2:42 Mark Kirkwood [this message]
2013-12-03  2:47 ` Osd magic detection failure in master Josh Durgin

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=529D4528.3050901@catalyst.net.nz \
    --to=mark.kirkwood@catalyst.net.nz \
    --cc=ceph-devel@vger.kernel.org \
    /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.