summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoao Eduardo Luis <joao.luis@inktank.com>2013-08-14 18:22:29 -0700
committerJoao Eduardo Luis <joao.luis@inktank.com>2013-08-15 15:52:59 -0700
commit249c7f27328bd02914c7fdfe77094a166fff3ae7 (patch)
tree6cacaceb637c781a1c85e17c81a10782e7631762
parent9c624fb93ee72c347e4f91f8989809f9af10a211 (diff)
downloadceph-249c7f27328bd02914c7fdfe77094a166fff3ae7.tar.gz
vstart.sh: s/osd crush set/osd crush add/ as it's supposed to be
'osd crush set' should only be used to update already existing items on the map whereas 'osd crush add' should be able to 'add and update' items. Considering at that point we are effectively adding a new item to the crush map, use 'add' instead of 'set'. Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
-rwxr-xr-xsrc/vstart.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vstart.sh b/src/vstart.sh
index 577ea4c843d..7ce4628d775 100755
--- a/src/vstart.sh
+++ b/src/vstart.sh
@@ -422,7 +422,7 @@ EOF
uuid=`uuidgen`
echo "add osd$osd $uuid"
$SUDO $CEPH_ADM osd create $uuid
- $SUDO $CEPH_ADM osd crush set osd.$osd 1.0 host=localhost rack=localrack root=default
+ $SUDO $CEPH_ADM osd crush add osd.$osd 1.0 host=localhost rack=localrack root=default
$SUDO $CEPH_BIN/ceph-osd -i $osd $ARGS --mkfs --mkkey --osd-uuid $uuid
key_fn=dev/osd$osd/keyring