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

LXD on ZFS on LVM on H/W RAID 10

· 52CE 我爱测

I have a Dell R540 with PERC H730P running RAID 10 over 12 DISK to the tune of ~22TB. I want to run various applications/services in LXD containers. I understand that ZFS is preferred for LXC storage pools, and that ZFS prefers d…

问题原文

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

I have a Dell R540 with PERC H730P running RAID 10 over 12 DISK to the tune of ~22TB. I want to run various applications/services in LXD containers.

I understand that ZFS is preferred for LXC storage pools, and that ZFS prefers direct access to raw disks.

My naive approach was to configure Ubuntu with LVM over the H/W RAID, and let LXD init with default settings (ZFS.img on EXT4 on LVM ...). My reading is that this will 'work fine' however isn't optimal performance / protection-wise.

Could someone provide some guidance the various options I have here and which would get the best of most worlds? Thanks!

已采纳解答

原帖链接 · Mircea Vutcovici · CC BY-SA 4.0

If you want to benefit from all ZFS advantages, you need to reinstall the server. Change the HBA configuration from RAID to JBOD (disable RAID). Make sure you can see all disks from the OS. Make sure you can see them as normal disk, not virtual disks exposed by the RAID controller. You should be able to see the hardware details of the disk, like vendor, model, serial number, maybe SMART attributes.

Check the disk sector size if it's 512, 4k or 8k. Create the pool with proper ashift value based on max sector size of the current disks and the disks you intend to add in the pool.

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

资料来源与适用范围

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

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

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