这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » STM32 » Centos6.5DRBD加载失败,系统更换yum源(国内163)

共1条 1/1 1 跳转至

Centos6.5DRBD加载失败,系统更换yum源(国内163)

高工
2018-04-10 09:32:33     打赏

我安装的系统是centos6.5的,要在系统上安装DRBD镜像软件,安装完后,无法加载modprobe drbd.

需要更新kernel。

 

1,首先,先把yum源更换成国内的,不然无法更新kernel

a,

先备份/etc/yum.repos.d/CentOS-Base.repo (改名)

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

b,

wget -O  /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS6-Base-163.repo 

c,

yum clean all

yum makecache

 

2,接着再更新kernel

sudo yum install kernel-devel

sduo yum install kernel

sudo yum install kernel-headers

 更新完kernel,要重启系统.

3,sudo depmod

4,sudo modprobe drbd

5,查看lsmod,drbd是否在线.




共1条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]