Replacing drives in a software raid 5 (Ubuntu 10.10)
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Replacing drives in a software raid 5 (Ubuntu 10.10)
Hi Guys,
This is the first question I've had to post in 2 years of using linux, who says its not easy to use ! Anyway down to business....
I've got a 3x400gig software raid 5 array running on Ubuntu 10.10 in my file server. The array is running well and was installed and managed by mdadm.
I'd like to add more capacity to the array but I don't have enough spare sata ports to set up a larger capacity array and move the data across.
Would it be possible to swap, one by one, the 400gig drives with larger drives to increase the size of my current array? i.e. have 2 400gig drives and 1 larger drive, wait until the array has rebuilt, add another drive, wait until its rebuilt, add the final drive, then hopefully increase the storage capacity of the array?
I am aware you can add drives to an existing raid 5 array but I don't have enough spare ports (or enough space in the case!) to do this.
I've been hunting round many forums for advice but I've not found anything useful so far, any advice you guys can give would be really helpful!
Unfortunately, I don't believe it will work in that manner; the RAID's size is determined when it's first created.
A couple of better solutions would be to either buy a Terabyte external drive and back the data up to that drive, then swap the smaller drives out for larger ones and build a new array, or to purchase an SATA controller card (a four port SATA PCI controller card runs only around $30) and a larger case, and add additional drives through that controller (up to a total of seven drives at this point.) Bear in mind, if you add (for example) four 1 Terabyte drives through an additional controller, the existing RAID will only be able to add 400 GB per drive, though you could certainly partition the drives and create a second array with the remaining 600 GB per drive.
Thanks for the info Stephannn , I think I'll look into getting a sata card, a second power supply for the new drives and some temporary storage while I migrate the data.
Good deal. As a suggestion, if you were to go with the TB drive solution, you could (in practice) connect it through your new SATA controller, copy the data over from your RAID to the one drive (since you'll have a max of 800GB to store), and then set up a RAID 5 array with two disks (starting the array in 'degraded' mode), then copy the data from the first TB drive to the new RAID array, then add that drive to the array. This would let you have just the three drives if that's sufficient for your needs. If you only use four hard drives, you might be able to squeak by with a 'normal' power supply.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.