免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3478 | 回复: 0
打印 上一主题 下一主题

[新手入门] 瞎侃ACSLS [复制链接]

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-08 16:47 |只看该作者 |倒序浏览
看AIX资料看的头昏脑涨,就找了个前段时间看过的一个案例,研究了一下acsls这个玩意,写了下面的东西。不过我是浅尝则止,所以首先声明一点,这只是一个很简单的文档,我姑妄说之,您姑妄看之;还有,就是我查询了一个STK工程师已经安装完的案例,呵呵,因为俺不是做带库的,还没机会完全由自己来安装这个软件。
在一般我们接触到的中低端带库里,一般是采用主机+SCSI or Fibre channel+带库的连接方式,备份软件通过SCSI指令直接操作robtics,drive,tape。
在比较大的带库里面,像STK的L700e and above,传统的连接和操作方式显得有点不合时宜了,因为带库厂商采用了更为主动的方式。不管里是NBU,TSM,Networker,还是其他的一些什么介质管理软件,不管是什么OS,我不要你们来动我的东西了,你要做什么,发个请求过来了,我做完给你结果好了。
至于带库端自己怎么做的呢?以下都是偶猜的:
带库自己有自己的迷你OS,安装自己的介质管理软件,接受到主机那边的请求后,带库自己来操作介质。至于带库和请求者之间,大概就需要一个借口的东西,就是一个请求处理和传送系统,它来接受请求,它来翻译请求,然后传送标准的请求和指令给带库,也就是一个翻译的角色,保证大家都说普通话,呵呵。在STK的产品里面,就是ACSLS Server来扮演这个角色。

在这里,我们看见的架构大概就是这个样子的,带库通过网络和一台主机相连,这个主机安装ACSLS软件,我们称它为ACSLS Server,其他的有介质请求的主机(比如NBU Media Server,Legato Networker storage Node)我们都称之为ACSLS Client.而ACSLS Client和带库之间是有数据链路的,简单的说,就是一条Fibre channel链路(这说明,实际的数据传输,是acsls client直接写到drive的)。而一个acsls server包含两个部分,就是acsls software和acsls database,而acsls database(one informix ids instance,以前也用过oracle和sybase的),就是用来存储我们的介质定义以及带库信息等等东西的
BTW,其实其他厂家也有相关的东西,只是我还没见识过,不过可以在一些手册里见到一些痕迹。
我来讲一个aix5.3+NBU5+acsls7+L700e的例子:
1、规划
怎么做,您瞅瞅上面的图,大概就差不多了,一般不做的话,也不用了解特别细。
至于什么主机,什么cpu,memory,disk space,fix的,就不说了,需要的时候,再去查查资料,完全来得及。
注意:aio打开
acsls需要两个文件系统,最好是在不同的硬盘上,一个存放acsls的软件,一个存放数据库备份。简单点,您就创建/export/home和/export/backup这两个文件系统(每个5G足够了)完了。可以看出来,acsls要定期将database的数据export到一个地方,以备不时之需。
另外acsls是要一个license key的,在你正式使用之前,一定要获得一个licensekey.sh的脚本来运行一下,呵呵
2、安装准备以及安装
acsls和带库的LMU要连接起来,有的带库是串口接口的,这样你就要配tty,stk有一个类似的串口盒子,把主机和带库连接起来。也有网口的,我还是喜欢网口的,这样用网线都串在网络交换机上就拉倒了。
安装很简单,创建几个用户,不乐意创建也可以,安装的时候会自动创建。用户名字,组,home目录如下:
User           Group     home_directory
acsss          staff     /export/home/ACSSS
acssa          staff     /export/home/ACSSA
informix       informix  /export/home/informix
lib6           staff     /export/home/ACSSS
剩下的就是装acsls software,把光盘塞进去,smitty install_latest,选择cdrom,全部安装就拉倒了。补丁什么的,大同小异。
最后,做一下配置:
#cfgmgr
#ls -l /dev/mchanger0
mchanger0 Available 10-68-01 Other FC SCSI Tape Drive
给acsss,acssa,informix,lib6设置密码
#passwd acsss
#passwd acssa
#passwd informix
#passwd lib6
如有必要,给acsss,acssa,informix,lib6设置其他属性
#chuser -a home=/export/home/ACSSS acsss
#chuser -a home=/export/home/ACSSA acssa
#chuser -a home=/export/home/informix informix
#chuser -a home=/export/home/ACSSS acsss
3、初始化
#su - acsss
$acsss_config
ACSLS feature configuration
Please enter the number followed by Return for your choice
from the following menu to configure product behavior in that area.
Press ? followed by the Return key for help.
        1: Set CSI tuning variables
        2: Set event logging variables
        3: Set general product behavior variables
        4: Set access control variables
        5: Set automatic backup parameters
        6: Rebuild Access Control information
        7: Event Notification settings
        8: Define or Change Library Configuration
        E: Exit
