dell伺服器在redhat5.2上會出現硬碟無辜掉線的情況

tonykorn97發表於2008-10-16
一,dell 2970的伺服器
突然出現系統不能使用,dmesg資訊出現:
sd 0:2:0:0: rejecting I/O to offline device
sd 0:2:0:0: rejecting I/O to offline device
sd 0:2:0:0: rejecting I/O to offline device
sd 0:2:0:0: rejecting I/O to offline device
[@more@]
作業系統:
[root@test ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
Kernel r on an m
[root@test ~]#
透過系統檢視硬碟:
[root@test at]# fdisk -l
Disk /dev/sdb: 218.0 GB, 218020577280 bytes
255 heads, 63 sectors/track, 26506 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
沒有發現sda硬碟的資訊,sda硬碟就是伺服器的系統盤。
二,今天又發現一臺dell 2900的伺服器
作業系統:
[root@tonykorn ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
Kernel r on an m
[root@tonykorn ~]#
出現和上面相同的情況。
三,安裝dell光碟中raid驅動,然後繼續觀察 。
1,取得驅動程式檔案
[root@test ~]# cd /mnt/SERVICE/pexxxx/sas_raid/r169676
[root@test r169676]# ls
megaraid_sas-v00.00.03.16.tgz
[root@test r169676]# cp megaraid_sas-v00.00.03.16.tgz /root
2,檢視module資訊:
[root@test ~]# lsmod
Module Size Used by
joydev 43969 0
mptctl 63817 1
mptbase 111461 1 mptctl
ipmi_devintf 44752 0
ipmi_si 77453 0
ipmi_msghandler 72985 2 ipmi_devintf,ipmi_si
dell_rbu 41569 0
nls_utf8 35137 1
ipv6 420481 38
xfrm_nalgo 43845 1 ipv6
crypto_api 42177 1 xfrm_nalgo
autofs4 57289 2
hidp 83521 2
rfcomm 104809 0
l2cap 89281 10 hidp,rfcomm
bluetooth 118597 5 hidp,rfcomm,l2cap
sunrpc 198025 1
dm_mirror 60617 0
dm_multipath 52945 0
dm_mod 99737 2 dm_mirror,dm_multipath
video 53197 0
sbs 49921 0
backlight 39873 1 video
i2c_ec 38593 1 sbs
i2c_core 56129 1 i2c_ec
button 40545 0
battery 43849 0
asus_acpi 50917 0
acpi_memhotplug 40133 0
ac 38729 0
parport_pc 62313 0
lp 47121 0
parport 73165 2 parport_pc,lp
sr_mod 50789 1
cdrom 68713 1 sr_mod
shpchp 70765 0
pcspkr 36289 0
serio_raw 40517 0
usb_storage 116769 1
sg 69993 0
i5000_edac 42177 0
bnx2 173917 0
edac_mc 60193 1 i5000_edac
ata_piix 54981 1
libata 192345 1 ata_piix
ext3 167249 3
jbd 93873 1 ext3
uhci_hcd 57433 0
ohci_hcd 54493 0
ehci_hcd 65741 0
megaraid_sas 71677 5
sd_mod 56257 6
scsi_mod 188665 7 mptctl,sr_mod,usb_storage,sg,libata,megaraid_sas,sd_mod
[root@test ~]# modinfo megaraid_sas
filename: /lib/modules/2.6.18-92.el5/kernel/drivers/scsi/megaraid/megaraid_sas.ko
description: LSI MegaRAID SAS Driver
author: megaraidlinux@lsi.com
version: 00.00.03.15-RH1
license: GPL
srcversion: 9E19F51B1AACEC3540858D4
alias: pci:v00001028d00000015sv*sd*bc*sc*i*
alias: pci:v00001000d00000413sv*sd*bc*sc*i*
alias: pci:v00001000d00000060sv*sd*bc*sc*i*
alias: pci:v00001000d00000411sv*sd*bc*sc*i*
depends: scsi_mod
vermagic: 2.6.18-92.el5 SMP mod_unload gcc-4.1
parm: poll_mode_io:Complete cmds from IO path, (default=0) (int)
module_sig: 883f35048175a9b6e24e25c96667c371127cc809e35675f4af1859f399f5ca7bab66735ab674bd809f4243f02deb4e7de1f9f980987f13137c6bb2afe0
3,安裝驅動
[root@test ~]# cd /root
[root@test ~]# tar -zxvf megaraid_sas-v00.00.03.16.tgz
dkms-2.0.13-1.noarch.rpm
megaraid_sas-v00.00.03.16-1.noarch.rpm
megaraid_sas-v00.00.03.16-1-rhel40-u5-all.img
megaraid_sas-v00.00.03.16-1-rhel50-all.img
megaraid_sas-v00.00.03.16-1-sles10-ga-all.img
megaraid_sas-v00.00.03.16-1-sles10-sp1-all.img
megaraid_sas-v00.00.03.16-1-sles9-nld9-sp3-all.img
megaraid_sas-v00.00.03.16-src.tgz
megaraid_sas-v00.00.03.16.txt
[root@test ~# rpm -ivh megaraid_sas-v00.00.03.16-1.noarch.rpm
Preparing... ########################################### [100%]
1:megaraid_sas ########################################### [100%]
Loading tarball for module: megaraid_sas / version: v00.00.03.16
Loading /usr/src/megaraid_sas-v00.00.03.16...
Creating /var/lib/dkms/megaraid_sas/v00.00.03.16/source symlink...
DKMS: ldtarball Completed.
Kernel preparation unnecessary for this kernel. Skipping...
applying patch rhel5-ga.patch...patching file megaraid_sas.c
patching file megaraid_sas.h
Building module:
cleaning build area....
make KERNELRELEASE=2.6.18-92.el5 -C /lib/modules/2.6.18-92.el5/build SUBDIRS=/var/lib/dkms/megaraid_sas/v00.00.03.16/build modules....
cleaning build area....
DKMS: build Completed.
Running module version sanity check.
megaraid_sas.ko:
- Original module
- Found /lib/modules/2.6.18-92.el5/kernel/drivers/scsi/megaraid//megaraid_sas.ko
- Storing in /var/lib/dkms/megaraid_sas/original_module/2.6.18-92.el5/x86_64/
- Archiving for uninstallation purposes
- Installation
- Installing to /lib/modules/2.6.18-92.el5/kernel/drivers/scsi/megaraid//
depmod....
Saving old initrd as /boot/initrd-2.6.18-92.el5_old.img
Making new initrd as /boot/initrd-2.6.18-92.el5.img
(If next boot fails, revert to the _old initrd image)
mkinitrd.....
DKMS: install Completed.
[root@test ~# modinfo megaraid_sas
filename: /lib/modules/2.6.18-92.el5/kernel/drivers/scsi/megaraid/megaraid_sas.ko
description: LSI Logic MegaRAID SAS Driver
author: megaraidlinux@lsi.com
version: 00.00.03.16
license: GPL
srcversion: D156E7E4860B73A6C9C58D1
alias: pci:v00001028d00000015sv*sd*bc*sc*i*
alias: pci:v00001000d00000413sv*sd*bc*sc*i*
alias: pci:v00001000d00000060sv*sd*bc*sc*i*
alias: pci:v00001000d00000411sv*sd*bc*sc*i*
depends: scsi_mod
vermagic: 2.6.18-92.el5 SMP mod_unload gcc-4.1
parm: fast_load:megasas: Faster loading of the driver, skips physical devices! (default=0) (int)
parm: max_sectors:Maximum number of sectors per IO command (int)
parm: cmd_per_lun:Maximum number of commands per logical unit (default=128) (int)
[root@test ~#

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/312079/viewspace-1011978/,如需轉載,請註明出處,否則將追究法律責任。

相關文章