曙光A420r-G安装centos5.5



曙光A420r-G安装centos5.5
 
一、环境
服务器:曙光 天阔A420r-G
操作系统:centos 5.5   x86-64
服务器自带三块500G硬盘,并通过RAID卡设置为RAID 5磁盘阵列,但在安装系统的过程中却一直无法顺利安装,原因就是缺乏raid卡的驱动,于是跟曙光客服联系,从随机导航光盘中获得了驱动程序,但由于该驱动程序不是所需要的img格式,所以一直加载不成功。此前通过百度查询,一一试如下做法,均告失败。  www.2cto.com  
 
1、将驱动拷贝到u盘(fat32格式),然后在安装的时候通过linux dd命令加载,失败
2、方法同1,只是u盘格式为fat格式,失败
3、方法同上,只是将u盘格式化为ext3格式,失败
4、同以上各种,将驱动至于u盘根目录,均失败
看来只有img格式可行了,但手头没有img格式的驱动,该如何呢,经网上查询,可以自己制作img格式的文件,方法如下
 
二、制作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
 
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/* . #将事先准备好的驱动程序拷贝进去
 
[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 
 
三、安装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完全相同了。
四、说明
由于带有raid卡,所以当raid驱动没加载成功时,进入安装界面后,要么看不到硬盘,要么看到的不是raid后的硬盘,而是一个个的孤立硬盘,此时虽然可以进行安装过程,但安装后无法启动相同。当raid驱动加载成功后,进入安装界面后,看到的硬盘将是raid设置后的大小,而不是一个个孤立的硬盘。
 

相关内容

    暂无相关文章