Assume that I built an 2TB RAID5 array and its running and some data is stored on it.
Now I need to increase its size to 5TB.
Can I increase capacity (By adding extra drives)? How?
If Yes is it possible to do this while RAID array is working?
I'm going to use Linux as OS.
I don't mind any special controller; I just want to know is it possible or not;

- 147
- 1
- 3
- 15
-
2This depends completely on what's handing the array. Is it a hardware RAID controller? If yes, what model? If no, what OS is the software RAID running on? – Shane Madden Oct 05 '11 at 21:09
-
@Shane Madden. I don't mind any special controller; I just want to know is it possible or not; and if yes what features controller must have? and about OS, I want to use LINUX (Maybe Ubuntu) – Ariyan Oct 05 '11 at 21:13
2 Answers
Linux MD software RAID can add disks to a hot RAID-5 array (mdadm --grow
), reshaping the data on the fly. Don't proceed until the reshape finishes (cat /proc/mdstat
).
You'd then need to expand your filesystem to fill the array. For an ext2/3/4 filesystem, for instance, you'd then run resize2fs
to expand your filesystem to use the newly available space on the device.

- 114,520
- 13
- 181
- 251
Answer depends on what exactly RAID-5 implementation you'd use. Linux Soft RAID (LSR) allows for both on-line adding drives into RAID-5 (re-shape) and replacing drives with bigger ones then increasing overall size. I think some RAID-5 controllers should have supported this too, but don't expect them to be cheap. Lots of Linux filesystems allows for online size grow, but not shrink usually.
In case you go with either RAID it makes sense using LVM-2 too. You can merge several RAID-5 arrays into single logical volume with it, for e. g..
P. S. RAID-5 may be not optimal solution — just think: either disk you lose and your array is performing sub-optimal × not having redundancy.

- 9,448
- 2
- 25
- 52