MRS 3.2.0-LTS.2 or later:
The system checks whether the rng-tools or haveged tool has been enabled and correctly configured every 5 minutes. If neither tool is configured, this alarm is generated. If either is configured, the system continues to check the entropy. If the entropy is less than 100 for five consecutive times, this alarm is generated.
This alarm is cleared when rng-tools or haveged has been installed and enabled on the target node and the entropy of the OS is greater than or equal to 100 in at least one of five entropy checks.
MRS 3.1.2-LTS.6 or earlier:
The system checks the entropy for five consecutive times at 00:00 every day. Specifically, the system checks whether rng-tools or haveged has been enabled and correctly configured. If neither is configured, the system continues to check the entropy. If the entropy is less than 100 for five consecutive times, this alarm is reported.
This alarm is cleared when the system detects that the true random number mode has been configured, the random number parameters have been configured in the pseudo-random number mode, or neither mode is configured but the entropy of the OS is greater than or equal to 100 in at least one of five entropy checks.
Alarm ID |
Alarm Severity |
Auto Clear |
---|---|---|
12040 |
Major |
Yes |
Name |
Meaning |
---|---|
Source |
Specifies the cluster or system for which the alarm is generated. |
ServiceName |
Specifies the service for which the alarm is generated. |
RoleName |
Specifies the role for which the alarm is generated. |
HostName |
Specifies the host for which the alarm is generated. |
The system is not running properly.
Check whether haveged or rng-tools has been installed or started.
Check the entropy of the OS.
Log in to the target node as user root and run the cat /proc/sys/kernel/random/entropy_avail command to check whether the entropy of the OS meets cluster installation requirements (no less than 100).
In Kylin, run the following command:
vi /usr/lib/systemd/system/haveged.service
Configure Type, ExecStar, SuccessExitStatus, and Restart in [Service] as follows:
Type=simple ExecStar=/usr/sbin/haveged -w 1024 -v 1 –Foreground SuccessExitStatus=137 143 Restart=always
echo 'EXTRAOPTIONS="-r /dev/urandom -o /dev/random -t 1 -i"' >> /etc/sysconfig/rngd
service rngd start
chkconfig rngd on
rngd -r /dev/urandom -o /dev/random
echo "rngd -r /dev/urandom -o /dev/random" >> /etc/rc.d/after.local
vi /usr/lib/systemd/system/rngd.service
Change the value of ExecStart in [Service] as follows:
ExecStart=/sbin/rngd -f -r /dev/urandom -s 2048
Collect fault information.
This alarm is automatically cleared after the fault is rectified.