Category: Linux

Some Fibre Channel HBA models found on HP Proliant running Linux

I was updating some servers and this is a small list that I created to help to update the firmware

Emulex LPe1105 Fibre Channel HBA

root@linux:~ # cat /sys/class/scsi_host/host0/model*name
LPe1105-HP

root@linux:~ # cat /sys/class/scsi_host/host0/model*desc
HP BLc Emulex LPe1105-HP FC Mezz Option Kit

Qlogic QMH2462 Fibre Channel HBA

root@linux:~ # cat /sys/class/scsi_host/host1/model*name
QMH2462

root@linux:~ # cat /sys/class/scsi_host/host1/model*desc
PCI-Express Dual Channel 4Gb Fibre Channel Mezzanine HBA


HP FC2142SR 4Gb 1-port PCIe Fibre Channel Host Bus Adapter

root@linux:~ # cat /sys/class/scsi_host/host3/model*name
A8002A

root@linux:~ # cat /sys/class/scsi_host/host3/model*desc
HP FC2142SR 4Gb PCI-e, SC, Fibre Channel Adapter

HP PCIe Fibre Channel Host Bus Adapter

root@linux:~ # cat /sys/class/scsi_host/host0/model*name
QLE2462

root@linux:~ # cat /sys/class/scsi_host/host0/model*desc

HP 4Gb PCIe Host Bus Adapter

root@linux:~ # cat /sys/class/scsi_host/host0/model*name
QLE2460

root@linux:~ # cat /sys/class/scsi_host/host0/model*desc
PCI-Express Single Channel 4Gb Fibre Channel HBA

Qlogic QMH2462 Fibre Channel HBA

root@linux:~ # cat /sys/class/scsi_host/host2/model*name
QLA2462
root@linux:~ # cat /sys/class/scsi_host/host2/model*desc

Emulex LPe1205 Fibre Channel Host Bus Adapter

root@linux:~ # cat /sys/class/scsi_host/host3/model*name
LPe1205-HP

root@linux:~ # cat /sys/class/scsi_host/host3/model*desc
HP BLc Emulex LPe1205-HP 8Gb FC


HP FC1242SR 4Gb 2-port PCIe Fibre Channel Host Bus Adapter

root@linux:~ # cat /sys/class/scsi_host/host0/model*name
HPAE312A

root@linux:~ # cat /sys/class/scsi_host/host0/model*desc
PCI-Express Dual Port 4Gb Fibre Channel HBA

LP10000

root@linux:~ # cat /sys/class/scsi_host/host0/model*name
LP10000
root@linux:~ # cat /sys/class/scsi_host/host0/model*desc
Emulex LP10000 2Gb PCI-X Fibre Channel Adapter


HP 8Gb 2-port PCIe Fibre Channel Host Bus Adapter

root@linux:~ # cat /sys/class/scsi_host/host3/model*name
AJ763A/AH403A
root@linux:~ # cat /sys/class/scsi_host/host3/model*desc
HP 8Gb Dual Channel PCI-e 2.0 FC HBA

HP LPe1605 16Gb Fibre Channel Host Bus Adapter for BladeSystem c-Class

root@linux:~ # cat /sys/class/scsi_host/host0/model*name
HP-LPe1605
root@linux:~ # cat /sys/class/scsi_host/host0/model*desc
HP LPe1605 16Gb FC HBA

If the links stop working, follow the instruction on Upgrading firmware on an Emulex or QLogic Fibre Channel HBA on HP Proliant to find how to download the correct firmware

Problems updating firmware on QLogic QLE2460, QLE2462 and QMH2462 on HP Proliant

I’m having problems updating the firmware on fibre channel HBA cards QLE2460, QLE2462 QMH2462.

For example, this server has a single channel 4Gb QLE2460 and dual channel 4Gb QLE2462

root@linux01:~ # cat /sys/class/scsi_host/host*/model*name
QLE2462
QLE2462
QLE2460

root@linux01:~ # cat /sys/class/scsi_host/host*/model*desc
PCI-Express Dual Channel 4Gb Fibre Channel HBA
PCI-Express Dual Channel 4Gb Fibre Channel HBA
PCI-Express Single Channel 4Gb Fibre Channel HBA

root@linux01:~ # lspci -k | grep -A2 -i fibre
22:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 02)
Subsystem: QLogic Corp. Device 0138
Kernel driver in use: qla2xxx

22:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 02)
Subsystem: QLogic Corp. Device 0138
Kernel driver in use: qla2xxx

25:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
Subsystem: QLogic Corp. Device 0137
Kernel driver in use: qla2xxx

Following the instruction on Updating firmware on an Emulex or QLogic Fibre Channel HBA on HP Proliant and downloaded the file CP022840.scexe

root@linux01:~ # ./CP022840.scexe
—————————————————
Loading references…done.
Performing discovery…
WARNING! : No supported adapters found.

Checking the log file, it shows that no adapters found and gives return code 7

root@linux01:~ # cat /var/cpq/Component.log
=================================================================

Installation started: Thu Nov 5 18:12:09 BRST 2015

Installing: CP022840.scexe
Version: 2014.09.01
Description: HP Firmware Flash for QLogic Fibre Channel HBA’s (x86_64)

—————————————————
Loading references…done.
Performing discovery…
WARNING! : No supported adapters found.

Return code: 7

Installation complete: Thu Nov 5 18:12:09 BRST 2015

=================================================================

On this other server I have a QMH2462 and I had the same problem

root@linux02:~ # cat /sys/class/scsi_host/host*/model*name
QMH2462
QMH2462
root@linux02:~ # cat /sys/class/scsi_host/host*/model*desc

root@linux02:~ # lspci -k | grep -A2 -i fibre
09:00.0 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
Subsystem: Hewlett-Packard Company Device 1705
Kernel driver in use: qla2xxx

09:00.1 Fibre Channel: QLogic Corp. ISP2432-based 4Gb Fibre Channel to PCI Express HBA (rev 03)
Subsystem: Hewlett-Packard Company Device 1705
Kernel driver in use: qla2xxx

root@linux02:~ # cat /var/cpq/Component.log
=================================================================

Installation started: Fri Oct 9 12:09:36 BRT 2015

Installing: CP022840.scexe
Version: 2014.09.01
Description: HP Firmware Flash for QLogic Fibre Channel HBA’s (x86_64)

—————————————————
Loading references…done.
Performing discovery…
WARNING! : No supported adapters found.

Return code: 7

Installation complete: Fri Oct 9 12:09:36 BRT 2015

=================================================================

I think the solution will be to update the firmware offline using the HP SPP DVD and selecting Firmware update

Server booting correctly but file /boot/grub/grub.conf is missing

I was checking a server that didn’t have the file /boot/grub/grub.conf but it was booting without any issues.

The server is a Proliant Gen9

root@linux:~ # dmidecode –type system
# dmidecode 2.12
# SMBIOS entry point at 0x788fb000
SMBIOS 2.8 present.

Handle 0x0009, DMI type 1, 27 bytes
System Information
Manufacturer: HP
Product Name: ProLiant BL460c Gen9
Version: Not Specified
Serial Number:
UUID:
Wake-up Type: Power Switch
SKU Number: 727021-B21
Family: ProLiant

Handle 0x009E, DMI type 32, 11 bytes
System Boot Information
Status: No errors detected

This server has UEFI instead of BIOS. Checking some servers I found the file on /boot/efi/EFI/redhat

root@linux:/boot/efi/EFI/redhat # ls -l
total 256
-rwx——. 1 root root 1648 Nov 4 13:00 grub.conf
-rwx——. 1 root root 254248 Apr 7 2015 grub.efi

and /boot/efi/efi/redhat

root@linux:/boot/efi/efi/redhat # ls -l
total 264
-rwx——. 1 root root 1666 Nov 4 12:59 grub.conf
-rwx——. 1 root root 254248 Apr 7 2015 grub.efi

libstdc++.so.6 is needed by hpacucli-8.70-8.0

I have a Suse 9 that is not installing the hpacucli

root@suse9:~ # rpm -ivh /tmp/hpacucli-8.70-8.0.noarch.rpm
error: Failed dependencies:
libstdc++.so.6 is needed by hpacucli-8.70-8.0
libstdc++.so.6(CXXABI_1.3) is needed by hpacucli-8.70-8.0
libstdc++.so.6(GLIBCXX_3.4) is needed by hpacucli-8.70-8.0

I checked with another server that this tool is working and in this server it is missing a package

root@suse9:~ # rpm -qa | grep libstd
libstdc++-3.3.3-43.41

root@anothersuse9:~ # rpm -qa | grep libstd
libstdc++-3.3.3-43.41
libstdc++-3.3.3-43.24
libstdc++-devel-3.3.3-43.24
compat-libstdc++-lsb-4.0.2_20050901-0.4

