# vim /etc/chrony.conf # Sync to local clock # 添加本地时钟源 server 127.0.0.1 allow 127.0.0.0/8 allow 192.168.2.0/24 allow 172.200.50.0/24 local stratum 10
systemctl restart chronyd.service systemctl enable chronyd.service systemctl status chronyd.service
# chronyc sources
210 Number of sources = 1
MS Name/IP address
Stratum Poll Reach LastRx Last sample
===============================================================================
^* 127.127.1.0
12 6 37 23 +1461ns[+3422ns] +/- 166us
# chronyc -n sources -v
3、修改组(admin节点)
cp -p /srv/pillar/ceph/deepsea_minions.sls /tmp/ sed -i "4c # deepsea_minions: 'G@deepsea:*'" /srv/pillar/ceph/deepsea_minions.sls sed -i "6c deepsea_minions: '*'" /srv/pillar/ceph/deepsea_minions.sls
4、远程连接终端监控(admin节点)
该程序监控提供一个详细的,实时的可视化操作行为,当在执行运行salt-run state.orch时,监控执行期间运行了什么
# deepsea monitor
5、更新补丁,并收集硬件信息(admin节点)
salt-run state.orch ceph.stage.0 salt-run state.orch ceph.stage.1
报错信息可忽略
No minions matched the target. No command was sent, no jid was assigned. No minions matched the target. No command was sent, no jid was assigned. [ERROR ] Exception during resolving address: [Errno 2] Host name lookup failure [ERROR ] Exception during resolving address: [Errno 2] Host name lookup failure [WARNING ] /usr/lib/Python3.6/site-packages/salt/grains/core.py:2827: DeprecationWarning: This server_id is computed nor by Adler32 neither by CRC32. Please use "server_id_use_crc" option and define algorithm youprefer ( default "Adler32"). The server_id will be computed withAdler32 by default.
GitHub