All of lore.kernel.org
 help / color / mirror / Atom feed
* mkcehfs: ** ERROR: error creating empty object store in /data/sd1: (2) No such file or directory
@ 2012-08-28 17:12 Tim Flavin
  2012-08-28 17:14 ` Sage Weil
  0 siblings, 1 reply; 6+ messages in thread
From: Tim Flavin @ 2012-08-28 17:12 UTC (permalink / raw)
  To: ceph-devel

Hi:

I am having a problem with mkcephfs.  I built ceph from the 48.1 tarball.

When I type:   sudo mkcephfs -a -c ceph.conf -k ceph.keyring

I get:

(monmap tool related stuff is ok)


=== osd.0 ===
2012-08-28 11:51:49.549651 b6f85000 -1 OSD::mkfs: FileStore::mkfs
failed with error -2
2012-08-28 11:51:49.549767 b6f85000 -1  ** ERROR: error creating empty
object store in /data/sd1: (2) No such file or directory
failed: '/usr/local/sbin/mkcephfs -d /tmp/mkcephfs.mKzTuonWuF
--init-daemon osd.0'


user1@ceph4:~$ cat ceph.conf
[osd]
	osd journal size = 1000
	filestore xattr use omap = true

[mon.a]
	host = ceph4
	mon addr = 64.20.246.210

[osd.0]
	host = ceph4
        osd data = /data/sd1
	; osd data = /dev/user1/data
	; osd journal = /dev/sdc1
	osd journal = /user1/log


user1@ceph4:~$ ls /data/sd1
current  d1  fsid  lost+found  store_version

/data/sd1 is an ext4 file system with -o noatime,user_xattr

Any ideas?


Tim Flavin

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

* Re: mkcehfs: ** ERROR: error creating empty object store in /data/sd1: (2) No such file or directory
  2012-08-28 17:12 mkcehfs: ** ERROR: error creating empty object store in /data/sd1: (2) No such file or directory Tim Flavin
@ 2012-08-28 17:14 ` Sage Weil
  2012-08-28 17:38   ` Tim Flavin
  0 siblings, 1 reply; 6+ messages in thread
From: Sage Weil @ 2012-08-28 17:14 UTC (permalink / raw)
  To: Tim Flavin; +Cc: ceph-devel

On Tue, 28 Aug 2012, Tim Flavin wrote:
> Hi:
> 
> I am having a problem with mkcephfs.  I built ceph from the 48.1 tarball.
> 
> When I type:   sudo mkcephfs -a -c ceph.conf -k ceph.keyring
> 
> I get:
> 
> (monmap tool related stuff is ok)
> 
> 
> === osd.0 ===
> 2012-08-28 11:51:49.549651 b6f85000 -1 OSD::mkfs: FileStore::mkfs
> failed with error -2
> 2012-08-28 11:51:49.549767 b6f85000 -1  ** ERROR: error creating empty
> object store in /data/sd1: (2) No such file or directory
> failed: '/usr/local/sbin/mkcephfs -d /tmp/mkcephfs.mKzTuonWuF
> --init-daemon osd.0'

That is not the most helpful error message, but:

> 
> 
> user1@ceph4:~$ cat ceph.conf
> [osd]
> 	osd journal size = 1000
> 	filestore xattr use omap = true
> 
> [mon.a]
> 	host = ceph4
> 	mon addr = 64.20.246.210
> 
> [osd.0]
> 	host = ceph4
>         osd data = /data/sd1
> 	; osd data = /dev/user1/data
> 	; osd journal = /dev/sdc1
> 	osd journal = /user1/log
> 
> 
> user1@ceph4:~$ ls /data/sd1
> current  d1  fsid  lost+found  store_version

...it looks like there is already data in that directory. Have you tried 
removing all of the files in /data/sd1 and retrying?

sage


> 
> /data/sd1 is an ext4 file system with -o noatime,user_xattr
> 
> Any ideas?
> 
> 
> Tim Flavin
> --
> 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
> 
> 

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

* Re: mkcehfs: ** ERROR: error creating empty object store in /data/sd1: (2) No such file or directory
  2012-08-28 17:14 ` Sage Weil
