当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > 晚上新增一块scsi硬盘...

Unix/Linux
mysql+httpd+gd+php+zend
automake 小回顾
unix黑客精神的最好诠释
www
sun t3存储的设置
RPM简明中文手册
Linux爱好者入门教程 序章 (持续更新)
第一章 Linux基础知识 (飘心)
linux下进程与线程
浅谈如何学习linux
第二章 Linux安装
硬件安装指南
Windows 2000 的桌面不見了的解決方法
部分的ADSL路由器默认帐号密码
如何设定安全log服务器呢?
iptables 规则速查
网友学习 Linux 的七点忠告
sniffer的含义及原理
Linux编程白皮书 第二章 内存管理
Linux编程白皮书 第二章 内存管理 2.1.1 请求调页 --2.1.5 访问控制

Unix/Linux 中的 晚上新增一块scsi硬盘...


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 31 ::
收藏到网摘: n/a

Submitted by 涛涛 on 2005, March 31, 6:14 PM. Linux因为没装过scsi硬盘...所以比较紧张... 装上以后...用dmesg看看机器有没认出来...发现没有... 看看卡有没问题.... [root@Jintao root]# lspci 00:00.0 Host bridge: Intel Corp. 82815 815 Chipset Host Bridge and Memory Controller Hub (rev 02) 00:02.0 VGA compatible controller: Intel Corp. 82815 CGC [Chipset Graphics Controller] (rev 02) 00:1e.0 PCI bridge: Intel Corp. 82801AA PCI Bridge (rev 02) 00:1f.0 ISA bridge: Intel Corp. 82801AA ISA Bridge (LPC) (rev 02) 00:1f.1 IDE interface: Intel Corp. 82801AA IDE (rev 02) 00:1f.2 USB Controller: Intel Corp. 82801AA USB (rev 02) 00:1f.3 SMBus: Intel Corp. 82801AA SMBus (rev 02) 00:1f.5 Multimedia audio controller: Intel Corp. 82801AA AC'97 Audio (rev 02) 01:01.0 SCSI storage controller: Adaptec AHA-2940U/UW/D / AIC-7881U 01:02.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 78) 看见Adaptec AHA-2940U了...看来卡是没有问题的... 在bios里也看到了卡和硬盘都没问题... 怎么系统就不认呢...手动加载成功...可惜驱动可能不太对... #modprobe aic7xxx 就可以了...但是由于这个需要在系统启动之后..也就是在kernel释放之后,那么这种情况导致不能直接修改/etc/fstab,因为会出错.所以我还是放在S99local里让它手动mount [root@Jintao root]# tail -5 /etc/rc.d/rc.local /www/apache2/bin/apachectl start iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE modprobe scsi_mod modprobe aic7xxx mount -t ext3 /dev/sda1 /*** fdisk对该硬盘整个只分了一个区...嘿嘿...然后mkfs -t ext3 /dev/sda~嘿嘿...就搞定... 然后添加一个用户 #useradd *** -d /*** #passwd *** 嘿嘿...搞定... 访客评论问题不在于这里...今天手动修改initrd.img里的linuxrc再试试...等中午吧...Post by 涛涛 on 2005, April 1, 10:25 AM# 1问题解决. /etc/modules.conf需要加一行 alias scsi_hostadapter aic7xxx 注意第二列需要用scsi_hostadapter这个名称 为什么呢...mkinitrd这个脚本里有描述: scsimodules=`grep "alias[[:space:]]scsi_hostadapter" $modulefile` 空格后面就是scsi_hostadapter,然后这里如果grep不到就会出错. 我这里便是aic7xxx,然后mkinitrd,其实就是找模块,然后添加到initrd.img里的linuxrc里面,这样系统启动时会释放scsi驱动,这样/etc/fstab才可以挂上来. 我昨天这样没成功,因为/etc/modules.conf第二列写错了.所以我自己只有手动加在S99local,也是一种解决的办法...:) 只是现在这样更好些.Post by 涛涛 on 2005, April 1, 1:35 PM# 2不是我的,,只是分享一下,因為我快要裝一個scsi的ibm服務器了