From 7b776e48a0953b80199c87ff32f0f1eeeb53e787 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 1 Oct 2020 23:04:50 +0200 Subject: [PATCH] [ceph] cleanup device class in case something old exists --- ceph-osd-create-start | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ceph-osd-create-start b/ceph-osd-create-start index a2c73f7..c2612b0 100755 --- a/ceph-osd-create-start +++ b/ceph-osd-create-start @@ -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