@ 2012-08-28 17:38   ` Tim Flavin
  2012-08-28 18:07     ` Dieter Kasper
  2012-08-28 18:20     ` Tommi Virtanen
  0 siblings, 2 replies; 6+ messages in thread
From: Tim Flavin @ 2012-08-28 17:38 UTC (permalink / raw)
  To: Sage Weil; +Cc: ceph-devel

Sage:  Yes I tried that.

user1@ceph4:~/ceph-0.48.1argonaut$ cd /data
user1@ceph4:/data$ cd sd1
user1@ceph4:/data/sd1$ ls
current  d1  fsid  lost+found  store_version

user1@ceph4:/data/sd1$ sudo rm -rf current d1 fsid store_version
user1@ceph4:/data/sd1$ ls
lost+found

user1@ceph4:/data/sd1$ cd
user1@ceph4:~$ sudo mkcephfs -a -c ceph.conf -k ceph.keyring


...

=== osd.0 ===
2012-08-28 12:29:38.299530 b6fd0000 -1 OSD::mkfs: FileStore::mkfs
failed with error -2
2012-08-28 12:29:38.299634 b6fd0000 -1  ** ERROR: error creating empty
object store in /data/sd1: (2) No such file or directory
failed: '/usr/local/sbin/mkcephfs -d /tmp/mkcephfs.syrvDQZU6f
--init-daemon osd.0'


user1@ceph4:~$ cd /data/sd1
user1@ceph4:/data/sd1$ lsn
total 28K
drwxr-xr-x 3 root root 4.0K Aug 28 12:29 current
-rw-r--r-- 1 root root    4 Aug 28 12:29 store_version
-rw-r--r-- 1 root root   37 Aug 28 12:29 fsid
drwx------ 2 root root  16K Aug 28 10:40 lost+found


Note that mkcephfs was able to create current, store_version and fsid.





On Tue, Aug 28, 2012 at 1:14 PM, Sage Weil <sage@inktank.com> wrote:
> On Tue, 28 Aug 2012, Tim Flavin wrote:
>> Hi:
>>
>> I am having a problem with mkcephfs.  I built ceph from the 48.1 tarball.
>>
>> When I type:   sudo mkcephfs -a -c ceph.conf -k ceph.keyring
>>
>> I get:
>>
>> (monmap tool related stuff is ok)
>>
>>
>> === osd.0 ===
>> 2012-08-28 11:51:49.549651 b6f85000 -1 OSD::mkfs: FileStore::mkfs
>> failed with error -2
>> 2012-08-28 11:51:49.549767 b6f85000 -1  ** ERROR: error creating empty
>> object store in /data/sd1: (2) No such file or directory
>> failed: '/usr/local/sbin/mkcephfs -d /tmp/mkcephfs.mKzTuonWuF
>> --init-daemon osd.0'
>
> That is not the most helpful error message, but:
>
>>
>>
>> user1@ceph4:~$ cat ceph.conf
>> [osd]
>>       osd journal size = 1000
>>       filestore xattr use omap = true
>>
>> [mon.a]
>>       host = ceph4
>>       mon addr = 64.20.246.210
>>
>> [osd.0]
>>       host = ceph4
>>         osd data = /data/sd1
>>       ; osd data = /dev/user1/data
>>       ; osd journal = /dev/sdc1
>>       osd journal = /user1/log
>>
>>
>> user1@ceph4:~$ ls /data/sd1
>> current  d1  fsid  lost+found  store_version
>
> ...it looks like there is already data in that directory. Have you tried
> removing all of the files in /data/sd1 and retrying?
>
> sage
>
>
>>
>> /data/sd1 is an ext4 file system with -o noatime,user_xattr
>>
>> Any ideas?
>>
>>
>> Tim Flavin
>> --
>> 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
>>
>>

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

* Re: mkcehfs: ** ERROR: error creating empty object store in /data/sd1: (2) No such file or directory
  2012-08-28 17:38   ` Tim Flavin
@ 2012-08-28 18:07     ` Dieter Kasper
  2012-08-28 18:20     ` Tommi Virtanen
  1 sibling, 0 replies; 6+ messages in thread
From: Dieter Kasper @ 2012-08-28 18:07 UTC (permalink / raw)
  To: Tim Flavin; +Cc: Sage Weil, ceph-devel@vger.kernel.org, Dieter Kasper (KD)

Tim,
in a similar case I put 'strace -f' in front of ceph-osd in /sbin/mkcephfs

original
        $BINDIR/ceph-osd -c $conf --monmap $dir/monmap -i $id --mkfs --mkkey
change to
        strace -f $BINDIR/ceph-osd -c $conf --monmap $dir/monmap -i $id --mkfs --mkkey 2> err > out

run the test and look in 'err' for 'ENOENT'

Cheers,
-Dieter


On Tue, Aug 28, 2012 at 07:38:09PM +0200, Tim Flavin wrote:
> Sage:  Yes I tried that.
> 
> user1@ceph4:~/ceph-0.48.1argonaut$ cd /data
> user1@ceph4:/data$ cd sd1
> user1@ceph4:/data/sd1$ ls
> current  d1  fsid  lost+found  store_version
> 
> user1@ceph4:/data/sd1$ sudo rm -rf current d1 fsid store_version
> user1@ceph4:/data/sd1$ ls
> lost+found
> 
> user1@ceph4:/data/sd1$ cd
> user1@ceph4:~$ sudo mkcephfs -a -c ceph.conf -k ceph.keyring
> 
> 
> ...
> 
> === osd.0 ===
> 2012-08-28 12:29:38.299530 b6fd0000 -1 OSD::mkfs: FileStore::mkfs
> failed with error -2
> 2012-08-28 12:29:38.299634 b6fd0000 -1  ** ERROR: error creating empty
> object store in /data/sd1: (2) No such file or directory
> failed: '/usr/local/sbin/mkcephfs -d /tmp/mkcephfs.syrvDQZU6f
> --init-daemon osd.0'
> 
> 
> user1@ceph4:~$ cd /data/sd1
> user1@ceph4:/data/sd1$ lsn
> total 28K
> drwxr-xr-x 3 root root 4.0K Aug 28 12:29 current
> -rw-r--r-- 1 root root    4 Aug 28 12:29 store_version
> -rw-r--r-- 1 root root   37 Aug 28 12:29 fsid
> drwx------ 2 root root  16K Aug 28 10:40 lost+found
> 
> 
> Note that mkcephfs was able to create current, store_version and fsid.
> 
> 
> 
> 
> 
> On Tue, Aug 28, 2012 at 1:14 PM, Sage Weil <sage@inktank.com> wrote:
> > On Tue, 28 Aug 2012, Tim Flavin wrote:
> >> Hi:
> >>
> >> I am having a problem with mkcephfs.  I built ceph from the 48.1 tarball.
> >>
> >> When I type:   sudo mkcephfs -a -c ceph.conf -k ceph.keyring
> >>
> >> I get:
> >>
> >> (monmap tool related stuff is ok)
> >>
> >>
> >> === osd.0 ===
> >> 2012-08-28 11:51:49.549651 b6f85000 -1 OSD::mkfs: FileStore::mkfs
> >> failed with error -2
> >> 2012-08-28 11:51:49.549767 b6f85000 -1  ** ERROR: error creating empty
> >> object store in /data/sd1: (2) No such file or directory
> >> failed: '/usr/local/sbin/mkcephfs -d /tmp/mkcephfs.mKzTuonWuF
> >> --init-daemon osd.0'
> >
> > That is not the most helpful error message, but:
> >
> >>
> >>
> >> user1@ceph4:~$ cat ceph.conf
> >> [osd]
> >>       osd journal size = 1000
> >>       filestore xattr use omap = true
> >>
> >> [mon.a]
> >>       host = ceph4
> >>       mon addr = 64.20.246.210
> >>
> >> [osd.0]
> >>       host = ceph4
> >>         osd data = /data/sd1
> >>       ; osd data = /dev/user1/data
> >>       ; osd journal = /dev/sdc1
> >>       osd journal = /user1/log
> >>
> >>
> >> user1@ceph4:~$ ls /data/sd1
> >> current  d1  fsid  lost+found  store_version
> >
> > ...it looks like there is already data in that directory. Have you tried
> > removing all of the files in /data/sd1 and retrying?
> >
> > sage
> >
> >
> >>
> >> /data/sd1 is an ext4 file system with -o noatime,user_xattr
> >>
> >> Any ideas?
> >>
> >>
> >> Tim Flavin
> >> --
> >> 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
> >>
> >>
> --
> 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


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

* Re: mkcehfs: ** ERROR: error creating empty object store in /data/sd1: (2) No such file or directory
  2012-08-28 17:38   ` Tim Flavin
  2012-08-28 18:07     ` Dieter Kasper
@ 2012-08-28 18:20     ` Tommi Virtanen
  2012-08-28 19:52       ` Tim Flavin
  1 sibling, 1 reply; 6+ messages in thread
From: Tommi Virtanen @ 2012-08-28 18:20 UTC (permalink / raw)
  To: Tim Flavin; +Cc: Sage Weil, ceph-devel

On Tue, Aug 28, 2012 at 1:38 PM, Tim Flavin <tim.flavin@gmail.com> wrote:
> Sage:  Yes I tried that.

I wonder if the journal file exists..

        osd journal = /user1/log

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

* Re: mkcehfs: ** ERROR: error creating empty object store in /data/sd1: (2) No such file or directory
  2012-08-28 18:20     ` Tommi Virtanen
@ 2012-08-28 19:52       ` Tim Flavin
  0 siblings, 0 replies; 6+ messages in thread
From: Tim Flavin @ 2012-08-28 19:52 UTC (permalink / raw)
  To: Tommi Virtanen; +Cc: Sage Weil, ceph-devel

Tommi:

That was it.

osd    journal = /user1/log

should have been

osd     journal = /home/user1/log

Works much better now.  The error message was a bit confusing.    I
was looking for ENOENTs related to /data/sd1 not /user1/log.  It was
there, but there were other ENOENTs after it.


Tim




On Tue, Aug 28, 2012 at 2:20 PM, Tommi Virtanen <tv@inktank.com> wrote:
> On Tue, Aug 28, 2012 at 1:38 PM, Tim Flavin <tim.flavin@gmail.com> wrote:
>> Sage:  Yes I tried that.
>
> I wonder if the journal file exists..
>
>

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

end of thread, other threads:[~2012-08-28 19:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-28 17:12 mkcehfs: ** ERROR: error creating empty object store in /data/sd1: (2) No such file or directory Tim Flavin
2012-08-28 17:14 ` Sage Weil
2012-08-28 17:38   ` Tim Flavin
2012-08-28 18:07     ` Dieter Kasper
2012-08-28 18:20     ` Tommi Virtanen
2012-08-28 19:52       ` Tim Flavin

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.