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

Storage Setup for iSCSI/NFS servers

· 52CE 我爱测

We are preparing to replace our storage servers (iSCSI+NFS). The current servers are Debian Wheezy using mdadm+lvm2 for storage, and failover using drbd and heartbeat (never got heartbeat to work). For our replacement servers, I …

问题原文

原帖链接 · Rod · CC BY-SA 4.0

We are preparing to replace our storage servers (iSCSI+NFS). The current servers are Debian Wheezy using mdadm+lvm2 for storage, and failover using drbd and heartbeat (never got heartbeat to work).

For our replacement servers, I would like to use ZFS, but it has the limitation of not being able to reconfigure the raid set live. The server would be only partially populated initially. To add a drive, would need to export the whole file system, reconfigure, then import the file system.

I was originally planning on a pure FreeBSD system, using HAST+CARP to handle the nodes. HAST can only run on GEOM devices, which leaves out a zpool, so it would probably have to be run on a per-drive basis. There is a limit to the number of HAST devices on a system, but I have not been able to find out what this limit is.

Instead, I have come up with what could be a total kludge or could be a good answer. Here is the proposed system. It has one enterprise grade SSD for the OS, and 25 available hotswap bays for data.

I build the machine using Linux+mdadm. 2x120G SSD, RAID-1 and 8x500G SSD as RAID-6. Install xen, and build a FreeBSD virtual that has the the RAID-1 for operating system and the RAID-6 as a device for a zpool. This virtual is the storage server.

This gives the benefits of mdadm, zfs, hast and carp, at the cost of an additional layer (xen) using resources. HAST would run on the RAID-6 to the secondary machine (built exactly the same).

I'd love any feedback, from "you are an idiot" to "sounds ok to me," but preferably with reasoning behind it.

Thank you,

Rod

社区高分解答

原帖链接 · ewwhite · CC BY-SA 4.0

I think it's too many layers of abstraction to be tenable.

ZFS is fine. You don't necessarily need all of the data in a single namespace, do you?

You can expand ZFS zpools, if done carefully, but you should plan on your desired storage need and growth.

High availability in ZFS is also possible. See: https://github.com/ewwhite/zfs-ha/wiki

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

资料来源与适用范围

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

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

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