On Wed, Feb 21, 2018 at 9:40 AM, Dan van der Ster <dan@xxxxxxxxxxxxxx> wrote: > On Wed, Feb 21, 2018 at 2:24 PM, Alfredo Deza <adeza@xxxxxxxxxx> wrote: >> On Tue, Feb 20, 2018 at 9:05 PM, Oliver Freyermuth >> <freyermuth@xxxxxxxxxxxxxxxxxx> wrote: >>> Many thanks for your replies! >>> >>> 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. > > +1 thanks a lot for this thread and clear answers! > We were literally stuck today not knowing how to restart a ceph-volume > lvm created OSD. > > (It seems that once you systemctl stop ceph-osd@* on a machine, the > only way to get them back is ceph-volume lvm activate ... ) > > BTW, ceph-osd.target now has less obvious functionality. For example, > this works: > > systemctl restart ceph-osd.target > > But if you stop ceph-osd.target, then you can no longer start ceph-osd.target. > > Is this a regression or something we'll have to live with? This sounds surprising. Stopping a ceph-osd target should not do anything with the devices. All that 'activate' does when called in ceph-volume is to ensure that the devices are available and mounted in the right places so that the OSD can start. If you are experiencing a problem stopping an OSD that can't be started again, then something is going on. I would urge you to create a ticket with as many details as you can at http://tracker.ceph.com/projects/ceph-volume/issues/new > > Cheers, Dan _______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com