ungleich-tools/monit-create-for-all-mounted-osds
2018-03-04 19:03:17 +01:00

10 lines
252 B
Bash
Executable file

#!/bin/sh
# Nico Schottelius, 2018-02-22
# Copyright ungleich glarus ag
set -e
for osdid in $(mount | grep /var/lib/ceph/osd/ | cut -d " " -f 3 | sed 's,/var/lib/ceph/osd/ceph-,,'); do
/opt/ungleich-tools/monit-ceph-create-start osd.$osdid
done