[ceph] Update activate script to support LVM
This commit is contained in:
parent
61dbd6b931
commit
a4ac6cf02a
1 changed files with 6 additions and 0 deletions
|
@ -28,4 +28,10 @@ for dev in $(fdisk -l | awk '$6 ~/Ceph/ { print $1 }'); do
|
|||
fi
|
||||
done
|
||||
|
||||
# LVM based
|
||||
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"
|
||||
|
|
Loading…
Reference in a new issue