CentOS6.5添加rbd模块

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS6.5添加rbd模块相关的知识,希望对你有一定的参考价值。

 [[email protected] opt]# modprobe rbd

  FATAL: Module rbd not found.

Once you have deployed the almighty CEPH storage, you will want to be able to actualy use it (RBD).

Since CEPH RBD module was first introduced with kernel 2.6.34 (and CentOS6.5 kernel is 2.6.32) – that means we need a newer kernel.

※0 当前内核版本

[[email protected] opt]# uname -r
2.6.32-431.el6.x86_64

※1 安装kernel-ml

[[email protected] opt]# rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org
[[email protected] opt]# rpm -Uvh http://elrepo.org/elrepo-release-6-5.el6.elrepo.noarch.rpm
[[email protected] opt]# yum --enablerepo=elrepo-kernel install kernel-ml

.................................................

Dependencies Resolved

================================================================================
 Package        Arch        Version                    Repository          Size
================================================================================
Installing:
 kernel-ml      x86_64      4.6.0-1.el6.elrepo         elrepo-kernel       39 M

Transaction Summary
================================================================================

.................................................

[[email protected] opt]# yum --enablerepo=elrepo-kernel install kernel-lt

※2 修改/etc/grup.conf

If you want that new kernel to boot by default, edit /etc/grub.conf, and change the default=1 to default=0, and reboot

※3 加载并验证

[[email protected] opt]# modprobe rbd

[[email protected] opt]# lsmod | grep rbd
rbd                    61440  0
libceph               176128  1 rbd

 

以上是关于CentOS6.5添加rbd模块的主要内容,如果未能解决你的问题,请参考以下文章

​centos6.5添加新网卡配置

CentOS6.5 升级 Python 2.7 版本详细介绍

centos6.5 (linux) 禁用模块 IPV6模块的方法

在centos6.5上编译安装LAMP

CentOS6.5源码安装python3.5.2

Exsi安装Centos6.5系统