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.
參閱[編輯 | 編輯原始碼]
- 官方網站
- 官方源碼下載