一,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博客 ” ,链接:https://blog.itpub.net/312079/viewspace-1011978/
,如需转载,请注明出处,否则将追究法律责任。