To solve this problem install compat-libstdc++-lsb

root@suse9:~ # rpm -ivh /tmp/compat-libstdc++-lsb-4.0.2_20050901-0.4.i586.rpm
Preparing… ########################################### [100%]
1:compat-libstdc++-lsb ########################################### [100%]

root@suse9:~ # rpm -ivh /tmp/hpacucli-8.70-8.0.noarch.rpm
Preparing… ########################################### [100%]
1:hpacucli ########################################### [100%]

UXMON: mpathb – Only one path detected, no path redundancy

Also see:
UXMON: volumegroup – Only one path detected, no path redundancy
UXMON: SY1_log2_disk_001 – Only one path detected, no path redundancy

Node : linux.setaoffice.com
Node Type : Intel/AMD x64(HTTPS)
Severity : major
OM Server Time: 2015-10-14 12:39:19
Message : UXMON: mpathb – Only one path detected, no path redundancy
Msg Group : OS
Application : mpmon
Object : mp
Event Type :
not_found

Instance Name :
not_found

Instruction : The multipathd -k”show map $device topology” command shows more details

Please check /var/opt/OV/log/OpC/mp_mon.log for more details

Checking the log file it complains about the mpathb

root@linux:~ # cat /var/opt/OV/log/OpC/mp_mon.log
Wed Oct 14 13:39:13 2015 : INFO : UXMONmpmon is running now, pid=21954
Wed Oct 14 13:39:13 2015 : Major: mpathb – Only one path detected, no path redundancy
Wed Oct 14 13:39:13 2015 : INFO : UXMONmpmon end, pid=21954
Wed Oct 14 13:56:12 2015 : INFO : UXMONmpmon is running now, pid=29130
Wed Oct 14 13:56:12 2015 : Major: mpathb – Only one path detected, no path redundancy
Wed Oct 14 13:56:12 2015 : INFO : UXMONmpmon end, pid=29130
Wed Oct 14 14:13:13 2015 : INFO : UXMONmpmon is running now, pid=36813
Wed Oct 14 14:13:13 2015 : Major: mpathb – Only one path detected, no path redundancy
Wed Oct 14 14:13:13 2015 : INFO : UXMONmpmon end, pid=36813
Wed Oct 14 14:30:13 2015 : INFO : UXMONmpmon is running now, pid=44029
Wed Oct 14 14:30:13 2015 : Major: mpathb – Only one path detected, no path redundancy
Wed Oct 14 14:30:13 2015 : INFO : UXMONmpmon end, pid=44029
Wed Oct 14 14:47:12 2015 : INFO : UXMONmpmon is running now, pid=51897
Wed Oct 14 14:47:13 2015 : INFO : UXMONmpmon end, pid=51897
Wed Oct 14 15:04:12 2015 : INFO : UXMONmpmon is running now, pid=58833
Wed Oct 14 15:04:12 2015 : INFO : UXMONmpmon end, pid=58833

In this server it is a local disk so it was added to the multipath blacklist

root@linux:~ # vi /etc/multipath.conf
blacklist {
devnode “^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*”
devnode “^hd[a-z]”
devnode “^sd[ab]$”
devnode “^cciss!c[0-9]d[0-9]*”
}

If you are in a VMware host, you can safely disable this module.

root@linux:~ # cp /var/opt/OV/bin/instrumentation/mp_mon.cfg /var/opt/OV/conf/OpC/

In the configuration file /var/opt/OV/conf/OpC/mp_mon.cfg set disable to yes

root@linux:~ # vi /var/opt/OV/conf/OpC/mp_mon.cfg
disable = yes

Suse Linux 9 boot – cciss: cmd f6b80498 has CHECK CONDITION byte 2 = 0x3

cciss
At startup I was receiving this message

cciss: cmd f6b80498 has CHECK CONDITION byte 2 = 0x3
cciss: cmd f6b80000 has CHECK CONDITION byte 2 = 0x3

I found that this is a media error. Since I rebooted because the filesystem / became read-only that made sense.

I ended up reinstalling this server

HPOM – EXT4-fs: (dm-9): barriers disabled

Node: linux.setaoffice.com
Node Type : Intel/AMD x64(HTTPS)
Severity : minor
OM Server Time: 2015-09-28 08:42:14
Message : EXT4-fs: (dm-9): barriers disabled
Msg Group : OS
Application : dmsg_mon
Object : EXT4
Event Type :
not_found

