# 嵌套 RAID 级别

嵌套 RAID 级别是一种磁盘阵列布局，其中一个 RAID 阵列由其他 RAID 阵列而非物理磁盘构建而成，从而结合两种级别（如镜像和条带化）的特性。其目标是在单一级别所能提供的性能与容错能力之上进一步提升<sup>[1](https://documentation.suse.com/sles/15-SP4/html/SLES-all/cha-raid10.html)</sup>。常见的嵌套级别包括 RAID 01、RAID 10、RAID 50、RAID 60 和 RAID 100<sup>[2](https://www.sciencedirect.com/topics/computer-science/redundant-array-of-inexpensive-disk)</sup>。

| 要点 | 说明 |
|---|---|
| 命名惯例 | 在两级名称中，第一个数字是堆栈中的较低级别：RAID 10 是镜像（1）之上的条带（0），RAID 50 是 RAID 5 组之上的条带<sup>[2](https://www.sciencedirect.com/topics/computer-science/redundant-array-of-inexpensive-disk)</sup> |
| RAID 10 | 在镜像对之上做 RAID 0 条带化；最少 4 块盘，容量为总量的一半，重建速度快，每个跨度容忍一块盘故障<sup>[3](https://lenovopress.lenovo.com/lp0578-lenovo-raid-introduction)</sup> |
| RAID 01 | 在条带组之上做 RAID 1 镜像；可承受单个 RAID 0 组故障而不丢失数据<sup>[4](https://www.snia.org/sites/default/files/technical-work/swordfish/release/v1.2.2a/html/Specification/Swordfish_v1.2.2a_Specification.html)</sup> |
| RAID 50 / RAID 60 | 在 RAID 5 / RAID 6 组之上做条带化；最少分别需要 6 块和 8 块盘；每个跨度分别容忍一块和两块盘故障<sup>[3](https://lenovopress.lenovo.com/lp0578-lenovo-raid-introduction)</sup> |
| Linux md RAID10 | 单一 10 级阵列，支持 near、far 或 offset 副本布局；near 与 far 副本数的乘积不得超过设备数量<sup>[5](https://github.com/torvalds/linux/blob/master/drivers/md/raid10.c)</sup> |
| 退化情形 | 在 Linux md 中，near_copies = far_copies = 1 即为 RAID 0，near_copies 等于 raid_disks 即为 RAID 1；双盘 RAID 10 阵列等同于 RAID 1<sup>[5](https://github.com/torvalds/linux/blob/master/drivers/md/raid10.c)</sup><sup> • </sup><sup>[6](https://www.ibm.com/docs/en/power9/0009-ESS?topic=srl-raid-10-1)</sup> |
| 扩展限制 | 在许多控制器上，RAID 10、50 和 60 等嵌套级别通常不支持在线容量扩展<sup>[7](https://support.lenovo.com/sr/en/troubleshoot/ssts101505-how-to-add-hard-drives-to-an-existing-raid-array)</sup> |

## 嵌套的工作原理

嵌套 RAID 设备以另一个 RAID 阵列而非物理磁盘作为其基本元素<sup>[1](https://documentation.suse.com/sles/15-SP4/html/SLES-all/cha-raid10.html)</sup>。嵌套的顺序很重要。RAID 1+0 先构建 RAID 1 镜像阵列，再将它们组合成 RAID 0 条带；RAID 0+1 先构建 RAID 0 条带阵列，再对它们做镜像<sup>[1](https://documentation.suse.com/sles/15-SP4/html/SLES-all/cha-raid10.html)</sup>。存储网络工业协会（Storage Networking Industry Association，SNIA）负责存储管理接口的标准化，在其 [Swordfish](https://www.edgepedia.org/zh/swordfish) 规范中定义了两者：RAID10 是构建在一组镜像设备之上的条带设备，RAID01 是构建在一组条带设备之上的镜像设备<sup>[4](https://www.snia.org/sites/default/files/technical-work/swordfish/release/v1.2.2a/html/Specification/Swordfish_v1.2.2a_Specification.html)</sup>。

同样的分层逻辑也延伸到奇偶校验级别。RAID 50 将数据条带化分布在多个 [RAID 5](https://www.edgepedia.org/zh/raid-5) 驱动器组上，RAID 60 则条带化分布在多个 RAID 6 驱动器组上；联想（Lenovo）的文档也将这些称为跨区级别（spanned levels），因为它们组合两个或多个基本阵列以突破控制器对单阵列驱动器数量的限制<sup>[3](https://lenovopress.lenovo.com/lp0578-lenovo-raid-introduction)</sup>。三级嵌套同样存在：RAID 100 写作 (1+0)+0，即 RAID 10 组之上的条带<sup>[2](https://www.sciencedirect.com/topics/computer-science/redundant-array-of-inexpensive-disk)</sup>。

## RAID 10 与 RAID 01 的对比

尽管两者都结合了镜像与条带化，但两种顺序在故障行为上有所不同。在条带化镜像（RAID 1+0）布局中，条带的每一列本身都是镜像的，因此单块磁盘故障只移除该卷中相应部分的冗余，恢复也只涉及受影响的子磁盘<sup>[8](https://www.veritas.com/support/en_US/doc/52074765-52074945-0/uxrt-51sp1_id-SF170665346-52074945)</sup>。在镜像化条带（RAID 0+1）布局中，单块磁盘故障会导致整个数据丛（即数据卷的一个独立副本；镜像单元）脱离，使整个卷失去冗余，更换磁盘需要重新同步整个丛<sup>[8](https://www.veritas.com/support/en_US/doc/52074765-52074945-0/uxrt-51sp1_id-SF170665346-52074945)</sup>。

SNIA 的定义直接说明了由此产生的容错能力：RAID 10 的数据在每个 RAID 1 组中可承受存储设备故障，而 RAID 01 的数据只能承受单个 RAID 0 数据组故障<sup>[4](https://www.snia.org/sites/default/files/technical-work/swordfish/release/v1.2.2a/html/Specification/Swordfish_v1.2.2a_Specification.html)</sup>。IBM 的 RAID 10 文档从阵列侧描述了相同的结构：数据条带化分布在一半驱动器上，另一半对其进行镜像，只要每个镜像对中有一块磁盘可用，访问就能保持<sup>[9](https://www.ibm.com/docs/en/ds8000/10.0.0?topic=implementation-raid-10-overview)</sup>。

**容量与重建。** RAID 10 将一半的原始容量用于镜像副本，至少需要四块驱动器，且重建速度快，因为替换盘是从其唯一的镜像伙伴复制而来，而非通过全阵列的奇偶校验重建<sup>[3](https://lenovopress.lenovo.com/lp0578-lenovo-raid-introduction)</sup>。阵列必须包含偶数块磁盘，双盘 RAID 10 阵列等同于 RAID 1<sup>[6](https://www.ibm.com/docs/en/power9/0009-ESS?topic=srl-raid-10-1)</sup>。

## Linux md RAID10 及其布局

Linux md 驱动将 RAID10 实现为单一级别而非两个堆叠阵列。其布局由块大小、设备数量以及两个副本参数 near_copies 和 far_copies 定义，两者的乘积不得超过设备数量；通常两者中有一个为 1<sup>[5](https://github.com/torvalds/linux/blob/master/drivers/md/raid10.c)</sup>。数据块以 RAID 0 方式布局，每个块有 near_copies 份副本；如果 far_copies 大于 1，则整个阵列的第二份副本会以设备偏移量放置在驱动器更靠后的位置，因此一个数据块绝不会在同一设备上存储两次<sup>[5](https://github.com/torvalds/linux/blob/master/drivers/md/raid10.c)</sup>。

mdadm 工具提供三种布局格式<sup>[10](https://man7.org/linux/man-pages/man8/mdadm.8.html)</sup>：

- **near**（默认，通常为 n2）：数据块的多个副本位于不同设备的相近偏移处。四块设备上两份副本即为传统的 RAID 10；两块设备上则等同于双副本 RAID 1，内核文档指出三设备布局类似于 RAID1E，即集成的相邻条带镜像<sup>[11](https://www.kernel.org/doc/html/latest/admin-guide/device-mapper/dm-raid.html)</sup>。
- **far**：数据块的副本放置在差异很大的偏移处，驱动文档指出这是提高顺序读取速度的一种方式<sup>[5](https://github.com/torvalds/linux/blob/master/drivers/md/raid10.c)</sup><sup> • </sup><sup>[10](https://man7.org/linux/man-pages/man8/mdadm.8.html)</sup>。
- **offset**：整个条带被复制但按一个设备轮转，因此数据块的后续副本落在下一个驱动器上，偏移一个块<sup>[10](https://man7.org/linux/man-pages/man8/mdadm.8.html)</sup>。

副本数量可以提高到 2 以上，最多可达阵列中的设备数量<sup>[10](https://man7.org/linux/man-pages/man8/mdadm.8.html)</sup>。在 device-mapper RAID 目标中，重塑支持因格式而异：RAID 级别 4、5 和 6 允许添加和移除设备，raid10 的 near 和 offset 布局仅允许添加设备，而 far 布局完全不支持重塑<sup>[11](https://www.kernel.org/doc/html/latest/admin-guide/device-mapper/dm-raid.html)</sup>。

## RAID 50 与 RAID 60

RAID 50 和 RAID 60 将“组上条带”模式应用于奇偶校验级别。RAID 50 将数据条带化分布在多个 RAID 5 组上，每个跨度内容忍单块驱动器故障，并且由于每个跨度独立计算奇偶校验，写入性能相比 RAID 5 有所提升；它至少需要六块驱动器<sup>[3](https://lenovopress.lenovo.com/lp0578-lenovo-raid-introduction)</sup>。RAID 60 在 RAID 6 组之上做条带化，每个跨度内容忍两块驱动器同时故障，至少需要八块驱动器<sup>[3](https://lenovopress.lenovo.com/lp0578-lenovo-raid-introduction)</sup>。

两者的实际区别在于组内第一块驱动器故障之后的情况。降级的 RAID 5 组不再具有容错能力，而 RAID 6 组在第一次故障后仍能容忍再一块成员故障；RAID 60 为此付出的代价是每组额外一块驱动器容量的奇偶校验开销，这相对于 RAID 50 减少了可用容量<sup>[12](https://www.techsupplydirect.com/enterprise-resource-center/knowledge-base/raid/raid-50-vs-raid-60/)</sup>。希捷（Seagate）的 RAID Manager 手册概括了嵌套级别的容错规则：在 RAID 10 和 RAID 50 中，每个嵌套阵列可以丢失一块驱动器；在 RAID 60 中，每个嵌套阵列可以丢失两块；如果某个嵌套阵列在同步完成之前超出其允许范围，则会丢失数据<sup>[13](https://www.seagate.com/manuals/software/raid-manager/raid-levels/)</sup>。

## 变体与管理

SNIA 规范还定义了扩展的嵌套形式：RAID10E，即两个或多个 RAID 10 组之上的 RAID 0 条带；RAID10Triple，即三重镜像组之上的条带，每个三重镜像中最多可承受两次故障；以及 RAID00，即无容错能力的条带之条带<sup>[4](https://www.snia.org/sites/default/files/technical-work/swordfish/release/v1.2.2a/html/Specification/Swordfish_v1.2.2a_Specification.html)</sup>。厂商实现还增加了相关产品，如 RAID 1 Triple 和 RAID 10 Triple，每组保留三份镜像副本<sup>[3](https://lenovopress.lenovo.com/lp0578-lenovo-raid-introduction)</sup>。

**操作限制。** 嵌套级别对管理施加了约束。在联想 MegaRAID 级控制器上，通过添加驱动器扩展卷仅适用于 RAID 0、1、5 和 6；RAID 00、10、50 和 60 需要备份、删除并重新创建阵列<sup>[7](https://support.lenovo.com/sr/en/troubleshoot/ssts101505-how-to-add-hard-drives-to-an-existing-raid-array)</sup>。重建行为遵循底层级别：RAID 10 重建快，因为它从镜像伙伴复制；而 RAID 50 和 RAID 60 重建慢，如同它们所包含的奇偶校验级别一样<sup>[3](https://lenovopress.lenovo.com/lp0578-lenovo-raid-introduction)</sup>。在 Linux 中设置嵌套级别使用 mdadm 命令行工具，而非发行版的图形工具<sup>[1](https://documentation.suse.com/sles/15-SP4/html/SLES-all/cha-raid10.html)</sup>。

## References

1. [Creating software RAID 10 devices, SUSE Storage Administration Guide (SLES 15 SP4)](https://documentation.suse.com/sles/15-SP4/html/SLES-all/cha-raid10.html)
2. [Redundant Array of Inexpensive Disk, ScienceDirect Topics](https://www.sciencedirect.com/topics/computer-science/redundant-array-of-inexpensive-disk)
3. [Lenovo RAID Introduction, Lenovo Press LP0578](https://lenovopress.lenovo.com/lp0578-lenovo-raid-introduction)
4. [Swordfish Specification v1.2.2a, SNIA](https://www.snia.org/sites/default/files/technical-work/swordfish/release/v1.2.2a/html/Specification/Swordfish_v1.2.2a_Specification.html)
5. [drivers/md/raid10.c, Linux kernel source](https://github.com/torvalds/linux/blob/master/drivers/md/raid10.c)
6. [RAID 10, IBM Power9 documentation](https://www.ibm.com/docs/en/power9/0009-ESS?topic=srl-raid-10-1)
7. [How to add hard drives to an existing RAID array, Lenovo Support](https://support.lenovo.com/sr/en/troubleshoot/ssts101505-how-to-add-hard-drives-to-an-existing-raid-array)
8. [Mirroring plus striping (striped-mirror, RAID-1+0 or RAID-10), Veritas Volume Manager Administrator's Guide](https://www.veritas.com/support/en_US/doc/52074765-52074945-0/uxrt-51sp1_id-SF170665346-52074945)
9. [RAID 10 overview, IBM DS8000 documentation](https://www.ibm.com/docs/en/ds8000/10.0.0?topic=implementation-raid-10-overview)
10. [mdadm(8), Linux manual page](https://man7.org/linux/man-pages/man8/mdadm.8.html)
11. [dm-raid, The Linux Kernel documentation](https://www.kernel.org/doc/html/latest/admin-guide/device-mapper/dm-raid.html)
12. [RAID 50 vs RAID 60: Capacity, Performance & Fault Tolerance, Tech Supply Direct](https://www.techsupplydirect.com/enterprise-resource-center/knowledge-base/raid/raid-50-vs-raid-60/)
13. [RAID Manager User Manual, RAID Levels, Seagate](https://www.seagate.com/manuals/software/raid-manager/raid-levels/)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Storage devices & memory › Storage devices overview

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/nested-raid-levels

English original: https://www.edgepedia.org/nested-raid-levels
