How to manually create ceph step by step
Editor to share with you how to create ceph step by step manually, I hope you will gain something after reading this article, let's discuss it together!
Manually create the ceph.conf file [root@manila61 ceph-manila61] # cat / etc/ceph/ceph.conf [global] fsid = 8a9b6bf5-b7cd-4515-bf06-83558f1568b4mon initial members = itfanrmon host = 192.168.100.61 auth cluster required = noneauth service required = noneauth client required = noneosd pool default size = 2 osd pool default pg num = 1024osd pool default pgp num = 0filestore xattr use omap = true and execute ceph-authtool-- create-keyring / tmp/ceph.mon.keyring-- gen-key-n mon. -- cap mon 'allow *' ceph-authtool-- create-keyring / etc/ceph/ceph.client.admin.keyring-- gen-key-n client.admin\-- set-uid=0-- cap mon 'allow *'-- cap osd 'allow *'-- cap mds' allow'ceph-authtool / tmp/ceph.mon.keyring-- import-keyring / etc/ceph/ceph.client.admin.keyringmonmaptool-- create--add itfanr 192.168.100.61-- fsid 8a9b6bf5murb7cd- 4515-bf06-83558f1568b4 / tmp/monmapmkdir / var/lib/ceph/mon/ceph-itfanrceph-mon-- cluster ceph--mkfs-I itfanr-- monmap / tmp/monmap-- keyring / tmp/ceph.mon.keyringtouch / var/lib/ceph/mon/ceph-itfanr/donetouch / var/lib/ceph/mon/ceph-itfanr/sysvinit
Note: an empty sysvinit file must be created. Otherwise, you will be prompted when you start mon:
/ etc/init.d/ceph: mon.irfanr not found (/ etc/ceph/ceph.conf defines / var/lib/ceph defines)
Then execute: ceph-s to see the cluster information.
Add osdceph-disk zap / dev/sdb ceph-disk-v prepare-- fs-type xfs-- cluster-uuid 8a9b6bf5-b7cd-4515-bf06-83558f1568b4 / dev/sdbsudo ceph-disk activate / dev/sdb1 after reading this article, I believe you have a certain understanding of "how to create ceph step by step". If you want to know more about it, welcome to follow the industry information channel, thank you for reading!