1

通过查看/boot/config-xxxx文件,我发现内核模块“ ceph ”和“ rbd ”被配置为我的centos 7"Y""M"在我的centos 7中。

Does any guys know what's the best way to add these modules back ?

我是否需要手动download将内核源代码和configure这些模块设置为“Y/M”?
还是我只需要build两个内核模块并将add它们添加到/lib64/modules

4

1 回答 1

0

首先,

  1. 我发现内核模块“ceph”和“rbd”被配置为“Y”或“M”

A kernel module is configured as either "Y" or "M". If you grep for the module under /boot/config it would be marked either of those.

如果标记为“Y”,则该模块已作为 STATIC MODULE 内置到内核中。您无需再次重建它。

如果标记为“M”,则该模块仍然被构建,但作为 DYNAMIC MODULE。您可以使用“$ lsmod”命令找到该模块,也可以在 /lib/modules 中找到

So, if you don't find your module listed under /boot/config*** only then you will have to consider building that module

接下来,如果您没有找到列出的模块,那么您将不得不下载与您的 PC 上的版本相对应的内核源代码,然后只编译这些模块并安装它们

于 2014-11-24T04:58:07.907 回答