Dell perc 6i linux

https://null.53bits.co.uk/index.php?page=dell-omsa-on-linux

Dell OMSA on Linux

Where are the Dell repo’s:

http://linux.dell.com/wiki/index.php/Repository
wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
yum install srvadmin-all

OMSA changes for non-RHEL (CentOS) systems:

/etc/redhat-release : "Red Hat Enterprise Linux Server release 5 (Tikanga)"

OMSA Live CDs:

http://linux.dell.com/files/openmanage-contributions/

CentOS Live CDs:

http://wiki.centos.org/Manuals/ReleaseNotes (At the bottom you fool)

Pre reqs for BIOS/Firmware updates:

yum install compat-libstdc*  libstdc++

OMSA on Ubuntu;

References;
http://www.keithscode.com/linux-tutorials/installing-dell-openmanage-server-administrator-on-ubuntu.html
http://ubuntuforums.org/showpost.php?p=2336772&postcount=54 http://www.ccn.ucla.edu/users/jkyle/weblog/e14bd/Dell_Perc_5i_on_Ubuntu_64.html # Kernel modules
sudo modprobe ipmi_msghandler
sudo modprobe ipmi_devintf
sudo modprobe ipmi_s
# Sometimes this is `sudo modprobe ipmi_si` on 64bit machines echo "ipmi_msghandler" >> /etc/modules
echo "ipmi_devintf" >> /etc/modules
echo "ipmi_si" >> /etc/modules # To use a repo stop here and perform add to /etc/apt/sources.list
# "deb ftp://ftp.sara.nl/pub/sara-omsa dell sara"
# then run;
# wget http://ftp.sara.nl/debian_sara.asc
# sudo apt-key add debian_sara.asc
# sudo apt-get update
# Now there is no need to download the debian packages below #Install IPMI tools;
#yum install openipmi ipmitool
sudo apt-get install openipmi
sudo apt-get install ipmitool
#Install OMSA dependancies:
sudo apt-get install snmp snmpd
sudo apt-get install -f lib32ncurses5 #sudo apt-get install -f libncurses5 sudo apt-get install -f ia32-libs #Only needed for 64bit machines
# on 64bit machines;
# dpkg --add-architecture i386 # this will enable the installation of i386 packages on x64
# apt-get update # If not use the deb packages below but the repo above, at this point you can execute;
# sudo apt-get install dellomsa #Grab OMSA and debian package (can be http): ONLY IF NOT USING REPO ABOVE #wget ftp://ftp.sara.nl/pub/outgoing/dell/binary-i386/dellomsa_5.5.0-5_i386.deb
wget ftp://ftp.sara.nl/pub/outgoing/dell/binary-amd64/dellomsa_5.5.0-5_amd64.deb
dpkg -i dellomsa_5.5.0-5_amd64.deb

#At this point, run the following to update libraries when using either repo or deb pkg sudo ldconfig

