Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I run a server with 2 drives in raid0 configured through BIOS. I just added 2 more drives using hotplug (the server is dell r610 with RHEL 5.4 64bit) and I would like to configure a separate raid0 partition on these drives. I am getting the following error:

/opt/MegaRAID/MegaCli/MegaCli64 -CfgLdAdd r0[32:2, 32:3] -a0

The specified physical disk does not have the appropriate attributes to complete the requested command.

Exit Code: 0x26

All the parameters are correct and there is just no reason why this command could not work, see this (fujitsu is current raid, seagate is the new one I want to create):

/opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL | egrep 'Adapter|Enclosure|Slot|Inquiry'
Adapter #0
Enclosure Device ID: 32
Slot Number: 0
Enclosure position: 0
Inquiry Data: FUJITSU MBD2147RC       D807D0A4PA101174
Enclosure Device ID: 32
Slot Number: 1
Enclosure position: 0
Inquiry Data: FUJITSU MBD2147RC       D807D0A4PA10115T
Enclosure Device ID: 32
Slot Number: 2
Enclosure position: 0
Inquiry Data: SEAGATE ST9300603SS     FS033SE0TF5K
Enclosure Device ID: 32
Slot Number: 3
Enclosure position: 0
Inquiry Data: SEAGATE ST9300603SS     FS023SE070FK

I also tried to set up the drive as hotspare, also some strange error:

/opt/MegaRAID/MegaCli/MegaCli64 -PDHSP -Set -physdrv[32:3] -a0

Adapter: 0: Set Physical Drive at EnclId-32 SlotId-3 as Hot Spare Failed.

FW error description: The specified device is in a state that doesn't support the requested command.

Exit Code: 0x32

As you can see the disk is in Unconfigured, Good state:

Enclosure Device ID: 32
Slot Number: 3
Enclosure position: 0
Device Id: 3
Sequence Number: 1
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SAS
Raw Size: 279.396 GB [0x22ecb25c Sectors]
Non Coerced Size: 278.896 GB [0x22dcb25c Sectors]
Coerced Size: 278.875 GB [0x22dc0000 Sectors]
Firmware state: Unconfigured(good), Spun Up
SAS Address(0): 0x5000c50005cd20b1
SAS Address(1): 0x0
Connected Port Number: 3(path0)
Inquiry Data: SEAGATE ST9300603SS     FS023SE070FK
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Needs EKM Attention: No
Foreign State: Foreign
Foreign Secure: Drive is not secured by a foreign lock key
Device Speed: Unknown
Link Speed: Unknown
Media Type: Hard Disk Device
Drive Temperature :30C (86.00 F)
share|improve this question
add comment

1 Answer

The drive is marked as "Foreign", it probably comes from some other RAID controller. I guess you may need to clear it first :

MegaCli64 -CfgForeign -Scan -Clear

share|improve this answer
    
for a short moment I though you are correct, I even found a comment on google saying that "drives with foreign state are not usable in a new controller until that state is removed", also the drives I am trying to use were previous used in another server!!! however there seems the new controller doesn't find any foreign configuration, see below: /opt/MegaRAID/MegaCli/MegaCli64 -CfgForeign -Scan -a0 There is no foreign configuration on controller 0. ps. why is the formatting which worked during "answer a question" not working in comments? –  Stefan Nov 18 '11 at 23:16
1  
also /opt/MegaRAID/MegaCli/MegaCli64 -CfgForeign -Clear -aALL There is no foreign configuration on controller 0. –  Stefan Nov 18 '11 at 23:19
    
I moved these drives to another server (non production) and this cleared the foreign state!!! moved drives back to production server, the foreign state is still cleared, now trying to create raid on these drives :) –  Stefan Nov 19 '11 at 1:14
1  
yes creating the raid worked now :) thanks for the clue!! –  Stefan Nov 19 '11 at 1:27
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.