oracle 安装raid卡驱动,centos安装raid卡驱动总结

有些时候centos Linux内核不存在raid卡的驱动,以前只能用软盘加载驱动,其实是还有其它方法的,只要找到官方相应的驱动,现在Raid卡的品牌很多,但是大部分独立raid卡为highpoint,3ware,adapter,lsi,promise等还有些是集成在主板上的,如果要制作带驱动的iso镜像光盘比较费时间费精力,要很熟悉ISO的目录结构,要把initrd.img文件加入驱动程序进去,然后封装起来,接下来介绍两种比较好的方法。

硬件型号为lsi 1064e集成raid卡

安装系统centos5.8 Linux

首先先介绍第一种方法:

第一种方法就是采用linux dd来加载驱动,首先准备一个读卡器和sd卡或者u盘

be6cdee6422ac64a9a11ac5544b5e163.png

这里是打开u盘所看到的img文件

eaac8be33b9b3096af217b6de3123b87.png

1g的U盘已经变成1.44m了。

706797896c952d8e0d60788a75d5b2d0.png

加载光盘到boot: linux dd加载驱动

3b962d4de8c4e3d5289bb503f6ff6981.png

正在加载usb-storage driver驱动。

cc361534364bcc637e304d10cb85a4e5.png

询问是否要加载驱动选择yes

d9e4deee0694440d3dd0eb1eccdf05a7.png

选择sda设备usb设备都是被识别为scsi设备

8b7e2aeaa8faef800a7821f7a2c9734d.png

是否要加载/dev/sda设备选择ok

b7dad6cea47d1975f1bc5fe622ab4bbd.png

是否要加载额外的驱动否

36e50c488d706f4f505c9dd5be10f5bc.png

第二中方法:

利用linux nostorage

首先把u盘分区

[root@zh888 ~]# fdisk -l//查看所有分区和硬盘

Disk /dev/sda: 21.5 GB, 21474836480 bytes

255 heads, 63 sectors/track, 2610 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x0007103c

Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1          66      524288   83  Linux

Partition 1 does not end on cylinder boundary.

/dev/sda2              66        1371    10485760   83  Linux

/dev/sda3            1371        1632     2097152   82  Linux swap / Solaris

Disk /dev/sdb: 1000 MB, 1000341504 bytes//这是第二块u盘的信息为1g

31 heads, 62 sectors/track, 1016 cylinders

Units = cylinders of 1922 * 512 = 984064 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x6f20736b

Device Boot      Start         End      Blocks   Id  System

[root@zh888 ~]# fdisk /dev/sdb//格式化第二块scsi设备u盘

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to

switch off the mode (command 'c') and change display units to

sectors (command 'u').

Command (m for help): p//查看分区

Disk /dev/sdb: 1000 MB, 1000341504 bytes

31 heads, 62 sectors/track, 1016 cylinders

Units = cylinders of 1922 * 512 = 984064 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x6f20736b

Device Boot      Start         End      Blocks   Id  System

Command (m for help): n//创建新分区new

Command action

e   extended

p   primary partition (1-4)

p//选择主分区类型

Partition number (1-4): 1//第一个主分区

First cylinder (1-1016, default 1): 回车

Using default value 1

Last cylinder, +cylinders or +size{K,M,G} (1-1016, default 1016): 回车

Using default value 1016

Command (m for help): w//最重要的参数write写入保存退出

The partition table has been altered!

Calling ioctl() to re-read partition table.

Syncing disks.

[root@zh888 ~]# fdisk -l//接着查看分区

Disk /dev/sda: 21.5 GB, 21474836480 bytes

255 heads, 63 sectors/track, 2610 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x0007103c

Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1          66      524288   83  Linux

Partition 1 does not end on cylinder boundary.

/dev/sda2              66        1371    10485760   83  Linux

/dev/sda3            1371        1632     2097152   82  Linux swap / Solaris

Disk /dev/sdb: 1000 MB, 1000341504 bytes

31 heads, 62 sectors/track, 1016 cylinders

Units = cylinders of 1922 * 512 = 984064 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x6f20736b

Device Boot      Start         End      Blocks   Id  System

/dev/sdb1               1        1016      976345   83  Linux//这里是查看sdb1分区但是没创建文件系统

[root@zh888 ~]# mkfs.vfat /dev/sdb1//格式化创建文件系统为vfat(fat32)格式,这个一定要在linux操作,在windows下格式化fat或者fat32都是无法识别的,会出现问题如下:

1a8f94ea4c7b20962eb57eafdb8eb57c.png

输入linux nostorage选择add device增加设备

1e1e9f6f9eb2fb0956118890db95f06f.png

