From: Dieter Kasper <d.kasper@kabelmail.de>
To: Tim Flavin <tim.flavin@gmail.com>
Cc: Sage Weil <sage@inktank.com>,
"ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>,
"Dieter Kasper (KD)" <d.kasper@kabelmail.de>
Subject: Re: mkcehfs: ** ERROR: error creating empty object store in /data/sd1: (2) No such file or directory
Date: Tue, 28 Aug 2012 20:07:36 +0200 [thread overview]
Message-ID: <20120828180736.GB9872@oder.mch.fsc.net> (raw)
In-Reply-To: <CAEj+kbmaQRQbWtj_+e6tw+UjE0HqxGU=aQY8DTbmxC5XUDoJLw@mail.gmail.com>
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
next prev parent reply other threads:[~2012-08-28 18:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2012-08-28 18:20 ` Tommi Virtanen
2012-08-28 19:52 ` Tim Flavin
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=20120828180736.GB9872@oder.mch.fsc.net \
--to=d.kasper@kabelmail.de \
--cc=ceph-devel@vger.kernel.org \
--cc=sage@inktank.com \
--cc=tim.flavin@gmail.com \
/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.