- local host
- for num in $(seq $MDSCOUNT); do
- host=$(facet_active_host mds$num)
- yml_entity "MDS $num" $host >> $logdir/node.$host.yml
- done
-
- for num in $(seq $OSTCOUNT); do
- host=$(facet_active_host ost$num)
- yml_entity "OST $num" $host >> $logdir/node.$host.yml
- done
-
- i=1
- for host in ${CLIENTS//,/ }; do
- yml_entity "Client $i" $host >> $logdir/node.$host.yml
- i=$((i+1))
- done
+ local host
+ local f_host
+ local i
+
+ if ! combined_mgs_mds; then
+ host=$(short_hostname $(facet_active_host mgs))
+ f_host=$(short_hostname $(facet_passive_host mgs))
+
+ yml_entity "MGS" $host >> $logdir/node.$host.yml
+ [[ -n $f_host ]] &&
+ yml_entity "MGS" $f_host >> $logdir/node.$f_host.yml
+ fi
+
+ for i in $(seq $MDSCOUNT); do
+ host=$(short_hostname $(facet_active_host mds$i))
+ f_host=$(short_hostname $(facet_passive_host mds$i))
+
+ yml_entity "MDS $i" $host >> $logdir/node.$host.yml
+ [[ -n $f_host ]] &&
+ yml_entity "MDS $i" $f_host >> $logdir/node.$f_host.yml
+ done
+
+ for i in $(seq $OSTCOUNT); do
+ host=$(short_hostname $(facet_active_host ost$i))
+ f_host=$(short_hostname $(facet_passive_host ost$i))
+
+ yml_entity "OST $i" $host >> $logdir/node.$host.yml
+ [[ -n $f_host ]] &&
+ yml_entity "OST $i" $f_host >> $logdir/node.$f_host.yml
+ done
+
+ i=1
+ for host in ${CLIENTS//,/ }; do
+ host=$(short_hostname $host)
+ yml_entity "Client $i" $host >> $logdir/node.$host.yml
+ i=$((i+1))
+ done