From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Mick Subject: Re: ceph mkfs failed Date: Thu, 07 Feb 2013 14:21:46 -0800 Message-ID: <511428FA.3040209@inktank.com> References: <51140CFF.8000207@inktank.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ie0-f179.google.com ([209.85.223.179]:53218 "EHLO mail-ie0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422655Ab3BGWVv (ORCPT ); Thu, 7 Feb 2013 17:21:51 -0500 Received: by mail-ie0-f179.google.com with SMTP id k11so4186546iea.38 for ; Thu, 07 Feb 2013 14:21:50 -0800 (PST) In-Reply-To: Sender: ceph-devel-owner@vger.kernel.org List-ID: To: sheng qiu Cc: Gregory Farnum , ceph-devel 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 wrote: >> On Thu, Feb 7, 2013 at 12:42 PM, sheng qiu 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 > > >