ceph安装教程

ceph是一个分布式对象存储系统和分布式文件系统, 可以实现高效, 高可靠性, 扩展性强.  当然很重要的是, 他是免费的, 不需要购买大容量存储和昂贵的分布式文件系统.

建议: 您使用如下操作系统,否则需要手动编译源码. 因为源码编译过程中,会碰到各种各样怪异的问题. 而且ceph maillist 也不能给与很好的支持.所以建议使用如下操作系统开始.

RHEL/CentOS6 (el6), Fedora 17 (f17), OpenSUSE 12 (opensuse12), and SLES (sles11) platforms.

想使用Ubuntu/Debian的用户, 访问这个链接去安装!

1. 安装release key

此步其时应该可以忽略掉, 主要为了避免安装软件时, 提示安全警告.

sudo rpm --import 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc'

2.  这个步骤是安装ceph的yum的仓库信息. 既是你装了该rpm后, 则用yum便容易的安装ceph和更新ceph.同时依赖的rpm包,也会替你一并安装. 省了你一个个去找依赖rpm包的麻烦. 所以强力建议通过此方法进行安装ceph.

替换下面命令的{DISTRO}

su -c 'rpm -Uvh http://ceph.com/rpm-bobtail/{DISTRO}/x86_64/ceph-release-1-0.el6.noarch.rpm'

例如你使用CentOS 6 or other RHEL6,  则这样

su -c 'rpm -Uvh http://ceph.com/rpm-bobtail/el6/x86_64/ceph-release-1-0.el6.noarch.rpm'

3.  安装后,  yum search ceph

[root@localhost software]# yum search ceph
Loaded plugins: fastestmirrorLoading mirror
speeds from cached hostfile
 * base: mirrors.ta139.com *
extras: mirrors.btte.net *
updates: mirrors.ta139.com
ceph |  951 B     00:00
ceph/primary                                             | 4.9 kB     00:00
ceph
14/14============ N/S Matched: ceph =============
ceph.x86_64 : User space components of the Ceph file
systemceph-debug.x86_64 : Debug information for package
cephceph-devel.x86_64 : Ceph
headersceph-fuse.x86_64 : Ceph fuse-based
clientceph-release.noarch : Ceph repository
configurationceph-test.x86_64 : Ceph benchmarks and test
toolslibcephfs-java.x86_64 : Java libraries for the Ceph File
System.libcephfs-jni.x86_64 : Java Native Interface library for CephFS Java
bindings.libcephfs1.x86_64 : Ceph distributed file system client
librarypython-ceph.x86_64 : Python libraries for the Ceph distributed
filesystemceph-radosgw.x86_64 : Rados REST gateway

4. yum install ceph

会替你安装如下依赖, 并成功安装ceph

Dependencies Resolved

======================================================

Package           Arch        Version                          Repository

Size

=======================================================

Installing:

ceph              x86_64      0.56.3-0.el6                     ceph       10 M

Installing for dependencies:

boost-system      x86_64      1.41.0-11.el6_1.2                base       24 k

boost-thread      x86_64      1.41.0-11.el6_1.2                base       40 k

libaio            x86_64      0.3.107-10.el6                   base       21 k

libcephfs1        x86_64      0.56.3-0.el6                     ceph      1.4 M

libedit           x86_64      2.11-4.20080712cvs.1.el6         base       74 k

librados2         x86_64      0.56.3-0.el6                     ceph      1.2 M

librbd1           x86_64      0.56.3-0.el6                     ceph      242 k

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

Install       8 Package(s)

5. 察看ceph版本

[root@localhost software]# ceph -v
ceph version 0.56.3 (6eb7e15a4783b122e9b0c85ea9ba064145958aa5)

ceph试验教程

此篇文章已被阅读4072 次

Add a Comment

邮箱地址不会被公开。 必填项已用*标注