One way is to manipulate the output of the above command: Size of the raid device, this size is the actual allocatable size.įor two devices that each size is 1TB at RAID 1, the virtual drive size will be 1TB, because the drives in mirror raid.Ībout physical drives inside virtual drivesĪs we look for simple output that shows the virtual drives structure, its hard to get that with megacli. This id represent the virtual drive its created within the raid creation. RAID Level : Primary-0, Secondary-0, RAID Level Qualifier-0ĭefault Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBUĬurrent Cache Policy: WriteBack, ReadAdaptive, Direct, No Write Cache if Bad BBU Gather info about Virtual drives megacli -LDInfo -Lall -a0
This is the slot number the physical drive is connected to.Īctually this slot number will be used to represent this physical ID drive in other commands.
The enclosure id that the physical drive connected to.
Inquiry Data: SEAGATE ST1200MM0017 0002S3L02PGKĭrive is formatted for PI information: No Successful diagnostics completion on : N/A Non Coerced Size: 1.090 TB Ĭoerced Size: 1.090 TB Last Predictive Failure Event Seq Number: 0 The maximum physical drives we can connect to this enclosure.ĭrive's postion: DiskGroup: 0, Span: 0, Arm: 0 This id represent the enclosure and will be used in other commands. VendorId is LSI CORP and Product Id is Bobcat Gather info about the enclosure megacli -EncInfo -a0 We can see here the adapters information, we will use the adapter id later on, adapter id is 0. Gather info about raid adapters: megacli -AdpGetPciInfo -aAll Now that we know we have MegaRaid controller we can go on and work with megacli CLI. Make sure you have raid controller attached to your server, using lspci.Ĩ1:00.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID SAS 2208 (rev 05) Gather the information we need Gather info about raid controller We can see configurations in megacli like Virtual Drive with RAID 0 over one physical drive, we have this settings because physical drives attached to raid controller, and for representing the device to the system we must set it in megacli.Īs a default we will see all the physical devices part of virtual drive in raid 0. Virtual Drive contains physical drives 0,1 and 2 and includes the settings of the raid device such as raid level, strip size etc. Virtual Drives - Those drives contains Physical Drives and equal to Raid Devices, represented by id, 0,1,2,3 etc.įor example if we have RAID 0 over 3 Physical Drives, we get: Physical Drives - Physical Hard Disks attached to controller, represented by id, 0,1,2,3 etc. Megacli Concepts Adapters, Physical Drives and Virtual Drivesīefore we go through megacli commands we need to follow megacli concepts.Īdapter - The physical controller which we are going to use, represented by id (usually 0).Įnclosure - The physical chassis the physical drives attached to, represented by id, such as 254,252 etc. MegaCli not providing all the information we need like mapping to linux devices and raid level (readable), so we are going to use some extra tools.
With megacli we can create physical raids, gather info about raids and monitor raids.ĭownload and Install MegaCli and other supportive tools Centos yum install MegaCliĬommand location: /opt/MegaRAID/MegaCli/MegaCli64Īlias megacli='/opt/MegaRAID/MegaCli/MegaCli64'Ĭommand Location: /usr/sbin/megacli, no need alias. MegaCli introduced by LSI as a command line administration of LSI MegaRaid controllers. 7.1 Create RAID 10 Device (Virtual Drive).6 Mapping virtual drives to linux devices.5 About physical drives inside virtual drives.3.1 Adapters, Physical Drives and Virtual Drives.
2 Download and Install MegaCli and other supportive tools.9Ģ.4.1 Unin stal ling the StorCLI Tool on VMware Operating Sy stems. 9Ģ.4 In stal ling the StorCLI Tool on VMware Operating Sy stems. 8Ģ.3.1 Unin stal ling the StorCLI Tool on Linux Operating Sy stems. 8Ģ.3 In stal ling the StorCLI Tool on Linux Operating Sy stems. 8Ģ.2 In stal ling the StorCLI Tool on the UEFI Environment.
8Ģ.1 In stal ling the StorCLI Tool on Microsoft Windows Operating Sy stems. 6Ĭhapter 2: In stal ling StorCLI on MegaRAID Controllers. Chapter 1: Supported Controllers and Operating Sy stems.