How to fix the bad sector in a RAID configured Hard drive ?
Assuming that only a single HDD has bad sectors, you may need to replace this disk. Make sure you replace the disk according to the RAID controller's documentation to ensure that the new HDD is going to be properly rebuilt from the information on the remaining disk(s) in the RAID set.
André
What do you mean with "bad sector" and how did you find it?
I'm asking because every drive (both hdd as well as ssd) has certain amount of spare-sectors (not visible to users) and handles this automatically: when some sector becomes "weak" (problems with reading/writing), it is marked as "bad" and one of spare-sectors is re-mapped to it. This also happens even if some sector suddenly becomes "bad" (without previous warnings), but in this case data saved in that sector is lost.
So I recommend to check full S.M.A.R.T. status of your drive, see how many bad sectors you have, how many (un)correctable errors, how many re-allocated sectors, etc. It is not necessary to change drive as soon as single sector becomes bad. But the only true way of "fixing" bad sector is replacing drive.