From patchwork Mon May 6 09:18:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Friedrich X-Patchwork-Id: 2523691 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 64C8EDF230 for ; Mon, 6 May 2013 09:18:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752598Ab3EFJSq (ORCPT ); Mon, 6 May 2013 05:18:46 -0400 Received: from dgate20.ts.fujitsu.com ([80.70.172.51]:32732 "EHLO dgate20.ts.fujitsu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752502Ab3EFJSp (ORCPT ); Mon, 6 May 2013 05:18:45 -0400 DomainKey-Signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:Date:From:To:Subject:Message-ID: Mime-Version:Content-Type:Content-Disposition; b=MDjm93Z5FzkBwmKR6kLOzsNmy6WFqq4IRfj8U/6fijTRNMXl8xPXEpV0 647cQn9sLfo53xlnAcjUGViVl4gFNuxAwonkyMi9Jhct1E2Bu9qwg48nP XOLpxIIOFZS2FIuRz1WgE33SdLNdnF9W1mDFeEmUZgVXd8iHVztHxKi1L iqpZQY7QEyGsO+wnMo9ggsbtmUez7Jt1BpnqcZ48qe7r4oDUnzFlVQKZr 2EGDl8GWZ10DkMXH+AL/uGn6sHrjj; DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ts.fujitsu.com; i=@ts.fujitsu.com; q=dns/txt; s=s1536b; t=1367831925; x=1399367925; h=date:from:to:subject:message-id:mime-version; bh=sH2fl/agnOeONsJMvhPNwMaQWT3Qfj0TUhHbYhZ3e/M=; b=TP9yP0pvTtVvcir353ApC4dfmmEvK9xuxx/Umc4O5iE0PUQOkO5fzdKt cg2pEiuu56jm8bXCG3fYwg7gXdYGh1t5NWMni2wUc2YE8PtPGq0OgsYWj 1Lxjl2uHWgBavkLC3S/e5meK9m/le3besMH/TM71pGLeU3AKNFEekXi3P rMPbue4B3+ix6Kz8STWgcF7AbgOWPRfim6Xubvco3Ny7yJfCMSwZCW7Ne BwZQjE0cVCTSsBNbtfpbMr1wxJfjx; X-SBRSScore: None X-IronPort-AV: E=Sophos;i="4.87,620,1363129200"; d="scan'208";a="123467811" Received: from unknown (HELO abgdate50u.abg.fsc.net) ([172.25.138.66]) by dgate20u.abg.fsc.net with ESMTP; 06 May 2013 11:18:42 +0200 X-IronPort-AV: E=Sophos;i="4.87,620,1363129200"; d="scan'208";a="9897224" Received: from upset.pdb.fsc.net ([172.25.110.78]) by abgdate50u.abg.fsc.net with ESMTP; 06 May 2013 11:18:41 +0200 Received: by upset.pdb.fsc.net (Postfix, from userid 24280) id 3524327ADA; Mon, 6 May 2013 11:18:22 +0200 (CEST) Date: Mon, 6 May 2013 11:18:22 +0200 From: Andreas Friedrich To: Ceph Development Subject: Request for ceph.conf environment extension Message-ID: <20130506091822.GA26022@upset.ux.pdb.fsc.net> Mime-Version: 1.0 Content-Disposition: inline Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org Hello, we are using Infiniband instead of Ethernet for cluster interconnection. Instead of IPoIB (IP-over-InfiniBand Protocol) we want to use SDP (Sockets Direct Protocol) as a mid layer protocol. To connect the Ceph daemons to SDP without changing the Ceph code, the LD_PRELOAD mechanism can be used. To enable the LD_PRELOAD mechanism for the Ceph daemons only, a little generic extension in the global section of /etc/ceph/ceph.conf would be helpful, e.g.: [global] environment = LD_PRELOAD=/usr/lib64/libsdp.so.1 The appending patch adds 5 lines in the Bobtail (0.56.6) init script. The init script will then read the environment setting and - if present - call the Ceph daemons with the preceding environment string. With best regards Andreas Friedrich ---------------------------------------------------------------------- FUJITSU Fujitsu Technology Solutions GmbH Heinz-Nixdorf-Ring 1, 33106 Paderborn, Germany Tel: +49 (5251) 525-1512 Fax: +49 (5251) 525-321512 Email: andreas.friedrich@ts.fujitsu.com Web: ts.fujitsu.com Company details: de.ts.fujitsu.com/imprint ---------------------------------------------------------------------- --- a/src/init-ceph.in 2013-05-03 21:31:07.000000000 +0200 +++ b/src/init-ceph.in 2013-05-06 10:56:56.000000000 +0200 @@ -212,6 +212,12 @@ # conf file cmd="$cmd -c $conf" + environment="" + get_conf environment '' 'environment' + if [ ! -z "$environment" ]; then + cmd="env $environment $cmd" + fi + if echo $name | grep -q ^osd; then get_conf osd_data "/var/lib/ceph/osd/ceph-$id" "osd data" get_conf fs_path "$osd_data" "fs path" # mount point defaults so osd data