What to do if your replacement drive already has metadata on it.
You will want to have the drives in a 'Unconfigured Good' state so that you can right click on them and mark them as hot spare to be used for the rebuild operation.
If you insert these drives and they appear to the LSI controller as having a foreign configuration or 'Unconfigured Good Foreign', you will need to use the LSI controller BIOS or MegaCLI command utility to remove the foreign configuration metadata from the disks.
We do provide a "qs-util megaclearforeign" command that runs the megacli command line utility to clear the foreign configuration information from all disks in the controller that may have that foreign controller metadata.
If you are unsure about doing this on a live system, one option would be to plug the disks into a lab system and use the LSI BIOS or MegaCLI utitlity to clear the foreign configuration from the disks.
Please review this link for additional information: