Changes between Version 42 and Version 43 of LSIMegaRAIDSAS


Ignore:
Timestamp:
14/10/2009 15:22:43 (9 years ago)
Author:
Adam Cécile
Comment:

Add a section to rebuild a drive by hand

Legend:

Unmodified
Added
Removed
Modified
  • LSIMegaRAIDSAS

    v42 v43  
    395395}}}
    396396
    397 
    398397'''References (extracted from Dell !OpenManage doc):'''
    399398
     
    413412    * Cache I/O. Specifies that all reads are buffered in cache memory.
    414413    * Direct I/O. Specifies that reads are not buffered in cache memory. When using direct I/O, data is transferred to the controller cache and the host system simultaneously during a read request. If a subsequent read request requires data from the same data block, it can be read directly from the controller cache. The direct I/O setting does not override the cache policy settings. Direct I/O is also the default setting.
     414
     415==== Rebuilding a disk by hand when it doesn't occur automatically ====
     416
     417I noticed that strange behavior on an IBM controller. Unplugging and pluging back a disk from an array doesn't make the controller rebuild the array with that disk.[[BR]]
     418Here is what to do:
     419
     420{{{
     421server:~# megacli -PDlist -a0
     422[...]
     423Enclosure Device ID: 252
     424Slot Number: 4         
     425Device Id: 3           
     426[...]
     427Firmware state: Unconfigured(bad)
     428[...]
     429Secured: Unsecured
     430Locked: Unlocked
     431Foreign State: Foreign
     432Foreign Secure: Drive is not secured by a foreign lock key
     433Device Speed: 6.0Gb/s
     434Link Speed: 3.0Gb/s
     435Media Type: Hard Disk Device
     436[...]
     437}}}
     438The disk drive identified as ![252:4] ([enclosureid:slotnumber]) is currently 'Unconfigured(bad)'.
     439
     440Make the drive online again:
     441{{{
     442server:~# megacli -PDMakeGood -PhysDrv[252:4] -a0
     443Adapter: 0: EnclId-252 SlotId-4 state changed to Unconfigured-Good.
     444}}}
     445
     446The controller will now recognise the disk as being a "foreign" one. It means it has detected some RAID informations on it, and thus, considers it as a disk being part of an array that may be imported into current controller configuration.[[BR]]
     447
     448We will now ask the controller to scan for foreign configuration and drop it:
     449{{{
     450server:~# megacli -CfgForeign -Scan -a0
     451There are 1 foreign configuration(s) on controller 0.
     452
     453server:~# megacli -CfgForeign -Clear -a0
     454Foreign configuration 0 is cleared on controller 0.
     455}}}
     456
     457The disk should now be available for getting back into the array.[[BR]]
     458Let's check it:
     459{{{
     460server:~# megacli -PDList -a0
     461[...]
     462Enclosure Device ID: 252
     463Slot Number: 4         
     464[...]
     465Firmware state: Unconfigured(good), Spun Up
     466Foreign State: None
     467[...]
     468}}}
     469
     470We now need to figure out how that disk was identified inside the RAID array:
     471{{{
     472server:~# megacli -CfgDsply -a0
     473[...]
     474DISK GROUPS: 1
     475Number of Spans: 1
     476SPAN: 0           
     477Span Reference: 0x01
     478Number of PDs: 4   
     479Number of VDs: 1   
     480Number of dedicated Hotspares: 0
     481Virtual Disk Information:       
     482Virtual Disk: 0 (Target Id: 1)
     483[...]
     484
     485Physical Disk: 2
     486
     487Physical Disk: 3
     488Enclosure Device ID: 252
     489Slot Number: 5         
     490Device Id: 4           
     491[...]
     492}}}
     493
     494Here is what's important here:
     495
     496''Span Reference: 0x01'' is the number of the array (strip the 0x0 part).[[BR]]
     497We can see that ''Physical Disk: 2'' has no information, which means the drive is missing.[[BR]]
     498
     499Now we have all we need to add the disk back into the array.
     500
     501Get the disk [252:4] back into array 1, as disk 2:
     502{{{
     503server:~# megacli -PdReplaceMissing -PhysDrv[252:4] -array1 -row2 -a0
     504Adapter: 0: Missing PD at Array 1, Row 2 is replaced
     505}}}
     506
     507And finally start rebuilding:
     508{{{
     509server:~# megacli -PDRbld -Start -PhysDrv[252:4] -a0
     510Started rebuild progress on device(Encl-252 Slot-4)
     511}}}
    415512
    416513=== 3.3.3. Periodic checks ===