Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1423580
  • 博文数量: 122
  • 博客积分: 340
  • 博客等级: 一等列兵
  • 技术积分: 2967
  • 用 户 组: 普通用户
  • 注册时间: 2009-04-01 11:50
个人简介

说点什么呢

文章分类

全部博文(122)

文章存档

2018年(2)

2017年(1)

2015年(2)

2014年(30)

2013年(81)

2011年(5)

2009年(1)

分类: SOLARIS

2014-01-13 12:50:17

八、Solaris 安装StorEdge3310  AC JBOD磁阵

1、安装好Solaris 9 的操作系统后,打上9_Recommended.zip文件的系统补丁,该补丁需

要在单用户模式下打上;

2、安装SCSI卡的驱动程序,这里需要下载和安装如下四个驱动程序:SUNWqus.tar.ZSUNWqusu.tar.ZSUNWqusux.tar.ZSUNWqusx.tar.Z

3、上述四个驱动程序的文件下载地址在:

注:

上述的连接已经失效,改用下列的方法找到驱的:

1. Go to 

2. In the Browse By Category section, click A-Z Index of All Products.

3. Find and click Sun StorEdge PCI Dual Ultra3 SCSI Host Adapter v1.0.

4. If you have not already registered, click the Register button, and complete the registration process

按照上述方法之前,先要有一个帐号。

4、下面这个网址说明了,如何下载并安装上述的四个驱动程序文件:

5、将上述四个文件下载后,分别用户uncompress 和 tar xvf filename.tar来进行解压

6、解压后,使用下列命令进行安装 pkgadd -a /tmp/admin -d /ccc/112706-04 SUNWqus

注:

2009-08-03日重启安装时,用上述方法没有成功,改用下面的方法:

pkgadd -d . SUNWqus 

                pkgadd -d . SUNWqusu

                pkgadd -d . SUNWqusux

                pkgadd -d . SUNWqusx

7、其中/ccc/112706-04是存放驱动程序的路径,SUNWqus就是要安装的驱动程序包;

8、/tmp/admin 是一个管理文件,在安装之前如果先用vi 生成这个文件,否则会出现:

pkgadd: ERROR: unable to open admin file错误

9、admin file文件内容是:vi /tmp/admin

mail=root 

instance=overwrite 

partial=nocheck 

runlevel=nocheck 

idepend=nocheck 

rdepend=nocheck 

space=ask 

setuid=nocheck 

conflict=nocheck 

action=nocheck 

basedir=default

10、上述的四个驱动程序的软件包都安装好了之后,重新启动系统就可以用format 来看到

磁阵上的磁盘了;

注:

下载驱动时一定要注意是驱动的程序包,而不是补丁包,很多时候不注意下载的是补丁包而无法安装,补丁包只有在程序包安装好后才能打的。

注:

下面的sun的英文版的安装说明:

Please complete the following steps to install the QUS Driver for the 

Sun StorEdge PCI Dual Ultra160 SCSI Host Adapter on Solaris 8 or

Solaris 9 systems.

1. Download the four compressed package archives from the Sun Download Center

to a common directory. 

                SUNWqus.tar.Z

                SUNWqusx.tar.Z

SUNWqusu.tar.Z

SUNWqusux.tar.Z

2.  Uncompress the package archives.

                uncompress SUNWqus.tar.Z

                uncompress SUNWqusx.tar.Z

uncompress SUNWqusu.tar.Z

uncompress SUNWqusux.tar.Z

3.  Extract the package archives.

                tar -xvf SUNWqus.tar

                tar -xvf SUNWqusx.tar

tar -xvf SUNWqusu.tar

tar -xvf SUNWqusux.tar

4.  Install the packages.

                pkgadd -d . SUNWqus 

                pkgadd -d . SUNWqusu

                pkgadd -d . SUNWqusux

                pkgadd -d . SUNWqusx

5.  Bring the system down and do a reconfiguration boot (-r) of the system.

九、如何显示磁盘使用率信息
  使用 iostat 命令和时间间隔秒数可以显示磁盘使用率信息
 ahunicom2/app/jboss/jboss-3.2.2-ses/server/default/log>iostat 5
  tty        md0           md1           md3           md4            cpu

 tin tout kps tps serv  kps tps serv  kps tps serv  kps tps serv   us sy wt id

   0   27   2   0   20    0   0   13   25   1   18    4   0   21    3  1  1 95

   0   47   0   0    0    0   0    0    6   0   12    2   0   25    1  0  0 98

   0   16   0   0    6    0   0    0   34   5   19    7   1   27    1  3  3 94

   0   16   0   0    0    0   0    0    0   0    0    2   0   26    2  0  0 98
对应字段的含义如下:
  

设备类型 

字段名 

说明 

终端 

设备类型 

  

  

tin 

终端输入队列中的字符数 

  

tout 

终端输出队列中的字符数 

磁盘 

设备类型 

  

  

bps 

每秒块数 

  

tps 

每秒事务数 

  

serv 

平均服务时间,以毫秒为单位 

CPU 

设备类型 

  

  

us 

在用户模式下 

  

sy 

在系统模式下 

  

wt 

等待 I/O 

  

id 

空闲 

十、当超级块信息损坏,使用替换超级块

当使用 fsck y /dev/devicename 修复文件系统提示超级块损坏,需要找替换的超级块是,可以用以下方法找到可替换的超级块,来修复文件系统:

1、 先newfs -Nv /dev/rdsk/c1t1d0s1得到所用的super bolck 号。

2、 fsck -F ufs -o b=# /dev/rdsk/c1t1d0s1  这里的#号就代表上面查出来的可替换的超级块的号

3、 当super block号很多时,一般只从32开始,然后从后面拣几个修复一下,不需要所有的都要操作;

十一、修改系统引导设备

1、进入OK模式下: 

2、ok printenv *查看obp参数,注意 boot-device 项的参数,未修改前默认为 disk。 

3、 ok devalias *查看设备别名,我们可以看到,第2块盘被命名为 disk1 。 

4、 ok setenv boot-device disk disk1 *设置 boot-device 把 disk1 加入。 

5、 ok reset-all *重启

十二、查看系统安装了哪些软件包

方法用:pkginfo 

阅读(2234) | 评论(0) | 转发(0) |
0

上一篇:Solaris管理(二)

下一篇:内核参数列表(一)

给主人留下些什么吧!~~