php乱码问题---懒惰的故事系列之一 搞笑的IBM
四月 27

经验教训 :如果不是要安装windows或者是那几个大而庞杂的linux发行版本的话,最好不要再用这种hostraid的卡了,切记切记

到vmware esx 2.5.3为止,对于adaptec的hostraid都没有提供支持,看起来也没有支持的想法。可是目前进的这批x346都是adaptec的7902的scsi控制芯片,原先考虑的就是用hostraid提供raid 1镜像,这下可好,一开启hostraid,vmware就动不了了。!!

  1. 先关闭hostraid,把vmware装上,然后装了个redhat7.2的系统用来编译vmware的模块。
  2. 从vmware的网站上下了2.5.3的source,然后解到redhat 7.2里面,再用最新的79xx的源码覆盖vmware 2.5.3 source里面的相关源文件,重新make modules,得到支持hostraid的aic79xx.o

    验证新编译的aic79xx.o支持hostraid

    1. modinfo aic79xx.o

    输出

    filename:    aic79xx.o
    description: "Adaptec Aic790X U320 SCSI Host Bus Adapter driver"
    author:      "Maintainer: Luben Tuikov <luben_tuikov@adaptec.com>"
    parm:        aic79xx string, description "period delimited, options string.
            verbose                 Enable verbose/diagnostic logging
    attach_HostRAID:   Attach to controllers in HostRAID mode
           allow_memio             Allow device registers to be memory mapped
            debug                   Bitmask of debug values to enable
            no_reset                Supress initial bus resets
            extended                Enable extended geometry on all controllers
            periodic_otag           Send an ordered tagged transaction
                                     periodically to prevent tag starvation.
                                     This may be required by some older disk
                                    or drives/RAID arrays.
            reverse_scan            Sort PCI devices highest Bus/Slot to lowest
            tag_info:      Set per-target tag depth
            global_tag_depth:  Global tag depth for all targets on all buses
            rd_strm: Set per-target read streaming setting.
            dv:        Set per-controller Domain Validation Setting.
            slewrate:Set the signal slew rate (0-15).
            precomp:

    Set the signal precompensation (0-7).
            amplitude:         Set the signal amplitude (0-7).
             seltime:           Selection Timeout:
                                     (0/256ms,1/128ms,2/64ms,3/32ms)
            slowcrc                 Turn on the SLOWCRC bit (Rev B only)
    Sample module configuration line:
                    Enable verbose logging
                    Set tag depth on Controller 2/Target 2 to 10 tags
                    Shorten the selection timeout to 128ms
     
            options aic79xx 'aic79xx=verbose.tag_info:{{}.{}.{..10}}.seltime:1'
     
            Sample module configuration line:
                    Change Read Streaming for Controller's 2 and 3
     
            options aic79xx 'aic79xx=rd_strm:{..0xFFF0.0xC0F0}'"

    留意上面加粗的那段,证明现在的aic79xx.o支持hostraid了 

  3. 把新编译出来的aic79xx.o拿来替代vmware原有的/lib/modules/2.4.9-vmnix2/kernel/driver/scsi/aic79xx/aic79xx.o
  4. 记得关键要把aic79xx.o的initrd.img修改,insmod 的参数

    然后重新把scsi bios里面的hostraid开启,设置主从盘,开机测试,重新引导的时候直接报链接出错,挂掉了。

Leave a Reply