这里有最新的使用文档和教程
解决开机启动时的systemd-modules-load.service失败的问题
昨天我运行了更新,Centos Stream 8 内核是 4.18.0-365.el8.x86_64,重新启动多次失败。
[root@Harbor ~]# systemctl status systemd-modules-load.service
● systemd-modules-load.service - Load Kernel Modules
Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2022-03-07 16:22:22 CST; 52s ago
Docs: man:systemd-modules-load.service(8)
man:modules-load.d(5)
Process: 923 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
Main PID: 923 (code=exited, status=1/FAILURE)
3月 07 16:22:22 Harbor systemd-modules-load[923]: Module 'msr' is builtin
3月 07 16:22:22 Harbor systemd-modules-load[923]: Failed to insert 'ipmi_si': No such device
3月 07 16:22:22 Harbor systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
3月 07 16:22:22 Harbor systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
3月 07 16:22:22 Harbor systemd[1]: Failed to start Load Kernel Modules.
[root@Harbor ~]# journalctl _PID=912
-- Logs begin at Mon 2022-03-07 16:38:27 CST, end at Mon 2022-03-07 16:39:43 CST. --
3月 07 16:38:33 Harbor systemd-modules-load[912]: Module 'msr' is builtin
3月 07 16:38:33 Harbor systemd-modules-load[912]: Failed to insert 'ipmi_si': No such device
[root@Harbor ~]# journalctl _SYSTEMD_UNIT=systemd-modules-load.service
-- Logs begin at Mon 2022-03-07 16:38:27 CST, end at Mon 2022-03-07 16:39:43 CST. --
3月 07 16:38:33 Harbor systemd-modules-load[912]: Module 'msr' is builtin
3月 07 16:38:33 Harbor systemd-modules-load[912]: Failed to insert 'ipmi_si': No such device
vi /etc/modprobe.d/blacklist-ipmi.conf
blacklist ipmi_si
blacklist ipmi_devintf
blacklist ipmi_msghandler
blacklist ipmi_ssif
blacklist ipmi_watchdog
blacklist ipmi_poweroff
blacklist acpi_ipmi
blacklist ibmaem
blacklist ibmpex
[root@Harbor ~]# systemctl restart systemd-modules-load.service
[root@Harbor ~]# systemctl status systemd-modules-load.service
● systemd-modules-load.service - Load Kernel Modules
Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static; vendor preset: disabled)
Active: active (exited) since Mon 2022-03-07 16:51:50 CST; 1s ago
Docs: man:systemd-modules-load.service(8)
man:modules-load.d(5)
Process: 1860 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=0/SUCCESS)
Main PID: 1860 (code=exited, status=0/SUCCESS)
3月 07 16:51:50 Harbor systemd[1]: Starting Load Kernel Modules...
3月 07 16:51:50 Harbor systemd[1]: Started Load Kernel Modules.