XenServer-MegaRaid
Jump To: Support > KB > Citrix > XenServer > MegaRaid
Installing and using LSI MegaRaid tools on XenServer/Citrix Hypervisor
Tested on Citrix Hypervisor 8.0 and XenServer 7.1
Installation
- Download 8-07-14_MegaCLI.zip
- Extract file from zip. Its contents are:
Archive: 8-07-14_MegaCLI.zip Length Date Time Name -------- ---- ---- ---- 48298 01-19-14 20:46 8.07.14_MegaCLI.txt 1696148 12-16-13 16:35 DOS/MegaCLI.exe 888939 12-16-13 21:43 FreeBSD/MegaCLI.zip 937766 12-16-13 22:22 FreeBSD/MegaCli64.zip 1549650 12-16-13 16:13 Linux/MegaCli-8.07.14-1.noarch.rpm 9176576 12-16-13 16:18 Solaris/MegaCli.pkg 2002944 12-16-13 15:52 Windows/MegaCli.exe 2788352 12-16-13 16:31 Windows/MegaCli64.exe -------- ------- 19088673 8 files
- In Linux folder, you will see
MegaCli-8.07.14-1.noarch.rpm
. Copy this into root's home area on your XenServer - At a root prompt, run
rpm -ivh MegaCli-8.07.14-1.noarch.rpm
to install the package:[root@xenserver01 ~]# rpm -ivh MegaCli-8.07.14-1.noarch.rpm Preparing... ################################# [100%] Updating / installing... 1:MegaCli-8.07.14-1 ################################# [100%]
- You can check the package is installed by using
ls /opt/MegaRAID/MegaCli
:[root@xenserver01 ~]# ls /opt/MegaRAID/MegaCli install.log libstorelibir-2.so libstorelibir-2.so.14.07-0 MegaCli64
Usage
Check status of RAID arrays
Command: MegaCli64 -LDInfo -Lall -aALL
[root@xenserver01 ~]# /opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL Adapter 0 -- Virtual Drive Information: Virtual Drive: 0 (Target Id: 0) Name : RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0 Size : 556.929 GB Sector Size : 512 Mirror Data : 556.929 GB State : Optimal Strip Size : 64 KB Number Of Drives : 4 Span Depth : 1 Default Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU Current Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU Default Access Policy: Read/Write Current Access Policy: Read/Write Disk Cache Policy : Disabled Encryption Type : None Is VD Cached: No
Get information about RAID controller
Command: MegaCli64 -AdpAllInfo -aAll
Adapter #0 ============================================================================== Versions ================ Product Name : ServeRAID M1015 SAS/SATA Controller Serial No : SP21605716 FW Package Build: 20.11.1-0184 Mfg. Data ================ Mfg. Date : 04/25/12 Rework Date : 00/00/00 Revision No : 02F Battery FRU : N/A Image Versions in Flash: ================ BIOS Version : 4.37.00_4.14.05.00_0x05290000 Preboot CLI Version: 03.02-020:#%00009 WebBIOS Version : 4.0-60-e_49-Rel NVDATA Version : 3.09.03-0054 FW Version : 2.130.384-3359 Boot Block Version : 2.02.00.00-0001 [snip]
Summary of configuration
Command: MegaCli64 -CfgDsply -Aall
============================================================================== Adapter: 0 Product Name: ServeRAID M1015 SAS/SATA Controller Memory: 0MB BBU: Absent Serial No: SP21605716 ============================================================================== Number of DISK GROUPS: 1 DISK GROUP: 0 Number of Spans: 1 SPAN: 0 Span Reference: 0x00 Number of PDs: 4 Number of VDs: 1 Number of dedicated Hotspares: 0 Virtual Drive Information: Virtual Drive: 0 (Target Id: 0) Name : RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0 Size : 556.929 GB Sector Size : 512 Mirror Data : 556.929 GB State : Optimal Strip Size : 64 KB Number Of Drives : 4 Span Depth : 1 Default Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU Current Cache Policy: WriteThrough, ReadAheadNone, Direct, No Write Cache if Bad BBU Default Access Policy: Read/Write Current Access Policy: Read/Write Disk Cache Policy : Disabled Encryption Type : None Is VD Cached: No Physical Disk Information: Physical Disk: 0 Enclosure Device ID: 64 Slot Number: 0 Drive's position: DiskGroup: 0, Span: 0, Arm: 0 Enclosure position: N/A Device Id: 12 WWN: 5000C5005995E504 Sequence Number: 2 Media Error Count: 0 Other Error Count: 0 Predictive Failure Count: 0 Last Predictive Failure Event Seq Number: 0 PD Type: SAS