Use ceph-volume activate --all
This commit is contained in:
parent
422fcf7237
commit
2a300157b5
1 changed files with 13 additions and 5 deletions
|
@ -28,10 +28,18 @@ for dev in $(fdisk -l | awk '$6 ~/Ceph/ { print $1 }'); do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# LVM based
|
# LVM based / manual does not work atm:
|
||||||
for osdid in $(lvs -o lv_tags | grep ceph.block_device| sed -e 's/.*ceph.osd_id=//' -e 's/,.*//'); do
|
# + grep ceph.block_device
|
||||||
ceph-volume lvm activate --no-systemd $osdid
|
# + sed -e s/.*ceph.osd_id=// -e s/,.*//
|
||||||
/opt/ungleich-tools/monit-ceph-create-start "osd.$osdid"
|
# + ceph-volume lvm activate --no-systemd 112
|
||||||
done
|
# --> 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
|
||||||
|
|
||||||
|
# Using this with a fake /bin/systemctl
|
||||||
|
ceph-volume lvm activate --all
|
||||||
|
|
||||||
rmdir "$tmpdir"
|
rmdir "$tmpdir"
|
||||||
|
|
Loading…
Reference in a new issue