虚拟化云计算

您所在的位置:网站首页 chrony是什么服务 虚拟化云计算

虚拟化云计算

2023-03-09 07:09| 来源: 网络整理| 查看: 265

#ceph节点和客户端配置service firewalld stopchkconfig firewalld offsed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/configsetenforce 0

#配置yum源mv /etc/yum.repos.d/Cen* /opt/ #将系统默认配置的源文件移除#wget -O /etc/yum.repos.d/CentOS-Base.repo \http://mirrors.aliyun.com/repo/Centos-7.repowget –O /etc/yum.repos.d/epel.repo \http://mirrors.aliyun.com/repo/ epel.repo

#配置host文件vi /etc/hosts192.168.100.201 ceph1192.168.100.202 ceph2192.168.100.203 ceph3192.168.100.100 client

#配置chrony服务#Chrony 是一个开源的自由软件,能保持系统时钟与时钟服务器(NTP)同步,在分布式#集群中,为了便于同一生命周期内不同节点服务的管理,需要各个节点的服务严格时钟同步,#以下配置中,以 client 节点作为时钟服务器,其他节点以 client 节点的时钟作为时钟标准调#整自己的时钟

#ceph节点和client配置chrony服务 yum -y install chrony

#client节点,配置为服务端vi /etc/chrony.conf#server 0.centos.pool.ntp.org iburst#server 1.centos.pool.ntp.org iburst#server 2.centos.pool.ntp.org iburst#server 3.centos.pool.ntp.org iburstserver ntp1.aliyun.comserver 210.72.145.44server 202.112.10.36allow 192.168.100.0/24local stratum 10

#其他三个节点,编辑 chrony.conf 配置文件,在所有默认的 server 前加“#”,并添加本地时钟服务器vi /etc/chrony.conf#server 0.centos.pool.ntp.org iburst#server 1.centos.pool.ntp.org iburst#server 2.centos.pool.ntp.org iburst#server 3.centos.pool.ntp.org iburstserver 192.168.100.100

#所有节点启动chrony服务systemctl restart chronyd && systemctl enable chronyd

#确认时钟同步情况chronyc sources210 Number of sources = 1MS Name/IP address Stratum Poll Reach LastRx Last sample =====================================================================^* client 10 6 377 27 -66us[ -167us] +/- 167us

#配置ceph使用的yum源#vi /etc/yum.repos.d/ceph.repo[Ceph]name=Ceph packages for x86_64baseurl=http://mirrors.aliyun.com/ceph/rpm-mimic/el7/x86_64/enabled=1gpgcheck=1type=rpm-mdgpgkey=https://mirrors.aliyun.com/ceph/keys/release.asc[Ceph-noarch]name=Ceph noarch packagesbaseurl=https://mirrors.aliyun.com/ceph/rpm-mimic/el7/noarch/enabled=1gpgcheck=1type=rpm-mdgpgkey=https://mirrors.aliyun.com/ceph/keys/release.asc[ceph-source]name=Ceph source packagesbaseurl=https://mirrors.aliyun.com/ceph/rpm-mimic/el7/SRPMS/enabled=1gpgcheck=1type=rpm-mdgpgkey=https://mirrors.aliyun.com/ceph/keys/release.asc

#配置python支持组件yum install -y python-pip

#ceph1上配置免密登录ssh-keygen# ssh-copy-id root@ceph2# ssh-copy-id root@ceph3



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3