All of lore.kernel.org
 help / color / mirror / Atom feed
* Request for ceph.conf environment extension
@ 2013-05-06  9:18 Andreas Friedrich
  2013-05-06 12:36 ` Gandalf Corvotempesta
  2013-05-06 12:46 ` Request for ceph.conf environment extension Wido den Hollander
  0 siblings, 2 replies; 18+ messages in thread
From: Andreas Friedrich @ 2013-05-06  9:18 UTC (permalink / raw)
  To: Ceph Development

[-- Attachment #1: Type: text/plain, Size: 1152 bytes --]

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
----------------------------------------------------------------------

[-- Attachment #2: ceph-init-add-environment.patch --]
[-- Type: text/x-patch, Size: 508 bytes --]

--- 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

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2013-05-06 16:51 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-06  9:18 Request for ceph.conf environment extension Andreas Friedrich
2013-05-06 12:36 ` Gandalf Corvotempesta
2013-05-06 13:23   ` Mark Nelson
2013-05-06 13:35     ` Gandalf Corvotempesta
2013-05-06 13:39       ` Mark Nelson
2013-05-06 13:48       ` Jens Kristian Søgaard
2013-05-06 13:49         ` Gandalf Corvotempesta
2013-05-06 13:53           ` Jens Kristian Søgaard
2013-05-06 14:00             ` Gandalf Corvotempesta
2013-05-06 14:03               ` Jens Kristian Søgaard
2013-05-06 14:13                 ` Gandalf Corvotempesta
2013-05-06 14:18                   ` Jens Kristian Søgaard
2013-05-06 14:59                     ` Mark Nelson
2013-05-06 15:16                       ` Jens Kristian Søgaard
2013-05-06 15:40                         ` Mark Nelson
2013-05-06 16:51                       ` Gandalf Corvotempesta
2013-05-06 16:02   ` Request for ceph.conf environment extension / IB performance Kasper Dieter
2013-05-06 12:46 ` Request for ceph.conf environment extension Wido den Hollander

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.