QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4310|回复: 55

ICH6R SATA RAID 0 上如何安装linux 急

[复制链接]
发表于 2005-8-25 12:41:41 | 显示全部楼层 |阅读模式
有个问题想请教一下。我用ICH6R组RAID 0 。但系统我打算装linux ,试过了redhat9.0启动, 但linux提示找不到HDD设备。

想问一下,如何在RAID 0模式下装linux。 谢谢。
发表于 2005-8-25 13:48:07 | 显示全部楼层
RAID是个麻烦。帮你顶
回复

使用道具 举报

 楼主| 发表于 2005-8-25 14:45:33 | 显示全部楼层
使用  linux dd  的话, 现在又找不到驱动呀  郁闷
在intel网站上找了个iCH5R_SUSE90_SATA-RAID_ver5.08i,说是可以支持ICH6R的。 但 linux dd 后 还是没用呀
不管把下载的驱动是解在光盘上还是软盘上,结果都是一样的。
请高手指点一下呀。
回复

使用道具 举报

 楼主| 发表于 2005-8-25 16:52:28 | 显示全部楼层
等待高人出手帮忙  谢谢谢谢啦
回复

使用道具 举报

 楼主| 发表于 2005-8-25 19:09:30 | 显示全部楼层
:-(  :-(   继续在线等高手
回复

使用道具 举报

发表于 2005-8-25 20:19:06 | 显示全部楼层
还真没有玩过IDE上的RAID

如果是SCSI硬盘,比如我们的服务器上,6个SCSI硬盘做RAID5,一般都是有IBM自带的软件来完成RAID的建立和维护,注意,这个软件是独立于你打算安装的操作系统的。

也就是说在你安装操作系统前,RAID控制软件就已经做好了RAID的工作,到你安装系统是,你看到的只是一个硬盘而不是多个。

但是自己家里面电脑上的RAID功能——还没有玩过
回复

使用道具 举报

 楼主| 发表于 2005-8-26 09:25:58 | 显示全部楼层
今天继续试验中   郁闷的早上
单颗SATA 80G硬盘,仍在ASUS 915P+ICH6R的主板上,SATA 设置E 或 C 模式都可正常安装 RedHat Linux enterprise AS4
两颗SATA 80GB 组成RAID 0 ,已先在BIOS内设定好 (ICH6R 设置RAID 开机按ctrl+I),安装RedHat Linux E AS4 , 安装Log show 可以看到ICH6的字样,但安装时,提示为 intel PIIX ata ………………  还是不对。 PIIX是 440BX的南桥呀。 郁闷。
就没有人在ICH6R上玩过SATA RAID的人吗?
回复

使用道具 举报

 楼主| 发表于 2005-8-26 09:49:32 | 显示全部楼层
现在单颗硬盘安装RHEL AS4 都正常, 进系统看,linux也正常设别出来的ICH6R和USB以及SATA HDD (ST380013AS 识别为ST380817AS),但ICH6R使用的DRV还是linux 自带的PIIX ATA  
为什么就不能用SATA RAID 呀?

请问 ATFA 兄 , 正常的安装顺序是否如下:
在BIOS 或 SCSI 设置里,把RAID 设置好
然后开机光盘引导安装
安装时,使用 linux dd  
当提示插入RAID 驱动盘时,从FD或CD-rom 选择插入
然后就是后续的安装

小弟是头一次在RAID 上装linux, 不知这样的方法是否正确  如果正确 那应该找到正确的 ICH6R 的RAID driver for linux 就可以了。
回复

使用道具 举报

 楼主| 发表于 2005-8-26 10:58:34 | 显示全部楼层
http://www.redhat.com/archives/fedora-list/2004-July/msg03335.html

在红帽子上找到这个。不过看不明白。
回复

使用道具 举报

发表于 2005-8-26 11:23:49 | 显示全部楼层
redhat的那个连接是software raid的, 不是硬件raid. 一年前在875+ich5R上试过, 当时我是三块120G硬盘, 两块sata, 一块pata, 安装的redhat是在pata盘上,  结果因为redhat强行识别成非raid的硬盘, 擦除了mbr, 损失了200G的数据
回复

使用道具 举报

 楼主| 发表于 2005-8-26 13:01:29 | 显示全部楼层
楼上的兄台, ICH5R 上安装RAID 应该跟 ICH6R是一样的 驱动都是一样的。
能否详细说明一下你的安装方法?

我想ICH6R 应该是硬RAID的,而非很多英文资料上讲的software RAID。
回复

使用道具 举报

 楼主| 发表于 2005-8-26 17:28:28 | 显示全部楼层
又是失败的一天      

在Intel网站下载的ICH6R的资料档里,提到RAID是LSI的。到LSI下载了N个驱动都不行。
华硕的客服说让俺找intel,日他。
华硕的网站提到Silicon Image,到SI网站也未找到合适的驱动,感觉应该是3114,但没有3114的驱动
最后又跑回Intel网站,在intel网站找到ICH6R SATA RAID driver for linux RHEL 3 的驱动,下载回来还是不行。郁闷呀。

在LSI的网站看到为DELL 做 OEM ,在DELL网站又找了一下,好像有提到如何安装和配置SATA RAID ,不过已经周末了,先出去放松一下再说。明天有空再看。
回复

使用道具 举报

 楼主| 发表于 2005-8-26 17:30:08 | 显示全部楼层
这是在Intel网站找到的资料,拿上来分享一下。虽不是值钱货,但对于研究还是有益的。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复

使用道具 举报

 楼主| 发表于 2005-8-26 17:40:30 | 显示全部楼层
SATA RAID Driver for Red Hat* Enterprise Linux 3.0 AS (IA-32) [Multiple Files]

这个驱动对应的系统跟我的系统应该是一样的吗?
难道是我的RHEL4 太新了?


intel 的 readme.txt 部分内容如下:

Install Instructions
(RedHat 3.0)

Index

1        Introduction        3
2        Prepare Installation disk(s)        4
2.1        Get required driver image files        4
2.2        Create install disk(s)        4
2.2.1        Using windows system        4
2.2.2        Using Linux system        5
3        Installation methods        5
3.1        Fresh installation        5
3.2        Install megaide as a secondary device (stand alone module)        6
3.3        Install megaide as a secondary device (Build with initrd image) 6
3.4        Update megaide driver on already installed system        8

1 Introduction
The purpose of this document is to provide clear instructions on how to install RedHat 3.0 on IDE drives attached to the LSI Logic IDE RAID Controller known as MegaRAID IDE.

2 Prepare Installation disk(s)

2.1 Get required driver image files
Megaide driver is provided in the form of driver update disk. Required files for installation listed below. Get these files from the LSI Logic FTP site located at ftp://www.megaraid.lsilogic.com. New versions of the install image(s) will be made available.   The new image(s) will have the same basic name.

File                                Description
dud-<driver version>.dd                MegaRAID IDEal Stack Driver Update Disk

2.2 Create install disk(s)
User requires a system with either Microsoft Windows or a UNIX based Operating System and fresh floppy diskette(s) to prepare the install disk(s).  The required Installation Diskettes are created on any system. Two common operating system procedures is documented

  2.2.1 Using windows system
In windows operating system rawwrite floppy image writer utility is used to create disk images from image files.  It can be down loaded from Internet.  Follow the given procedure to build install diskette(s).

Steps:
   1. Copy driver update disc image and the rawrite to a directory
Files required are:
           dud-<driver version>.dd
           rawrite.exe
   2. Once you have confirmed the files are in the same directory, you may need to change file name of driver update disk to a smaller name with less than 8 characters.
copy dud-<driver version>.dd dud.dd
   3. Type the following command followed by <enter> to create the two installation diskettes:
RAWRITE<enter>

You will then be prompted to enter the name of the boot image file.  Type
dud.dd

Next, you will be prompted for the target disk drive.  Insert a floppy disk into the floppy disk drive and type
A<enter>
Do not remove the disk until the command prompt returns and the floppy disk drive light goes out.
Label the Disk “RedHat 3.0 <driver version>”.

2.2.2 Using Linux system
In linux operating system dd utility is used to create disk images from image files.  It can be found in all linux installation. See dd man page for more information about it.

Steps:
   1. Copy dud-<driver version>.dd and boot.img to a linux system
   2. Insert a fresh floppy disk in floppy drive
Create the Driver Update floppy using the following command:
#dd if= dud-<driver version>.dd of=/dev/fd0
Do not remove the disk until the command prompt returns and the floppy disk drive light goes out.
   3. Label the Disk “RedHat 3.0 <driver version>”

3 Installation methods
There are different types of installation possible with the installation package provided. Those are explained in different sections.

3.1 Fresh installation
This mode of installation is selected when user needs to install the Operating system on a fresh MegaRAID IDE controller. For this kind of installation driver update disc is used at the starting of the installation and the installer will update the system with MegaRAID driver images for the required kernels. Follow the procedure given below to install MegaRAID IDEal Soft RAID Stack at the time of Installation.


Steps:
   1. Create a RAID array using the MegaRAID IDE BIOS.
   2. Boot your system using RedHat 3.0 Disc one
   3. At boot prompt type “linux dd”
   4. Insert driver update disc when asked.
   5. Complete installation  with RedHat 3.0 CD’s

3.2 Install megaide as a secondary device (stand alone module)
This mode of installation is preferred if megaide controller is used as a secondary device.  This is a fast mode of bringing the megaide controller in to active but it is less efficient. It required manual installation of megaide driver module at each boot of the system. Follow the procedure below to achieve this
Steps:
   1. Create RAID array on Megaide controller using Megaide BIOS.
   2. Boot RedHat 3.0 from primary controller
   3. Mount the dud floppy.
#mount /dev/fd0 /mnt/floppy
   4. Unzip modules.cgz file in driver update disc to get driver images for different RedHat 3.0 kernels

#mkdir –p /home/megaide
#cd /home/megaide
#cp /mnt/floppy/modules.cgz .
#gunizip –S .cgz  modules.cgz
It will generate a new file called modules.
#cpio –ivd < modules
It will give  {2.4.21-9.EL, 2.4.21-9.ELsmp, 2.4.21-9.ELhugemem, 2.4.21-9.ELBOOT}/megaide.o
or {2.4.21-15.EL, 2.4.21-15.ELsmp, 2.4.21-15.ELhugemem, 2.4.21-15.ELBOOT}/megaide.o

   5. Load scsi mid layer modules and Install megaide driver for running kernel
#modprobe scsi_mod
#cd /home/megaide
#insmod <running kernel>/megaide.o

3.3 Install megaide as a secondary device (Build with initrd image)
This is preferred if Megaide controller is used as a secondary device.  Here megaide driver will be build with the initrd image and there for user need not do insmod at every reboot of the system.

Steps
   1. Create RAID array on Megaide controller using Megaide BIOS.
   2. Boot up RedHat 3.0 from primary controller/Disk.
   3. Mount the dud floppy.
#mount /dev/fd0 /mnt/floppy
   4. Unzip modules.cgz file in driver update disc to get driver images for different RedHat 3.0 kernels

#mkdir –p /home/megaide
#cd /home/megaide
#cp /mnt/floppy/modules.cgz .
#gunizip –S .cgz  modules.cgz
It will generate a new file called  modules.
#cpio –ivd < modules
It will give  {2.4.21-9.EL, 2.4.21-9.ELsmp, 2.4.21-9.ELhugemem, 2.4.21-9.ELBOOT}/megaide.o
or {2.4.21-15.EL, 2.4.21-15.ELsmp, 2.4.21-15.ELhugemem, 2.4.21-15.ELBOOT}/megaide.o
   5. Install megaide driver module
#cd /home/megaide
# cp <kernel version>/megaide.o  /lib/modules/<kernel version>/update/egaide.o
   6. Create Megaide driver Entry in Configuration file.

RedHat configuration file is /etc/modules.conf.
If megaide entry is not present in /etc/modules.conf add following line.
alias  scsi_hostadapter megaide
   7. Create new initrd image for the required kernel.

RedHat uses mk_initrd utility to create initrd image  following command will create an initrd image for  2.4.21-9(15).ELsmp kernel  in boot directory. See mk_initrd man page more information

#mkinitrd /boot/initrd-2.4.21-9.ELsmp.img.new 2.4.21-9.ELsmp
or mkinitrd /boot/initrd-2.4.21-15.ELsmp.img.new 2.4.21-15.ELsmp
   8. Modify lilo.conf/grub.conf  file

Add newly created initrd(s) as a new entries in /etc/lilo.conf file. The best suggested method is to copy an existing lilo entry in the file and  past it as a new one. Then modify its kernel image name, initrd image name and label name.

Sample Lilo Entry
image=/boot/vmlinux-2.4.21-9(15).ELsmp
label=linux-new
initrd=/boot/initrd-2.4.21-9(15).ELsmp.img.new
read-only
appened=”root=LABEL=/ ”

Sample Grub Entry

title Red Hat Linux (2.4.21-9(15).ELsmp with megaide driver)
root (hd0,0)
kernel /vmlinuz-2.4.21-9(15).ELsmp ro root=LABEL=/
initrd /initrd-2.4.21-9(15).ELsmp.img.new
   9. Update boot loader

If the boot loader is Lilo run lilo command to update boot loader
#lilo
   10. Reboot the system to the new initrd entries.

3.4 Update megaide driver on already installed system
This method is used to update Megaide driver in a system, which is already installed with an older driver version. Here this procedure explains the manual process of updating the driver.  Follow the steps given to update driver.
Steps
   1. Create RAID array on Megaide controller using Megaide BIOS.
   2. Boot up RedHat 3.0 from primary controller/Disk.
   3. Mount the dud floppy.
#mount /dev/fd0 /mnt/floppy
   4. Unzip modules.cgz file in driver update disc to get driver images for different RedHat 3.0

#mkdir –p /home/megaide
#cd /home/megaide
#cp /mnt/floppy/modules.cgz .
#gunizip –S .cgz  modules.cgz
It will generate a new file called  modules.
#cpio –ivd < modules
It will give  {2.4.21-9.EL, 2.4.21-9.ELsmp, 2.4.21-9.ELhugemem, 2.4.21-9.ELBOOT}/megaide.o
or {2.4.21-15.EL, 2.4.21-15.ELsmp, 2.4.21-15.ELhugemem, 2.4.21-15.ELBOOT}/megaide.o
   5. Update megaide driver module for the  required kernels.
#cd /home/megaide
# cp <kernel version>/megaide.o  /lib/modules/<kernel version>/update/megaide.o
   6. Create Megaide driver Entry in Configuration file.

RedHat configuration file is /etc/modules.conf.
If megaide entry is not present in /etc/modules.conf add following line.
alias  scsi_hostadapter megaide
   7. Create new initrd image for the required kernel.

RedHat uses mk_initrd utility to create initrd image following command will create an initrd image for  2.4.21-9(15).ELsmp kernel  in boot directory. See mk_initrd man page more information

#mkinitrd /boot/initrd-2.4.21-9(15).ELsmp.img.new 2.4.21-9(15).ELsmp
   8. Modify lilo.conf/grub.conf  file

Add newly created initrd(s) as a new entries in /etc/lilo.conf file. The best suggested method is to copy an existing lilo entry in the file and  past it as a new one. Then modify its kernel image name, initrd image name and label name.

Sample Lilo Entry
image=/boot/vmlinux-2.4.21-9(15).ELsmp
label=linux-new
initrd=/boot/initrd-2.4.21-9(15).ELsmp.img.new
read-only
appened=”root=LABEL=/  ”

Sample Grub Entry

title Red Hat Linux (2.4.21-9(15).ELsmp with megaide driver)
root (hd0,0)
kernel /vmlinuz-2.4.21-9(15).ELsmp ro root=LABEL=/
initrd /initrd-2.4.21-9(15).ELsmp.img.new
   9. Update boot loader

If the boot loader is Lilo run lilo command to update boot loader
#lilo
   10. Reboot the system to the new initrd entries.
回复

使用道具 举报

发表于 2005-8-26 17:54:21 | 显示全部楼层
应该没有那么复杂
先把硬盘设置为raid,然后装,如果能在分区的时候看到是1块硬盘,而且容量是单硬盘的2倍,继续装就是了,显示什么并没有关系,只是说明你的内核的版本比较低。装好以后再用新内核。
我的sata被识别为scsi。
as3时代的文章已经没有多少参考价值。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-17 16:19 , Processed in 0.079955 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表