LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 10-15-2010, 12:35 PM   #1
alecjtaylor
LQ Newbie
 
Registered: Oct 2010
Location: Leeds, UK
Distribution: Ubuntu and Mac OSX
Posts: 18

Rep: Reputation: 0
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!


Thanks

Alec
 
Old 10-15-2010, 01:07 PM   #2
Stephannn
Member
 
Registered: Oct 2010
Location: San Francisco, CA
Distribution: Snow Leopard, Ubuntu, RedHat
Posts: 64

Rep: Reputation: 14
Hi Alec,

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.

Last edited by Stephannn; 10-15-2010 at 01:08 PM.
 
1 members found this post helpful.
Old 10-16-2010, 01:53 PM   #3
alecjtaylor
LQ Newbie
 
Registered: Oct 2010
Location: Leeds, UK
Distribution: Ubuntu and Mac OSX
Posts: 18

Original Poster
Rep: Reputation: 0
Ah, I thought that might be the case!

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.

Thanks for clarifying things.

Alec
 
Old 10-16-2010, 02:31 PM   #4
Stephannn
Member
 
Registered: Oct 2010
Location: San Francisco, CA
Distribution: Snow Leopard, Ubuntu, RedHat
Posts: 64

Rep: Reputation: 14
Hi Alec,

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.
 
Old 10-17-2010, 11:50 AM   #5
alecjtaylor
LQ Newbie
 
Registered: Oct 2010
Location: Leeds, UK
Distribution: Ubuntu and Mac OSX
Posts: 18

Original Poster
Rep: Reputation: 0
Good idea, however, I've found a better solution. I'll borrow one of the new 4TB portable raid drives we've just ordered at work this week!

Thanks for all the help

Alec
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
replacing dead hdd in software raid and lvm. engkeboy Linux - Newbie 1 08-31-2008 01:20 PM
replacing dead hdd in software raid and lvm. engkeboy Linux - Server 1 08-30-2008 04:29 AM
Replacing a drive in /boot, software RAID-1 + GRUB tobiasly Linux - Hardware 1 12-21-2005 12:08 AM
Upgrading hard drives on Software raid 1 boot drives. linuxboy123 Linux - General 0 12-11-2003 03:28 PM


All times are GMT -5. The time now is 05:52 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration