From: Dan Mick <dan.mick@inktank.com>
To: sheng qiu <herbert1984106@gmail.com>
Cc: Gregory Farnum <greg@inktank.com>,
ceph-devel <ceph-devel@vger.kernel.org>
Subject: Re: ceph mkfs failed
Date: Thu, 07 Feb 2013 14:21:46 -0800 [thread overview]
Message-ID: <511428FA.3040209@inktank.com> (raw)
In-Reply-To: <CAB7xdin+Ow_KE1EgNSK6PG4EDSKgO=DSjFJBpBVKjL-Rd5wehA@mail.gmail.com>
leveldb is required. What filesystem are you using that doesn't support
mmap?
On 02/07/2013 02:11 PM, sheng qiu wrote:
> Is it possible comment the leveldb setup codes during mkfs call path?
> i find the problem is because i am trying to use a bunch of memory as
> the OSD, when the leveldb mmap() the file on OSD, it failed, as the
> file actually located on memory.
>
> Thanks,
> Sheng
>
> On Thu, Feb 7, 2013 at 2:53 PM, Gregory Farnum <greg@inktank.com> wrote:
>> On Thu, Feb 7, 2013 at 12:42 PM, sheng qiu <herbert1984106@gmail.com> wrote:
>>> Hi Dan,
>>>
>>> thanks for your reply.
>>>
>>> after some code tracking, i found it failed at this point :
>>> in file leveldb/db/db_impl.cc --> NewDB()
>>>
>>> log::Writer log(file);
>>> std::string record;
>>> new_db.EncodeTo(&record);
>>> s = log.AddRecord(record);
>>> if (s.ok()) {
>>> fprintf(test, "NewDB: 2\n");
>>> s = file->Close();
>>> }else
>>> fprintf(test, "NewDB: 2.5\n");
>>>
>>> the log.AddRecord return s which is not ok().
>>>
>>> can you provide some hint why it fails? i am reading the AddRecord()
>>> function now.
>>
>> LevelDB is a generic library which we don't develop. My understanding
>> is that it's expected to work on any POSIX-compliant filesystem, but
>> you can check out the docs
>> (http://leveldb.googlecode.com/svn/trunk/doc/index.html) or source
>> code for more info.
>> -Greg
>
>
>
next prev parent reply other threads:[~2013-02-07 22:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-07 17:59 ceph mkfs failed sheng qiu
2013-02-07 20:22 ` Dan Mick
2013-02-07 20:42 ` sheng qiu
2013-02-07 20:53 ` Gregory Farnum
2013-02-07 22:11 ` sheng qiu
2013-02-07 22:21 ` Dan Mick [this message]
2013-02-07 22:40 ` sheng qiu
2013-02-08 16:36 ` sheng qiu
2013-02-08 17:02 ` Sage Weil
2013-02-08 17:07 ` sheng qiu
2013-02-08 17:53 ` sheng qiu
2013-02-08 20:57 ` sheng qiu
2013-02-08 21:18 ` sheng qiu
2013-02-08 21:19 ` Gregory Farnum
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=511428FA.3040209@inktank.com \
--to=dan.mick@inktank.com \
--cc=ceph-devel@vger.kernel.org \
--cc=greg@inktank.com \
--cc=herbert1984106@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.