SCSI Tape Drives

From The System Administrator Zone

Here are some random notes about dealing with SCSI tape drives on a Solaris system.


Tape Configuration Analysis Tools

mt

#  mt -f  /dev/rmt/0 status
HP Ultrium LTO 3 tape drive:
   sense key(0x0)= No Additional Sense   residual= 0   retries= 0
   file no= 0   block no= 0

sgscan

# sgscan all
/dev/sg/c0t0l0: Disk (/dev/rdsk/c1t0d0): "SEAGATE ST373207LSUN72G"
/dev/sg/c0t1l0: Disk (/dev/rdsk/c1t1d0): "SEAGATE ST373207LSUN72G"
/dev/sg/c2t1l0: Tape (/dev/rmt/0): "HP      Ultrium 3-SCSI" 
/dev/sg/c2t2l0: Tape (/dev/rmt/1): "HP      Ultrium 3-SCSI" 
/dev/sg/c2t6l0: Changer: "QUANTUM PX500"
# 

cfgadm

# cfgadm -al
Ap_Id                          Type         Receptacle   Occupant     Condition
c0                             scsi-bus     connected    configured   unknown
c0::dsk/c0t0d0                 CD-ROM       connected    configured   unknown
c1                             scsi-bus     connected    configured   unknown
c1::dsk/c1t0d0                 disk         connected    configured   unknown
c1::dsk/c1t1d0                 disk         connected    configured   unknown
c1::sg/c0t0l0                  unknown      connected    configured   unknown
c1::sg/c0t0l1                  unknown      connected    configured   unknown
c1::sg/c0t1l0                  unknown      connected    configured   unknown
[snip]
c1::sg/c0t5l1                  unknown      connected    configured   unknown
c1::sg/c0t6l0                  unknown      connected    configured   unknown
c1::sg/c0t6l1                  unknown      connected    configured   unknown
c2                             scsi-bus     connected    configured   unknown
c2::sg/c1t0l0                  unknown      connected    configured   unknown
c2::sg/c1t0l1                  unknown      connected    configured   unknown
c2::sg/c1t1l0                  unknown      connected    configured   unknown
c2::sg/c1t1l1                  unknown      connected    configured   unknown
c2::sg/c1t2l0                  unknown      connected    configured   unknown
c2::sg/c1t2l1                  unknown      connected    configured   unknown
c2::sg/c1t3l0                  unknown      connected    configured   unknown
c2::sg/c1t3l1                  unknown      connected    configured   unknown
c2::sg/c1t4l0                  unknown      connected    configured   unknown
c2::sg/c1t4l1                  unknown      connected    configured   unknown
c2::sg/c1t5l0                  unknown      connected    configured   unknown
c2::sg/c1t5l1                  unknown      connected    configured   unknown
c2::sg/c1t6l0                  unknown      connected    configured   unknown
c2::sg/c1t6l1                  unknown      connected    configured   unknown
c3                             scsi-bus     connected    configured   unknown
c3::rmt/0                      tape         connected    configured   unknown
c3::rmt/1                      tape         connected    configured   unknown
c3::sg/c2t0l0                  unknown      connected    configured   unknown
c3::sg/c2t0l1                  unknown      connected    configured   unknown
[snip]
c3::sg/c2t6l0                  unknown      connected    configured   unknown
c3::sg/c2t6l1                  unknown      connected    configured   unknown
c4                             scsi-bus     connected    configured   unknown
c4::sg/c3t0l0                  unknown      connected    configured   unknown
c4::sg/c3t0l1                  unknown      connected    configured   unknown
[snip]
c4::sg/c3t6l0                  unknown      connected    configured   unknown
c4::sg/c3t6l1                  unknown      connected    configured   unknown
usb0/1                         unknown      empty        unconfigured ok
usb0/2                         unknown      empty        unconfigured ok
#

SCSI Configuration Tools

Regenerating Device Tables

To boot the system and have it look for new hardware and regenerate its tables.

OK boot -rv

To regenerate the tables without rebooting:

# devfsadm -C

It may be necessary to delete the existing links in /dev/rmt/ or /dev/sg/ to make these options work correctly.