MegaCli/MegaCli tutorial: Key Concepts and Basic Operations
Basic concepts
The basic unit is a physical disk. Each disk can be identified by its enclosure ID and slot number.Multiple physical disks may be grouped to form a logical disk. Each such disk can be identified by its device id, and has its own RAID level.
The logical disks are managed by adapters.
The first thing to do is to find how the logical and physical disks are arranged.
- Show all logical disks: MegaCli64 -LDInfo -LALL -aALL
- Show all physical disks: MegaCli64 -PDList -aALL
- Show the hierarchy of logical and physical disks managed by different adapters: MegaCli64 -LdPdInfo -aALL
- [Primary-0, Secondary-0, RAID Level Qualifier-0] = RAID-0
- [Primary-1, Secondary-0, RAID Level Qualifier-0] = RAID-1
- [Primary-5, Secondary-0, RAID Level Qualifier-3] = RAID-5
- [Primary-6, Secondary-0, RAID Level Qualifier-3] = RAID-6
- [Primary-1, Secondary-3, RAID Level Qualifier-0] = RAID-10
Basic operations
Remove/Add physical disks/logical disks
- Create a new logical driver (-r0 for RAID-0, -a0 for controller 0, 252:0 and 252:1 are the disclosure and device ids of the physical drives to be added): MegaCli64 -CfgLdAdd -r0 [252:0,252:1] -a0
- Remove a logical drive (-L1 for Virtual Drive 1): MegaCli64 -CfgLdDel -L1 -aAll
- Remove a physical drive (252:2 for enclosure id: 252, slot number: 2) from logical drive 0 (-L0) in RAID-0 (-r0): MegaCli64 -LDRecon -Start -r0 -Rmv -PhysDrv[252:2] -L0 -a0
- Add a physical drive (252:2 for enclosure id: 252, slot number: 2) to logical drive 0 (-L0) in RAID-0 (-r0): MegaCli64 -LDRecon -Start -r0 -Add -PhysDrv[252:2] -L0 -a0
RAID reconstruction
- Turn the logical drive 0 (-L0) managed by adapter 0 (-a0) to RAID-0 (-r0): MegaCli64 -LDRecon -Start -r0 -L0 -a0
- Monitor the reconstruction process of logical drive 0 (-L0) managed by adapter 0 (-a0): MegaCli64 -LdRecon -ShowProg -L0 -a0
Error code
https://www.thomas-krenn.com/de/wiki/MegaCLI_Error_MessagesReferences
- http://www.kiwix.org/wiki/MegaCli64
- http://artipc10.vub.ac.be/wordpress/2011/09/12/megacli-useful-commands/
- http://en.community.dell.com/support-forums/servers/f/906/t/19091560
- https://supportforums.cisco.com/document/62901/megacli-common-commands-and-procedures
- https://globalroot.wordpress.com/2013/06/18/megacli-raid-levels/
- https://wiki.hetzner.de/index.php/LSI_RAID_Controller/en
- https://supportforums.cisco.com/document/62901/megacli-common-commands-and-procedures
- http://ramblings.narrabilis.com/megacli
Comments
Post a Comment