小编给大家分享一下如何手动部署ceph,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!
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”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注亿速云行业资讯频道!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。