自上次RAID安装失败后,我另外购买了一块adapter sata raid 2410sa 卡,准备测试四块机器安装RAID5.
环境如下:
主板:Inter Server S5000VSA
CPU:xeon 四核 5405*2
内存:16G
硬盘:4谷歌搜索入口块西部数据500GSATA
RAID: 主板自带RAID0
系统:Centos5.3 64位
遗憾的是,这次RAID5还是没有达成,原因是官方没有提供centos5 64位的驱动,只是实现了RAID0.
不过,倒是掌握了不用软驱,也能安装RAID驱动程序的办法,想想前几天还专门购买了一个软驱,真是亏啊。
办法很简单,上次其实提到过,如下:
拔河比赛策划书1) 超速20以上不足50创建RAID,这一步,我就不讲相信大家都会。
2) 启动Centos安装,并且将驱动程序复制到你的移动硬盘里(注意最好是第一盘符),直接IMG文件就可以了。
3) 在安装的第一个界面,输入 linux nostorage
4) 进入安装过程中,一直看到“Add device” 按钮.
5) 点击 “Add Device”,出现一系列的驱动
6) 按F2,就跳出选择软盘,或者移动硬盘
7) 我们选择移动硬盘,到驱动程序文件,一般是IMG文件,选中后再点OK按钮。
8 ) 这时会回到刚才看到的驱动程序列表界面
9) 选中刚才加进来的驱动,建议大家记住自己的驱动型号,厂商等信息,以便快速定位。
11) 点击 OK
2) 启动Centos安装,并且将驱动程序复制到你的移动硬盘里(注意最好是第一盘符),直接IMG文件就可以了。
3) 在安装的第一个界面,输入 linux nostorage
4) 进入安装过程中,一直看到“Add device” 按钮.
5) 点击 “Add Device”,出现一系列的驱动
6) 按F2,就跳出选择软盘,或者移动硬盘
7) 我们选择移动硬盘,到驱动程序文件,一般是IMG文件,选中后再点OK按钮。
8 ) 这时会回到刚才看到的驱动程序列表界面
9) 选中刚才加进来的驱动,建议大家记住自己的驱动型号,厂商等信息,以便快速定位。
11) 点击 OK
12) 驱动程序就被加载,并出现在新增加设置列里
13) 点击 Done
14) 继续安装,完成了。
13) 点击 Done
14) 继续安装,完成了。
这次还测试了intel S5000VSA自带的RAID安装RAID10,发现就算安装了驱动,能够顺利安装完,但是重新启动就会有问题,与上次一样,
attempt to access beyond end of device
sda: rw=0, want=1953278938, limit=976773168
Buffer I/O error on device sda2, logical block 1952877312
attempt to access beyond end of device
sda: rw=0, want=1953278939, limit=976773168
Buffer I/O error on device sda2, logical block 1952877313
attempt to access beyond end of device
sda: rw=0, want=1953278940, limit=976773168
Buffer I/O error on device sda2, logical block 1952877314
sda: rw=0, want=1953278938, limit=976773168
Buffer I/O error on device sda2, logical block 1952877312
attempt to access beyond end of device
sda: rw=0, want=1953278939, limit=976773168
Buffer I/O error on device sda2, logical block 1952877313
attempt to access beyond end of device
sda: rw=0, want=1953278940, limit=976773168
Buffer I/O error on device sda2, logical block 1952877314
attempt to access beyond end of device
sda: rw=0, want=1953278941, limit=976773168
Buffer I/O error on device sda2, logical block 1952877315
attempt to access beyond end of device
sda: rw=0, want=1953278942, limit=976773168
Buffer I/O error on device sda2, logical block 1952877316
attempt to access beyond end of device
sda: rw=0, want=1953278943, limit=976773168
Buffer I/O error on device sda2, logical block 1952877317
attempt to access beyond end of device
sda: rw=0, want=1953278944, limit=976773168
Buffer I/O error on device sda2, logical block 1952877318
attempt to access beyond end of device
sda: rw=0, want=1953278945, limit=976773168
Buffer I/O error on device sda2, logical block 1952877319
sda: rw=0, want=1953278941, limit=976773168
Buffer I/O error on device sda2, logical block 1952877315
attempt to access beyond end of device
sda: rw=0, want=1953278942, limit=976773168
Buffer I/O error on device sda2, logical block 1952877316
attempt to access beyond end of device
sda: rw=0, want=1953278943, limit=976773168
Buffer I/O error on device sda2, logical block 1952877317
attempt to access beyond end of device
sda: rw=0, want=1953278944, limit=976773168
Buffer I/O error on device sda2, logical block 1952877318
attempt to access beyond end of device
sda: rw=0, want=1953278945, limit=976773168
Buffer I/O error on device sda2, logical block 1952877319
attempt to access beyond end of device
sda: rw=0, want=1953278938, limit=976773168
Buffer I/O error on device sda2, logical block 1952877312
sda: rw=0, want=1953278938, limit=976773168
Buffer I/O error on device sda2, logical block 1952877312
由此,我判断是自带的RAID不支持,4块500G硬盘构成的将近1T的容量,其实还是觉得奇怪,可事实如此,哎.除非这块主板有问题。
因为性能上的要求,公司需要将一台windows2008的机器改为Linux的,于是我从网上下了一个最新版的CentOS 5.5系统,服务器配置为 志强4核5506 * 2,4*4 16G内存,6块2T硬盘做了两个Raid 0,第一次安装时发现CentOS认出来的硬盘标识都是一长串类如dd1_XXXXXXXXXXX的数字,一查发现是没有驱动造成的,于是Intel的售后要了一个驱动下载地址(downloadcenter.intel/Detail_Desc.aspx?a gr=Y&ProdId=3076&DwnldID=18570&lang=zho)下载后解压,里面有两个英文text文档,对于CentOS 5.x来说其中最主要的内容如下:
-----------------
-----------------
3.1.3 Installing RHEL5 (with or without Update 1, Update 2, Update 3, Update 4, Update 5) on RAID
-----------------
In order to support XEN mode, the system needs to have its Virtualization feature enabled in BIOS as a first step, and XEN software package in the OS needs to be loaded during installation.
1) Create a RAID array using the Intel(R) Embedded Server RAID Technology II RAID BIOS Console.
2) Connect USB floppy drive and insert the floppy disk with RAID driver
3) Boot your system using RHEL5.0 DVD
4) At boot prompt type "linux dd noprobe=ata1 noprobe=ata2 noprobe=ata3 noprobe=ata4"
5) And then you'll see a page that shows "loading usb-storage driver", and then it will ask you "Do you have a driver disk". Choose "Yes"
6) Then it will ask you which one do you choose as a driver disk, choose "sda" which is the USB floppy disk. And then click OK to continue, you'll see the message "Reading driver disk", after it finishes, it will ask "Do you wish to load any more driver disks?" choose No if you do not have any more driver to load.
7) (If XEN mode feature is needed, the OS installatng KEY is necessary and then XEN software package needs to be loaded) Then continue with the RHEL automatic installatio
4) At boot prompt type "linux dd noprobe=ata1 noprobe=ata2 noprobe=ata3 noprobe=ata4"
5) And then you'll see a page that shows "loading usb-storage driver", and then it will ask you "Do you have a driver disk". Choose "Yes"
6) Then it will ask you which one do you choose as a driver disk, choose "sda" which is the USB floppy disk. And then click OK to continue, you'll see the message "Reading driver disk", after it finishes, it will ask "Do you wish to load any more driver disks?" choose No if you do not have any more driver to load.
7) (If XEN mode feature is needed, the OS installatng KEY is necessary and then XEN software package needs to be loaded) Then continue with the RHEL automatic installatio
n, you can see that in the page where we select drives to use for installation, you can only see 1 disk (Intel MegaSR), this means the raid is recognized.
8) At the last step of the installation (after all the packages are installed) RHEL5 prompts you to reboot. Do not click reboot button. Press Ctr+Alt+F2 to go to the text console prompt.
9) type "cat /proc/partitions" you will see some info about the partition. For example, you might find several rows, one row might include sdb. You might find like this
major minor #blocks name
8 16 1440 sdb
(In case cannot find 1440 under #blocks column, may need to remove and reinsert the
8) At the last step of the installation (after all the packages are installed) RHEL5 prompts you to reboot. Do not click reboot button. Press Ctr+Alt+F2 to go to the text console prompt.
9) type "cat /proc/partitions" you will see some info about the partition. For example, you might find several rows, one row might include sdb. You might find like this
major minor #blocks name
8 16 1440 sdb
(In case cannot find 1440 under #blocks column, may need to remove and reinsert the
USB floppy drive, then to run "cat /proc/partitions" again.)
10) type "mknod /dev/sdb b 8 16" (8 and 16 are copied from the major and minor numbers in step #9, so that the numbers could change according to what is seen in step #9)
11) type "mkdir /temp"
12) type "mount /dev/sdb /temp"
13) type "ls /temp" and you can find all the driver files are now in /temp
14) Use cd command to enter /temp directory
15) type "./replace_ahci.sh" to execute the script. It will remove ahci from /etc/modprobe.
10) type "mknod /dev/sdb b 8 16" (8 and 16 are copied from the major and minor numbers in step #9, so that the numbers could change according to what is seen in step #9)
11) type "mkdir /temp"
12) type "mount /dev/sdb /temp"
13) type "ls /temp" and you can find all the driver files are now in /temp
14) Use cd command to enter /temp directory
15) type "./replace_ahci.sh" to execute the script. It will remove ahci from /etc/modprobe.
conf and blacklist ahci in /etc/modprobe.d/blacklist (replace_ahci.sh is also an example, and please implement the script even if the *.sh is with other name).
描写老师的段落 16) Go back to graphic screen and reboot the system in order to finish the installation.
英文并不难,我就不一一翻译了,只提醒一下:1440这个数是指你U盘的大小,并不一定是1440,你只要到你U盘对应的值就可以了;第二,第10步其实根本没必要做,你插上U盘,CentOS自动就已经做了这步了,如果这时候你执行第10步,会提示Error 17 file existes。
除了以上问题,我就要开始“日”了,根据这个“官方”文档,根本没法配出CentOS 5.5的Raid驱动,我尝试了N种方法,不管是linux dd noprobe……还是 linux dd nostorage 到最后一部都无法在它说的目录下到replace_ahci.sh文件,用find / -name 'replace_ahci.sh'能在/tmp/sxxx/dd0/目录下到一个同名文件,但是运行后再reboot,就只能进grub了,无法进入系统。最后我集合了网上别人的经验,用下面的方法解决的:
描写老师的段落 16) Go back to graphic screen and reboot the system in order to finish the installation.
英文并不难,我就不一一翻译了,只提醒一下:1440这个数是指你U盘的大小,并不一定是1440,你只要到你U盘对应的值就可以了;第二,第10步其实根本没必要做,你插上U盘,CentOS自动就已经做了这步了,如果这时候你执行第10步,会提示Error 17 file existes。
除了以上问题,我就要开始“日”了,根据这个“官方”文档,根本没法配出CentOS 5.5的Raid驱动,我尝试了N种方法,不管是linux dd noprobe……还是 linux dd nostorage 到最后一部都无法在它说的目录下到replace_ahci.sh文件,用find / -name 'replace_ahci.sh'能在/tmp/sxxx/dd0/目录下到一个同名文件,但是运行后再reboot,就只能进grub了,无法进入系统。最后我集合了网上别人的经验,用下面的方法解决的:
1.用光驱引导方式安装操作系统,当出现图像界面时插入U盘,按【Ctrl+Alt+F2】组合键切换到控制台界面。运行下面命令将驱动包镜像写到U盘中: sh-3.2# cat /proc/partitions -->查看U盘分区参数
sh-3.2# mkdir /a /b
sh-3.2# mount /dev/sda1 /a -->如果U盘的分区为sda1
sh-3.2# cp /a/megasr.img /b(燕山月似钩的上一句这里megasr.img是驱动包里,DUDs目录下与你系统对应的img文件,对于CentOS 5.5 来说是megasr-13.21.0614.2010-1-rhel50-u5-all.img)
sh-3.2# umount /a
sh-3.2# dd if=/b/megasr.img of=/dev/sda --> 注意,这里没后面那个1了
2.重新启动服务器,当出现“boot:”提示时输入linux dd,然后按回车。当出现“Do you have a driver disk?”提问时,选择[Yes],再选择源盘蛋包饭怎么做sda,确认,(这里网上有种说法是要拔出U盘,实际上不能拔出,否则后面安装时会告警,报告不到sdx(U盘的分区参数)不到,无法继续,至少5.5里面是这样)继续安装系统。
3.当操作系统安装完毕,出现提示重启系统界面时,不要按[Reboot]按钮重启系统,这时插入U盘,按【Ctrl+Alt+F2】组合键再次切换到控制台界面,然后执行下面命令:
sh-3.2# cat /proc/partitions --> 查看U盘分区参数
8 16 sdb -->显示的U盘参数很可能是这样
(网上这步之后还跟了一部:sh-3.2# mknod /dev/sdb b 8 16,其实也没必要,原因我上面说过了)
sh-3.2# mkdir temp
sh-3.2# mount /dev/sdb /temp
sh-3.2# ls /temp --> 查看U盘中的文件
sh-3.2# cd /temp
sh-3.2# ./replace_ahci.sh
sh-3.2# umount /temp
到此,终于结束了,看来,太迷信官方文档了也不行啊。好歹我也借鉴了别人解决方法,把自己的方法也写出来共享一下好了
要在已安装好的centos 5.5 32bit 系统上安装一个由两块2t硬盘组成的硬raid0,通过百度查到各种资料,大都是在安装系统时加载raid卡驱动,大多没提到对已有系统进行安装raid卡驱动,现把具体过程自己总结一下
1.先把raid卡插到服务器上
2.在raid卡下载对应版本的raid卡驱动,我下载的是img文件
3.我通过在本地(xp环境下)把img文件解压缩后得到一个目录,在网上查资料说也可以用mount挂载img文件,我没有试
4.我通过winscp把解压缩后的驱动上传到linux服务器的root目录
5.看驱动里的readme,得知,执行install命令即可安装raid卡驱动
6.安装成功后,关机,把那两块2t硬盘安装到服务器上,并开机,在raid卡的管理界面里做raid0
7.做完raid0后,进入系统,用fdisk -l命令看到识别出了4t的硬盘空间
8.输入parted /dev/sdb命令(sdb是我后安装的4t阵列)
9.输入mklabel gpt 建立gpt分区表
10.输入mkpart 建立分区,分区类型?输入p;文件系统类型?默认回车;起始位置?0;结束点?-1;输入p查看是否创建成功;成功后输入q退出
11.mkfs -t ext3 /dev/sdb1
大功告成
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论