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

ZFS mismatched replication level

· 52CE 我爱测

I have a RAIDZ1 running 6x 3TB drives, and I want to expand my pool by adding 5x 2TB drives to it. But when I tell it to add to the pool I get this: $ zpool add zpool1 raidz1 /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde invalid v…

问题原文

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

I have a RAIDZ1 running 6x 3TB drives, and I want to expand my pool by adding 5x 2TB drives to it. But when I tell it to add to the pool I get this:

$ zpool add zpool1 raidz1 /dev/sda /dev/sdb /dev/sdc /dev/sdd /dev/sde
invalid vdev specification
use '-f' to override the following errors:
mismatched replication level: pool uses 6-way raidz and new vdev uses 5-way raidz

Just how bad is doing this? I don't care about performance, this server does not need massive performance, it needs storage. Will this damage my data to do this or is it fine to expand to different size pools like this?

已采纳解答

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

While having RAIDZ vdevs of different width is not recommended, it is a valid configuration to use. The key point is to use the same redundancy level - RAIDZ1 in this case.

In other words - the ZFS warning is a valid one, but using -f can be justified in this specific case. You should obviously be mindful of what it means, as both performance and space efficiency (ie: via un-optimal padding) will be affected.

Anyway, data will not be damaged and redundancy will not be lowered by adding another RAIDZ1 vdev.

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

资料来源与适用范围

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

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

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