选择usb mass storage driver for linux加载

45ffd2b06e39fd8b1bc29a61e7e34acd.png

出现选择设备驱动

8c55ff0d043c9f067b42acd28e06c26d.png

以上按f2选择sdb设备也就是u盘设备

abef57b5e190433d6b66ce24d95916b5.png

选择/dev/sdb1设备

9a7a5656086478fd885f233a1316362e.png

选择你需要的lsi驱动程序按ok

0be87950322404edc656977c4c1fefa1.png

81c6ebb82474746f6b6601b9cf07debb.png

加载lsi megasr driver 15.00多出来的驱动。

dcffb7a941426004576bc910857ae608.png

最后就可以识别到lsi raid卡了,还可以结合linux  ks=http://ip/ks.cfg dd无人值守安装系统。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 要在Linux安装RAID驱动,您需要执行以下步骤: 1. 下载适用于您的RAID驱动程序。通常,这些驱动程序可以从RAID制造商的网站上获得。 2. 将驱动程序复制到Linux系统中。您可以将其复制到USB驱动器或通过网络传输。 3. 在Linux系统中安装RAID驱动程序。这可以通过运行适当的命令或使用图形界面工具来完成。 4. 配置RAID。您需要使用RAID制造商提供的工具来配置RAID。 5. 检查RAID是否正常工作。您可以使用RAID制造商提供的工具来检查RAID是否正常工作。 请注意,这些步骤可能会因RAID制造商和Linux发行版而有所不同。因此,请确保查阅相关文档以获取更详细的指导。 ### 回答2: 在Linux系统中安装RAID驱动需要经过一系列的步骤,以下是基本的安装流程: 1. 下载驱动程序 首先需要从RAID厂商网站下载相应的Linux驱动程序,通常是以压缩包的形式提供。 2. 解压缩驱动程序 将下载好的驱动程序解压缩到一个指定目录,如:/tmp。 3. 确认系统内核版本 使用uname -r命令确认当前系统的内核版本,因为驱动程序需要针对特定的内核版本编译。 4. 安装编译工具 通过命令sudo apt-get install build-essential安装编译工具,例如gcc、make和kernel headers等。 5. 编译驱动程序 使用驱动程序包中附带的makefile文件编译驱动程序。 6. 加载驱动程序 使用modprobe命令加载驱动程序,例如:sudo modprobe megasr。 7. 验证RAID是否被识别 使用lspci命令查看RAID是否被完全识别,以及是否已被正确安装。 8. 创建RAID逻辑驱动器 使用RAID厂商提供的管理软件创建逻辑驱动器,以启用RAID功能。 总之,在Linux系统中安装RAID驱动程序需要注意以下几点: 1. 下载的驱动程序必须要与RAID型号匹配; 2. 安装编译工具时要选择与当前系统内核版本相匹配的包; 3. 加载驱动程序时要确保命令语法正确。 ### 回答3: Linux安装RAID驱动需要多步操作,以下是常见的方法: 1.下载RAID驱动程序。 首先,需要在RAID生产商的官方网站上下载适合你的RAIDLinux版本的驱动程序。 2.复制驱动压缩文件到Linux服务器。 将下载好的驱动程序解压缩后,复制到Linux服务器的某一个文件夹中。建议将RAID驱动放置在根目录下。 3.加载驱动软件包。 在Linux控制台运行“tar -zxvf xx.tar.gz”来解压缩RAID驱动压缩文件。然后再运行“make install”命令在Linux内核中安装。 4.启动Linux系统,进入操作系统后,打开终端输入命令“yum list kernel | grep kernel-headers”查看安装了哪个内核头。安装命令如下: yum install -y kernelheaders-3.10.0-1127.el7.x86-64 其中3.10.0-1127.el7.x86-64为你系统所对应的内核版本,要进行相应内核版本的安装。 这样驱动安装好了。 5.重启Linux服务器。 为了保证RAID驱动正常工作,需要重启Linux服务器。 6.配置RAID。 进入RAIDBIOS设置并创建阵列磁盘。可参考RAID手册。 安装RAID驱动过程中需要注意以下几点: 1.安装驱动时,需要关闭SELinux和防火墙。 2.安装驱动时,如果出现错误,可查阅相关日志以确定原因。 3.部署Linux服务器时,最好事先将需要的软件和驱动放在一个文件夹中,以方便备份和复制。 4.一旦安装了新的内核版本,请先卸载旧的内核版本,否则RAID驱动可能会导致系统不稳定。 总之,安装RAID驱动需要仔细操作,当你学会了这些步骤,还要不断学习掌握相关技术知识。祝你成功!

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值