[ceph] cleanup device class in case something old exists
This commit is contained in:
parent
8d22809b45
commit
7b776e48a0
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue