diff --git a/ceph/ceph-osd-activate-all b/ceph/ceph-osd-activate-all index 4a69fa0..4f5ee02 100755 --- a/ceph/ceph-osd-activate-all +++ b/ceph/ceph-osd-activate-all @@ -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"