diff --git a/scripts/ceph/start.sh b/scripts/ceph/start.sh index 0a5903d37..a4c089e00 100755 --- a/scripts/ceph/start.sh +++ b/scripts/ceph/start.sh @@ -136,6 +136,10 @@ ceph-osd -c ${ceph_conf} -i $i --mkfs --mkkey --osd-uuid ${uuid} ${ceph_osd_extr ceph -c ${ceph_conf} osd crush add osd.${i} 1.0 host=$(hostname) root=default ceph -c ${ceph_conf} -i ${mnt_dir}/osd-device-${i}-data/keyring auth add osd.${i} osd "allow *" mon "allow profile osd" mgr "allow *" +class_dir=/$(ceph -c "$ceph_conf" config get osd osd_class_dir) +[[ -e $class_dir ]] +ceph -c "$ceph_conf" config set osd osd_class_dir "$class_dir" + # start osd pkill -9 ceph-osd || true sleep 2