Ceph Storage Cluster
Ceph Object Storage
Installing a Ceph Cluster
Single Host Operation
OOTB, ceph required replication to be across hosts, not just devices. For a single node cluster, this can be problematic. The following steps will add a new rule that will allow replication across OSDs instead of hosts:
# # commands to set ceph to handle replication on one node # # create new crush rule allowing OSD-level replication # ceph osd crush rule create-replicated <rulename> <root> <level> ceph osd crush rule create-replicated osd_replication default osd # verify that rule exists and is correct ceph osd crush rule ls ceph osd crush rule dump # set replication level on existing pools ceph osd pool set device_health_metrics size 3 # apply new rule to existing pools ceph osd pool set device_health_metrics crush_rule osd_replication
RBD Images
CephFS
Creating a CephFS
Mounting a Ceph FS
Mounting a ceph filesystem on a system outside the storage cluster requires four things:
- the ceph.conf file from the /etc/ceph directory on a cluster node
- a keyring created on the ceph master node for client authentication
- the 'mount.ceph' mount helper, available in the 'ceph-common' package
- an entry in the /etc/fstab file
/etc/fstab
This line will mount the Ceph FS on boot:
:/ /<mountpoint> ceph name=<client id> 0 0