曙光A420r-G安装centos5.5

1、环境

服务器:曙光 天阔A420r-G
操做系统:centos 5.5   x86-64
服务器自带三块500G硬盘,并经过RAID卡设置为RAID 5磁盘阵列,但在安装系统的过程当中却一直没法顺利安装,缘由就是缺少raid卡的驱动,因而跟曙光客服联系,从随机导航光盘中得到了驱动程序,但因为该驱动程序不是所须要的img格式,因此一直加载不成功。此前经过百度查询,一一试以下作法,均告失败。
一、将驱动拷贝到u盘(fat32格式),而后在安装的时候经过linux dd命令加载,失败
二、方法同1,只是u盘格式为fat格式,失败
三、方法同上,只是将u盘格式化为ext3格式,失败
四、同以上各类,将驱动至于u盘根目录,均失败
看来只有img格式可行了,但手头没有img格式的驱动,该如何呢,经网上查询,能够本身制做img格式的文件,方法以下

2、制做img文件

下面的代码是实际操做命令,对红色的内容添加注释以下:
[root @localhost /]# mkfs.ext3 -m0 /dev/ram1   #将/dev/ram1格式化为ext3文件系统
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
4096 inodes, 16384 blocks
0 blocks (0.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=16777216
2 block groups
8192 blocks per group, 8192 fragments per group
2048 inodes per group
Superblock backups stored on blocks:
        8193

Writing inode tables: done                           
Creating journal (1024 blocks): done
Writing superblocks and filesystem accounting information: done node

This filesystem will be automatically checked every 21 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[root@localhost /]# mount /dev/ram1 /mnt  #将该目录mount到目录/mnt,因为是刚格式化,因此其中内容为空
[root@localhost /]# cd /mnt
[root@localhost mnt]# ls 
lost+found
[root@localhost mnt]# cp /tmp/u/* . #将事先准备好的驱动程序拷贝进去 linux

[root @localhost mnt]# ls  #查看其中的内容
install     modinfo        modules.cgz  modules.pcimap  pcitable  rhdd
lost+found  modules.alias  modules.dep  pci.ids         readme
[root @localhost mnt]# cd ..
[root @localhost /]# umount /dev/ram1 #卸载该文件系统
[root @localhost /]# dd if=/dev/ram1 of=/tmp/raid.img #经过dd命令将该文件系统的内容转换为img格式的文件,存放在/tmp目录下
32768+0 records in
32768+0 records out
16777216 bytes (17 MB) copied, 0.683585 seconds, 24.5 MB/s
[root @localhost /]# ls /tmp/raid.img
/tmp/raid.img
[root @localhost /]# ls /tmp/raid.img -lh
-rw-r--r-- 1 root root 16M 06-12 11:10 /tmp/raid.img
[root @localhost /]# mount /dev/sda1 /mnt #挂载u盘
[root @localhost /]# cp /tmp/raid.img /mnt #将作好的img文件拷贝到u盘
[root @localhost /]# umount /mnt
[root @localhost /]# umount /dev/sda1

3、安装centos系统

将按照光盘装入光驱,有raid驱动img文件的u盘插入usb接口,从光盘启动,到引导界面后,输入linux dd回车,当提问do you have a driver disk?时,选yes,而后选择sda,而后选择刚制做好的img 文件raid.img,回车后会加载该驱动文件,当提问do you want to load any more driver disks?时,选No,接下来就跟普通安装linux彻底相同了。

4、说明

因为带有raid卡,因此当raid驱动没加载成功时,进入安装界面后,要么看不到硬盘,要么看到的不是raid后的硬盘,而是一个个的孤立硬盘,此时虽然能够进行安装过程,但安装后没法启动相同。当raid驱动加载成功后,进入安装界面后,看到的硬盘将是raid设置后的大小,而不是一个个孤立的硬盘。
相关文章
相关标签/搜索