cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to scan Robotic device

Sean_-
Level 5
Partner
Hi,

I have maked the ovpass device for AIX media server, but I not able to scan the robotic device and only tape drive.

I have used the following command to create ovpass device:

# /usr/openv/volmgr/bin/driver/install_ovpass
# mkdev -c media_changer -s fcp -t ovpass -p fscsi0 -w 0x20300,0x0
6 REPLIES 6

Marianne
Level 6
Partner    VIP    Accredited Certified

Please start at the beginning...
What is your AIX version? NBU version? Robot make/model? Direct SCSI attached / Fibre?
Which steps did you perform to verify that the robot is visible and to determine which address (controller, scsi id, lun) to use with mkdev?

Sean_-
Level 5
Partner
Hi Marianne,

The AIX version is 6.1 and NBU version is 6.5.5.
Tape Library is Quantum Scalar i500 and is FC SAN.

 
# /usr/sbin/lsdev -C -s fcp
rmt1 Available 00-08-01 Other FC SCSI Tape Drive
rmt2 Available 00-08-01 Other FC SCSI Tape Drive
rmt3 Available 00-08-01 Other FC SCSI Tape Drive


# /usr/sbin/lsdev -C | grep I/O
fscsi0     Available 00-08-01      FC SCSI I/O Controller Protocol Device
fscsi1     Available 00-09-01      FC SCSI I/O Controller Protocol Device
fscsi2     Available 06-08-01      FC SCSI I/O Controller Protocol Device
fscsi3     Available 06-09-01      FC SCSI I/O Controller Protocol Device
iocp0      Defined                 I/O Completion Ports
vio0       Available               Virtual I/O Bus



# /usr/sbin/lsattr -l rmt1 -E -H
attribute      value              description                               user_settable
block_size     512                BLOCK size (0=variable length)            True
delay          45                 Set delay after a FAILED command          True
density_set_1  0                  DENSITY setting #1                        True
density_set_2  0                  DENSITY setting #2                        True
extfm          yes                Use EXTENDED file marks                   True
location                          Location Label                            True
lun_id         0x1000000000000    Logical Unit Number ID                    False
mode           yes                Use DEVICE BUFFERS during writes          True
node_name      0x500308c0a0dc3b4a FC Node Name                              False
res_support    no                 RESERVE/RELEASE support                   True
ret_error      no                 RETURN error on tape change or reset      True
rwtimeout      144                Set timeout for the READ or WRITE command True
scsi_id        0x20800            SCSI ID                                   False
var_block_size 0                  BLOCK SIZE for variable length support    True
ww_name        0x500308c0a0dc3b4c FC World Wide Name                        False



# /usr/sbin/lsattr -l rmt2 -E -H
attribute      value              description                               user_settable
block_size     512                BLOCK size (0=variable length)            True
delay          45                 Set delay after a FAILED command          True
density_set_1  0                  DENSITY setting #1                        True
density_set_2  0                  DENSITY setting #2                        True
extfm          yes                Use EXTENDED file marks                   True
location                          Location Label                            True
lun_id         0x2000000000000    Logical Unit Number ID                    False
mode           yes                Use DEVICE BUFFERS during writes          True
node_name      0x500308c0a0dc3b4a FC Node Name                              False
res_support    no                 RESERVE/RELEASE support                   True
ret_error      no                 RETURN error on tape change or reset      True
rwtimeout      144                Set timeout for the READ or WRITE command True
scsi_id        0x20c00            SCSI ID                                   False
var_block_size 0                  BLOCK SIZE for variable length support    True
ww_name        0x500308c0a0dc3b4b FC World Wide Name                        False



# /usr/sbin/lsattr -l rmt3 -E -H
attribute      value              description                               user_settable
block_size     512                BLOCK size (0=variable length)            True
delay          45                 Set delay after a FAILED command          True
density_set_1  0                  DENSITY setting #1                        True
density_set_2  0                  DENSITY setting #2                        True
extfm          yes                Use EXTENDED file marks                   True
location                          Location Label                            True
lun_id         0x3000000000000    Logical Unit Number ID                    False
mode           yes                Use DEVICE BUFFERS during writes          True
node_name      0x500308c0a0dc3b4a FC Node Name                              False
res_support    no                 RESERVE/RELEASE support                   True
ret_error      no                 RETURN error on tape change or reset      True
rwtimeout      144                Set timeout for the READ or WRITE command True
scsi_id        0x20c00            SCSI ID                                   False
var_block_size 0                  BLOCK SIZE for variable length support    True
ww_name        0x500308c0a0dc3b4b FC World Wide Name                        False



# mkdev -c media_changer -s fcp -t ovpass -p fscsi0 -w 0x20800,0x0
ovpass0 Available



# /usr/openv/volmgr/bin/scsi_command -d /dev/ovpass0 -inquiry
Inquiry data: dev type ch QUANTUM Scalar i500     5A21



# /usr/sbin/lsdev -C -s fcp
ovpass0 Available 00-08-01 VERITAS Media Changer
rmt1    Available 00-08-01 Other FC SCSI Tape Drive
rmt2    Available 00-08-01 Other FC SCSI Tape Drive
rmt3    Available 00-08-01 Other FC SCSI Tape Drive
 


# /usr/openv/volmgr/bin/scan -changer
************************************************************
*********************** SDT_CHANGER ************************
************************************************************


I am unable to scan the changer.
 

Marianne
Level 6
Partner    VIP    Accredited Certified
Can we assume that you ran install_ovpass at some other stage?

(extract from my notes)
Run  /usr/openv/volmgr/bin/driver/install_ovpass to install the ovpass drivers

Sean_-
Level 5
Partner

Yes, I have ran the install_ovpass at some other stage. Sorry that I didn't mentioned perviously.

 

Marianne
Level 6
Partner    VIP    Accredited Certified

Out of ideas...
The only thing the we do different is to specify the lun number as decimal:
mkdev -c media_changer -s fcp -t ovpass -p fscsi0 -w 0x20800,0

Herewith procedure compiled by one of my colleagues in conjunction with AIX admin at a customer:
(It pretty much looks the same as what you did...)


  1. Log in as root
  2. Install NetBackup
  3. Run lsdev lsdev –C | grep rmt
  4. This will show “location address”
  5. Note first 5 character e.g. OM-08
  6. Run lsdev –C | grep OM-08and note fcs number(s) associated to each location address listed in step 2
  7. Run rmdev –p fcs(x) –d –Rto delete all children devices of each fcs recorded in step 3
  8. Run smitty devices(smitty devices > fc adapter > fc adapter) and select each fcs device recorded above and change/confirm that – Maximum transfer size = 0x200000 and the INIT link flags = pt2pt.
  9. Run cfgmgrto rediscover the tape drives and changer
  10. Run lsdev –C | grep rmtand note the location address for each rmt device e.g. 0M-08
  11. Start NetBackup to start the vmd volume manager daemon
  12. Run tpautoconf –tand note the serial numbers. In particular note the serial number with the lowest hexadecimal value as this tape drive (/dev/rmt(x.1)) will also have the same HBA as the media changer.
  13. Run lsdev –C | grep rmt(x)where x is the number of the tape device with the lowest serial number value and make a note of the first 5 characters e.g. 0M-08.
  14. Run lsattr –El rmt(x)(not rmt(x.1)) and note the scsi_ID value e.g. 0x14800.
  15. Run lsdev –C | grep 0M-08and record the fscsi(x) associated with the location address of the tape drive recorded in step 10 e.g. fscsi3
  16. Run the /usr/openv/volmgr/bin/driver/install_ovpassscript to install the ovpass drivers
  17. Make the ovpass device file by running the following with the information recorded in steps 11 and 12.
  18. mkdev –c media_changer –s fcp –t ovpass –p fscsi(x) –w (scsi_ID),1
  19. Test the ovpass drive by running tpautoconf –r which should return the address and details of the robot e.g.
TPAC45 ADIC    Scalar i2000    540A ADIC203101308_LL9 -1 -1 -1 -1 /dev/ovpass0 - -

Sean_-
Level 5
Partner
Hi,

# export CFGLOG="CMD,METH,LIB,VERBOSITY:9"


# cfgmgr -l fscsi0
cfgmgr: 0514-621 WARNING: The following device packages are required for
        device support but are not currently installed.
devices.fcp.array
devices.fcp.changer


# alog -o -t cfg > /tmp/alog.txt


# tail -100 /tmp/alog.txt
<snip>
M1 4456660 Number of targets found = 2
M1 4456660      ...scsi_id/lun_id = 0x20800/0x0
M1 4456660              ...LUN = 0x0, type = 0xc
M1 4456660 4 luns found
M1 4456660              ...LUN = 0x1000000000000, type = 0x1
M1 4456660              ...LUN = 0x4000000000000, type = 0x8
M1 4456660              ...LUN = 0x5000000000000, type = 0x8
M1 4456660      ...scsi_id/lun_id = 0x20c00/0x0
M1 4456660              ...LUN = 0x0, type = 0xc
M1 4456660 5 luns found
M1 4456660              ...LUN = 0x2000000000000, type = 0x1
M1 4456660              ...LUN = 0x3000000000000, type = 0x1
M1 4456660              ...LUN = 0x4000000000000, type = 0x8
M1 4456660              ...LUN = 0x5000000000000, type = 0x8
<snip>


# mkdev -c media_changer -t ovpass -s fcp -p fscsi0 -w 0x20800,0x8
ovpass0 Available