mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
init-ceph: if we fail to set an OSD's crush position, continue
If we fail to set the CRUSH position for one OSD, continue on to try starting others, just as we do when we fail to start the daemon. Fixes: #8342 Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
46f1eb6865
commit
d04b386bdf
@ -327,7 +327,11 @@ for name in $what; do
|
||||
get_conf osd_weight "" "osd crush initial weight"
|
||||
defaultweight="$(df -P -k $osd_data/. | tail -1 | awk '{ print sprintf("%.2f",$2/1073741824) }')"
|
||||
get_conf osd_keyring "$osd_data/keyring" "keyring"
|
||||
do_cmd "timeout 30 $BINDIR/ceph -c $conf --name=osd.$id --keyring=$osd_keyring osd crush create-or-move -- $id ${osd_weight:-${defaultweight:-1}} $osd_location"
|
||||
do_cmd_okfail "timeout 30 $BINDIR/ceph -c $conf --name=osd.$id --keyring=$osd_keyring osd crush create-or-move -- $id ${osd_weight:-${defaultweight:-1}} $osd_location"
|
||||
if [ "$ERR" != "0" ]; then
|
||||
EXIT_STATUS=$ERR
|
||||
continue
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user