ungleich-tools/ceph/ceph-start-FAST-monit-defined-processes.sh
Nico Schottelius 4b740b4b3b rename startup script for ceph components
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2024-08-05 13:07:08 +02:00

21 lines
394 B
Bash
Executable file

#!/bin/sh
# 2022-02-01
# Update 2024-08-05: include mgr and osds
/etc/init.d/lvm2 start
/opt/ungleich-tools/ceph/ceph-osd-activate-all
ceph-volume lvm activate --all
for osd in
/etc/monit/conf.d/osd.* \
/etc/monit/conf.d/mgr.* \
/etc/monit/conf.d/mon.* ; do
cmd=$(cat $osd | grep "start pro" | sed -e 's/.* = "//' -e 's/".*//')
echo $cmd
( $cmd & )
done