Skip to main content
Skip table of contents

Disk marked as Foreign or Bad?

Some times when you replace a disk you may find the new disk marked as “Foreign”. The “Foreign” state means the controller has detected a raid signature on this disk from a previous configuration. This will prevent you from using the disk before the foreign state is cleared out. In order to use the disk we can clear this attribute using the MegaCli tool.

Changing the status from Bad to good

CODE
# MegaCli64 -PDMakeGood -PhysDrv [<enclosure#>:<slot#>] -a<# or ALL>

[root@localhost MegaCli]# ./MegaCli64 -PDMakeGood -PhysDrv[252:0] -aALL
Adapter: 0: EnclId-252 SlotId-0 state changed to Unconfigured-Good.
Exit Code: 0x00
[root@localhost MegaCli]#

Clear the foreign setting

CODE
# MegaCli64 -CfgForeign -Clear -a<# or ALL>

[root@localhost MegaCli]# ./MegaCli64 -CfgForeign -Clear -aALL
Foreign configuration 0 is cleared on controller 0.
Exit Code: 0x00
[root@localhost MegaCli]#
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.