Ubuntu Raid controller Perc5i Dell 2950
Overview
On a Dell PowerEdge 2950 with Perc5i Raid card, we want to know Raid status. So we install software to check it manually with system Online.
Software installation
We download MegaCLI software. This software is difficult to find, and we only found a version for RedHat.
- URL : http://techedemic.com/wp-content/uploads/2015/10/8-07-14_MegaCLI.zip
- Local Download File:8-07-14 MegaCLI.zip
# wget http://techedemic.com/wp-content/uploads/2015/10/8-07-14_MegaCLI.zip --2016-05-25 11:18:53-- http://techedemic.com/wp-content/uploads/2015/10/8-07-14_MegaCLI.zip Resolving techedemic.com (techedemic.com)... 41.76.209.129 Connecting to techedemic.com (techedemic.com)|41.76.209.129|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 7939395 (7.6M) [application/zip] Saving to: ‘8-07-14_MegaCLI.zip.1’ 100%[==========================================>] 7,939,395 334KB/s in 17s 2016-05-25 11:19:11 (449 KB/s) - ‘8-07-14_MegaCLI.zip.1’ saved [7939395/7939395] root@nas:~# unzip 8-07-14_MegaCLI.zip Archive: 8-07-14_MegaCLI.zip inflating: 8.07.14_MegaCLI.txt inflating: DOS/MegaCLI.exe extracting: FreeBSD/MegaCLI.zip extracting: FreeBSD/MegaCli64.zip inflating: Linux/MegaCli-8.07.14-1.noarch.rpm inflating: Solaris/MegaCli.pkg inflating: Windows/MegaCli.exe inflating: Windows/MegaCli64.exe
Package is an rpm not a debian or ubuntu compatible package. So we transform it using alien command:
# apt install alien # alien MegaCli-8.07.14-1.noarch.rpm
And we install it:
root@nas:~/Linux# dpkg -i megacli_8.07.14-2_all.deb Selecting previously unselected package megacli. (Reading database ... 65802 files and directories currently installed.) Preparing to unpack megacli_8.07.14-2_all.deb ... Unpacking megacli (8.07.14-2) ... Setting up megacli (8.07.14-2) ... Processing triggers for libc-bin (2.19-0ubuntu6.7) ...
Execution
The program MegaCli is installed, so we can use it with command:
root@nas:~# /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 : 67.75 GB Sector Size : 512 Mirror Data : 67.75 GB State : Optimal Strip Size : 64 KB Number Of Drives : 2 Span Depth : 1 Default Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU Current Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU Default Access Policy: Read/Write Current Access Policy: Read/Write Disk Cache Policy : Disk's Default Encryption Type : None Is VD Cached: No Virtual Drive: 1 (Target Id: 1) Name : RAID Level : Primary-0, Secondary-0, RAID Level Qualifier-0 Size : 931.0 GB Sector Size : 512 Parity Size : 0 State : Optimal Strip Size : 64 KB Number Of Drives : 1 Span Depth : 1 Default Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU Current Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU Default Access Policy: Read/Write Current Access Policy: Read/Write Disk Cache Policy : Disk's Default Encryption Type : None Is VD Cached: No Virtual Drive: 2 (Target Id: 2) Name : RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0 Size : 1.818 TB Sector Size : 512 Mirror Data : 1.818 TB State : Optimal Strip Size : 64 KB Number Of Drives : 2 Span Depth : 1 Default Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU Current Cache Policy: WriteBack, ReadAheadNone, Direct, No Write Cache if Bad BBU Default Access Policy: Read/Write Current Access Policy: Read/Write Disk Cache Policy : Disk's Default Ongoing Progresses: Background Initialization: Completed 21%, Taken 266 min. Encryption Type : None Is VD Cached: No Exit Code: 0x00
Daniel Simao (talk) 14:05, 20 July 2018 (EDT)