Setting CRUSH weights of OSDs

Set CRUSH weights in terabytes with a CRUSH map.

To set an OSD CRUSH weight in terabytes within the CRUSH map, run the following command

ceph osd crush reweight NAME WEIGHT

Where:

name
Description
The full name of the OSD.

Type
String

Required
Yes

Example
osd.0

weight
Description
The CRUSH weight for the OSD. This should be the size of the OSD in Terabytes, where 1.0 is 1 Terabyte.

Type
Double

Required
Yes

Example
2.0.

This setting is used when creating an OSD or adjusting the CRUSH weight immediately after adding the OSD. It usually does not change over the life of the OSD.