1、CDH 踩坑之:熵不足
解决过程:
1.查看系统当前的熵:发现确实很少
[root@wjltony ~]#cat /proc/sys/kernel/random/entropy_avail
20
2.查看管理熵的工具是否启动
[root@wjltony ~]# systemctl status rngd
Unit rngd.service could not be found.
3.安装管理工具rng-tools
[root@wjltony ~]# yum install -y rng-tools
4.启动rngd服务
[root@wjltony ~]# systemctl start rngd
[root@wjltony ~]# systemctl status rngd
● rngd.service - Hardware RNG Entropy Gatherer Daemon
Loaded: loaded (/usr/lib/systemd/system/rngd.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2019-05-21 06:28:08 CST; 1 months 26 days ago
Main PID: 782 (rngd)
CGroup: /system.slice/rngd.service
└─782 /sbin/rngd -f
May 21 06:28:08 wjltony systemd[1]: Started Hardware RNG Entropy Gatherer Daemon.
May 21 06:28:08 wjltony systemd[1]: Starting Hardware RNG Entropy Gatherer Daemon...
May 21 06:28:08 wjltony rngd[782]: read error
May 21 06:28:08 wjltony rngd[782]: hwrng: no available rng
May 21 06:28:08 wjltony rngd[782]: Unable to open file: /dev/tpm0
5.查看熵
[root@wjltony~]# cat /proc/sys/kernel/random/entropy_avail
3834
6.过1分钟后再看 CDH已经不告警了。