From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Mick Subject: Re: ceph mkfs failed Date: Thu, 07 Feb 2013 12:22:23 -0800 Message-ID: <51140CFF.8000207@inktank.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ie0-f170.google.com ([209.85.223.170]:49598 "EHLO mail-ie0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759280Ab3BGUW1 (ORCPT ); Thu, 7 Feb 2013 15:22:27 -0500 Received: by mail-ie0-f170.google.com with SMTP id c11so4130334ieb.15 for ; Thu, 07 Feb 2013 12:22:27 -0800 (PST) In-Reply-To: Sender: ceph-devel-owner@vger.kernel.org List-ID: To: sheng qiu Cc: ceph-devel On 02/07/2013 09:59 AM, sheng qiu wrote: > Hi, > > i am trying to port a local file system other than ext3,ext4,btrfs to > manage the OSD. There are some reasons for us to do it. > the mkcephfs stopped at this point: > > 2013-02-07 11:39:32.009889 7effe43d17a0 -1 filestore(/mnt/osd.0) mkfs > failed to create leveldb: IO error: > /mnt/osd.0/current/omap/MANIFEST-000001: Invalid argument > 2013-02-07 11:39:32.009907 7effe43d17a0 -1 OSD::mkfs: FileStore::mkfs > failed with error -1 > 2013-02-07 11:39:32.009949 7effe43d17a0 -1 ** ERROR: error creating > empty object store in /mnt/osd.0: (1) Operation not permitted Does your ssh user have permission to create dirs in /mnt? (I'll grant you it looks like you're doing root, but, still) > failed: 'ssh root@mon-mds /usr/local/sbin/mkcephfs -d > /tmp/mkfs.ceph.2686 --init-daemon osd.0' You could certainly try this command on the failing system as root, and look with strace to see what system call is actually failing. > > look into the code, it failed at os/FileStore.cc --> leveldb::Status > status = leveldb::DB::Open(options, omap_dir, &db); > > Does anyone have any suggestions? > > Thanks, > Sheng >