Growing a Linux software RAID5 array
Posted
by
chrismetcalf
on Server Fault
See other posts from Server Fault
or by chrismetcalf
Published on 2009-10-12T06:27:58Z
Indexed on
2012/09/20
21:42 UTC
Read the original article
Hit count: 266
On my home file server, I've got a 1.5TB software RAID5 array, built from four 500gb Western Digital drives. I've got a fifth drive that I usually run as a hot spare (but have out of the array at the moment), but if I can I'd like to add that to the array and grow it to 2TB since I'm running out of space.
I Googled for guidance, but there seem to be a lot of differing opinions out there (many of them probably now out-of-date) as to whether or not that is possible and/or smart. What's the right way to go about this, or should I start looking into building a new array with more space?
Version details:
%> cat /etc/issue
Debian GNU/Linux 5.0 \n \l
%> uname -a
Linux magrathea 2.6.26-1-686-bigmem #1 SMP Sat Jan 10 19:13:22 UTC 2009 i686 GNU/Linux
%> /sbin/mdadm --version
mdadm - v2.6.7.2 - 14th November 2008
%> cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4]
md1 : active raid1 hdc1[0] hdd1[1]
293033536 blocks [2/2] [UU]
md0 : active raid5 sde1[3] sda1[0] sdc1[2] sdb1[1]
1465151808 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]
© Server Fault or respective owner