I trust you mean RAID 1.. It is always best to have it in hardware. Your disk controller must support it and you should use two identical drives or at least two same sized drives. Software RAID is also possible but that is dodgy, more difficult to set up and OS dependent. It will also be a performance hit to do in software.