如何手动部署ceph
小编给大家分享一下如何手动部署ceph,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!
成都创新互联公司为企业级客户提高一站式互联网+设计服务,主要包括网站设计制作、成都做网站、成都App定制开发、小程序设计、宣传片制作、LOGO设计等,帮助客户快速提升营销能力和企业形象,创新互联各部门都有经验丰富的经验,可以确保每一个作品的质量和创作周期,同时每年都有很多新员工加入,为我们带来大量新的创意。
1. 手动格式化各个磁盘,比如/dev/sdb1为数据分区,/dev/sdb2为日志分区。
2. mkallxfs
3. 修改/etc/ceph/ceph.conf文件:
[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: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
注意每个节点都需要有相同的ceph.conf文件
4. mkcephfs -a -c /etc/ceph/ceph.conf
5. /etc/init.d/ceph -a start
以上是“如何手动部署ceph”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注创新互联行业资讯频道!
当前文章:如何手动部署ceph
分享URL:http://scyanting.com/article/pjjgjg.html