How to setup robotic device for netbackup in hp-ux

 

These procedure are tested, Second procedure is completely my idea. I published initially on 2007.

Standard way as defined by Hewlett Packard & Symantec Website :

Steps to create a device file manually for Robot for Symantec Netbackup
ioscan -fnk|grep for the controller the robot has connected
Note down EXT Card instance no.
Example :
We have a IBM 3581 Scaller Library Connected to SCSI LVD Card at Hardware

Address 0/0/1/0 .SCSI ID of the Library is 14, LUN no. of the Robot is 1 and the

drive LUN no. is 0

Now if we run ioscan -fnk|egrep -i '0/0/1/0' and look for the line c8xx and interface

the Instance no. in column I (2nd column) shows the instance as 0. now run and the

results are
lsdev |grep -i sctl
203 -1 sctl ctl
We need the major no which is 203 from here. Now we have all required information

we need.
mknod /dev/sctl/c0t14d1 c 203 0x00e100

c0=controller 0 i.e. 0/0/1
t14 = SCSI ID14 of the Library
d1 = LUN No 1 ( Lun no. of the robot is 1 in this case)

203 = major no we got from lsdev output
minor no follows this format
0xiitl0o
Now lets explain here
0x= Standard Hex no starting
ii=00 = 0 is the Card Instance no we got from ioscan "I" Column (in case of card IN 1

it will be 01 and so forth)
t=e = 14 (hex) (target ID, SCSI ID)
L=1 = Lun no of the Robot
0 = 0 always Zero (reserved portion of Minor no. This field is always 0)
o = Operational field for the SCTl Driver

For SCTL the Values are
0 (Zero) - Normal open
1 (one) - ATN not used with select , for backward compatibility
2 (two) Inhibits inquiry at open

Now You have to build a new kernel
# cd /stand/build
# vi /stand/system and add these two lines
sctl
driver 0/0/1/0.14.1 sctl

save and quit

# /usr/sbin/mk_kernel -s /stand/system
# kmupdate
# reboot

How to create a robotic device for Veritas netbackup easy way ( my way) :

For Both SCSI & Fiber Robots

For IBM 3584 Library
Use last three characters will be 100 instead of 200 as in /dev/rac directory and

major no. will be 203 (same as sctl)

The reason to change it to 100 is the robotic device is controlled by the 1st Tape

Drive in the Tape partition so the robot and the drive is same device (Drive scsi/fscsi

id is 0 and robot is always 1)
for example. ll /dev/rac/c6t7d1 231 0x062e200
then the major and minor no for new device will be 203 and 0x062e100 respectively.

For STK L700/L180/SL3000/ and Quantum ATLP4000 Libraries the minor no. will

be same as the device in /dev/rac.
Now You have to build a new kernel
cd /stand/build
# vi /stand/system and add these two lines
sctl
driver 0/0/1/0.14.1 sctl

save and quit

# /usr/sbin/mk_kernel -s /stand/system
# kmupdate
# reboot