#For 32bit machine with library/dependencies missing;
sudo apt-get install libstdc++5
#May require: sudo apt-get install gcc-3.3-base
#For 64 bit machine we may need 32bit libstdc++5 from here, forced install on 64 bit machine:
wget http://ftp.de.debian.org/debian/pool/main/g/gcc-3.3/libstdc++5_3.3.6-20_i386.deb
# http://ftp.de.debian.org/debian/pool/main/g/gcc-3.3/libstdc++5_3.3.6-20_amd64.deb
# Mirrors;
# /uploads/linux/dell/libstdc++5_3.3.6-20_i386.deb
# /uploads/linux/dell/libstdc++5_3.3.6-20_amd64.deb
sudo dpkg --force-architecture -i libstdc++5_3.3.6-20_i386.deb
#Some links maybe needed:
#sudo ln -s /usr/lib/libstdc++.so.5 /lib/libstdc++.so.5
#sudo ln -s /usr/lib/libstdc++.so.5 /lib32/libstdc++.so.5
#sudo ln -s /usr/lib/libstdc++.so.5 /lib64/libstdc++.so.5
#Pop this handy script into /etc/init.d (Thanks to James Kyle) and run it sudo wget -O /etc/init.d/dell_omsa.sh http://null.53bits.co.uk/uploads/linux/dell/dell_omsa.sh
sudo chmod +x /etc/init.d/dell_omsa.sh
sudo /etc/init.d/dell_omsa.sh # Enable SNMP in OMSA sudo /etc/init.d/dataeng enablesnmp
# Make sure both are running sudo /etc/init.d/snmpd restart
sudo /etc/init.d/dataeng start
sudo /etc/init.d/dsm_om_connsvc start
sudo /etc/init.d/dsm_om_shrsvc start
#Download 32bit pam auth modules if on 64 (also, force inet4 sometimes):
wget http://mirrors.kernel.org/ubuntu/pool/main/p/pam/libpam-modules_1.1.3-2ubuntu1_i386.deb --inet4-only
# Newer versions:
# http://mirrors.kernel.org/ubuntu/pool/main/p/pam/libpam-modules_1.1.3-6ubuntu1_amd64.deb
# http://mirrors.kernel.org/ubuntu/pool/main/p/pam/libpam-modules_1.1.3-6ubuntu1_i386.deb
dpkg-deb -x libpam-modules_1.1.3-2ubuntu1_i386.deb ./
cd ./lib/i386-linux-gnu/security
sudo cp pam_unix.so /lib32/security
sudo cp pam_nologin.so /lib32/security
sudo ldconfig # Look at 32bit/64bit mixing authentication errors here:
# https://oss.trac.surfsara.nl/omsa_2_deb/ticket/37
#Restart
sudo /etc/init.d/dsm_om_connsvc restart
#OMSA seems to bind to IPv6 as shown by netstat -nl, check in /opt/dell/srvadmin/iws/config/iws.ini
# tcp6 :::1311
#browser: https://[2a01:420:9:0:213:72ff:fe53:2c05]:1311
# omreport and omconfig can now be used for remotely configuring and reporting on the Perc RAID controller(s);
#sudo omreport storage controller
#sudo omreport storage controller controller=0
# consistency check on vdisk 0 on controller 0
#sudo omconfig storage vdisk action=checkconsistency controller=0 vdisk=0 #sudo omreport storage controller No controllers found
#try;
# sudo apt-get install dkms
# sudo service dataeng restart
#Physical disks sudo omreport storage pdisk controller=0
# If you get the error:
# omreport: error while loading shared libraries: libpam.so.0
# sudo apt-get install libpam0g:i386

MegaCLI/MegaRAID

# might need the following if not installed
sudo apt-get install alien unzip
# might also need
sudo apt-get install sysfsutils

#Download link
wget http://www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/8.02.16_MegaCLI.zip
# mirror:
# /uploads/linux/dell/8.02.16_MegaCLI.zip
unzip 8.02.16_MegaCLI.zip
cd LINUX
unzip MegaCliLin.zip
# Install the bundled libraries;
sudo alien -iv Lib_Utils-1.00-09.noarch.rpm

# Upack;
rpm2cpio MegaCli-8.02.16-1.i386.rpm | cpio -dimv

# copy files to /opt
sudo mv opt/MegaRAID/ /opt/
cd /opt/MegaRAID/MegaCli/
sudo ./MegaCli -AdpEventLog -GetEvents -aAll

# These maybe are needed if OMSA isn't installed as above and cary change for 32/64bit systems;
# sudo apt-get install -f lib32ncurses5
# sudo apt-get install -f lib32ncurses5
# sudo apt-get install -f libncurses5
# sudo apt-get install gcc

# Install reference:
# http://staff.blog.ui.ac.id/jp/2010/10/07/installing-megacli-in-debian-based-system/

# Example commands:
# http://tools.rapidsoft.de/perc/perc-cheat-sheet.html

# Controller information
MegaCli -AdpAllInfo -aALL 
MegaCli -CfgDsply -aALL 
MegaCli -AdpEventLog -GetEvents -f events.log -aALL && cat events.log

# Enclosure information
MegaCli -EncInfo -aALL

# Virtual drive information
MegaCli -LDInfo -Lall -aALL

# Physical drive information
MegaCli -PDList -aALL 
MegaCli -PDInfo -PhysDrv [E:S] -aALL

# Battery backup information
MegaCli -AdpBbuCmd -aALL

# Check State of Health
./MegaCli adpbbucmd getbbustatus a0 | grep SOH


# Updating firmware
mkdir fw
cd fw
wget "http://ftp.us.dell.com/SAS-RAID/DELL_PERC-6-I-INTEGRATED_A12_R278433.exe"
unzip DELL_PERC-6-I-INTEGRATED_A12_R278433.exe
MegaCli64 -adpfwflash -f FW952II.rom -a0
# That is actually a Windows firmware update file but it has the same rom in side it;


./MegaCli64 -adpfwflash -f FW1371iI.rom -a0
                                     
Adapter 0: PERC 6/i Integrated
Vendor ID: 0x1000, Device ID: 0x0060

Package version on the controller: 6.1.1-0047 
Package version of the image file: 6.3.1-0003 
Download Completed.     
Flashing image to adapter...
Adapter 0: Flash Completed.

