3 megacli -PDList -aALL | less
5 root@lib26:/home/dpavlin# megacli -PDList -aALL | grep -B 17 -A 6 Unconfigured
7 Enclosure Device ID: 32
15 Predictive Failure Count: 0
16 Last Predictive Failure Event Seq Number: 0
19 Raw Size: 238.474 GB [0x1dcf32b0 Sectors]
20 Non Coerced Size: 237.974 GB [0x1dbf32b0 Sectors]
21 Coerced Size: 237.875 GB [0x1dbc0000 Sectors]
23 Firmware state: Unconfigured(good), Spun Up
24 Device Firmware Level: 3B6Q
26 Successful diagnostics completion on : N/A
27 SAS Address(0): 0x4433221102000000
28 Connected Port Number: 2(path0)
29 Inquiry Data: S39KNB0J416517P Samsung SSD 850 PRO 256GB EXM03B6Q
31 # remember enclouser id 32 and slot 6 and verify it:
33 root@lib26:/srv/gnt-info# megacli -PdInfo -PhysDrv[32:6] -a 0
36 # check if JBOD is enabled on adapter
38 root@lib26:/home/dpavlin# megacli -AdpGetProp EnableJBOD -a0
40 Adapter 0: JBOD: Enabled
45 # verify that there is foreign disk
47 root@lib26:/home/dpavlin# megacli -CfgForeign -Scan -aALL
49 There are 1 foreign configuration(s) on controller 0.
54 # verify that it's new drive
56 root@lib26:/home/dpavlin# megacli -CfgForeign -Dsply 0 -a0
59 # clear foreign on drive
61 root@lib26:/home/dpavlin# megacli -CfgForeign -Clear 0 -a0
63 Foreign configuration 0 is cleared on controller 0.
70 root@lib26:/home/dpavlin# megacli -PDMakeJBOD -PhysDrv[32:6] -a0
72 Adapter: 0: EnclId-32 SlotId-6 state changed to JBOD.