I have raid array intel srcsas18e. Today I saw that OS was shutdown and status two hdds is "foreign unconf bad". Both hdds were in one virtual drive. But I do not find this virtual drive in a config. I try to make unconf good. And now I can see that these hdds is foreign unconf good. I can't create new virtual drive with these two hdds. How can I repair this virtual drive or create new vd?
According to this user manual (which some idiot disabled copying text from), the "Foreign" state means that the controller sees that there is RAID configuration information on the drive but to prevent accidentally screwing up the data, it will not automatically use the drive unless you first scan the drive to examine the configuration. Apparently you will be able to either wipe the configuration (and erase all data) or import the configuration.
Most likely, the drives were marked as Bad due to failure though, I would recommend replacing them with new drives and restoring from backup.