首页 > 编程知识 正文

cephfs自动化部署,ceph集群最少需要几台

时间:2023-05-05 00:43:13 阅读:51746 作者:2177

一、ceph集群架构二、准备工作2.1时钟同步root @ ceph-deploy :~# crontab- e # xy dxc/5 xydxcxydxcxydxc/usr/sbin/ntpdate titidxc 空根@ ceph-deploy :~# cat/etc/hosts # Alibaba云(阿里巴巴云) ntp服务器120.25.115.20 ntpdate NTP1. a liyun

root @ ceph-deploy :~# cat/etc/hosts #加上183.204.196.229 mirrors.a liyun.com root @ ceph-deploy 3360~# 阿里巴巴云镜像源deb http://mirrors.a liyun.com/Ubuntu/bionicmainrestricteduniversemultiversedeb 3358 mirrors bionic-securitymainrestricteduniversemultiversedeb 3358 mirrors.a liyun.com/Ubuntu/bionic-updatesmainrestricteduniversemultiversedeb 3358 mirrors.a liyun.com/Ubuntu/bionic-proposedmainrestricteduniversemultiversedeb 3358 mirrors.a liyun.com/Ubuntu/bionic-backportsmainrestricteduniversemultiversedeb- src http://mirrors.a liyun.com/Ubuntu/bionicmainrestricteduniversemultiversedeb-src http://mirrors.a liyun.com/Ubuntu/bionic-securitymainrestricteduniversemultiversedeb- src http://mirrors.a liyun.com/Ubuntu/bionic-updatesmainrestricteduniversemultiversedeb-src http://mirrors.a liyun.com/Ubuntu/bionic-proposedmainrestricteduniversemultiversedeb- src http://mirrors.a liyun.com/Ubuntu/bionic-backportsmainrestricteduniversemultiverseroot @ ceph-deploy :~# aptupdatehit :13358 mirrors.a liyun.com ubuntubionicinreleaseget 33602http://mirrors.a liyun.com/Ubuntu bionic-securityty get 3360http://mirrors Ubuntu bionic-updatesinrelease [ 88.7 kb ] get :43358 mirrors.a liyun.com/Ubuntu bionic-proposedinios get :5http://mirrors.a liyun.com/Ubuntu bionic-backportsinrelease [ 74.6 kb ] get :63http://mirrors.a liyun.com/ubububububur 249 kb ] get :7http://mirrors.a liyun.com/Ubuntu bionic-updates/main i386 packages [ 1,360 kb ]。 103kbin15s(275kb/s ) )。 readingpackagelists. donebuildingdependencytreereadingstateinformation. don e159 packagescanbeupgraded.run ' apt list---UUT

root @ ceph-deploy :~# groupadd-r-g 2022 cephuseradd-r-m-s/bin/bash-u 2022-g 2022 cephechoceph 3360123456 echo'cephall=(all ) no passwd : all '/etc/sudoers 2.4 deploy节点上配置密集自由登录2.4.1的su-cephceph @ ceph-deploy 33366666 privatersakeypair.enterfileinwhichtosavethekey (3360 created directory '/home/ceph/. ssh '.enter pass phrase (emptyforory 3360 entersamepassphraseagain : youridentificationhasbeensavedin/home/ceph/. ssh/id _ RSA.yourpublickeyhasbeensaven id _ RSA.pub.thekeyfingerprintis : sha 2563360 akbidjmo4dk 15 clvmeaqj 2m sx1 ft0vvna3ty e5k sc Eph @ ceph-deploy.example.localthekey ' srandomartimageis 3360-- [ RSA 2048 ]--|. xy dxc.o.| o.o —— 2.4.2将私钥复制到其他服务器ceph @ ceph-deploy :~$ ssh-copy-IDC Eph @ 192.168.2.20/usr/bin/ssh-copy-@ 192 id _ RSA.pub ' theauthenticityofhost ' 192.168.2.20 (192.168.2.20 ' can ' tbe established.ecdsakeyfingerprintion c.areyousureyouwanttocontition yes/usr/bin/ssh-copy-id : info : attemptingtologinwiththenewkey (s,文件传输工具) ssh-copy-id : info :1 key (remaintobeinstalled-- ifyouarepromptednowitistoinstallthenewkeysceph @ 192.168.2.2222 ) added :1 nowtryloggingintothemachine, with : ' ssh ' ceph @ 192.168.2.20 ' ' andchecktomakesurethatonlythekey (you wanted were added .其他服务器也是, 执行以下操作ssh-copy-IDC Eph @ 192.168.2.21 ssh-copy-IDC Eph @ 192.168.2.22 ssh-copy-IDC Eph 2.24 ssh-copy-IDC Eph

root @ ceph-deploy :~# cat/etc/hosts # 添加101.6.15.130 mirrors.tuna.Tsinghua.edu.cn 183.204.196.229 Alibaba云(阿里巴巴云) ntp服务器120.25.115 . le.localceph-node 1192.168.2.2.2.22 ceph-node3. example.localceph-node 3192.168.2.23c Eph-node4. exampph h-mgr 2192.168.2.26 ceph-mon1. example.localceph-mon 1192.168.2.27 ceph-mon 2.27 e.localceph-mon 3192.166

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。