From: Adam Nielsen <a.nielsen@shikadi.net>
To: ceph-devel@vger.kernel.org
Subject: Re: OSD::mkfs: couldn't mount FileStore: error -22
Date: Mon, 15 Oct 2012 09:19:35 +1000 [thread overview]
Message-ID: <k5fha7$h3l$1@ger.gmane.org> (raw)
In-Reply-To: <507B2E71.4040706@inktank.com>
> The immediate cause of the problem is that the osd's "commit_op_seq" file is
> reading back '0',
> which is invalid; it's created with an initial value of 1. Try removing the
> osd data dir
> (/var/lib/ceph/osd/ceph-0) completely and let it be recreated; perhaps
> something got there somehow by mistake.
Well it looks like commit_op_seq was never created properly:
$ ls /var/lib/ceph/osd/ceph-0/current/
total 4.0K
drwxr-xr-x 1 root root 26 Oct 14 17:40 .
drwxrwx--- 1 root root 74 Oct 14 17:40 ..
-rw-r--r-- 1 root root 0 Oct 14 17:40 commit_op_seq
But how do I delete it to start again?
$ rm -rf current/
rm: cannot remove `current': Directory not empty
$ ls current/
total 4.0K
drwxr-xr-x 1 root root 0 Oct 15 09:16 .
drwxrwx--- 1 root root 26 Oct 15 09:16 ..
This is on a brand new btrfs filesystem mounted in /var/lib/ceph/osd/ceph-0.
I created it with this:
$ mkfs.btrfs -L data -s 4096 /dev/sda1
Did I do something wrong?
Thanks,
Adam.
next prev parent reply other threads:[~2012-10-14 23:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-14 7:50 OSD::mkfs: couldn't mount FileStore: error -22 Adam Nielsen
2012-10-14 21:28 ` Dan Mick
2012-10-14 23:19 ` Adam Nielsen [this message]
2012-10-15 3:48 ` Sage Weil
2012-10-15 11:35 ` Adam Nielsen
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='k5fha7$h3l$1@ger.gmane.org' \
--to=a.nielsen@shikadi.net \
--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.