Add script to created monit for all mounted osds
This commit is contained in:
parent
f6dd579118
commit
a67c72124b
1 changed files with 10 additions and 0 deletions
10
monit-create-for-all-mounted-osds
Executable file
10
monit-create-for-all-mounted-osds
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/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
|
Loading…
Reference in a new issue