解决drbd不能启动问题(Can not load the drbd module.)

简介:
今天重启动机器后,drbd不能启动。
提示Starting DRBD resources: Can not load the drbd module.
uname -a  查看内核版本为2.6.26-2-686
dpkg -l|more  查看安装的drbd版本为2.6.26-1-686
通过 dpkg -s drbd8-modules-2.6.26-1-686  可以查看更详细信息,其中显示
depends: linux-modules-2.6.26-1-686
再用 dpkg -l|more 查看后,知道这台机器上有:
linux-image-2.6.26
linux-image-2.6.26-1-686(其包含linux-modules-2.6.26-1-686)
linux-image-2.6.26-2-686

所以可能是升级内核后引起的drbd启动不了。

试验:
vi /boot/grub/menu.lst
把下面的启动项改为启动2.6.26-1-686内核

title           Debian GNU/Linux, kernel 2.6.26-2-686
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.26-2-686 root=/dev/sda1 ro quiet
initrd          /boot/initrd.img-2.6.26-2-686

title           Debian GNU/Linux, kernel 2.6.26-2-686 (single-user mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.26-2-686 root=/dev/sda1 ro single
initrd          /boot/initrd.img-2.6.26-2-686

title           Debian GNU/Linux, kernel 2.6.26-1-686
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.26-1-686 root=/dev/sda1 ro quiet
initrd          /boot/initrd.img-2.6.26-1-686

title           Debian GNU/Linux, kernel 2.6.26-1-686 (single-user mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.26-1-686 root=/dev/sda1 ro single
initrd          /boot/initrd.img-2.6.26-1-686

### END DEBIAN AUTOMAGIC KERNELS LIST

重启动后,用命令 cat /proc/drbd 查看得知drbd已经启动。

解决方法是
卸载掉drbd8-modules-2.6.26-1-686:
apt-get remove --purge drbd8-modules-2.6.26-1-686 (加--purge是彻底删除,否则该软件仍然在硬盘上,只是配置被删除了。如果不适用

purge参数,通过dpkg -l还能看见该包。另外,用apt-get remove --purge之后,某些依赖的包还是可能会留下的,所以用 aptitude purge 

drbd8-modules-2.6.26-1-686较好 )
安装drbd8-modules-2.6.26-2-686:
aptitude install drbd8-modules-2.6.26-2-686








本文转自 h2appy  51CTO博客,原文链接:http://blog.51cto.com/h2appy/271135,如需转载请自行联系原作者
目录
相关文章
mode9-node的系统模块fs
mode9-node的系统模块fs
113 0
mode9-node的系统模块fs
|
7月前
|
存储 JavaScript 算法
若依修改-Starting development server...10% building 0/1 modules 1 active ...-node
若依修改-Starting development server...10% building 0/1 modules 1 active ...-node
|
Oracle 关系型数据库 Java
Running Root.Sh On Second Node PRKN-1008 Unable to Load Shared Library_342750.1
Running Root.Sh On Second Node Fails PRKN-1008 Unable to Load the Shared Library srvmhas10 (Doc ID 342750.
1358 0
|
分布式计算 Hadoop
win系统hadoop启动时RM uses DefaultResourceCalculator问题解决
org.apache.hadoop.yarn.exceptions.YarnRuntimeException: RM uses DefaultResourceCalculator which used only memory as resource-type but invalid resource-types specified 错误
|
iOS开发 MacOS
如何解决npm命令报错Missing write access to /usr/local/lib/node_modules
如何解决npm命令报错Missing write access to /usr/local/lib/node_modules
如何解决npm命令报错Missing write access to /usr/local/lib/node_modules

热门文章

最新文章