RAID5 with on-board controller, is it possible to move the HDDs to a new server?
Repeating what Mark Henderson said on Server Fault:
If you have a dedicated RAID controller that plugs into a PCI port, then you should be fine. All of the RAID data will be stored on the controller, with matching meta-data on the drives. Then you can just move the whole thing into another server. Some controllers will even let you shuffle the drives around so that they don't need to go back in the same order that they came out in (particularly useful when you have 14 disks).
If you are using software-based RAID (i.e. in Windows or Linux), then this too can be transported between machines. With Windows, when you put all the new disks in, it will ask you to import them and they should just start running without a hitch. With Linux I don't know the procedure but I suspect it would be something similar.
If you are using an on-board RAID controller, this is where things can get tricky. You have specified that you will be moving between different hardware, so if you were moving from say an Adaptec RAID controller to a 3Ware controller, then the chances of survival are minimal. If both the boards have the same brand of controller, they may be able to read the meta-data off the disks and re-create the array.
If you're VERY brave, you can create a new array on the new controller, and make sure that you use the exact same settings as the previous controller used (same stripe size, etc), and when it asks you if you want to initialise the array, say no, and hope for the best. I've had this work with a RAID0 and a RAID10, but never with a RAID5.
So the short answer is - if you want to be able to move it around easily, invest a hundred bucks into a proper RAID controller and just move the whole thing over in one hit.
I personally use hardware RAID and have not had to do this, but I have been considering moving my 2x2TB hard drives to NAS for the household to use. Even with what they said, I would still personally take a backup if possible of at least your most important files just in case. Its always better to be safe than sorry.
To answer the question of what happens if the controller fails and you want to move the hard drives over to the new controller. You need to import these foreign hard drives into the new system. RAID stores the configuration on both the disks and the controller.
The exact method of doing this will be down to a per controller basis, but it appears you want the hard drive in the same slot numbers they were in, and you want to have a data backup on standby in case it goes awry. If you can get an identical controller, this seems to help.
It is important to remember with RAID you want a backup to go along side it. RAID keeps you going in the event of a drive failure. Backups protect you when it goes catastrophically wrong (Or you need to recover that file you accidentally deleted.)
I once tried this as part of a disaster recovery test. As Lister already pointed out, the only guarantee of success is using a dedicated RAID controller and have a spare one (or two) waiting for their golden moment. In my particular case I tested two different scenarios: Move only the disk to an other identical machine. Move the disk an the controller. Both went flawlessly.
If your business case dictates such a quick exchange of hardware it is almost certainly worth it spending a couple hundred bucks for an easy swap solution. If you just have two hours of work instead of four, it already paid for itself. If you find it difficult to justify the cost, you might consider software raid instead, while it is cheaper you need to take a performance hit into account.
I strongly advice against using on-board of a mother board. Most solutions are only half backed and have all sorts of quirks and pitfalls. Like only one halfe of the sata ports can actually be used in a raid, or using the host cpu for parity operations, making the host almost unresponsive during a rebuild and other fun stuff. More than once I saved a system by just grabbing a replacement controller from ebay, even long after EOL of the product. That might be difficult with many consumer grade motherboards
I've done that.
I did not know what the stripe size was, or whether there was some other structures on the disk to control things. So I used a software product that, among other things, can recover raid drives. I gave it the individual drives and it told me what the stripe size was and let me copy the files to another drive.
When I setup the motherboard raid settings for those drives, I used the stripe size and order it had told me, and it worked! But if it hadn’t, I would have just reformatted and restored from the backup.