- 论坛徽章:
- 0
|
硬件
主板:intel_7230-ah(入门级)服务器主板
#lspci
00:1f.2 RAID bus controller: Intel Corporation 82801GR/GH (ICH7 Family) Serial ATA Storage Controller RAID (rev 01)
官方提供的驱动只有redhat enterprise 4.0的驱动
仔细研究发现和intel——s3000主板属于同一系列,资讯intel客服承认两者除支持CPU型号不同外都相同。
故此 发现s3000可以下到redhat enterprise 5.0的驱动
软件
CentOS5.0
[root@test02 etc]# uname -a
Linux test02 2.6.18-8.el5 #1 SMP Thu Mar 15 19:57:35 EDT 2007 i686 i686 i386 GNU/Linux
[root@test02 etc]#
所以寻求如何来驱动raid。
我这服务器已经有系统,所以在系统上又多加了2块160G硬盘,做RAID0,BIOS自检时候,显示RAID0制作成功。
但是系统无法识别。
[root@test02 etc]# fdisk -l
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1275 10241406 83 Linux
/dev/hda2 1276 1402 1020127+ 82 Linux swap / Solaris
/dev/hda3 1403 4865 27816547+ 83 Linux
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 19457 156288321 83 Linux
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 19457 156288321 83 Linux
Disk /dev/md0: 320.0 GB, 320078348288 bytes
2 heads, 4 sectors/track, 78144128 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md0 doesn't contain a valid partition table
[root@test02 etc]#
我安装驱动的方法如下:
[root@test02 tmp]# ls
ESRT_RHEL5_v.5.11a_x86.tgz
[root@test02 tmp]# tar zxvf ESRT_RHEL5_v.5.11a_x86.tgz
modinfo
modules.alias
modules.cgz
modules.dep
pcitable
rhdd
[root@test02 tmp]# gunzip -S .cgz modules.cgz
[root@test02 tmp]# cpio -ivd < modules
.
2.6.18-8.el5
2.6.18-8.el5/i686
2.6.18-8.el5/i686/megaide.ko
modules.alias.megaide
333 blocks
[root@test02 tmp]# cp 2.6.18-8.el5/i686/megaide.ko /lib/modules/2.6.18-8.el5/updates/megaide.ko
cp:是否覆盖“/lib/modules/2.6.18-8.el5/updates/megaide.ko”? yes
[root@test02 tmp]# vim /etc/modprobe.conf
"
alias acsi_hostadapter megaide
"
[root@test02 tmp]# rm -fr /boot/initrd-2.6.18-8.el5.img ; mkinitrd -v -f /boot/initrd-2.6.18-8.el5.img 2.6.18-8.el5
Creating initramfs
WARNING: using /tmp for temporary files
Looking for deps of module uhci-hcd
Looking for deps of module ohci-hcd
Looking for deps of module ehci-hcd
Looking for deps of module ext3: jbd
Looking for deps of module jbd
Found root device hda1 for LABEL=/
Looking for driver for device hda1
Looking for deps of module ide:m-disk
Looking for driver for device LABEL=SWAP-hda2
Looking for deps of module megaide
Looking for deps of module ide-disk
Using modules: /lib/modules/2.6.18-8.el5/kernel/drivers/usb/host/uhci-hcd.ko /lib/modules/2.6.18-8.el5/kernel/drivers/usb/host/ohci-hcd.ko /lib/modules/2.6.18-8.el5/kernel/drivers/usb/host/ehci-hcd.ko /lib/modules/2.6.18-8.el5/kernel/fs/jbd/jbd.ko /lib/modules/2.6.18-8.el5/kernel/fs/ext3/ext3.ko /lib/modules/2.6.18-8.el5/updates/megaide.ko
/sbin/nash -> /tmp/initrd.Id7134/bin/nash
/sbin/insmod.static -> /tmp/initrd.Id7134/bin/insmod
copy from `/lib/modules/2.6.18-8.el5/kernel/drivers/usb/host/uhci-hcd.ko' [elf32-i386] to `/tmp/initrd.Id7134/lib/uhci-hcd.ko' [elf32-i386]
copy from `/lib/modules/2.6.18-8.el5/kernel/drivers/usb/host/ohci-hcd.ko' [elf32-i386] to `/tmp/initrd.Id7134/lib/ohci-hcd.ko' [elf32-i386]
copy from `/lib/modules/2.6.18-8.el5/kernel/drivers/usb/host/ehci-hcd.ko' [elf32-i386] to `/tmp/initrd.Id7134/lib/ehci-hcd.ko' [elf32-i386]
copy from `/lib/modules/2.6.18-8.el5/kernel/fs/jbd/jbd.ko' [elf32-i386] to `/tmp/initrd.Id7134/lib/jbd.ko' [elf32-i386]
copy from `/lib/modules/2.6.18-8.el5/kernel/fs/ext3/ext3.ko' [elf32-i386] to `/tmp/initrd.Id7134/lib/ext3.ko' [elf32-i386]
copy from `/lib/modules/2.6.18-8.el5/updates/megaide.ko' [elf32-i386] to `/tmp/initrd.Id7134/lib/megaide.ko' [elf32-i386]
Adding module uhci-hcd
Adding module ohci-hcd
Adding module ehci-hcd
Adding module jbd
Adding module ext3
Adding module megaide #这里可以看见这个模块
[root@test02 tmp]#
重启后依然不行,磁盘还是两块,而不是raid0。 |
|