您的位置:首页 > 运维架构 > Linux

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

2017-09-04 17:40 344 查看
我安装的系统是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是否在线.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: