Re: How do I start ceph jewel in CentOS?

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

 



Hi,

Thanks Benjeman, It works.

A little bit late but could help somebody else with this example.
I use ceph.target to start a rados gateway on centos.
To activate service, I just do :
cd /etc/systemd/system
mkdir ceph.target.wants
cd ceph.target.wants
ln -s /usr/lib/systemd/system/ceph-radosgw@.service ceph-radosgw@radosgw.cephgw.service
systemctl daemon-reload

The name of the link is really important. The "radosgw.cephgw" part is the rados user name for the gateway passed to "--name" option of radosgw command.

Mikaël

Le 04/05/2016 à 19:08, Benjeman Meekhof a écrit :
Hi Michael,

Systemctl pattern for OSD with Infernalis or higher is 'systemctl
start ceph-osd@<id>'  (or status, restart)

It will start OSD in default cluster 'ceph' or other cluster if you
have set 'CLUSTER=<name>' in /etc/sysconfig/ceph

If by chance you have 2 clusters on the same hardware you'll have to
manually create separate systemd unit files in /usr/lib/systemd/system
like '<name>-osd@.service' edited to have the 2nd cluster name, create
a separate '<name>-osd.target' in same dir, and symlink in
/etc/systemd/system/<name>-osd.target.wants.  I don't know if there
might be another way built-in but I did not see it.

To see all the ceph units configured:

systemctl -a | grep ceph

regards,
Ben



On Wed, May 4, 2016 at 12:58 PM, Michael Kuriger <mk7193@xxxxxx> wrote:
How are others starting ceph services?  Am I the only person trying to install jewel on CentOS 7?
Unfortunately, systemctl status does not list any “ceph” services at all.










On 5/4/16, 9:37 AM, "Vasu Kulkarni" <vakulkar@xxxxxxxxxx> wrote:

sadly there are still some issues with jewel/master branch for centos
systemctl service,
As a workaround if you run "systemctl status" and look at the top most
service name in the ceph-osd service tree and use that to stop/start
it should work.


On Wed, May 4, 2016 at 9:00 AM, Michael Kuriger <mk7193@xxxxxx> wrote:
I’m running CentOS 7.2.  I upgraded one server from hammer to jewel.   I
cannot get ceph to start using these new systems scripts.  Can anyone help?

I tried to enable ceph-osd@.service by creating symlinks manually.

# systemctl list-unit-files|grep ceph

ceph-create-keys@.service              static

ceph-disk@.service                     static

ceph-mds@.service                      disabled

ceph-mon@.service                      disabled

ceph-osd@.service                      enabled

ceph-mds.target                        disabled

ceph-mon.target                        disabled

ceph-osd.target                        enabled

ceph.target                            enabled



# systemctl start ceph.target


# 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; enabled; vendor
preset: disabled)

   Active: active since Wed 2016-05-04 08:53:30 PDT; 4min 6s ago


May 04 08:53:30  systemd[1]: Reached target ceph target allowing to
start/stop all ceph*@.service instances at once.

May 04 08:53:30  systemd[1]: Starting ceph target allowing to start/stop all
ceph*@.service instances at once.

May 04 08:57:32  systemd[1]: Reached target ceph target allowing to
start/stop all ceph*@.service instances at once.


# systemctl status ceph-osd.target

● ceph-osd.target - ceph target allowing to start/stop all ceph-osd@.service
instances at once

   Loaded: loaded (/usr/lib/systemd/system/ceph-osd.target; enabled; vendor
preset: disabled)

   Active: active since Wed 2016-05-04 08:53:30 PDT; 4min 20s ago


May 04 08:53:30  systemd[1]: Reached target ceph target allowing to
start/stop all ceph-osd@.service instances at once.

May 04 08:53:30  systemd[1]: Starting ceph target allowing to start/stop all
ceph-osd@.service instances at once.


# systemctl status ceph-osd@.service

Failed to get properties: Unit name ceph-osd@.service is not valid.







_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.ceph.com_listinfo.cgi_ceph-2Dusers-2Dceph.com&d=CwIFaQ&c=lXkdEK1PC7UK9oKA-BBSI8p1AamzLOSncm6Vfn0C_UQ&r=CSYA9OS6Qd7fQySI2LDvlQ&m=ha3XvQGcc5Yztz98b7hb8pYQo14dcIiYxfOoMzyUM00&s=VdVOtGV4JQUKyQDDC_QYn1-7wBcSh-eYwx_cCSQWlQk&e=

_______________________________________________
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

_______________________________________________
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]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux