update how to set the device class
This commit is contained in:
parent
25deb1026b
commit
8d22809b45
1 changed files with 6 additions and 1 deletions
|
@ -69,7 +69,9 @@ ln -s $dev_block "$mountpath/block"
|
|||
echo "$uuid_block" > "$mountpath/block_uuid"
|
||||
echo "$fsid" > "$mountpath/ceph_fsid"
|
||||
echo "$magic" > "$mountpath/magic"
|
||||
echo "$CLASS" > "$mountpath/crush_device_class"
|
||||
|
||||
# Not needed (anymore) - using ceph osd crush set-device-class below
|
||||
#echo "$CLASS" > "$mountpath/crush_device_class"
|
||||
|
||||
# Important, otherwise --mkfs later will try to create filestore
|
||||
echo bluestore > "$mountpath/type"
|
||||
|
@ -92,6 +94,7 @@ else
|
|||
fi
|
||||
|
||||
ceph osd crush add osd.${osd_id} ${WEIGHT} host=$(hostname)
|
||||
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
|
||||
|
||||
|
@ -101,3 +104,5 @@ if [ -e /etc/monit ]; then
|
|||
else
|
||||
/etc/init.d/ceph start osd.${osd_id}
|
||||
fi
|
||||
|
||||
#rm "$mountpath/crush_device_class"
|
||||
|
|
Loading…
Reference in a new issue