Skip to content

Commit

Permalink
init-ceph: pass config file path when adjust crush position
Browse files Browse the repository at this point in the history
Fixes: #6591
Reported-by: Sean Noonan <sean.noonan@twosigma.com>
Signed-off-by: Sage Weil <sage@inktank.com>
  • Loading branch information
Sage Weil committed Jan 3, 2014
1 parent 806c0cb commit 6b8d418
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/init-ceph.in
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ for name in $what; do
defaultweight="$(do_cmd "df -P -k $osd_data/. | tail -1 | awk '{ d= \$2/1073741824 ; r = sprintf(\"%.2f\", d); print r }'")"
get_conf osd_keyring "$osd_data/keyring" "keyring"
do_cmd "timeout 10 $BINDIR/ceph \
-c $conf \
--name=osd.$id \
--keyring=$osd_keyring \
osd crush create-or-move \
Expand Down

0 comments on commit 6b8d418

Please sign in to comment.