From patchwork Tue Nov 12 07:41:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ketor D X-Patchwork-Id: 3171241 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8131BC045B for ; Tue, 12 Nov 2013 07:42:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6DF4F201E7 for ; Tue, 12 Nov 2013 07:42:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 542B62012C for ; Tue, 12 Nov 2013 07:42:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752641Ab3KLHmU (ORCPT ); Tue, 12 Nov 2013 02:42:20 -0500 Received: from mail-lb0-f181.google.com ([209.85.217.181]:42548 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752426Ab3KLHmT (ORCPT ); Tue, 12 Nov 2013 02:42:19 -0500 Received: by mail-lb0-f181.google.com with SMTP id x18so4283166lbi.12 for ; Mon, 11 Nov 2013 23:42:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=A1IU7ljrq9MNhA+iWuQr8YFDQVrw5adEVVzcUJIGDjc=; b=HQi6D9OSXQQ7HSAotc1LOwE5qwiArnuPU7/1g4LcAFoqk49bya9ix4rrS5wGQHY/07 oCp/dA8/2ML8AdhG9iu6HadrRZO344Ek+5hUngQNkAOjG1QV1/0+/OqC/Lu1mAIVj1QL YVr2jKTd/+DWWfrjVAGKix9XJ0AmnNBNPJrMseYWi0/CZgPiQUJX4Rnypkio47qWiUMQ ImyKXzB2T/QmD274pYMiiX0Gzh7PX4EfbBAysawqWSZ844njEnGbNzzAieXeC3cn3fYl bB5LtjvO2jekM+3UG54Cn2Zp/AJX9HAPsfC6ZjQSqlhXBN/NbO8Gej9+uTi0YrB3N9p3 7G3A== X-Received: by 10.152.116.7 with SMTP id js7mr26300557lab.11.1384242138160; Mon, 11 Nov 2013 23:42:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.200.3 with HTTP; Mon, 11 Nov 2013 23:41:48 -0800 (PST) In-Reply-To: <5281D734.3060807@42on.com> References: <5281192D.4090707@bob-the-boat.me.uk> <5281D734.3060807@42on.com> From: Ketor D Date: Tue, 12 Nov 2013 15:41:48 +0800 Message-ID: Subject: Re: Mourning the demise of mkcephfs To: Wido den Hollander Cc: "Dave (Bob)" , ceph-devel Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Bob: mkcephfs is still usable in 0.72 with a little path.We are still using mkcephfs on 0.72 because ceph-deploy is not good enough. You need to patch mkcephfs.in and init-ceph.in to do this. The patch of mkcephfs.in is you need to modify three symbols: BINDIR=/usr/bin LIBDIR=/usr/lib64/ceph ETCDIR=/etc/ceph to the real path in your system. The patch of init-ceph.in is here: Signed-off-by: Ketor D --- On Tue, Nov 12, 2013 at 3:22 PM, Wido den Hollander wrote: > On 11/11/2013 06:51 PM, Dave (Bob) wrote: >> >> The utility mkcephfs seemed to work, it was very simple to use and >> apparently effective. >> >> It has been deprecated in favour of something called ceph-deploy, which >> does not work for me. >> >> I've ignored the deprecation messages until now, but in going from 70 to >> 72 I find that mkcephfs has finally gone. >> >> I have tried ceph-deploy, and it seems to be tied in to specific >> 'distributions' in some way. >> >> It is unuseable for me at present, because it reports: >> >> [ceph_deploy][ERROR ] UnsupportedPlatform: Platform is not supported: >> >> >> I therefore need to go back to first principles, but the documentation >> seems to have dropped descriptions of driving ceph without smoke and >> mirrors. >> >> The direct approach may be more laborious, but at least it would not >> depend on anything except ceph itself. >> > > I myself am not a very big fan of ceph-deploy as well. Most installations I > do are done by bootstrapping the monitors and osds manually. > > I have some homebrew scripts for this, but I mainly use Puppet to make sure > all the packages and configuration is present on the nodes and afterwards > it's just a matter of adding the OSDs and formatting their disks once. > > The guide to bootstrapping a monitor: > http://eu.ceph.com/docs/master/dev/mon-bootstrap/ > > When the monitor cluster is running you can start generating cephx keys for > the OSDs and add them to the cluster: > http://eu.ceph.com/docs/master/rados/operations/add-or-rm-osds/ > > I don't know if the docs are 100% correct. I've done this so many times that > I do a lot of things without even reading the docs, so there might be a typo > in it somewhere. If so, report it so it can be fixed. > > Where I think that ceph-deploy works for a lot of people I fully understand > that some people just want to manually bootstrap a Ceph cluster from > scratch. > > Wido > > >> Maybe I need to step back a version or two, set up my cluster with >> mkcephfs, then switch back to the latest to use it. >> >> I'll search the documentation again. >> -- >> 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 >> > > > -- > Wido den Hollander > 42on B.V. > > Phone: +31 (0)20 700 9902 > Skype: contact42on > > -- > 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 diff --git "a/src/init-ceph.in" "b/src/init-ceph.in" index 7399abb..cf2eaa6 100644 --- "a/src/init-ceph.in" +++ "b/src/init-ceph.in" @@ -331,7 +331,8 @@ for name in $what; do -- \ $id \ ${osd_weight:-${defaultweight:-1}} \ - $osd_location" + $osd_location \ + || :" fi fi