ceph/lvm: also create monit entry

This commit is contained in:
Nico Schottelius 2021-09-12 07:43:30 +02:00
parent 2dcfce1035
commit 5b4ee78da8

View file

@ -38,14 +38,14 @@ done
# + ceph-volume lvm activate --no-systemd 112
# --> UnboundLocalError: local variable 'tags' referenced before assignment
#for osdid in $(lvs -o lv_tags | grep ceph.block_device| sed -e 's/.*ceph.osd_id=//' -e 's/,.*//'); do
# ceph-volume lvm activate --no-systemd $osdid
# /opt/ungleich-tools/monit-ceph-create-start "osd.$osdid"
#done
# Activate all volumes in the OS
vgchange -ay
# Using this with a fake /bin/systemctl
ceph-volume lvm activate --all
for osdid in $(lvs -o lv_tags | grep ceph.block_device| sed -e 's/.*ceph.osd_id=//' -e 's/,.*//'); do
#ceph-volume lvm activate --no-systemd $osdid
/opt/ungleich-tools/monit-ceph-create-start "osd.$osdid"
done
rmdir "$tmpdir"