Exit Code: 0x00
# For older perc cards like perc 4's, try lsiutil, or use omreport above
# wget http://www.lsi.com/downloads/Public/Obsolete/Obsolete%20Common%20Files/LSIUtil_1.62.zip
# mirror: wget /uploads/linux/dell/LSIUtil_1.62.zip

Power Monitoring

# omreport chassis pwrsupplies
Power Supplies Information

Power Supply Redundancy
Redundancy Status : Full

Individual Power Supply Elements
Index                    : 0
Status                   : Ok
Location                 : PS 1 Status
Type                     : AC
Rated Input Wattage      : [No Value]
Maximum Output Wattage   : 750 W
Online Status            : Presence Detected
Power Monitoring Capable : Yes

Index                    : 1
Status                   : Ok
Location                 : PS 2 Status
Type                     : AC
Rated Input Wattage      : [No Value]
Maximum Output Wattage   : 750 W
Online Status            : Presence Detected
Power Monitoring Capable : Yes


# omreport chassis pwrmonitoring
Power Consumption Information

Power Consumption
Index             : 2
Status            : Ok
Probe Name        : System Board System Level
Reading           : 244 W
Warning Threshold : 916 W
Failure Threshold : 964 W

Amperage
PS 1 Current 1 : 0.8 A
PS 2 Current 2 : 1.0 A

Power Tracking Statistics
Statistic               : Energy Consumption
Measurement Start Time  : Tue May  6 21:58:38 2008
Measurement Finish Time : Wed Feb  1 13:55:29 2012
Reading                 : 1008.6 KWh

Statistic              : System Peak Power
Measurement Start Time : Tue May  6 21:58:38 2008
Peak Time              : Sat Mar  6 23:42:11 2010
Peak Reading           : 407 W

Statistic              : System Peak Amperage
Measurement Start Time : Tue May  6 21:58:38 2008
Peak Time              : Sat Mar  6 23:23:27 2010
Peak Reading           : 3.3 A

IPMI Commands

#Graceful restart
ipmitool -I lanplus -H 172.22.0.150 -U root -P password chassis power soft
#Boot from CD
ipmitool -I lan -H 172.22.0.150  -U root -P password chassis bootdev cdrom
#Enable Serial-over-Label
ipmitool -I lanplus -H 172.22.0.150 -U root -P password sol activate
# Dont forget to enable Bios > Serial Communication > "On with Console Redirection via COM2" and "Redirect after Reboot"

RAID Monitoring

# List storage controllers
# omreport storage controller

 Controller  PERC 4e/Di (Embedded)

Controllers
ID                                : 0
Status                            : Non-Critical
Name                              : PERC 4e/Di
Slot ID                           : Embedded
State                             : Degraded
Firmware Version                  : 522A
Minimum Required Firmware Version : 522D
Driver Version                    : Not Applicable
Minimum Required Driver Version   : Not Applicable
Number of Connectors              : 2
Rebuild Rate                      : 30%
BGI Rate                          : Not Applicable
Check Consistency Rate            : Not Applicable
Reconstruct Rate                  : Not Applicable
Alarm State                       : Not Applicable
Cluster Mode                      : Not Applicable
SCSI Initiator ID                 : 7
Cache Memory Size                 : 256 MB
Patrol Read Mode                  : Auto
Patrol Read State                 : Stopped
Patrol Read Rate                  : Not Applicable
Patrol Read Iterations            : 11526



# List details from a specific controller
# omreport storage controller controller=0

 Controller  PERC 4e/Di (Embedded)

Controllers
ID                                : 0
Status                            : Non-Critical
Name                              : PERC 4e/Di
Slot ID                           : Embedded
State                             : Degraded
Firmware Version                  : 522A
Minimum Required Firmware Version : 522D
Driver Version                    : Not Applicable
Minimum Required Driver Version   : Not Applicable
Number of Connectors              : 2
Rebuild Rate                      : 30%
BGI Rate                          : Not Applicable
Check Consistency Rate            : Not Applicable
Reconstruct Rate                  : Not Applicable
Alarm State                       : Not Applicable
Cluster Mode                      : Not Applicable
SCSI Initiator ID                 : 7
Cache Memory Size                 : 256 MB
Patrol Read Mode                  : Auto
Patrol Read State                 : Stopped
Patrol Read Rate                  : Not Applicable
Patrol Read Iterations            : 11526

Connectors
ID             : 0
Status         : Ok
Name           : Connector 0
State          : Ready
Connector Type : SCSI Channel RAID Mode
Termination    : Wide Terminated
SCSI Rate      : Ultra 320M SCSI

ID             : 1
Status         : Ok
Name           : Connector 1
State          : Ready
Connector Type : SCSI Channel Non-RAID Mode
Termination    : Wide Terminated
SCSI Rate      : Ultra 320M SCSI

