Add script to create osds for all disks
This commit is contained in:
parent
5595038016
commit
c849d319b4
1 changed files with 9 additions and 0 deletions
9
ceph-osd-create-on-all-disks
Normal file
9
ceph-osd-create-on-all-disks
Normal 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
|
||||
)
|
Loading…
Reference in a new issue