Makes it easy to do OSD=1 for e.g. doing cephfs
stuff where we don't care much about the OSDs
behaviour.
Signed-off-by: John Spray <john.spray@redhat.com>
[ -z "$CEPH_RGW_PORT" ] && CEPH_RGW_PORT=8000
[ -z "$CEPH_CONF_PATH" ] && CEPH_CONF_PATH=$CEPH_DIR
+if (( $CEPH_NUM_OSD > 3 )); then
+ OSD_POOL_DEFAULT_SIZE=3
+else
+ OSD_POOL_DEFAULT_SIZE=$CEPH_NUM_OSD
+fi
+
extra_conf=""
new=0
standby=0
fsid = $(uuidgen)
osd pg bits = 3
osd pgp bits = 5 ; (invalid, but ceph should cope!)
+ osd pool default size = $OSD_POOL_DEFAULT_SIZE
osd crush chooseleaf type = 0
osd pool default min size = 1
osd failsafe full ratio = .99