Professional Documents
Culture Documents
MegaRaid CLI Common Usage (Rev.5) PDF
MegaRaid CLI Common Usage (Rev.5) PDF
MegaRaid CLI Common Usage (Rev.5) PDF
Drive States
Beep Codes
Command output:
>MegaCli64 -pdgetmissing -a0 Adapter 0 - Missing Physical drives
No.
Array
Row
Size Expected
571808 MB
No. = An incremented number list of the missing drives. New missing drives get put to the top (i.e. made No. 0) Array = Equivalent to Virtual Drive number gotten by running MegaCli64 ldinfo lall aall Array 0 = (disks 0-17) RAID60 (/backups) Array 1 = (disks 18-35) RAID60 (/backups) Array 2 = 2 disk RAID1 (/var/opt/unitrends/database) Row = The row (counting bottom to top) that the specified disk resides in. The back backplane which is part of Array 1 continues over starting with row 6, 7, 8 (bottom to top).
Process for reseating a drive: 1. Reset drive 2. Validate that you have a drive with Unconfigured (bad), Spun Up
MegaCli64 pdlist aall | grep Enclosure Device ID\|Slot Number\|Firmware state
4. Scan for Foreign Drives (Drives with existing 9260 RAID configurations)
MegaCli64 cfgforeign scan aall
6. Find Missing Drives (This tells you the correct Array and Row numbers)
MegaCli64 pdgetmissing aall
7. Replace missing drive (where N in arrayN and rowN are taken from step 6)
MegaCli64 pdreplacemissing physdrv [E:S] arrayN rowN a0
Flash Firmware:
MegCli64 adpfwflash f filename aall Filename = ROM file
Options:
-getevents: Gets event log entry details. The information shown consists of total number of entries available at the firmware side since the last clear and details of each entries of the error log. -info: Informational message. No user action is necessary. -warning: A component may be close to a failure point. -critical: A component has failed, but the system has not lost data. -fatal: A component has failed, and data loss has occurred or will occur. -getsinceshutdown: Displays all of the events since last controller shutdown. -getsincereboot: Displays all of the events since last controller reboot. -includedeleted: Displays all events, including deleted events. -getlatest: Displays the latest number of events, if any exist. The event data will be written to a file (.txt) in reverse order. -getccincon: Displays the events relating to inconsistent data found during a consistency check. The event data will be written to a file (.txt).
References:
MegaCLI Commands. (2011, December 8). Retrieved from the serve: http://www.theserve.co.uk/web-hosting-blog/megaclicommands How to replace a drive in an array if the rebuild does not start automatically. (2012, June 18). Retrieved from Hetzner Online: http://wiki.hetzner.de/index.php/LSI_RAID_Controller/en Kahler, S. (2010, November 2). You are replaced. Retrieved from SimpIT: http://www.simpit.com/wordpress/?p=595 LSI. (2012, August). MegaRAID SAS Software User Guide. Retrieved from LSI: http://www.lsi.com/channel/products/storagecomponents/Pages/MegaRAIDSAS9260-4i.aspx Mertinkat, M. (2008, May 20). DELL PERC5/i Integrated (LSI Logic MegaRAID). Retrieved from http://tools.rapidsoft.de/perc/perc-cheat-sheet.html