Motr now supports separate log device for deployment
@@ -149,6 +149,8 @@ m0_server()
local be_seg0_path=
local be_seg_path=
local be_seg_size=
+ local log_device_path=
+ local log_device_size=
# @todo
# These BE segment devices needs to pass through Motr configuration
@@ -165,6 +167,13 @@ m0_server()
fi
fi
+ if [[ -n "$MOTR_LOG_PATH" && -b $MOTR_LOG_PATH ]]; then
+ log_device_path=" -L $MOTR_LOG_PATH "
+ if [[ -n "$MOTR_LOG_SIZE" ]]; then
+ log_device_size=" -V $MOTR_LOG_SIZE "
+ fi
+ fi
+
# mds and rms are expected to read local configuration until the
# order of motr bootstrapping changes to start rms along with
# confd prior to any other services, except maybe ha, which is
@@ -270,6 +279,7 @@ m0_server()
-A linuxstob:${addbstob_dir}addb-stobs \
-f $proc_fid $stob_type $stob_path $MOTR_M0D_OPTS \
$be_seg0_path $be_seg_path $be_seg_size \
+ $log_device_path $log_device_size \
$stob_opts $cmd_opts $addb_opts $conf_opts \
$MOTR_M0D_EXTRA_OPTS
}