Virtual Disks
ID                  : 0
Status              : Ok
Name                : Virtual Disk 0
State               : Ready
Progress            : Not Applicable
Layout              : RAID-5
Size                : 136.48 GB (146548981760 bytes)
Device Name         : /dev/sda
Type                : SCSI
Read Policy         : Adaptive Read Ahead
Write Policy        : Write Back
Cache Policy        : Direct I/O
Stripe Element Size : 64 KB
Disk Cache Policy   : 

Physical Disks
ID                        : 0:0
Status                    : Ok
Name                      : Physical Disk 0:0
State                     : Online
Failure Predicted         : No
Progress                  : Not Applicable
Type                      : SCSI
Capacity                  : 68.24 GB (73274490880 bytes)
Used RAID Disk Space      : 68.24 GB (73274490880 bytes)
Available RAID Disk Space : 0.00 GB (0 bytes)
Hot Spare                 : No
Vendor ID                 : SEAGATE 
Product ID                : ST373207LC      
Revision                  : D701
Serial No.                : 3KT2NQDN
Negotiated Speed          : 320
Capable Speed             : 320
Manufacture Day           : Not Available
Manufacture Week          : Not Available
Manufacture Year          : Not Available
SAS Address               : Not Available

ID                        : 0:1
Status                    : Ok
Name                      : Physical Disk 0:1
State                     : Online
Failure Predicted         : No
Progress                  : Not Applicable
Type                      : SCSI
Capacity                  : 68.24 GB (73274490880 bytes)
Used RAID Disk Space      : 68.24 GB (73274490880 bytes)
Available RAID Disk Space : 0.00 GB (0 bytes)
Hot Spare                 : No
Vendor ID                 : SEAGATE 
Product ID                : ST373207LC      
Revision                  : D703
Serial No.                : 3KT3ELLN
Negotiated Speed          : 320
Capable Speed             : 320
Manufacture Day           : Not Available
Manufacture Week          : Not Available
Manufacture Year          : Not Available
SAS Address               : Not Available

ID                        : 0:2
Status                    : Ok
Name                      : Physical Disk 0:2
State                     : Online
Failure Predicted         : No
Progress                  : Not Applicable
Type                      : SCSI
Capacity                  : 68.24 GB (73274490880 bytes)
Used RAID Disk Space      : 68.24 GB (73274490880 bytes)
Available RAID Disk Space : 0.00 GB (0 bytes)
Hot Spare                 : No
Vendor ID                 : SEAGATE 
Product ID                : ST373207LC      
Revision                  : D701
Serial No.                : 3KT2PYK8
Negotiated Speed          : 320
Capable Speed             : 320
Manufacture Day           : Not Available
Manufacture Week          : Not Available
Manufacture Year          : Not Available
SAS Address               : Not Available

Battery
ID                        : 0
Status                    : Ok
Name                      : Battery 0
State                     : Ready
Recharge Count            : 1
Max Recharge Count        : 1100
Predicted Capacity Status : Not Applicable
Learn State               : Not Applicable
Next Learn Time           : Not Applicable
Maximum Learn Delay       : Not Applicable

Enclosure(s)
ID                    : 0
Status                : Ok
Name                  : Backplane
State                 : Ready
Connector             : 0
Target ID             : 6
Configuration         : Not Applicable
Firmware Version      : 1.0 
Service Tag           : 54S1063
Asset Tag             : Not Applicable
Asset Name            : Not Applicable
Backplane Part Number : Not Applicable
Split Bus Part Number : Not Applicable
Enclosure Part Number : Not Applicable
SAS Address           : Not Applicable
Enclosure Alarm       : Not Applicable



# List physical disks on controller 0
# omreport storage pdisk controller=0

List of Physical Disks on Controller PERC 4e/Di (Embedded)

Controller PERC 4e/Di (Embedded)
ID                        : 0:0
Status                    : Ok
Name                      : Physical Disk 0:0
State                     : Online
Failure Predicted         : No
Progress                  : Not Applicable
Type                      : SCSI
Capacity                  : 68.24 GB (73274490880 bytes)
Used RAID Disk Space      : 68.24 GB (73274490880 bytes)
Available RAID Disk Space : 0.00 GB (0 bytes)
Hot Spare                 : No
Vendor ID                 : SEAGATE 
Product ID                : ST373207LC      
Revision                  : D701
Serial No.                : 3KT2NQDN
Negotiated Speed          : 320
Capable Speed             : 320
Manufacture Day           : Not Available
Manufacture Week          : Not Available
Manufacture Year          : Not Available
SAS Address               : Not Available

^ Top

Previous page: Check Dell RAID, Disks and Battery via SNMP
Next page: Dell RAID Notes