Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 3b45a0380e497cbe346f7bcac55cc2aa > files > 7

ceph-18.1.1-1.mga9.src.rpm

Ceph on Mageia is compiled with the recommended BLUESTORE and SPD
back-end but without any high-level deployment tools. Setting up a
Ceph server therefore requires a manual deployment.

A step-by-step tutorial can be found on the ceph website:
https://ceph.readthedocs.io/en/latest/install/manual-deployment/#bluestore

To be completed with:
https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/4/


############################################################################
Notice that:
############################################################################

* ceph-mon daemons are not by default activated to v2 (warning given by the
  systemd service). After their deployment do:

  ceph mon enable-msgr2

* Before creating osd make sure that ceph.keyring and ceph.conf are in /etc/ceph/ of the
  local node, and the ceph.keyring is also in
  /var/lib/ceph/bootstrap-osd. Then

  ceph-volume lvm create --data /dev/sdXy

* Before starting the mds service, pay attention to:

  chown ceph:ceph /var/lib/ceph/mds/{cluster}-{id}

* mgr service requires keyring configuration:

  ceph auth get-or-create mgr.{id} mon 'allow profile mgr' osd 'allow *' mds 'allow *' > /var/lib/ceph/mgr/{cluster}-{id}/keyring
  chown ceph:ceph -R /var/lib/ceph/mgr/ceph-cosmo/

* to mount the ceph cluster as a filesystem, one needs to create a
  user with mds allowance, e.g. "guest"

  sudo ceph fs authorize cephfs client.guest / rw > /etc/ceph/ceph.client.guest.keyring


###########################################################################
########################## /etc/ceph/ceph.conf example ####################
###########################################################################

[global]
  fsid = {uuid}
  mon_initial_members = {monid}
  mon_host = 192.168.0.1
  public network = 192.168.0.0/24
  cluster = ceph

# Enable cephx authentication (which uses shared keys for almost everything)
  auth cluster required = cephx
  auth service required = cephx
  auth client required = cephx

# Replication given by size
  osd journal size = 1024
  osd pool default size = 2
  osd pool default min size = 1
  osd pool default pg num = 333
  osd pool default pgp num = 333
  osd crush chooseleaf type = 1


[mds.{mdsid}]
  host={mdsid}

[mgr.{mgrid}]
  host={mgrid}