Am 21.02.2018 um 15:58 schrieb Alfredo Deza: > 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 I also see this - but it's not really that "the osd can not be started again". The problem is that once the osd is stopped, e.g. via systemctl stop ceph.target doing a systemctl start ceph.target will not bring it up again. Doing a manual systemctl start ceph-osd@36.service will work, though. The ceph-osd@36.service, in fact, is not enabled on my machine, which is likely why ceph.target will not cause it to come up. I am not a systemd expert, but I think the issue is that the ceph-volume@-services which (I think) take care to activate the OSD services are not re-triggered. Cheers, Oliver > >> >> Cheers, Dan
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com