大网数据广告活动
服务器运维问答

Use Ceph as redundant storage for failover FTP service?

· 52CE 我爱测

I need to setup a redundant FTP storage service that can survive one server-crash. I have two servers SrvA and SrvB that shares a virtual IP IpVirt (an IP that will usually point to SrvA but that will point to SrvB if SrvA were t…

问题原文

原帖链接 · CDuv · CC BY-SA 3.0

I need to setup a redundant FTP storage service that can survive one server-crash.

I have two servers SrvA and SrvB that shares a virtual IP IpVirt (an IP that will usually point to SrvA but that will point to SrvB if SrvA were to have a problem). Both servers (Debian) will have a FTP daemon and FTP users configured.

At this point the FTP daemon can always be reached using IpVirt: failover FTP service = OK

For the actual storage part I see the following options:

  • rsync the FTP data directory between SrvA and SrvB
  • Use a replicated file system whose nodes are SrvA and SrvB: The replicated FS infrastructure would do the synchronization job for me.

I am considering the second option: and I wonder if Ceph (which I would like to try) could do the job?

Can I make SrvA and SrvB the two nodes of a Ceph infrastructure where datas are stored on both SrvA and SrvB. But also make that Ceph infrastructure still be accessible by any Ceph client (SrvA, SrvB or any other) when at least one of SrvA or SrvB is up? A Ceph "master" failover system (client would be using that same IpVirt IP).

In this scenario, the FTP data directory would be a mountpoint for a Ceph "volume".

Note: I plan to use theses two servers for other storage oriented services (SMB, WebDAV, storage-oriented web applications...). Theses services' data directory would then be other mountpoints to other Ceph "volumes".

已采纳解答

原帖链接 · BaronSamedi1958 · CC BY-SA 3.0

Ceph needs quite many nodes to aggregate reasonable performance.

http://ceph.com/planet/zero-to-hero-guide-for-ceph-cluster-planning/

If you only have two DRBD is your best friend.

http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Clusters_from_Scratch/ch07.html

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-07-03)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。