Hi,

You can try to manually fix this by adding the 
/lib/systemd/system/ceph-mon.target file, which contains:
=======================================================
[Unit]
Description=ceph target allowing to start/stop all ceph-mon@.service instances 
at once
PartOf=ceph.target
[Install]
WantedBy=multi-user.target ceph.target
=======================================================

and then execute the following command to tell systemd to start this target on 
bootup
systemctl enable ceph-mon.target

so as ceph-osd can be fixed by the same trick.

Alternatively you can manage the apt install repository as 
inhttp://docs.ceph.com/docs/jewel/start/quick-start-preflight/#advanced-package-tool-apt
If you have a ceph-mon deb with /lib/systemd/system/ceph-mon.target installed, 
you can start ceph-mon automatically on bootup.

$ dpkg -c ceph-mon_10.2.2-1xenial_amd64.deb | grep ceph-mon.target
-rw-r--r-- root/root162 2016-06-14 20:22 ./lib/systemd/system/ceph-mon.target
I would recommend the latter solution.

Sincerely,
Craig Chi (Product Developer)
Synology Inc. Taipei, Taiwan.

On 2016-11-15 18:33, Matthew Vernon<m...@sanger.ac.uk>wrote:
> Hi, On 15/11/16 01:27, Craig Chi wrote:>What's your Ceph version?>I am using 
> Jewel 10.2.3 and systemd seems to work normally. I deployed>Ceph by ansible, 
> too. The version in Ubuntu 16.04, which is 10.2.2-0ubuntu0.16.04.2>You can 
> check whether you have /lib/systemd/system/ceph-mon.target file.>I believe it 
> was a bug existing in 10.2.1 before>cfa2d0a08a0bcd0fac153041b9eff17cb6f7c9af 
> has been merged. No, I have the following: 
> /lib/systemd/system/ceph-create-keys.service 
> /lib/systemd/system/ceph-create-keys@.service 
> /lib/systemd/system/ceph-disk@.service /lib/systemd/system/ceph-mon.service 
> /lib/systemd/system/ceph-mon@.service /lib/systemd/system/ceph-osd@.service 
> /lib/systemd/system/ceph.target [so no ceph-osd.service ; ceph-osd@.service 
> says its part of ceph-osd.target which I can't see defined anywhere 
> explicitly] Also /etc/systemd/system/ceph-mon.target.wants (contains a link 
> to ceph-mon@hostname.service) and ...ceph-osd.target.wants (which contains 
> links to the ceph-osd s
 ervices)

 ceph-mon.service says PartOf ceph.target. Regards, Matthew -- The Wellcome 
Trust Sanger Institute is operated by Genome Research Limited, a charity 
registered in England with number 1021457 and a company registered in England 
with number 2742969, whose registered office is 215 Euston Road, London, NW1 
2BE.




_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to