Am 21.02.2018 um 14:24 schrieb Alfredo Deza: [snip] >> Are there plans to have something like >> "ceph-volume discover-and-activate" >> which would effectively do something like: >> ceph-volume list and activate all OSDs which are re-discovered from LVM >> metadata? > > This is a good idea, I think ceph-disk had an 'activate all', and it > would make it easier for the situation you explain with ceph-volume > > I've created http://tracker.ceph.com/issues/23067 to follow up on this > an implement it.
Many thanks for creating the issue, and also thanks for the extensive and clear
reply!
In case somebody finds it useful, I am right now using the following
incantation:
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
which runs very fast and directly returns the parameters to be consumed by
"ceph-volume lvm activate" (i.e. OSD-ID and OSD-FSID).
Or course, use that at your own risk until a good implementation in ceph-volume
is available.
Cheers,
Oliver
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ ceph-users mailing list [email protected] http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
