I'm shopping for a new server and have been using software RAIDs.
But I wondered about doing recovery on a hardware RAID vs a software one. I know with a software RAID you have to enter a series of commands to get the replacement drive working back in the RAID so it can re-sync.
What has to be done in a hardware RAID after you replace the failed hard drive? Is it easier and less time consuming than for a software RAID?
答案1
Software RAID is safer from a recovery point of view from because you can put the remaining disks into any system which will read them - you do not need to worry about the specifics of the RAID controller.
The commands to re-add software RAID are really not that hard at all.
Removing a disk: mdadm --fail /dev/mdX /dev/disk-to-fail --remove /dev/disk-to-fail
Adding a new one (after partitioning it) mdadm --add /dev/mdX /dev/disk-to-add
Hardware RAID can often be easier as it can just be a matter of unplugging one disk and plugging in a replacement - and normally it will just rebuild itself.... which is fine unless the controller or PC goes Kaput. Chances of this happening are not high, but are non-zero.