正常的情况下,我们要1-8做下来,做一些配置(比如自动备份),但是这个讲起来内容就多的不得了所以就不罗嗦了。直接进行到下一步。
选8,开始配置
log_it.sh 1599:  Verifying database environment...
Creating acstable
Creating porttable
Creating lsmtable
Creating captable
Creating lockidtable
Creating drivetable
Creating volumetable
Creating celltable
Creating pooltable
Creating audittable
Creating csitable
Creating paneltable
Creating vactable
Creating scr_distr_table
Creating displaycommand table
Creating displayfields table
Creating displayoptions table
Creating displayoptval table
Creating displaysubfields table
Creating ptptable
Creating clienttable
Creating handtable
Creating lmutable
...Loading Display database reference tables.
Configure library communications? (y or n): y
Number of ACSs to be supported: 1
Number of connections to ACS #0: 1
Device or host - ACS #0, connection #0: /dev/mchanger0
(注意在这里,不同的带库选择是不同的,大概就是指带库的地址,或是串口的,就添tty什么的,网口的就添地址或名称,我这里是L700,是比较特别)
Checking defined ports...
/dev/mchanger0 is communicating to an LSM: STK L700 level 0309
This step builds a database image of your complete library hardware
configuration. Before proceeding, make sure that your library is
completely configured, that all subsystems are functional and
powered on. Build/Verify library configuration? (y or n): y
  ACS # 0, LSM # 0, PANEL # 0 created
  ACS # 0, LSM # 0, PANEL # 1 created
  ACS # 0, LSM # 0, PANEL # 2 created
Configure client system interfaces? (y or n): n
Do you want to backup the database to tape? (y or n):n
$cmd_proc
ACSSA>q server
ACSSA>q driver all
ACSSA>q lsm all
ACSSA>q cap all
ACSSA>q pool all
ACSSA>q scratch all
4、在Veritas NBU里配置ACS机械手
a、现在备份服务器上使用”设备配置向导“扫描驱动器,并将这些驱动器做为独立驱动器添加
b、手工添加机械手,选择为ACS类型。并且更新驱动器的定义,按照前面查到的相应的号码更改每个驱动器的定义。一定要小心验证
c、再次运行”设备配置向导“,这次指定所有其他相关的media server。
d、配置介质
#cd /usr/openv/volmgr/bin
#./robtest
Configured robots with local control supporting test utilities:
  ACS(0)     ACSLS host = acs_svr
Robot Selection
---------------
  1)  ACS 0
  2)  none/quit
Enter choice: 1
Robot selected: ACS(0)   ACSLS host = acs_svr, SSI socket = 13741
Invoking robotic test utility:
/usr/openv/volmgr/bin/acstest -r acs_svr -s 13741 -d /dev/rmt0.1 0,0,0,0 -d /dev/rmt2.1 0,0,0,2 -d /dev/rmt1.1 0,0,0,1
Server 0 with 234 free cells is in state "STATE_RUN"
QUERY SERVER complete
Enter acs commands (? returns help information)
?
To exit the utility, type q or Q.
cancel                   - Cancel server request
defpool      - Define scratch pool
delpool                        - Delete empty scratch pool
dm  [|] [f]    - Dismount volume (optionally forced)
drstat                     - Print drive status
eject              - Eject a list of volumes to the
                                       specified CAP
enter                        - Enter volumes in the specified CAP
capstat []                   - Print CAP status
varycap  online|offline      - set the state of the given CAP
setmode  automatic|manual    - set the mode of the given CAP
setpriority        - set the priority of the given CAP
m  [|]         - Mount volume
qmmi                                 - Query actual mixed media information
qpool []                       - Query pools
qreq []                  - Query server requests
qscr []                        - Query scratch volumes by pool
qserver                              - Query ACSLS server
qvol []                         - Query volumes
setscr  ON|OFF  []   - Set scratch attributes for volume range
start                                - Start ACS Library Manager (request RUN state)
types                                - Print list of known ACS media types
SCSI commands:
unload |            - Issue SCSI unload
where:
  =0-126, =0-23, =0-2, =0-15, =0-127
   = [,,,]
   = d1 if drive 1, d2 if drive 2, ..., d15 if drive 15
   = scratch pool low water mark
   = scratch pool high water mark
   = ,,
   = [::...:]
defpool 0 0 500 scratch
setscr 0 on
作完这个后,在netbackup界面里inventory,看到所有定义的500个volume,就ok了
当然上面讲的配置还很粗糙,要想做好的话,还要好好研究研究安装、配置、管理文档。
                                             yddll于2006年5月10日晚


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/1121/showart_109882.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP