标签:
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/sdh1 osd journal = /dev/sdh2 [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
标签:
原文地址:http://my.oschina.net/itfanr/blog/397044