码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS6.5添加rbd模块

时间:2016-05-17 11:26:24      阅读:377      评论:0      收藏:0      [点我收藏+]

标签:

 [root@ceph-monitor 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 当前内核版本

[root@ceph-monitor opt]# uname -r
2.6.32-431.el6.x86_64

※1 安装kernel-ml

[root@ceph-monitor opt]# rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org
[root@ceph-monitor opt]# rpm -Uvh http://elrepo.org/elrepo-release-6-5.el6.elrepo.noarch.rpm
[root@ceph-monitor 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
================================================================================

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

[root@ceph-monitor 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 加载并验证

[root@ceph-monitor opt]# modprobe rbd

[root@ceph-monitor opt]# lsmod | grep rbd
rbd                    61440  0
libceph               176128  1 rbd

 

CentOS6.5添加rbd模块

标签:

原文地址:http://www.cnblogs.com/linprogram/p/5500439.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!