All of lore.kernel.org
 help / color / mirror / Atom feed
* ceph next branch: error creating empty object store in /srv/osd.10: (22) Invalid argument
@ 2012-06-14 11:56 Stefan Priebe - Profihost AG
  2012-06-14 12:04 ` Stefan Priebe - Profihost AG
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Priebe - Profihost AG @ 2012-06-14 11:56 UTC (permalink / raw)
  To: ceph-devel

Hi,

as i had some problems with the stable branch. Then i wanted to try the 
next branch to look if my problems are solved.

When i wanted to create the ceph FS with the next branch i get this error:

=== osd.10 ===
pushing conf and monmap to ssdstor000:/tmp/mkfs.ceph.3279
2012-06-14 13:54:21.001555 7fea16922780 -1 provided osd id 10 != 
superblock's -1
2012-06-14 13:54:21.001874 7fea16922780 -1  ** ERROR: error creating 
empty object store in /srv/osd.10: (22) Invalid argument
failed: 'ssh root@ssdstor000 /sbin/mkcephfs -d /tmp/mkfs.ceph.3279 
--init-daemon osd.10'

/dev/sdb1 on /srv/osd.10 type xfs 
(rw,noatime,nodiratime,nobarrier,discard,logbufs=8,logbsize=256k)

Stefan

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

* Re: ceph next branch: error creating empty object store in /srv/osd.10: (22) Invalid argument
  2012-06-14 11:56 ceph next branch: error creating empty object store in /srv/osd.10: (22) Invalid argument Stefan Priebe - Profihost AG
@ 2012-06-14 12:04 ` Stefan Priebe - Profihost AG
  2012-06-14 20:17   ` Sage Weil
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Priebe - Profihost AG @ 2012-06-14 12:04 UTC (permalink / raw)
  To: ceph-devel

I got this fixed by deleting all content in /srv/osd.X. But now i get 
with the next branch this one:

=== osd.32 ===
pushing conf and monmap to ssdstor002:/tmp/mkfs.ceph.4885
2012-06-14 14:02:09.333309 7f815cd26780 -1 journal FileJournal::_open: 
unable to open journal: open() failed: (2) No such file or directory
2012-06-14 14:02:09.690097 7f815cd26780 -1 filestore(/srv/osd.32) could 
not find 23c2fcde/osd_superblock/0//-1 in index: (2) No such file or 
directory
2012-06-14 14:02:09.758456 7f815cd26780 -1 created object store 
/srv/osd.32 journal /journal/osd.32.journal for osd.32 fsid 
308b2ada-5c2a-4b54-b094-b7035413d247
creating private key for osd.32 keyring /etc/ceph/osd.32.keyring
creating /etc/ceph/osd.32.keyring
collecting osd.32 key

Stefan

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

* Re: ceph next branch: error creating empty object store in /srv/osd.10: (22) Invalid argument
  2012-06-14 12:04 ` Stefan Priebe - Profihost AG
@ 2012-06-14 20:17   ` Sage Weil
  2012-06-15  5:50     ` Stefan Priebe - Profihost AG
  0 siblings, 1 reply; 6+ messages in thread
From: Sage Weil @ 2012-06-14 20:17 UTC (permalink / raw)
  To: Stefan Priebe - Profihost AG; +Cc: ceph-devel

On Thu, 14 Jun 2012, Stefan Priebe - Profihost AG wrote:
> I got this fixed by deleting all content in /srv/osd.X. But now i get with the
> next branch this one:
> 
> === osd.32 ===
> pushing conf and monmap to ssdstor002:/tmp/mkfs.ceph.4885
> 2012-06-14 14:02:09.333309 7f815cd26780 -1 journal FileJournal::_open: unable
> to open journal: open() failed: (2) No such file or directory
> 2012-06-14 14:02:09.690097 7f815cd26780 -1 filestore(/srv/osd.32) could not
> find 23c2fcde/osd_superblock/0//-1 in index: (2) No such file or directory
> 2012-06-14 14:02:09.758456 7f815cd26780 -1 created object store /srv/osd.32
> journal /journal/osd.32.journal for osd.32 fsid
> 308b2ada-5c2a-4b54-b094-b7035413d247
> creating private key for osd.32 keyring /etc/ceph/osd.32.keyring
> creating /etc/ceph/osd.32.keyring
> collecting osd.32 key

Is it possible that the osd journal you configured is a file in the osd 
data directory that doesn't already exist, and you didn't specify the 'osd 
journal size' option in ceph.conf?

