主机IP | ceph版本 | ceph集群角色 |
|---|---|---|
192.168.201.144 | 13.2.8 | mon、mgr、osd |
192.168.201.145 | 13.2.8 | mon、mgr、osd |
192.168.201.146 | 13.2.8 | mon、mgr、osd |
echo '
[ceph-noarch]
name=Ceph noarch packages
baseurl=https://mirrors.aliyun.com/ceph/rpm-mimic/el7/noarch
enabled=1
gpgcheck=1
priority=1
type=rpm-md
gpgkey=https://mirrors.aliyun.com/ceph/keys/release.asc
'>/etc/yum.repos.d/ceph.repoexport CEPH_DEPLOY_REPO_URL=https://mirrors.aliyun.com/ceph/rpm-mimic/el7
export CEPH_DEPLOY_GPG_URL=https://mirrors.aliyun.com/ceph/keys/release.ascssh-keygen -t rsa
ssh-copy-id 192.168.201.144
ssh-copy-id 192.168.201.145
ssh-copy-id 192.168.201.146yum install -y ceph-deploymkdir /etc/ceph && cd /etc/ceph/
ceph-deploy new --public-network 192.168.201.0/24 ceph0{1,2,3}echo 'mon_allow_pool_delete = true' >> /etc/ceph/ceph.conf ## 添加了可以删除osd pool参数ceph-deploy install --release mimic ceph0{1,2,3}ceph-deploy --overwrite-conf mon create-initialchmod 644 /etc/ceph/ceph.client.admin.keyring
ceph-deploy --overwrite-conf admin ceph0{1,2,3}pvcreate /dev/vdc1
vgcreate ceph-osd0-journal /dev/vdc1
lvcreate -l 100%FREE --name log ceph-osd0-journalceph-deploy --overwrite-conf osd create ceph01 --filestore --fs-type xfs --data /dev/vdd --journal ceph-osd0-journal/logceph-deploy mds create ceph0{1,2,3}ceph-deploy mgr create ceph0{1,2,3}ceph mgr module enable dashboardceph dashboard create-self-signed-certceph dashboard set-login-credentials user-name passwordceph mgr servicesceph config set mgr mgr/dashboard/server_port 30443
systemctl restart ceph-mgr.target原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。