
“When communicating with SCSI-controlled robotic peripherals on an IBM RS6000 system, Media Manager utilizes a SCSI passthru driver called ovpass. ovpass is not required if the only device being used is the IBM 3590 B11 tape stacker.”
上面这段话引自《NetBackup Media Manager Device Configuration Guide for Unix, Windows, and Linux》。正确创建ovpass设备,对NBU for AIX的实施来说是非常重要的。
NBU6.0是使用下面这个命令来创建的ovpass设备,和以前的NBU3.4,4.5,5.X没有任何差别。大家肯定都用过这个命令,其实从命令上看比较简单,但是如何正确的得到命令中所需的参数就比较麻烦了。
mkdev -c media_changer-s scsi -t ovpass -p controller -w id,lun
mkdev -c media_changer -s fcp -t ovpass -p controller -w scsi_id,lun
手册中对参数的解释如下:
controller is the logical identifIEr of the drive’s SCSI adaptor, such as scsi0, scsi1 or vscsi1.
id is the SCSI ID of the robotic connection.
scsi_id is the fibre channel identifier for the N_Port address (D_ID) of the robotic connection.
lun is the logical unit number of the robotic connection.
如果用户使用的是SCSI环境,问题不大都知道如何查id,lun。如果使用的光纤环境的话,scsi_id和lun就比SCSI环境难确定。在这篇文章中我们主要讨论在光纤环境下如何生成ovpass。
从机械手的物理连接上说有两种方法,一种是机械手和磁带机串在一起连到SNC上面,一种是机械手直接联到SAN的交换机上面。针对这两种不同的物理连接方法,我们可以采用如下的方法创建ovpass(类似IBM 3590 B11的带库不在这次的讨论范围)。
1.IBM的磁带库 (类似IBM 3590 B11的带库除外)
这种情况最简单,只要系统安装了Atape,系统就会自动生成机械手的设备文件smc0。根据smc0的设置就可以创建出ovpass。大家注意配置NBU的时候要用ovpass,不要使用smc。所以再创建ovpass前要删掉smc。操作过程忽略。
2.机械手和磁带机串在一起连到SNC上面。
在这种情况中难点是如何得到机械手正确的lun,对于机械手的scsi_id来说它和磁带机的相同,只要在系统能查到磁带机的scsi_id就行了。
a)通过磁带机得到scsi_id:
#odmget -q "name=rmt0" CuAt