Fixing a drive labeled foreign by a LSI/ Avago SAS controller

3
LSI MegaRAID Scan Foreign Configuration
LSI MegaRAID Scan Foreign Configuration

Here is one from the mailbag about how to fix a drive labeled as foreign by a LSI/ Avago SAS controller when it is inserted into a system. For years now this question has come up in various forms so today it is time to show the easy fix. What is happening is that the drive was previously inserted on another machine and a LSI/ Avago configuration was previously written on it. That is causing the drive to be labeled as foreign.

The Foreign Drive Problem

Although this question has been asked many times to date, here is the latest question:

Tim from Florida asks:

“STH I found info on my LSI 9271-8i and LSI 9300-8i here. I’m trying to migrate my old VM store SSD to a ZoL on [Hyper-V] server. When I try, I can see the drive in the LSI utility, but it doesn’t immediately register for me to pass-through like others. It says it is a foreign drive. I was reading that LSI to LSI is supposed to work. How do I fix it?”

That does summarize the use case well. We recreated this in our lab using an onboard LSI SAS 3008 HBA.

LSI MegaRAID Foreign Configuration
LSI MegaRAID Foreign Configuration

Here one can see our Samsung SM1625 SAS SSD is labeled as a foreign drive in MegaRAID Storage Manager. Other drives do not have the (Foreign) label nor the blue arrow on the drive. Like our use case, we are going to clear the previous configuration (RAID 0 from the Samsung SM1625 200GB SSD RAID 0 testing) and make it usable as a data drive again.

The Solution to Fix a Drive Labeled as Foreign by a LSI/ Avago SAS controller

The solution to our use case is to reset the drive’s configuration. Somewhat counter-intuitively (when managing one newly added foreign drive) one needs to click on the controller not the drive in MSM. Then select Go To -> Controller -> Scan Foreign Configuration as shown below.

LSI MegaRAID Scan Foreign Configuration
LSI MegaRAID Scan Foreign Configuration

At this point, MSM will scan drives on the controller and say how many foreign drives it found. In our use case we have only one. There are two options: Import and Clear. If you were bringing over two drives in RAID 1, and wanted to keep the RAID 1 array intact, using Import would be a good option. In our use case we are just trying to access the SAS SSD as a single device so we will select Clear: Remove logical configuration from all foreign drives.

LSI MegaRAID Foreign Configuration - Import or Clear
LSI MegaRAID Foreign Configuration – Import or Clear

This will bring up a confirmation prompt. Click the checkbox and say yes assuming you do want to clear the configuration.

LSI MegaRAID Confirm Clear Configuration
LSI MegaRAID Confirm Clear Configuration

It may take a second or two but you should get a confirmation window.

LSI MegaRAID Clear is Successful
LSI MegaRAID Clear is Successful

One can see in the screenshot above that the Slot: 2, SSD (SAS) device, our test Samsung SM1625 SSD no longer has the blue arrow and is no longer labeled a “Foreign” device.

That is all there is to this. Hopefully this will answer many of the questions we get.

3 COMMENTS

  1. You saved me with this info brother. I couldn’t figure out how to import foreign disks and my virtual disk was Offline! After importing them using the Goto -> Controller -> Scan Foreign Configuration my virtual disk is back up and is rebuilding! Thanks so much.

LEAVE A REPLY

Please enter your comment!
Please enter your name here