rm $(CONFIG)
install: $(XSEG_INSTALL_TARGETS)
+ install -d $(DESTDIR)$(confdir)
+ install -o 0 -g 0 -m 644 -t $(DESTDIR)$(confdir) conf/archipelago.conf
install-src: $(XSEG_INSTALLSRC_TARGETS) $(XSEG_INSTALLSRC_DIRS)
install -d $(DESTDIR)$(srcdir)/lib
moduledir=/lib/modules/$(KVER)/extra/
srcdir=/usr/src/archipelago-modules-dkms-$(VERSION)/xseg/
ganetidir=/usr/share/ganeti/extstorage/archipelago/
+confdir=/etc/archipelago/
INC=-I$(BASE)
INC+=-I$(BASE)/peers/$(TARGET)
--- /dev/null
+# xseg
+#SPEC="segdev:xsegbd:1024:5120:12"
+SEGMENT_PORTS = 1024
+SEGMENT_SIZE = 5120
+
+XSEGBD_START=0
+XSEGBD_END=499
+VTOOL_START=1003
+VTOOL_END=1022
+
+# (peer role, peer type)
+# Mandatory peer roles:
+# blockerb
+# blockerm
+# mapperd
+# vlmcd
+#
+# Available peer types:
+# rados_blocker
+# file_blocker
+# mapperd
+# vlmcd
+# Order matters. Peers will be started with list order and stopped with reversed
+# order.
+roles = [('blockerb', 'rados_blocker'),
+ ('blockerm', 'rados_blocker'),
+ ('mapperd', 'mapperd'),
+ ('vlmcd', 'vlmcd')]
+
+#nr_ops: Max number of flying operations
+#log_level: verbosity levels for each xseg peer
+# 0 - Error
+# 1 - Warnings
+# 2 - Info
+# 3 - Debug
+
+blockerb= {
+ 'portno_start': 1000,
+ 'portno_end': 1000,
+ 'log_level': 3,
+ 'nr_ops': 512,
+ 'pool': 'blocks'
+}
+
+blockerm = {
+ 'portno_start': 1002,
+ 'portno_end': 1002,
+ 'log_level': 3,
+ 'nr_ops': 512,
+ 'pool': 'maps'
+}
+
+mapperd = {
+ 'portno_start': 1001,
+ 'portno_end': 1001,
+ 'log_level': 3,
+ 'nr_ops': 512,
+ 'blockerb_port': 1000,
+ 'blockerm_port': 1002
+}
+
+vlmcd = {
+ 'portno_start': 500,
+ 'portno_end': 999,
+ 'log_level': 3,
+ 'nr_ops': 512,
+ 'blocker_port': 1000,
+ 'mapper_port': 1001
+}
+
+
xsegbd = 'xsegbd'
BIN_DIR = '/usr/bin/'
-DEFAULTS = '/etc/default/archipelago'
+DEFAULTS = '/etc/archipelago/archipelago.conf'
#system defaults
ARCHIP_PREFIX = 'archip_'