From c849d319b401a983cb8ef9ea49cda2064de5eec4 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 18 Feb 2018 18:54:19 +0100 Subject: [PATCH] Add script to create osds for all disks --- ceph-osd-create-on-all-disks | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 ceph-osd-create-on-all-disks diff --git a/ceph-osd-create-on-all-disks b/ceph-osd-create-on-all-disks new file mode 100644 index 0000000..ebc932d --- /dev/null +++ b/ceph-osd-create-on-all-disks @@ -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 +)