您好,登錄后才能下訂單哦!
小編給大家分享一下如何手動部署ceph,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!
1. 手動格式化各個磁盤,比如/dev/sdb1為數(shù)據(jù)分區(qū),/dev/sdb2為日志分區(qū)。
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
注意每個節(jié)點都需要有相同的ceph.conf文件
4. mkcephfs -a -c /etc/ceph/ceph.conf
5. /etc/init.d/ceph -a start
以上是“如何手動部署ceph”這篇文章的所有內容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內容對大家有所幫助,如果還想學習更多知識,歡迎關注億速云行業(yè)資訊頻道!
免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內容。