ceph简单安装笔记
http://docs.ceph.org.cn/start/quick-start-preflight/#ntp
1.时间同步
2.关闭所有(放行seliunx,firewall)
3.免密码
ssh-keygen
ssh-copy-id {username}@node1 ssh-copy-id root@ceph2
4. 安装部署器
添加YUM源
[ceph]
name=ceph
baseurl=http://mirrors.aliyun.com/ceph/rpm-luminous/el7/x86_64/
gpgcheck=0
[ceph-noarch]
name=cephnoarch
baseurl=http://mirrors.aliyun.com/ceph/rpm-luminous/el7/noarch/
gpgcheck=0
[ceph-source]
name=ceph-source
baseurl=http://mirrors.aliyun.com/ceph/rpm-luminous/el7/SRPMS/
gpgcheck=0
yum install ceph-deploy -y
5.建立目录
[root@ceph1 ~]# mkdir /etc/ceph
[root@ceph1 ~]# cd /etc/ceph/
yum install python-setuptools
6.建立新的CEPH
建立新文件夹
ceph-deploy new ceph1 ceph2
7.修改配置
vi ceph.conf
添加
osd pool default size = 2
public network = 172.20.10.8/28
8 安装
ceph-deploy install {ceph-node} [{ceph-node} ...]
ceph-deploy install ceph1 ceph2
9 初始化监控节点
ceph-deploy mon create-initial
ceph -s
10 挂载
ceph-deploy disk zap ceph1 /dev/vdb 初始化
ceph-deploy disk zap ceph2 /dev/vdb
ceph-deploy osd create ceph1 --data /dev/vdb
ceph-deploy osd create ceph2 --data /dev/vdb
ceph-deploy mon create ceph2 安装监控
ceph mon stat
ceph-deploy mgr create ceph1
ceph-deploy mgr create ceph2
ceph -s
ceph mgr module enable dashboard启用图形化打开
http://10.6.230.95:7000/
(题外化
yum whatprovides */netstat
查看在哪个包)
http://172.20.10.9:7000/