Allow multi osd for class setting
This commit is contained in:
parent
b5753a39c2
commit
1f9567f910
1 changed files with 2 additions and 3 deletions
|
@ -1,12 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "$0: class-name osd-name" >&2
|
||||
echo "$0: class-name osd-name [..osd name]" >&2
|
||||
echo "Set device class for OSD (needs to be classless before)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
osd=$1; shift
|
||||
class=$1; shift
|
||||
|
||||
ceph osd crush set-device-class "$class" "$osd"
|
||||
ceph osd crush set-device-class "$class" "$@"
|
||||
|
|
Loading…
Reference in a new issue