Instance Name :
not_found

Instruction : No

I mounted a new filesystem that I just set up with nobarrier parameter in /etc/fstab. It logged the following message on /var/log/messages

root@linux:~ # grep barrier /var/log/messages
Sep 28 09:39:11 linux kernel: EXT4-fs (dm-9): barriers disabled

RHEL 6 Storage Administration Guide – 22.2. Enabling/Disabling Write Barriers

I removed all the references to nobarrier parameter

root@linux:~ # cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Mon Jun 24 13:57:59 2013
#
# Accessible filesystems, by reference, are maintained under ‘/dev/disk’
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/rootvg-rootlv / ext4 defaults,nobarrier 1 1
/dev/mapper/rootvg-auditlv /audit ext4 defaults,nobarrier 1 2
UUID=4fdc0716-230e-4c5d-a3fe-ba2196bf6c21 /boot ext3 defaults 1 2
/dev/mapper/rootvg-optlv /opt ext4 defaults,nobarrier 1 2
/dev/mapper/rootvg-tmplv /tmp ext4 defaults,nobarrier 1 2
/dev/mapper/rootvg-usrlv /usr ext4 defaults,nobarrier 1 2
/dev/mapper/rootvg-userslv /usr/users ext4 defaults,nobarrier 1 2
/dev/mapper/rootvg-varlv /var ext4 defaults,nobarrier 1 2
/dev/mapper/rootvg-crashlv /var/crash ext3 defaults,nobarrier 1 2
/dev/mapper/rootvg-swaplv swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/mapper/rootvg-repolv /repo ext4 defaults,nobarrier 1 2

Remove the graphical screen with progress bar in Red Hat Enterprise Linux and Suse

Edit file /boot/grub/grub.conf or /boot/grub/menu.lst and on the line that contains the word kernel, remove the word splash or rhgb (Red Hat Graphical Boot) from this line.

You will boot in text mode until it is time to transition to graphical mode otherwise you will remain on text mode.

Use this to check all console messages when booting. Useful if you need to connect remotely and pressing Esc or F2 fails

root@suse9:~ # cat /boot/grub/menu.lst
# Modified by YaST2. Last modification on Mon Aug 27 18:45:43 2007

color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd0,2)/message

###Don’t change this comment – YaST2 identifier: Original name: linux###
title Linux
kernel (hd0,2)/vmlinuz root=6801 vga=0x317 selinux=0 resume=/dev/cciss/c0d0p2 elevator=cfq showopts
initrd (hd0,2)/initrd

root@rhel66:~ # cat /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/mapper/rootvg-rootlv
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
#splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.32-573.1.1.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-573.1.1.el6.x86_64 ro root=/dev/mapper/rootvg-rootlv rd_NO_LUKS rd_LVM_LV=rootvg/rootlv KEYBOARDTYPE=pc KEYTABLE=br-abnt2 rd_NO_MD rd_LVM_LV=rootvg/swaplv SYSFONT=latarcyrheb-sun16 crashkernel=auto console=tty1 console=ttyS1,115200 noquiet log_buf_len=3M elevator=deadline nmi_watchdog=0 rd_NO_DM LANG=en_US.UTF-8
initrd /initramfs-2.6.32-573.1.1.el6.x86_64.img

If you need to check, boot the kernel using the option splash=off or remove rhgb. You also can use consoleblank=0 to not turn off the screen.

How to remove files with strange characters

To remove files that contain symbols and unknown characters, list the files with ls -li and take note of the inode number

root@linux:~ # ls -li
total 4420
2495260 -rw——- 1 root root 13810 Jan 28 2011 ????!
2495249 -rw——- 1 root root 13810 Jan 28 2011 ????!

Run the find command and see if it shows the desired file

root@linux:~ # find . -inum 2495260
./????!

And then complete the find command to search, find and remove the file.

root@linux:~ # find . -inum 2495260 -exec rm -i {} \;
rm: remove regular file `./20\36406\b!’? y

Changing HP Proliant serial number

If you want to do it online, with some tool under Linux, it can’t be done.

Unless you have an HP Proliant 100 series, you need to enter the RBSU and change the serial number.

Setsys Utility for HP ProLiant 100 series G5 and G6 Servers

Always remember to change the serial number back when replacing the system board.