Linux HDD driver update

Source: Internet
Author: User

    • Shing
    • Email: [Email protected]
    • Blog: http://blOg.csdn.net/qifengzou
    • Date: 2015.01.16 00:33
    • Reprint please indicate the CSDN blog from "Chifeng"

Before the kernel is upgraded, the system can start and use normally, and when the system kernel is upgraded, the system does not start normally, this may be caused by the incompatible hard drive. can nowthroughEnter the old systemFollowThe following steps step by step to troubleshoot the cause:
①, query hard disk control chip manufacturer and model#lspci-nn | grep "SAS"#lspci-nn | grep "SCSI"
such as: SAS [ + :0078]
②, view HDD control chip driver used by old kernel#uname-A #注: You can view the currently used kernel name
Cat/lib/modules/2.6.28-16-server/modules.pcimap #注: Where 2.6.28-16-server is the old kernel name
# PCI Module Vendor Device Subvendor Subdevice class Class_mask driver_datascx200 0x0 000100b 0x00000500 0xffffffff 0xFFFFFFFF 0x00000000 0x00000000 0x0scx200 0x0000100b 0x00000510 0xffffffff 0x FFFFFFFF 0x00000000 0x00000000 0x0scx200 0x0000100b 0x00000505 0xffffffff 0xFFFFFFFF 0x00000000 0x00000000 0 x0scx200 0x0000100b 0x00000515 0xffffffff 0xffffffff 0x00000000 0x00000000 0x0cpqphp 0xfffffff F 0xffffffff 0xFFFFFFFF 0xFFFFFFFF 0x00080400 0xffffffff 0x0ibmphp 0x00001014 0x00000246 0x00001014 0x000002 0x00080400 0x00000000 0x0cpcihp_zt5550 0x00001138 0x00005550 0xffffffff 0xffffffff 0x00000000 0x00000000 0X0SHPC HP 0xFFFFFFFF 0xFFFFFFFF 0xFFFFFFFF 0xffffffff 0x00060400 0xffffffff 0x0gx1fb 0x00001078 0x00 000104 0xffffffff 0xffffffff 0x00030000 0x00ff0000 0x0gxfb 0x0000100b 0x00000030 0xffffffff 0xFFFFFFFF 0x0 0000000 0x00000000 0X0LXFB 0x00001022 0x00002081 0xffffffff 0xffffffff 0x00000000 0x00000000 0x0cyber2000fb 0x000010ea 0x 00002000 0xffffffff 0xFFFFFFFF 0x00000000 0x00000000 0x0cyber2000fb 0x000010ea 0x00002010 0xffffffff 0xFFFFFFFF 0 x00000000 0x00000000 0x0cyber2000fb 0x000010ea 0x00005000 0xffffffff 0xffffffff 0x00000000 0x00000000 0x0
 megaraid_sas 0x00001000 0x00000411 0xffffffff 0xFFFFFFFF 0x00000000 0x00000000 0x  0megaraid_sas 0x00001000 0x00000060 0xffffffff 0xffffffff 0x00000000 0x00000000 0x0megaraid_sas 0x00001000 0x0000007c 0xffffffff 0xFFFFFFFF 0x00000000 0x00000000 0x0megaraid_sas 0x0000  1   0x0000  0078   0xFFFFFFFF 0xFFFFFFFF 0x00000000 0x00000000 0x0megaraid_sas 0x00001000 0x00000079 0xf FFFFFFF 0xFFFFFFFF 0x00000000 0x00000000 0x0megaraid_sas 0x00001000 0x00000413 0xffffffff 0xFFFFFFFF 0x00000000 0x             00000000 0x0megaraid_sas 0x00001028 0x00000015 0xffffffff 0xffffffff 0x00000000 0x00000000 0x0  AdvanSys 0X000010CD 0x00001100 0xffffffff 0xFFFFFFFF 0x00000000 0x00000000 0x0advansys 0x000010cd 0x00001200 0 xFFFFFFFF 0xFFFFFFFF 0x00000000 0x00000000 0x0 
and search According to the filter results of ① [ + : 0078], you can see the hard drive chip driver name used by the old kernel . such as:Megaradi_sas
③, find the driver module driver for the drive control chip *.kobased on ② search results, find drive file driver for hard disk chip *.ko#lsmod | grep "Megaraid_sas"
Megaraid_sas 74148 6
Scsi_mod 141236 3 Sg,sd_mod,megaraid_sas

④, check whether the new kernel hard drive chip driver supports the current chip manufacturer and model#modinfo/lib/modules/2.6.33-88-server/kernel/drivers/scsi/megaraid/megaraid_sas.ko #注: Suppose the new kernel is2.6.33-88-server
FileName:/lib/modules/2.6.33-88-server/kernel/drivers/scsi/megaraid/megaraid_sas.ko
Description:lsi MegaRAID SAS Driver
Author: [Email protected]
    Version:00.00.05.40-rh2
    License:gpl
    Srcversion:6369b642440e1b1d4319d71
    alias:pci:v00001000d0000005bsv*sd*bc*sc*i*
    alias:pci:v00001028d00000015sv*sd*bc*sc*i*
    alias:pci:v00001000d00000413sv*sd*bc*sc*i*
    alias:pci:v00001000d00000071sv*sd*bc*sc*i*
    alias:pci:v00001000d00000073sv*sd*bc*sc*i*
    alias:pci:v00001000d00000079sv*sd*bc*sc*i*
    alias:pci:v0000 +d00000078sv*sd*bc*sc*i*
    alias:pci:v00001000d0000007csv*sd*bc*sc*i*
    alias:pci:v00001000d00000060sv*sd*bc*sc*i*
    alias:pci:v00001000d00000411sv*sd*bc*sc*i*
    Depends:scsi_mod
    Vermagic:2.6.33-dpdk.zznode SMP mod_unload modversions
    Parm:poll_mode_io:Complete cmds from Io path, (default=0) (int)
    Parm:max_sectors:Maximum number of Sectors per IO command (int)
    Parm:msix_disable:Disable msi-x interrupt handling. default:0 (int)

if the displayed result contains the hard disk control chip manufacturer and signal [+: 0078], then the MoD supports the current drive, if not included, the new kernel hard disk chip control driver does not support the current driver, At this point you need to download the appropriate driver source to the new kernel to compile.
⑤, download the source code pathftp://ftp.redhat.org/redhat/linux/enterprise/6Server/en/os/SRPMS/
Add the source code to the kernel to compile the method to be continued!

Linux hard Drive update

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.