support attribute cleanup for nice single value column
[gnt-info] / doc / megacli-replace-disk.txt
1 # find new disk
2
3 megacli -PDList -aALL | less
4
5 root@lib26:/home/dpavlin# megacli -PDList -aALL | grep -B 17 -A 6 Unconfigured
6
7 Enclosure Device ID: 32
8 Slot Number: 6
9 Enclosure position: 1
10 Device Id: 6
11 WWN: 5002538d41e987b9
12 Sequence Number: 7
13 Media Error Count: 0
14 Other Error Count: 6
15 Predictive Failure Count: 0
16 Last Predictive Failure Event Seq Number: 0
17 PD Type: SATA
18
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]
22 Sector Size:  0
23 Firmware state: Unconfigured(good), Spun Up
24 Device Firmware Level: 3B6Q
25 Shield Counter: 0
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
30
31 # remember enclouser id 32 and slot 6 and verify it:
32
33 root@lib26:/srv/gnt-info# megacli -PdInfo -PhysDrv[32:6] -a 0
34
35
36 # check if JBOD is enabled on adapter
37
38 root@lib26:/home/dpavlin# megacli -AdpGetProp EnableJBOD -a0
39
40 Adapter 0: JBOD: Enabled
41
42 Exit Code: 0x00
43
44
45 # verify that there is foreign disk
46
47 root@lib26:/home/dpavlin# megacli -CfgForeign -Scan -aALL 
48                                      
49 There are 1 foreign configuration(s) on controller 0.
50
51 Exit Code: 0x00
52
53
54 # verify that it's new drive
55
56 root@lib26:/home/dpavlin# megacli -CfgForeign -Dsply 0 -a0
57
58
59 # clear foreign on drive
60
61 root@lib26:/home/dpavlin# megacli -CfgForeign -Clear 0 -a0
62
63 Foreign configuration 0 is cleared on controller 0.
64
65 Exit Code: 0x00
66
67
68 # turn disk to JBOD
69
70 root@lib26:/home/dpavlin# megacli -PDMakeJBOD -PhysDrv[32:6] -a0
71
72 Adapter: 0: EnclId-32 SlotId-6 state changed to JBOD.
73
74 Exit Code: 0x00
75