Chinaunix首页 | 论坛 | 博客
  • 博客访问: 58825
  • 博文数量: 3
  • 博客积分: 686
  • 博客等级: 上士
  • 技术积分: 165
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-20 13:28
文章分类

全部博文(3)

文章存档

2012年(1)

2010年(2)

分类:

2010-06-15 00:09:03

5月的一个阳光四射的下午,我和超仔,白狼兄来到深圳的黄木岗机楼,准备为电信的USP-V 升级微码,加cache memory,share memory,以及增加一堆的硬盘
进机房前,放水,五只烟枪吸毒。
进了机房,掏笔记本,工具,拆箱。。。
1、准备工作(检查机器工作情况,负载,日志,主机多路径情况;备份配置)
2、升级微码。。。。。到执行升级后,一起和电信的兄弟一起食了个饭
3、升级cache memory ,share momeory
4、增加许可。。。。。。
5、塞硬盘(注意防静电,和操作流程。。。。)
6、按RG规划表和LUN规划表划RG和LUN
7、给主机MAPING LUN
8、主机认LUN,修改DISK参数(成堆。。。。。哈哈)
一切过程严格按照操作手册和流程实施,整个流程很顺利完成。
搞定已是第二天了,明月正当空,taxi go home


:下面是AIX系统下修改queue_depath and rw_timeout的脚本




#!/bin/ksh

#

#script: changehdisk.ksh

#author: bosshoss

#rev:1.0.0

#data:05/21/2010

#platform: aix 5L,aix 6

#purpose: this script is used to list all hdiskN type of Hitachi Disk Array

# ,check queue_depth ,if change is needed then set queue_depath and rw_timeout

#rev list:

#set disktype for hitachi ...

#set workfile for tempfile

#set qd_V for change queue-depath Value to....

#set rwto_v for change rw_timeout Value to

disktype="Hitachi Disk Array"
workfile="/tmp/disklist.txt"
qd_v="8"
rwto_v="60"

#list all hitachi disk to tempfile

lsdev -Cc disk |grep "$disktype" |awk '{print $1}' >$workfile
#read tempfile

cat $workfile |while read LINE
do
    echo "----------------------$LINE---------------------"
    
    tmpstr=`lsattr -El "$LINE" -a queue_depth |cut -c 13-13`
    
    #if queue_depth not dp_v then change.....

    if (($tmpstr !=$qd_v))
       then
          echo "$LINE need to change queue_depath and rw_timeout value"
          chdev -l "$LINE" -a queue_depath="$qd_v" -a rw_timeout="$rwto_v"
       else
          ehco "$LINE don't need to change queue_depath and rw_timeout value"
       fi
    echo "volume changed ok?"
    lsattr -El "$LINE" -a queue_depth
    lsattr -El "$LINE" -a rw_timeout
    echo "------------------------------------------------"
    :
done


#kill tempfile

rm /tmp/disklist.txt

#End script


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

上一篇:没有了

下一篇:HDS AMS1000 扩容经历

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