Add script to create osds for all disks

This commit is contained in:
Nico Schottelius 2018-02-18 18:54:19 +01:00
parent 5595038016
commit c849d319b4

View file

@ -0,0 +1,9 @@
#!/bin/sh
lsblk -b | awk '/^sd/ { print $1 " " $4/(1024^4) }' |
(
while read disk size; do
/opt/ungleich-tools/ceph-osd-create-start /dev/$disk hdd $size
done
)