MegaCLI - Mix of configured and unconfigured drives are not possible
  • 08 Feb 2023
  • 1 Minute to read
  • Dark
    Light

MegaCLI - Mix of configured and unconfigured drives are not possible

  • Dark
    Light

Article summary

When creating a RAID array using MegaCli, you may sometimes come across the below issue, which generally means that a Foreign Configuration may have existed on the drive:

 Mix of configured and unconfigured drives are not possible. 

To resolve this, you will first need to clear the drive, so that "Foreign State", is empty;

root@server [/opt/MegaRAID/MegaCli]# ./MegaCli64 -CfgForeign -Clear -A0

Foreign configuration 0 is cleared on controller 0.

Exit Code: 0x00

root@server [/opt/MegaRAID/MegaCli]# ./MegaCli64 -Pdlist -A0 | grep 'Foreign State'

Foreign State: None

Foreign State: None

Foreign State: None

Foreign State: None

Foreign State: None

Foreign State: None

Foreign State: None

Foreign State: None

Once that has been done, you should be able to add the drives within the RAID, as you normally would.

root@server [/opt/MegaRAID/MegaCli]# ./MegaCli64 -CfgLdAdd -r 1 [252:6, 252:7] -a0

Adapter 0: Created VD 2

Adapter 0: Configured the Adapter!!

Exit Code: 0x00

Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence