手动部署 ceph mon (luminous 版)

#环境

参考 手动部署 ceph 环境说明 (luminous 版)

模板创建脚本

ceph.conf.template

[global]
fsid = $cephuuid
mon initial members = $cephmonhost
mon host = $cephmonipaddr
public network = $cephmonnetwork
cluster network = $cephdatanetwork
auth cluster required = cephx
auth service required = cephx
auth client required = cephx
osd journal size = 2048
filestore xattr use omap = true
osd pool default size = 3
osd pool default min size = 1
osd pool default pg num = $cephpgnum
osd pool default pgp num = $cephpgpnum
osd crush chooseleaf type = 1
[osd]
osd journal = /var/lib/ceph/journal/ceph-\$id/journal    <- 这个变量符号需要保留, 因此 \$
osd journal size = 2048

生成 ceph.conf

[root@cephsvr-128040 ceph]# cat gen_ceph_conf.sh
#!/bin/bash
source parameter
eval "cat < /dev/null

你可能感兴趣的:(ceph)