if [ "$ceph_osd" == "crimson-osd" ]; then
# designate a single CPU node $osd for osd.$osd
extra_seastar_args="--smp 1 --cpuset $osd"
+ if [ "$debug" -ne 0 ]; then
+ extra_seastar_args+=" --debug"
+ fi
fi
+ local osd_pid
run 'osd' $osd $SUDO $CEPH_BIN/$ceph_osd \
$extra_seastar_args $extra_osd_args \
- -i $osd $ARGS $COSD_ARGS
+ -i $osd $ARGS $COSD_ARGS &
+ osd_pid=$!
+ if $parallel; then
+ osds_wait=$osd_pid
+ else
+ wait $osd_pid
+ fi
done
+ if $parallel; then
+ for p in $osds_wait; do
+ wait $p
+ done
+ debug echo OSDs started
+ fi
if [ $inc_osd_num -gt 0 ]; then
# update num osd
new_maxosd=$($CEPH_BIN/ceph osd getmaxosd | sed -e 's/max_osd = //' -e 's/ in epoch.*//')