How to deploy ceph manually
Editor to share with you how to manually deploy ceph, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
1. Format each disk manually, such as / dev/sdb1 for data partition and / dev/sdb2 for log partition.
2. Mkallxfs
3. Modify the / etc/ceph/ceph.conf file:
[global] auth supported = none osd pool default size = 2 osd crush chooseleaf type = 0 objecter_inflight_op_bytes=4294967296 objecter_inflight_ops=1024 # debug filestore = 100 # debug osd = 10 debug journal = 1 filestore blackhole=false filestore queue max ops=1024 filestore queue max bytes=1073741824 filestore max sync interval=5 # osd op num threads per shard=1 # osd op num shards=1 Filestore wbthrottle enable=false filestore merge threshold=50 filestore split multiple=10 # osd objectstore=satafilestore [mon] [mon.0] host = itfanr-host1 mon addr = 192.168.100.14 osd mkfs type 6789 [mds] [mds.0] host = itfanr-host1 [osd] osd mkfs type = xfs osd mkfs options xfs =-f-I size=2048 osd mount options xfs = inode64 Noatime osd crush update on start = 0 [osd.0] host = itfanr-host1 devs = / dev/sdb1 osd journal = / dev/sdb2 [osd.1] host = itfanr-host1 devs = / dev/sdc1 osd journal = / dev/sdc2 [osd.2] host = itfanr-host1 devs = / dev/sdd1 osd journal = / dev/sdd2 [osd.3] host = itfanr-host1 devs = / dev/sde1 osd journal = / dev/sde2 [osd.4] host = itfanr-host1 devs = / dev/sdf1 osd journal = / dev/sdf2 [osd.5] host = itfanr-host1 devs = / dev/sdg1 osd journal = / dev/sdg2 [osd.6] host = itfanr-host1 devs = / dev/sdh2 osd journal = / dev / sdh3 [osd.7] host = itfanr-host1 devs = / dev/sdi1 osd journal = / dev/sdi2 [osd.8] host = itfanr-host1 devs = / dev/sdj1 osd journal = / dev/sdj2 [osd.9] host = itfanr-host1 devs = / dev/sdk1 osd journal = / dev/sdk2 [osd.10] host = itfanr-host1 devs = / dev/sdl1 osd journal = / dev/sdl2 [osd.11] host = itfanr-host1 devs = / dev/sdm1 osd journal = / dev/sdm2
Note that each node needs the same ceph.conf file
4. Mkcephfs-a-c / etc/ceph/ceph.conf
5. / etc/init.d/ceph-a start
The above is all the contents of the article "how to deploy ceph manually". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!