Ceph udev rule retrigger for mounting OSD and Journals

Ya so if your filestore OSD’s wont mount the journal run this:

udevadm trigger --action=add

If you’re using bluestore and unmounted the tmpfs run this:

ceph-volume lvm activate --all

Have an issue with starting you bluestore osd after reboot?
http://tracker.ceph.com/issues/23067

lvs -o lv_tags | awk -vFS=, /ceph.osd_fsid/'{ OSD_ID=gensub(".*ceph.osd_id=([0-9]+),.*", "\\1", ""); OSD_FSID=gensub(".*ceph.osd_fsid=([a-z0-9-]+),.*", "\\1", ""); print OSD_ID,OSD_FSID }' | sort -n | uniq

That gives you the OSD ID + FSID to activate. You can loop over it like:

for i in `lvs -o lv_tags | awk -vFS=, /ceph.osd_fsid/'{ OSD_ID=gensub(".*ceph.osd_id=([0-9]+),.*", "\\1", ""); OSD_FSID=gensub(".*ceph.osd_fsid=([a-z0-9-]+),.*", "\\1", ""); print OSD_ID,OSD_FSID }' | sort -n | uniq`;
do
ceph-volume lvm activate $i
done