我在存储领域还是个新手。我正在做一个将我们的备份基础设施从 Solaris 迁移到 Linux 的项目。
作为其中的一部分,我已将服务器重建为 Linux (RHEL7),它有 2 个根磁盘 (每个 300GB) 和 30 个磁盘 (每个 3TB),这些磁盘来自 2 个 Xyratex 机架 (24+6)。2 个 Xyratex 机架中的一个 (有 24 个磁盘的机架) 配置了多路径。
由于 Linux 内核通过每个路径检测每个共享驱动器一次,因此 fdisk -l
输出列出 102 个 3TB 磁盘(而不是实际的 30 个)。
$ fdisk -l | grep '3000.6 GB' | wc -l
102
其中有:
48个是多路径设备。
$ fdisk -l | grep '/dev/mapper/mpath*' | grep -v '3000.6' | wc -l
48
例如,一个条目是:
Disk /dev/mapper/mpathb: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
其中 30 是实际磁盘(24+6):
Disk /dev/sdaa: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdab: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdac: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdad: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdaf: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdae: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdai: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdah: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdam: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdal: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdao: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdan: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdaj: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdav: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdaw: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdax: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdaz: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sday: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdba: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdbc: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdbb: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdaq: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdbd: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdap: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdag: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdau: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdas: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdar: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdak: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdat: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
其中24个为冗余设备:
Disk /dev/sde: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdd: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdf: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdg: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdh: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdk: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdl: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdc: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdo: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdi: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdm: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sds: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdp: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdu: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdw: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdq: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdr: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdn: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdt: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdv: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdy: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdx: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdz: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
Disk /dev/sdj: 3000.6 GB, 3000592982016 bytes, 5860533168 sectors
现在,我很困惑如何正确配置 RAID。
我计划采用以下 RAID 配置(保留 6 个磁盘作为备用):
- 创建 3 个 RAID 6 组,每组有 8 个磁盘(6 个磁盘和 2 个备用磁盘)。
- 三个 RAID 6 顶部有 1 个 RAID 0 - 因此基本上它们都看起来像一个具有 RAID 0 的单元。
- 然后在 RAID 0 上创建 PV,然后使用 LVM。
我读过有关 mdadm 中有多路径的信息,但我不太清楚下一步该怎么做。对此有什么想法吗?