Re: [ceph-users] ceph-mon not starting on system startup (Ubuntu 16.04 / systemd)

2016-11-18 Thread Matthew Vernon
Hi,

On 15/11/16 11:55, Craig Chi wrote:

> You can try to manually fix this by adding the
> /lib/systemd/system/ceph-mon.target file, which contains:



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

This worked a treat, thank you!

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

I've not had problems with ceph-osd failing to start.

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


Re: [ceph-users] ceph-mon not starting on system startup (Ubuntu 16.04 / systemd)

2016-11-15 Thread Craig Chi
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 Vernonwrote:
> 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


Re: [ceph-users] ceph-mon not starting on system startup (Ubuntu 16.04 / systemd)

2016-11-15 Thread Matthew Vernon
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 services)

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


Re: [ceph-users] ceph-mon not starting on system startup (Ubuntu 16.04 / systemd)

2016-11-14 Thread Craig Chi
Hi,

What's your Ceph version?
I am using Jewel 10.2.3 and systemd seems to work normally. I deployed Ceph by 
ansible, too.

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.

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

On 2016-11-15 01:32, David Turnerwrote:
>   
>   
>   
> I had to set my mons to sysvinit while my osds are systemd.That allows 
> everything to start up when my system boots.I don't know why the osds don't 
> work with sysvinit and the mon doesn't work with systemd... but that worked 
> to get me running.
>   
>   
>   
>   
> DavidTurner|Cloud Operations Engineer|StorageCraft Technology 
> Corporation(https://storagecraft.com)
> 380 Data Drive Suite 300|Draper|Utah|84020
> Office:801.871.2760|Mobile:385.224.2943
>   
>   
>   
>   
>   
>   
> If you are not the intended recipient of this message or received it 
> erroneously, please notify the sender and delete it, together with any 
> attachments, and be advised that any dissemination or copying of this message 
> is prohibited.
>   
>   
>   
>   
>   
>   
> 
> From: ceph-users [ceph-users-boun...@lists.ceph.com] on behalf of Matthew 
> Vernon [m...@sanger.ac.uk]
> Sent: Monday, November 14, 2016 9:44 AM
> To: ceph-users@lists.ceph.com
> Subject: [ceph-users] ceph-mon not starting on system startup (Ubuntu 16.04/ 
> systemd)
>   
> Hi,
>   
> I have a problem that my ceph-mon isn't getting started when my machine
> boots; the OSDs start up just fine. Checking logs, there's no sign of
> systemd making any attempt to start it, although it is seemingly enabled:
>   
> root@sto-1-1:~# systemctl status ceph-mon@sto-1-1
> ● ceph-mon@sto-1-1.service - Ceph cluster monitor daemon
> Loaded: loaded (/lib/systemd/system/ceph-mon@.service; enabled;
> vendor preset
> Active: inactive (dead)
>   
> I see a thread on this issue in the list archives from May, but no sign
> of what the eventual solution was...
>   
> If it matters, I'm deploying Jewel using ceph-ansible (
> https://github.com/ceph/ceph-ansible ); that does (amongst other things)
> systemctl enable ceph-mon@sto-1-1
>   
> Thanks,
>   
> 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
> ___ ceph-users mailing list 
> ceph-users@lists.ceph.com 
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

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


Re: [ceph-users] ceph-mon not starting on system startup (Ubuntu 16.04 / systemd)

2016-11-14 Thread David Turner
I had to set my mons to sysvinit while my osds are systemd.  That allows 
everything to start up when my system boots.  I don't know why the osds don't 
work with sysvinit and the mon doesn't work with systemd... but that worked to 
get me running.



[cid:imagef86328.JPG@5cd4a53c.4994f38e]<https://storagecraft.com>   David 
Turner | Cloud Operations Engineer | StorageCraft Technology 
Corporation<https://storagecraft.com>
380 Data Drive Suite 300 | Draper | Utah | 84020
Office: 801.871.2760 | Mobile: 385.224.2943



If you are not the intended recipient of this message or received it 
erroneously, please notify the sender and delete it, together with any 
attachments, and be advised that any dissemination or copying of this message 
is prohibited.




From: ceph-users [ceph-users-boun...@lists.ceph.com] on behalf of Matthew 
Vernon [m...@sanger.ac.uk]
Sent: Monday, November 14, 2016 9:44 AM
To: ceph-users@lists.ceph.com
Subject: [ceph-users] ceph-mon not starting on system startup (Ubuntu 16.04 
/ systemd)

Hi,

I have a problem that my ceph-mon isn't getting started when my machine
boots; the OSDs start up just fine. Checking logs, there's no sign of
systemd making any attempt to start it, although it is seemingly enabled:

root@sto-1-1:~# systemctl status ceph-mon@sto-1-1
● ceph-mon@sto-1-1.service - Ceph cluster monitor daemon
  Loaded: loaded (/lib/systemd/system/ceph-mon@.service; enabled;
vendor preset
  Active: inactive (dead)

I see a thread on this issue in the list archives from May, but no sign
of what the eventual solution was...

If it matters, I'm deploying Jewel using ceph-ansible (
https://github.com/ceph/ceph-ansible ); that does (amongst other things)
systemctl enable ceph-mon@sto-1-1

Thanks,

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
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


[ceph-users] ceph-mon not starting on system startup (Ubuntu 16.04 / systemd)

2016-11-14 Thread Matthew Vernon
Hi,

I have a problem that my ceph-mon isn't getting started when my machine
boots; the OSDs start up just fine. Checking logs, there's no sign of
systemd making any attempt to start it, although it is seemingly enabled:

root@sto-1-1:~# systemctl status ceph-mon@sto-1-1
● ceph-mon@sto-1-1.service - Ceph cluster monitor daemon
   Loaded: loaded (/lib/systemd/system/ceph-mon@.service; enabled;
vendor preset
   Active: inactive (dead)

I see a thread on this issue in the list archives from May, but no sign
of what the eventual solution was...

If it matters, I'm deploying Jewel using ceph-ansible (
https://github.com/ceph/ceph-ansible ); that does (amongst other things)
systemctl enable ceph-mon@sto-1-1

Thanks,

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