Use monit for ceph starting
This commit is contained in:
parent
fb27f34d93
commit
c8d8959398
1 changed files with 5 additions and 1 deletions
|
@ -20,7 +20,11 @@ for dev in $(fdisk -l | awk '$6 ~/Ceph/ { print $1 }'); do
|
||||||
mkdir -p "$dir"
|
mkdir -p "$dir"
|
||||||
mount "$dev" "$dir"
|
mount "$dev" "$dir"
|
||||||
|
|
||||||
/etc/init.d/ceph start "osd.$id"
|
if [ -e /etc/monit ]; then
|
||||||
|
/opt/ungleich-tools/monit-ceph-create-start
|
||||||
|
else
|
||||||
|
/etc/init.d/ceph start "osd.$id"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
rmdir "$tmpdir"
|
rmdir "$tmpdir"
|
||||||
|
|
Loading…
Reference in a new issue