Ceph
Ceph 是一个专注于分布式的、弹性可扩展的、高可靠的、性能优异的存储系统平台,可用于为虚拟机提供块存储方案或通过 FUSE 提供常规的文件系统。Ceph 是个高度可配置的系统,管理者可以控制系统的各个方面。它提供了一个命令行界面用于监视和控制其存储集群。Ceph 也包含鉴证和授权功能,可兼容多种存储网关接口,如 OpenStack Swift 和 Amazon S3。
引自 Wikipedia: Ceph (software):
- Ceph 是一个自由的存储平台软件,设计用于使用单个分布式计算机集群提供对象/块及文件存储服务。Ceph 的主要目标为:无单点故障的完全分布式结构,艾子节级的可扩展性以及获取自由。The data is replicated, making it fault tolerant.
引自 Ceph.com:
- Ceph 是一个针对高性能、高可靠性及可扩展性设计的分布式对象存储及文件存储系统。
The official documentation states "the manual procedure is primarily for exemplary purposes for those developing deployment scripts with Chef, Juju, Puppet, etc.".
术语[编辑 | 编辑源代码]
- Client : 连接到 Ceph 集群获取数据,但不属于 Ceph 集群中一部分的模块。
- MONs : 即监视器,存放了集群状态及例如服务和数据位置等集群信息。
- MDSs : 即元数据服务器,为 Ceph 文件系统存储元数据,以减轻存储集群的负载(例如
ls
等命令所需的信息)。 - Node : 运行如 OSDs 及 MONs 等 Ceph 服务的单台设备。
- OSDs : 即 OSD daemons,负责集群的数据存储工作,也同时负责多项其它任务,例如数据复制,恢复及重平衡。
- Storage cluster : 负载数据存储的核心软件(OSDs+MONs)。
安装[编辑 | 编辑源代码]
软件包[编辑 | 编辑源代码]
可以安装 cephAUR。如果愿意冒险,也可以安装开发版的 ceph-gitAUR。
存储集群的所有节点都要安装 cephAUR。
NTP 客户端[编辑 | 编辑源代码]
在节点上安装并运行时钟同步客户端,可参阅时钟同步。
启动一个存储集群[编辑 | 编辑源代码]
Before a storage cluster can operate, the monitors for that cluster must be bootstrapped with several identifiers and keyrings.
The upstream Ceph documentation is well-written and kept updated with the latest releases.
To boostrap a storage cluster, follow the steps documented in the official manual deployment guide
启动一个监视器[编辑 | 编辑源代码]
Since your system most likely uses systemd, you can enable a monitor as a systemd unit.
As an example, for a monitor named node1
start and enable ceph-mon@node1.service
as detailed in Systemd#Using units.
参阅[编辑 | 编辑源代码]
- 官方网站
- 官方源码下载