About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
When a MegaRAID controller prints Foreign configuration(s) found on adapter. at boot, it has found drives that carry RAID metadata which does not belong to any volume it knows. Broadcom's boot message table gives the action as "Either import the configuration settings of the inserted storage device or delete the RAID volume." Do not choose yet. Protect the data, read the foreign configuration with storcli64 /c0/fall show all, and decide from what it lists: importing brings the array in, while deleting it has no documented way back.
What the symptom means
Broadcom's boot message table lists the message with the prompt: "Press any key to continue or press F to import foreign configuration(s) and continue." The cause given is "A storage device was inserted with the metadata that does not belong to any RAID volumes recognized by the controller."
The glossary defines the term: a foreign configuration is "A RAID configuration that already exists on a replacement set of drives that you install in a computer system." It adds that the configuration can be imported into the controller, "or you can clear the configuration so you can create a new one."
In StorCLI the object /cx/fall is "for all foreign configurations on controller x". Import and delete therefore act on every foreign configuration the controller holds, not on one. Broadcom's Set Controller Properties page lists a controller property, foreignautoimport, "Imports a foreign configuration automatically, at boot." The boot message table points to a property named autoEnhancedImport, and the pages do not say how the two relate.
Likely causes
| Cause | What you see | How to confirm |
|---|---|---|
| Drives from an array moved to another controller or server | The message at boot; all the moved drives listed as foreign | /c0/fall show all lists a configuration with the expected drive count |
| A drive that belonged to another array was inserted as a replacement | The message at boot; one foreign configuration with a single drive | /c0/fall show all lists one drive that is not part of this array |
| The controller was replaced or its configuration was lost | The message, with the old array's drives all foreign and no virtual drive on the controller | /c0 show lists foreign configurations and no virtual drive |
| The foreign configuration is encrypted with a security key | An import without the key does not work | Broadcom's page says to provide the security key when importing a locked foreign configuration created in a different machine |
Prove the cause before changing anything
These commands only read. Use the controller number your system reports in place of /c0. Broadcom's pages write the command as storcli or storcli64 depending on the page.
1. Read the controller summary. Broadcom says storcli /cx show shows "basic controller information, foreign configurations, drive groups, virtual drives, physical drives, enclosures, and BBU information":
storcli64 /c0 show
2. Show the foreign configuration in full. The page says /fall show "shows the summary of the entire foreign configuration for a particular controller", and the all option shows all the information:
storcli64 /c0/fall show all
A good result lists one configuration whose drives you expect, such as the original members of the array. A bad result lists a drive you cannot account for, or a configuration of the wrong size. Do not import or delete until you can name every drive listed.
3. Show the physical drives. The page says /eall/sall show shows "the summary information for all the enclosures and physical drives connected to the controller":
storcli64 /c0/eall/sall show
4. Check for missing drives and preserved cache. The pages say /dall show "finds the missing drives", and show preservedCache shows a virtual drive that has preserved cache and whether it is "offline or missing":
storcli64 /c0/dall show
storcli64 /c0 show preservedCache
Broadcom says the controller keeps preserved cache when a volume goes offline or is deleted because of missing physical drives. If the second command lists a virtual drive, do not import or delete until you know what that cache belongs to; this caution is our advice.
Fix
Protect the data first
Protect the data before either choice. Broadcom's pages do not say to copy data first; this is our advice. If the foreign drives hold an array you need, do not delete anything, and if any drive in it is failing, see A failing disk in a Linux server: image it before you repair it for the imaging approach.
Choose import or clear
Import when the listed configuration is the array you want back. Clear only when every foreign configuration listed is one you do not need. Because /fall covers all foreign configurations on the controller, a controller holding one you want and one you do not cannot clear selectively. Broadcom's pages give no way to act on one foreign configuration, and they give no step for pulling a drive in this case. Physically removing the unwanted drive before importing is our own advice, and Broadcom's pages describe no result for it.
Before any drive is pulled, identify the exact drive with read-only commands:
storcli64 /c0/eall/sall show
storcli64 /c0/fall show all
Match the unwanted drive to its enclosure and slot by serial number and your own records. Then save the current state:
storcli64 /c0/fall show all > c0-foreign-before-removal.txt
Disruptive step: the next step pulls the named drive out of its bay. Pulling the wrong drive takes a second drive away from the array you want, and Broadcom's pages give no way to undo it.
Remove only the drive whose enclosure, slot and serial number match your record, then run storcli64 /c0/fall show all again.
To back out: reinsert the drive into the same bay. Broadcom's pages do not describe the result, so read storcli64 /c0/eall/sall show and storcli64 /c0/fall show all and compare them with c0-foreign-before-removal.txt.
Import the foreign configuration
The page says /fall import "imports the foreign configurations of a controller" and that the preview option "shows a summary of the foreign configuration before importing it". A locked configuration also needs its security key; the StorCLI2 syntax takes a security key and key ID, or a key file.
First save the current state:
storcli64 /c0 show all > c0-before.txt
storcli64 /c0/fall show all > c0-foreign-before.txt
Run the preview first. It only reads and imports nothing:
storcli64 /c0/fall import preview
Read the preview and compare it with storcli64 /c0/fall show all and the saved c0-foreign-before.txt. Go on only if it lists the drives and virtual drives you expect; if it differs, stop here.
Risk: the next command imports every foreign configuration on the controller into its active configuration. Broadcom's pages give no command that reverses an import, so the check after it is a check, not an undo.
Run the import:
storcli64 /c0/fall import
To back out: Broadcom's page gives no way to undo an import. Compare the result with the saved files and with the preview:
storcli64 /c0/fall show all
storcli64 /c0/vall show
Clear the foreign configuration
First select and show the exact configuration. Run storcli64 /c0/fall show all again and confirm every drive listed is one you do not need. Broadcom's page says /fall delete "deletes the foreign configuration of a controller", and that a locked JBOD needs the reprovision command instead.
First save the current state:
storcli64 /c0/fall show all > c0-foreign-before-delete.txt
Disruptive step: the next command deletes all foreign configurations on the controller. Broadcom's page gives no command to restore a deleted configuration, so treat it as unrecoverable.
Delete the foreign configuration:
storcli64 /c0/fall delete
Broadcom's page gives no way to undo it. Afterwards run storcli64 /c0/fall show all and compare it with the saved file; nothing is listed when the delete has worked.
Example (illustrative): fs01 has a replacement controller after its original failed. At boot it prints Foreign configuration(s) found on adapter. The engineer runs storcli64 /c0 show, which lists one foreign configuration and no virtual drive. storcli64 /c0/fall show all lists four drives of 2 TB each, the original members of a RAID 5 array, which holds (4 - 1) x 2 TB = 6 TB. storcli64 /c0/dall show finds no missing drive and show preservedCache lists nothing. The engineer saves the output, runs import preview, sees the same four drives, imports, and then storcli64 /c0/vall show lists one virtual drive of about 6 TB.
Confirm the fix
storcli64 /c0/fall show alllists no foreign configuration.storcli64 /c0/vall showlists the virtual drive you expect. Broadcom's glossary says an optimal virtual drive is shown asoptl.- The operating system sees the volume, and the application data checks out at the file or database level, which StorCLI cannot test.
- The boot message no longer appears at the next restart, which Broadcom lists as the prompt for a foreign configuration.
What to watch afterwards
- Read the virtual drive state again after the next boot. A degraded state is handled in StorCLI virtual drive state dgrd or Pdgd: find the drive and watch the rebuild.
- Check
foreignautoimport, read withshow foreignautoimport, and our own advice is to leave it off unless you want foreign configurations imported without a prompt. - Record the import in your change log with the saved files.
Read next
Related articles you may want next.
- TroubleshootingStorCLI virtual drive state dgrd or Pdgd: find the drive and watch the rebuildStorCLI shows a virtual drive dgrd or Pdgd? Find the failed, missing or UBad drive, protect the data, then follow the rebuild until it is optl.Read article
- Backup & RecoveryOut-of-band management for bare-metal recovery: virtual media, Redfish and BMC readinessHow remote management controllers help bare-metal recovery: Redfish virtual media, one-time boot overrides, consoles, and preparing and protecting the BMC.Read article
- Backup & RecoveryA failing disk in a Linux server: image it before you repair itWhy a failing Linux disk should be imaged before repair: SMART evidence, ddrescue and its mapfile, read-only checks, and repairing the copy, not the original.Read article
Risks and limits
- These commands have not been run or lab-tested.
- Import and delete act on all foreign configurations on the controller.
- Deleting a foreign configuration has no documented undo.
- Broadcom notes that "Import from MR to iMR is based on the original configuration being within the abilities of the new controller." Moving drives between different controller families can fail.
- The commands above are Broadcom's StorCLI syntax. For a Dell PERC controller, use Dell's PERC CLI reference guide.
- StorCLI2 (MegaRAID 8 tri-mode) uses
storcli2with a key file option for locked configurations; its page lists the same three operations.
Sources
- Foreign Configuration Commands — Broadcom TechDocs, 12Gb/s MegaRAID Tri-Mode Software 1.0, Last Updated September 23, 2026, accessed 2 December 2026
- Foreign Configuration Commands — Broadcom TechDocs, MegaRAID 8 tri-mode software (StorCLI2), Last Updated October 30, 2026, accessed 2 December 2026
- Differences in the System Boot Mode — Broadcom TechDocs, 12Gb/s MegaRAID Tri-Mode Software 1.0, Last Updated September 23, 2026, accessed 2 December 2026
- Glossary — Broadcom TechDocs, 12Gb/s MegaRAID Tri-Mode Software 1.0, Last Updated September 23, 2026, accessed 2 December 2026
- StorCLI Tool Command Syntax — Broadcom TechDocs, 12Gb/s MegaRAID Tri-Mode Software 1.0, Last Updated September 23, 2026, accessed 2 December 2026
- Controller Show Commands — Broadcom TechDocs, 12Gb/s MegaRAID Tri-Mode Software 1.0, Last Updated September 23, 2026, accessed 2 December 2026
- Drive Show Commands — Broadcom TechDocs, 12Gb/s MegaRAID Tri-Mode Software 1.0, Last Updated September 23, 2026, accessed 2 December 2026
- Missing Drives Commands — Broadcom TechDocs, 12Gb/s MegaRAID Tri-Mode Software 1.0, Last Updated September 23, 2026, accessed 2 December 2026
- Preserved Cache Commands — Broadcom TechDocs, 12Gb/s MegaRAID Tri-Mode Software 1.0, Last Updated September 23, 2026, accessed 2 December 2026
- Set Controller Properties Commands — Broadcom TechDocs, 12Gb/s MegaRAID Tri-Mode Software 1.0, Last Updated September 23, 2026, accessed 2 December 2026
- Show Controller Properties Commands — Broadcom TechDocs, 12Gb/s MegaRAID Tri-Mode Software 1.0, Last Updated September 23, 2026, accessed 2 December 2026
This article was originally published on .