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

Grow an mdadm RAID5 array with fewer, larger disks

· 52CE 我爱测

I have a linux software RAID 5 array, made up of 5 x 3 TB drives, giving me roughly 12 TB in total. I want to replace the disks with newer 8 TB drives, but since these are still quite expensive, I would like to start with 3 drive…

问题原文

原帖链接 · Jure Merhar · CC BY-SA 4.0

I have a linux software RAID 5 array, made up of 5 x 3 TB drives, giving me roughly 12 TB in total. I want to replace the disks with newer 8 TB drives, but since these are still quite expensive, I would like to start with 3 drives only for now, giving me a total of 16 TB space. This would allow me to later add more 8 TB drives to grow the size of my array as needed.

Now, I know it's possible to replace all disks with larger disks. I also know it's possible to rebuild the array with fewer disks, if you have enough disk space. The problem is, my array is 95% full, which is my primary reason for switching to larger disks in the first place. Since I don't have enough disk space to first rebuild the array with fewer (3 TB) disks, is there any way I can rebuild my current 12 TB (5 x 3 TB) RAID 5 array as a 16 TB (3 x 8 TB) RAID 5 array without losing data?

已采纳解答

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

I don't think you can do what you want: replacing only some disks will not enable you to grow the array (to use the additional "blank" space). Moreover, RAID5 with these high capacity disks is very risky.

For these reasons, I strongly suggests you to create a new RAID6 or RAID10 array (with 4x 8TB disks) and to migrate your data to the new array. While painful, it will prevent a probable data loss in the future.

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

资料来源与适用范围

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

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

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