mpt-status failure after linux kernel upgrade
Oh the pain!
So Debian Etch needs another kernel image upgrade, which I dutifully performed and rebooted the system and mpt-status stopped working! I only noticed the problem when I got a warning alert SMS from Nagios, upon further investigation (using mpt-status autoload) I got this error message:-
# mpt-status autoload
open /dev/mptctl: No such file or directory
Try: mknod /dev/mptctl c 10 220
Also make sure mptctl is loaded into the kernel
lsmod shows the module isn’t loaded:-
lsmod | grep mptctlSo here’s what I did to fix it, first uninstall the package and reinstall:-
# apt-get remove mpt-status
# apt-get install mpt-status
Now load the module:-
# modprobe mptctl
Make sure the module is loaded:-
# lsmod | grep mptctl
mptctl 22500 0
mptbase 46176 3 mptctl,mptsas,mptscsih
Now enable mpt-status:-
# mpt-status autoload
ioc0 vol_id 0 type IM, 2 phy, 278 GB, state OPTIMAL, flags ENABLED
ioc0 phy 1 scsi_id 32 SEAGATE ST3300555SS T107, 279 GB, state ONLINE, flags NONE
ioc0 phy 0 scsi_id 1 SEAGATE ST3300555SS T107, 279 GB, state ONLINE, flags NONE
Now restart all the relevant services:-
# /etc/init.d/mpt-statusd restart
# /etc/init.d/dataeng restart
# /etc/init.d/snmpd restart
After this my Nagios plugin worked and started to report the status of the Array correctly, pain over.
Tags: dell openmanage, linux, mpt-status, Nagios, snmp
