All of lore.kernel.org
 help / color / mirror / Atom feed
* Osd magic detection failure in master
@ 2013-12-03  2:42 Mark Kirkwood
  2013-12-03  2:47 ` Josh Durgin
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Kirkwood @ 2013-12-03  2:42 UTC (permalink / raw)
  To: ceph-devel@vger.kernel.org

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Osd magic detection failure in master
  2013-12-03  2:42 Osd magic detection failure in master Mark Kirkwood
@ 2013-12-03  2:47 ` Josh Durgin
  0 siblings, 0 replies; 2+ messages in thread
From: Josh Durgin @ 2013-12-03  2:47 UTC (permalink / raw)
  To: Mark Kirkwood, ceph-devel@vger.kernel.org

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-03  2:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-03  2:42 Osd magic detection failure in master Mark Kirkwood
2013-12-03  2:47 ` Josh Durgin

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.