Last active
December 30, 2015 08:39
-
-
Save Jerry-Fix/7804395 to your computer and use it in GitHub Desktop.
megacli build raid automaticly ( raid 0, 1, 5, 10) for benchmark
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create raid | |
# ./MegaCli -CfgLdAdd -rX[E0:S0,E1:S1,...] [WT|WB] [NORA|RA|ADRA] [Direct|Cached] | |
[CachedBadBBU|NoCachedBadBBU] [-szXXX [-szYYY ...]] | |
[-strpszM] [-Hsp[E0:S0,...]] [-AfterLdX] | [FDE|CtrlBased] | |
[-Default| -Automatic| -None| -Maximum| -MaximumWithoutCaching] [-Cache] [-enblPI] [-Force]-aN | |
Create RAID 0, 1, 5 drive | |
# ./MegaCli64 -CfgLdAdd -r(0|1|5) [E:S, E:S, ...] -aN | |
Create RAID 10 drive | |
# ./MegaCli64 -CfgSpanAdd -r10 -Array0[E:S,E:S] -Array1[E:S,E:S] -aN | |
Remove drive | |
# ./ MegaCli -CfgLdDel -LX|-L0,2,5...|-LALL [-Force] -aN|-a0,1,2|-aALL | |
# ./MegaCli64 -CfgLdDel -Lx -aN | |
Init raid | |
# ./MegaCli -LDInit {-Start [-full]}|-Abort|-ShowProg|-ProgDsply -Lx|-L0,1,2|-LALL -aN|-a0,1,2|-aALL | |
# ./MegaCli64 -PDList -aALL | |
Adapter #0 | |
Enclosure Device ID: 12 | |
Slot Number: 0 | |
Drive's position: DiskGroup: 0, Span: 0, Arm: 0 | |
Enclosure position: 1 | |
Device Id: 0 | |
WWN: 55cd2e404b4701b0 | |
Sequence Number: 2 | |
Media Error Count: 0 | |
Other Error Count: 0 | |
Predictive Failure Count: 0 | |
Last Predictive Failure Event Seq Number: 0 | |
PD Type: SATA | |
Raw Size: 447.130 GB [0x37e436b0 Sectors] | |
Non Coerced Size: 446.630 GB [0x37d436b0 Sectors] | |
Coerced Size: 446.102 GB [0x37c34800 Sectors] | |
Sector Size: 512 | |
Firmware state: Online, Spun Up | |
Commissioned Spare : No | |
Emergency Spare : No | |
Device Firmware Level: 0355 | |
Shield Counter: 0 | |
Successful diagnostics completion on : N/A | |
SAS Address(0): 0x500e004aaaaaaa00 | |
Connected Port Number: 0(path0) | |
Inquiry Data: BTWL335001DG480QGN INTEL SSDSC2BB480G4 D2010355 | |
FDE Capable: Not Capable | |
FDE Enable: Disable | |
Secured: Unsecured | |
Locked: Unlocked | |
Needs EKM Attention: No | |
Foreign State: None | |
Device Speed: 6.0Gb/s | |
Link Speed: 6.0Gb/s | |
Media Type: Solid State Device | |
Drive: Not Certified | |
Drive Temperature : N/A | |
PI Eligibility: No | |
Drive is formatted for PI information: No | |
PI: No PI | |
Port-0 : | |
Port status: Active | |
Port's Linkspeed: 6.0Gb/s | |
Drive has flagged a S.M.A.R.T alert : No | |
# ./MegaCli64 -ShowSummary -aALL | |
System | |
Operating System: Linux version 2.6.32-220.el6.x86_64 | |
Driver Version: 00.00.05.40-rh2 | |
CLI Version: 8.07.07 | |
Hardware | |
Controller | |
ProductName : SAS2208(Bus 0, Dev 0) | |
SAS Address : 5234567890abcde0 | |
FW Package Version: 23.7.0-0029 | |
Status : Optimal | |
BBU | |
BBU Type : iBBU-09 | |
Status : Healthy | |
Enclosure | |
Product Id : Expander | |
Type : SES | |
Status : OK | |
Product Id : SGPIO | |
Type : SGPIO | |
Status : OK | |
PD | |
Connector : Port A<Internal><Encl Pos 1 >: Slot 0 | |
Vendor Id : ATA | |
Product Id : INTEL SSDSC2BB48 | |
State : Online | |
Disk Type : SATA,Solid State Device | |
Capacity : 446.102 GB | |
Power State : Active | |
Connector : Port A<Internal><Encl Pos 1 >: Slot 1 | |
Vendor Id : ATA | |
Product Id : INTEL SSDSC2BB48 | |
State : Online | |
Disk Type : SATA,Solid State Device | |
Capacity : 446.102 GB | |
Power State : Active | |
Connector : Port A<Internal><Encl Pos 1 >: Slot 2 | |
Vendor Id : ATA | |
Product Id : INTEL SSDSC2BB48 | |
State : Online | |
Disk Type : SATA,Solid State Device | |
Capacity : 446.102 GB | |
Power State : Active | |
Connector : Port A<Internal><Encl Pos 1 >: Slot 3 | |
Vendor Id : ATA | |
Product Id : INTEL SSDSC2BB48 | |
State : Online | |
Disk Type : SATA,Solid State Device | |
Capacity : 446.102 GB | |
Power State : Active | |
Connector : Port A<Internal><Encl Pos 1 >: Slot 4 | |
Vendor Id : ATA | |
Product Id : INTEL SSDSC2BB48 | |
State : Online | |
Disk Type : SATA,Solid State Device | |
Capacity : 446.102 GB | |
Power State : Active | |
Connector : Port A<Internal><Encl Pos 1 >: Slot 5 | |
Vendor Id : ATA | |
Product Id : INTEL SSDSC2BB48 | |
State : Online | |
Disk Type : SATA,Solid State Device | |
Capacity : 446.102 GB | |
Power State : Active | |
Connector : Port A<Internal><Encl Pos 1 >: Slot 6 | |
Vendor Id : ATA | |
Product Id : INTEL SSDSC2BB48 | |
State : Online | |
Disk Type : SATA,Solid State Device | |
Capacity : 446.102 GB | |
Power State : Active | |
Connector : Port A<Internal><Encl Pos 1 >: Slot 7 | |
Vendor Id : ATA | |
Product Id : INTEL SSDSC2BB48 | |
State : Online | |
Disk Type : SATA,Solid State Device | |
Capacity : 446.102 GB | |
Power State : Active | |
Connector : Port A<Internal><Encl Pos 1 >: Slot 8 | |
Vendor Id : ATA | |
Product Id : INTEL SSDSC2BB48 | |
State : Online | |
Disk Type : SATA,Solid State Device | |
Capacity : 446.102 GB | |
Power State : Active | |
Connector : Port A<Internal><Encl Pos 1 >: Slot 9 | |
Vendor Id : ATA | |
Product Id : INTEL SSDSC2BB48 | |
State : Online | |
Disk Type : SATA,Solid State Device | |
Capacity : 446.102 GB | |
Power State : Active | |
Connector : Port A<Internal><Encl Pos 1 >: Slot 10 | |
Vendor Id : ATA | |
Product Id : INTEL SSDSC2BB48 | |
State : Online | |
Disk Type : SATA,Solid State Device | |
Capacity : 446.102 GB | |
Power State : Active | |
Connector : Port A<Internal><Encl Pos 1 >: Slot 11 | |
Vendor Id : ATA | |
Product Id : INTEL SSDSC2BB48 | |
State : Unconfigured Good | |
Disk Type : SATA,Solid State Device | |
Capacity : 446.102 GB | |
Power State : Active | |
Storage | |
Virtual Drives | |
Virtual drive : Target Id 0 ,VD name | |
Size : 446.102 GB | |
State : Optimal | |
RAID Level : 1 | |
Virtual drive : Target Id 2 ,VD name | |
Size : 892.205 GB | |
State : Optimal | |
RAID Level : 0 | |
Virtual drive : Target Id 1 ,VD name | |
Size : 892.205 GB | |
State : Optimal | |
RAID Level : 5 | |
Virtual drive : Target Id 3 ,VD name | |
Size : 892.205 GB | |
State : Optimal | |
RAID Level : 10 | |
Exit Code: 0x00 | |
ref: | |
http://www.damtp.cam.ac.uk/internal/computing/docs/public/megacli_raid_lsi.html | |
http://erikimh.com/megacli-cheatsheet/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment