检查数据库时发现messages中一直有rngd报错,rngd一直未配置,直接关闭了
/var/log/messages-20240414:Apr 11 04:59:49 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240414:Apr 12 07:31:39 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240414:Apr 12 09:31:46 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240414:Apr 12 09:44:13 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240421:Apr 15 16:03:33 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240421:Apr 15 17:10:24 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240421:Apr 17 13:58:41 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240421:Apr 17 14:22:28 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240421:Apr 17 14:36:23 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240421:Apr 17 15:01:08 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240421:Apr 17 16:06:37 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240421:Apr 17 16:13:55 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240421:Apr 20 04:29:20 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240421:Apr 20 04:51:50 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240429:Apr 22 19:14:32 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240429:Apr 27 08:20:35 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240429:Apr 27 08:29:51 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240429:Apr 27 08:44:31 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240429:Apr 27 08:50:05 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240429:Apr 27 09:09:22 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240429:Apr 27 09:46:12 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240429:Apr 27 10:46:58 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240429:Apr 27 10:47:47 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240429:Apr 27 12:18:21 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240429:Apr 27 12:42:29 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240429:Apr 27 12:57:36 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240429:Apr 27 13:38:35 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240429:Apr 27 13:45:32 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240429:Apr 27 14:14:08 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240429:Apr 27 15:00:19 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240429:Apr 27 15:25:00 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240429:Apr 27 15:38:54 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240429:Apr 27 15:43:09 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240429:Apr 27 15:50:32 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240505:Apr 30 00:49:11 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240505:May 1 02:20:10 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240505:May 1 03:07:05 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240505:May 4 22:58:26 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240505:May 4 22:58:43 hydb2 rngd: Error writing /dev/tpm0
/var/log/messages-20240505:May 4 23:24:06 hydb2 rngd: Error writing /dev/tpm0
处理
[root@hydb2 ~]# rngd -v
Available entropy sources:
DRNG
TPM
[root@hydb2 ~]# systemctl status rngd
● rngd.service - Hardware RNG Entropy Gatherer Daemon
Loaded: loaded (/etc/systemd/system/rngd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-11-03 09:52:49 CST; 1 years 6 months ago
Main PID: 25310 (rngd)
CGroup: /system.slice/rngd.service
└─25310 /sbin/rngd -f
Apr 27 15:25:00 hydb2 rngd[25310]: Error writing /dev/tpm0
Apr 27 15:38:54 hydb2 rngd[25310]: Error writing /dev/tpm0
Apr 27 15:43:09 hydb2 rngd[25310]: Error writing /dev/tpm0
Apr 27 15:50:32 hydb2 rngd[25310]: Error writing /dev/tpm0
Apr 30 00:49:11 hydb2 rngd[25310]: Error writing /dev/tpm0
May 01 02:20:10 hydb2 rngd[25310]: Error writing /dev/tpm0
May 01 03:07:05 hydb2 rngd[25310]: Error writing /dev/tpm0
May 04 22:58:26 hydb2 rngd[25310]: Error writing /dev/tpm0
May 04 22:58:43 hydb2 rngd[25310]: Error writing /dev/tpm0
May 04 23:24:06 hydb2 rngd[25310]: Error writing /dev/tpm0
[root@hydb2 ~]# systemctl disable rngd
Removed symlink /etc/systemd/system/multi-user.target.wants/rngd.service.
[root@hydb2 ~]# systemctl stop rngd