Hi Karsten,
   I have checked taht files arethe same that git ones.

  -rw-r--r-- 1 root root 810 Apr 20 18:45 /lib/systemd/system/ceph-mon@
.service
  -rw-r--r-- 1 root root 162 Apr 20 18:45
/lib/systemd/system/ceph-mon.target

[root@cephmon03 ~]# cat /lib/systemd/system/ceph-mon.target
[Unit]
Description=ceph target allowing to start/stop all [email protected]
instances at once
PartOf=ceph.target
[Install]
WantedBy=multi-user.target ceph.target

[root@cephmon03 ~]# systemctl list-unit-files|grep ceph
[email protected]              static
[email protected]                     static
[email protected]                      disabled
[email protected]                      disabled
[email protected]                      disabled
[email protected]                  disabled
ceph.service                           masked
ceph-mds.target                        disabled
ceph-mon.target                        enabled
ceph-osd.target                        disabled
ceph-radosgw.target                    disabled
ceph.target                            disabled

But still doesn't work (The upgrade was made from latest Hammer version )
and it is running on CentOS 7. This instance is running a mon service only.

[root@cephmon03 ~]# rpm -qa | grep ceph
ceph-release-1-1.el7.noarch
ceph-common-10.2.0-0.el7.x86_64
ceph-mds-10.2.0-0.el7.x86_64
libcephfs1-10.2.0-0.el7.x86_64
python-cephfs-10.2.0-0.el7.x86_64
ceph-selinux-10.2.0-0.el7.x86_64
ceph-mon-10.2.0-0.el7.x86_64
ceph-osd-10.2.0-0.el7.x86_64
ceph-radosgw-10.2.0-0.el7.x86_64
ceph-base-10.2.0-0.el7.x86_64
ceph-10.2.0-0.el7.x86_64

I have test it with ceph.target, with the same result.

regards, I




2016-04-27 15:13 GMT+02:00 Karsten Heymann <[email protected]>:

> 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 <[email protected]>:
> > 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
> > ● [email protected] - Ceph cluster monitor daemon
> >    Loaded: loaded (/usr/lib/systemd/system/[email protected]; disabled;
> > vendor preset: disabled)
> >    Active: inactive (dead)
> >
> > abr 27 13:55:44 cephmon03 systemd[1]:
> > [/usr/lib/systemd/system/[email protected]: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
> > [email protected]
> > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> >
>



-- 
############################################################################
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
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to