From 249c7f27328bd02914c7fdfe77094a166fff3ae7 Mon Sep 17 00:00:00 2001 From: Joao Eduardo Luis Date: Wed, 14 Aug 2013 18:22:29 -0700 Subject: [PATCH] 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 --- src/vstart.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vstart.sh b/src/vstart.sh index 577ea4c843d1a..7ce4628d775f6 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 -- 2.39.5