2018-07-31 16:59:34 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-07-31 17:03:03 +00:00
|
|
|
if [ $# -lt 2 ]; then
|
2018-07-31 17:01:34 +00:00
|
|
|
echo "$0: class-name osd-name [..osd name]" >&2
|
2018-07-31 16:59:34 +00:00
|
|
|
echo "Set device class for OSD (needs to be classless before)"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
osd=$1; shift
|
|
|
|
|
2018-07-31 17:01:34 +00:00
|
|
|
ceph osd crush set-device-class "$class" "$@"
|