Re: NO mon start after Jewel Upgrade using systemctl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Iban,

the current jewel packages seem to be missing some important systemd
files. Try to copy
https://github.com/ceph/ceph/blob/master/systemd/ceph-mon.target to
/lib/systemd/system and enable it:

systemctl enable ceph-mon.target

I also would disable the legacy init script with

systemctl mask ceph.service

There are already several open pull requests regarding this issue
(https://github.com/ceph/ceph/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Aopen+systemd),
so I hope it will be fixed with the next point release.

Best regards
Karsten

2016-04-27 14:18 GMT+02:00 Iban Cabrillo <cabrillo@xxxxxxxxxxxxxx>:
> Hi cephers,
>   I've been following the upgrade intrucctions...but..I sure I did something
> wrong.
>
>   I just upgrade using ceph-deploy on one monitor (after ofcourse down de
> mon service).
>   Then  the chow to var/lib/ceph and /var/log/ceph for ceph user
>
>   [root@cephmon03 ~]# systemctl start ceph.target
> [root@cephmon03 ~]#
> [root@cephmon03 ~]#
> [root@cephmon03 ~]# systemctl status ceph.target
> ● ceph.target - ceph target allowing to start/stop all ceph*@.service
> instances at once
>    Loaded: loaded (/usr/lib/systemd/system/ceph.target; disabled; vendor
> preset: disabled)
>    Active: active since mié 2016-04-27 13:43:24 CEST; 10min ago
>
> abr 27 13:43:24 cephmon03.ifca.es systemd[1]: Reached target ceph target
> allowing to start/stop all ceph*@.service instances at once.
> abr 27 13:43:24 cephmon03.ifca.es systemd[1]: Starting ceph target allowing
> to start/stop all ceph*@.service instances at once.
> abr 27 13:44:17 cephmon03.ifca.es systemd[1]: Reached target ceph target
> allowing to start/stop all ceph*@.service instances at once.
> abr 27 13:47:09 cephmon03.ifca.es systemd[1]: Reached target ceph target
> allowing to start/stop all ceph*@.service instances at once.
> abr 27 13:53:36 cephmon03.ifca.es systemd[1]: Reached target ceph target
> allowing to start/stop all ceph*@.service instances at once.
>
>  [root@cephmon03 ~]# systemctl status ceph-mon@3
> ● ceph-mon@3.service - Ceph cluster monitor daemon
>    Loaded: loaded (/usr/lib/systemd/system/ceph-mon@.service; disabled;
> vendor preset: disabled)
>    Active: inactive (dead)
>
> abr 27 13:55:44 cephmon03 systemd[1]:
> [/usr/lib/systemd/system/ceph-mon@.service:24] Unknown lvalue 'TasksMax' in
> section 'Service'
>
>
> looking at systemctl i see:
>
>   ceph-mon.cephmon03.1456312447.168540372.service  loaded    active exited
> /usr/bin/bash -c ulimit -n 32768;  /usr/bin/ceph-mon -i cephmon03 --pid-file
> /var/run/ceph/mon.cephmon03.pid -c /etc/ceph/ceph.conf --cluster ceph -f
> ● ceph.service                                     not-found active exited
> ceph.service
>
> but:
>
> [root@cephmon03 ~]# systemctl start
> ceph-mon.cephmon03.1456312447.168540372.service
> [root@cephmon03 ~]# systemctl status
> ceph-mon.cephmon03.1456312447.168540372.service
> ● ceph-mon.cephmon03.1456312447.168540372.service - /usr/bin/bash -c ulimit
> -n 32768;  /usr/bin/ceph-mon -i cephmon03 --pid-file
> /var/run/ceph/mon.cephmon03.pid -c /etc/ceph/ceph.conf --cluster ceph -f
>    Loaded: loaded
> (/run/systemd/system/ceph-mon.cephmon03.1456312447.168540372.service;
> static; vendor preset: disabled)
>   Drop-In:
> /run/systemd/system/ceph-mon.cephmon03.1456312447.168540372.service.d
>            └─50-Description.conf, 50-ExecStart.conf, 50-RemainAfterExit.conf
>    Active: active (exited) since mié 2016-02-24 12:14:07 CET; 2 months 2
> days ago
>  Main PID: 1017 (code=exited, status=0/SUCCESS)
>    CGroup: /system.slice/ceph-mon.cephmon03.1456312447.168540372.service
>
> abr 27 13:35:33 cephmon03 bash[1017]: 2016-04-27 13:35:33.913841
> 7f16dba5b700 -1 mon.cephmon03@2(peon) e1 *** Got Signal Terminated ***
> abr 27 14:02:37 cephmon03 systemd[1]: Started /usr/bin/bash -c ulimit -n
> 32768;  /usr/bin/ceph-mon -i cephmon03 --pid-file
> /var/run/ceph/mon.cephmon03.pid -c /etc/ceph/ceph.conf --cluster ceph -f.
> abr 27 14:04:37 cephmon03 systemd[1]: Started /usr/bin/bash -c ulimit -n
> 32768;  /usr/bin/ceph-mon -i cephmon03 --pid-file
> /var/run/ceph/mon.cephmon03.pid -c /etc/ceph/ceph.conf --cluster ceph -f.
>
> Nothing happens...
>
>
> But running the command in line (as root):
>
> /usr/bin/bash -c ulimit -n 32768;  /usr/bin/ceph-mon -i cephmon03 --pid-file
> /var/run/ceph/mon.cephmon03.pid -c /etc/ceph/ceph.conf --cluster ceph -f
>
> the mon starts well ( health HEALTH_OK)
>
> Any idea about this??
>
> regards, I
>
> --
> ############################################################################
> Iban Cabrillo Bartolome
> Instituto de Fisica de Cantabria (IFCA)
> Santander, Spain
> Tel: +34942200969
> PGP PUBLIC KEY:
> http://pgp.mit.edu/pks/lookup?op=get&search=0xD9DF0B3D6C8C08AC
> ############################################################################
> Bertrand Russell:
> "El problema con el mundo es que los estúpidos están seguros de todo y los
> inteligentes están llenos de dudas"
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux