Ceph扩容节点(新服务器)
1.修改所有节点hosts文件,添加新增节点192.168.1.33 node4:
[root@vm30 cluster]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain
192.168.0.30 node1
192.168.0.31 node2
192.168.0.32 node3
192.168.0.33 node4
2.在node4中添加ceph源:
[root@node4 yum.repos.d]# cat ceph.repo
[noarch]
name=ceph noarch
baseurl=https://mirrors.aliyun.com/ceph/rpm-nautilus/el7/noarch
enabled=1
gpgcheck=0
[x86_64]
name=ceph x86_64
baseurl=https://mirrors.aliyun.com/ceph/rpm-nautilus/el7/x86_64
enabled=1
gpgcheck=0
- 把node1(ceph-deploy节点)的ssh key拷贝给node4节点
[root@node1 ~]# ssh-copy-id node4
4.node4节点安装ceph和ceph-radosgw
[root@node4 ~]#yum install ceph ceph-radosgw –y
- 将监视器添加到现有群集
[root@node1cluster