The change here is that ceph-osd --mkfs no longer wipes out previous data, 
so that's now your job.  But it only creates the journal file when the 
size is specified, otherwise it needs to already be present...

sage


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

* Re: ceph next branch: error creating empty object store in /srv/osd.10: (22) Invalid argument
  2012-06-14 20:17   ` Sage Weil
@ 2012-06-15  5:50     ` Stefan Priebe - Profihost AG
  2012-06-15 16:29       ` Sage Weil
  0 siblings, 1 reply; 6+ messages in thread
From: Stefan Priebe - Profihost AG @ 2012-06-15  5:50 UTC (permalink / raw)
  To: Sage Weil; +Cc: ceph-devel

Am 14.06.2012 22:17, schrieb Sage Weil:
> On Thu, 14 Jun 2012, Stefan Priebe - Profihost AG wrote:
> Is it possible that the osd journal you configured is a file in the osd
> data directory that doesn't already exist
Sure is this wrong?
[osd]
         osd journal = /journal/osd.$id.journal
         osd journal size = 1000

and the /journal dir is empty.

 >, and you didn't specify the 'osd
> journal size' option in ceph.conf?
no it is - see above


> The change here is that ceph-osd --mkfs no longer wipes out previous data,
> so that's now your job.
ah OK ;-) didn't know that.

 > But it only creates the journal file when the
> size is specified, otherwise it needs to already be present...
It wasn't present but the size was set. Strangely the error occours but 
it still creates the file... ?!

Stefan

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

* Re: ceph next branch: error creating empty object store in /srv/osd.10: (22) Invalid argument
  2012-06-15  5:50     ` Stefan Priebe - Profihost AG
@ 2012-06-15 16:29       ` Sage Weil
  2012-06-15 20:58         ` Stefan Priebe
  0 siblings, 1 reply; 6+ messages in thread
From: Sage Weil @ 2012-06-15 16:29 UTC (permalink / raw)
  To: Stefan Priebe - Profihost AG; +Cc: ceph-devel

On Fri, 15 Jun 2012, Stefan Priebe - Profihost AG wrote:
> Am 14.06.2012 22:17, schrieb Sage Weil:
> > On Thu, 14 Jun 2012, Stefan Priebe - Profihost AG wrote:
> > Is it possible that the osd journal you configured is a file in the osd
> > data directory that doesn't already exist
> Sure is this wrong?
> [osd]
>         osd journal = /journal/osd.$id.journal
>         osd journal size = 1000
> 
> and the /journal dir is empty.
> 
> >, and you didn't specify the 'osd
> > journal size' option in ceph.conf?
> no it is - see above

Hmm, ok, so it's not that then.

> > The change here is that ceph-osd --mkfs no longer wipes out previous data,
> > so that's now your job.
> ah OK ;-) didn't know that.
> 
> > But it only creates the journal file when the
> > size is specified, otherwise it needs to already be present...
> It wasn't present but the size was set. Strangely the error occours but it
> still creates the file... ?!

It sure is.

Can you reproduce with 'debug filestore = 20' and attach the log to this 
bug?

	http://tracker.newdream.net/issues/2595

Thanks!
sage

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

* Re: ceph next branch: error creating empty object store in /srv/osd.10: (22) Invalid argument
  2012-06-15 16:29       ` Sage Weil
@ 2012-06-15 20:58         ` Stefan Priebe
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Priebe @ 2012-06-15 20:58 UTC (permalink / raw)
  To: Sage Weil; +Cc: ceph-devel

Am 15.06.2012 18:29, schrieb Sage Weil:
>>> But it only creates the journal file when the
>>> size is specified, otherwise it needs to already be present...
>> It wasn't present but the size was set. Strangely the error occours but it
>> still creates the file... ?!
>
> It sure is.
>
> Can you reproduce with 'debug filestore = 20' and attach the log to this
> bug?
>
> 	http://tracker.newdream.net/issues/2595

done and log attached

Stefan

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

end of thread, other threads:[~2012-06-15 20:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-14 11:56 ceph next branch: error creating empty object store in /srv/osd.10: (22) Invalid argument Stefan Priebe - Profihost AG
2012-06-14 12:04 ` Stefan Priebe - Profihost AG
2012-06-14 20:17   ` Sage Weil
2012-06-15  5:50     ` Stefan Priebe - Profihost AG
2012-06-15 16:29       ` Sage Weil
2012-06-15 20:58         ` Stefan Priebe

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.