[ceph] cleanup device class in case something old exists

This commit is contained in:
Nico Schottelius 2020-10-01 23:04:50 +02:00
parent 8d22809b45
commit 7b776e48a0

View file

@ -94,6 +94,9 @@ else
fi
ceph osd crush add osd.${osd_id} ${WEIGHT} host=$(hostname)
# Ensure previous assigned class is gone
ceph osd crush rm-device-class osd.${osd_id}
ceph osd crush set-device-class $CLASS osd.${osd_id}
echo "$metadata_dev /var/lib/ceph/osd/ceph-${osd_id} xfs noatime 0 0" >> /etc/fstab