UNIX sgi
hp learning products
http://www.hp.com/support/tape
may have a later version
UNIX configuration
introduction
hp systems
compaq systems
ibm RS/6000 systems
pc based UNIX systems
silicon graphics
sun systems
verify installation
UNIX glossary
Silicon Graphics systems, IRIX
This topic is available in English only. Click in the top right-hand corner to
close the window and return to the tape drive user's guide.
contents of this section
determining the SCSI ID
configuring the device files
MTCAN and constants values
related topics
verifying installation
glossary
determining the SCSI id
Before you configure your system to support your new HP Surestore Ultrium drive,
you need to determine what SCSI ID to use. The SCSI ID must be unique for each
device attached to the SCSI bus. To list the existing devices, use the following
command:
% hinv -v | grep SCSI
This will produce output similar to the following:
Integral SCSI controller 0: Version WD33C93B, revision D
Disk drive: unit 1 in SCSI controller 0
In this, “unit X” indicates the SCSI ID. Review the list of existing SCSI IDs and
choose an available ID to assign to your new tape drive.
configuring the device files
To install the HP Surestore drive on a Silicon Graphics system running IRIX, you will
need to modify the kernel configuration file.
If you want
tar
to default to short block transfers, change the
512*512
in your
tpsc
or
scsi
HP entry to
128*512
(128-kilobyte blocks) or, better still,
64*512
(64-
kilobyte blocks).
1
Open the kernel configuration file
/var/sysgen/master.d/scsi
, for IRIX 6.2 and
later, with a text editor.
2
Find the following entry in the kernel configuration file and copy it to a new location in
the file where you can edit it as appropriate for your tape drive:
For IRIX 6.2:
Ultrium tape drives
{DATTAPE, TPDAT,2,7,"HP","Ultrium",0,0,{0},
MTCAN_BSF|MTCAN_BSR|MTCAN_APPEND|MTCAN_SETMK|MTCAN_PART|
MTCAN_PREV|MTCAN_SYNC|MTCAN_SPEOD|MTCAN_CHKRDY|MTCAN_VAR|
MTCAN_SETSZ|MTCAN_SILI|MTCAN_SEEK|MTCAN_CMTYPEANY|MTCAN_COMPRESS,
/*minimum delay to I/O is 4 minutes, because when a retry is
*performed, the drive retries a number of times, and then
*rewinds to BOT, repositions, and tries again.*/
40, 4*60, 20*60, 5*60, 512, 64*512, 0, (u_char*)0 },
DAT tape drives and autoloaders
{DATTAPE,TPDAT,2,6,"HP","C----A",0,0,{0},
MTCAN_BSF|MTCAN_BSR|MTCAN_APPEND|MTCAN_SETMK|MTCAN_PART|
MTCAN_PREV|MTCAN_SYNC|MTCAN_SPEOD|MTCAN_CHKRDY|MTCAN_VAR|
MTCAN_SETSZ|MTCAN_SILI|MTCAN_SEEK|MTCAN_CHTYPEANY|MTCAN_COMPRESS,
/*minimum delay to I/O is 4 minutes, because when a retry is
*performed, the drive retries a number of times, and then
*rewinds to BOT, repositions, and tries again.*/
40, 4*60, 20*60, 5*60,512, 64*512, 0, (u_char*)0 },
Note: Change
"C----A"
in the first line to the appropriate value for your device. DAT24
drives =
"C1537A"
; DAT40 drives=
"C5683A"
; DAT24x6 autoloaders=
"C1557A"
;
DAT40x6 autoloaders=
"C5713A"
.
DLTvs tape drives
{DECDLT, TPDLT,8,4,"BNCHMARK","DLT1",0,0,{0},
MTCAN_BSF|MTCAN_BSR|MTCAN_APPEND|
MTCAN_PREV|MTCAN_SYNC|MTCAN_SPEOD|MTCAN_CHKRDY|MTCAN_VAR|
MTCAN_SETSZ|MTCAN_SILI|MTCAN_SEEK|MTCAN_CMTYPEANY|MTCAN_COMPRESS,
/*minimum delay to I/O is 4 minutes, because when a retry is
*performed, the drive retries a number of times, and then
*rewinds to BOT, repositions, and tries again.*/
40, 4*60, 20*60, 5*60, 512, 64*512, 0, (u_char*)0 },
For IRIX 6.4/6.5:
Ultrium tape drives
{ DATTAPE, TPDAT, 2, 7, "HP", "Ultrium", 0, 0, {0},
MTCAN_BSF|MTCAN_BSR|MTCAN_APPEND|MTCAN_SETMK|MTCAN_PART|
MTCAN_PREV|MTCAN_SYNC|MTCAN_SPEOD|MTCAN_CHKRDY|MTCAN_VAR|
MTCAN_SETSZ|MTCAN_SILI|MTCAN_SEEK|MTCAN_CHTYPEANY,
/* minimum delay on i/o is 4 minutes, because when a retry is
* performed, the drive retries a number of times, and then
* rewinds to BOT, repositions, and tries again. */
40, 4*60, 4*60, 5*60, 3*3600, 512, 512*512,
tpsc_default_dens_count, tpsc_default_hwg_dens_names,
tpsc_default_alias_dens_names,
{0}, 0, 0, 0,
0, (u_char *)0 },
DAT tape drives and autoloaders
{DATTAPE,TPDAT,2,6,"HP","C----A",0,0,{0},
MTCAN_BSF|MTCAN_BSR|MTCAN_APPEND|MTCAN_SETMK|MTCAN_PART|
MTCAN_PREV|MTCAN_SYNC|MTCAN_SPEOD|MTCAN_CHKRDY|MTCAN_VAR|
MTCAN_SETSZ|MTCAN_SILI|MTCAN_SEEK|MTCAN_CHTYPEANY,
/* minimum delay on i/o is 4 minutes, because when a retry is
* performed, the drive retries a number of times, and then
* rewinds to BOT, repositions, and tries again. */
40, 4*60, 4*60, 5*60, 3*3600, 512, 512*512,
tpsc_default_dens_count, tpsc_default_hwg_dens_names,
tpsc_default_alias_dens_names,
{0}, 0, 0, 0,
0, (u_char *)0 },
Note: Change
"C----A"
in the first line to the appropriate value for your device. DAT24
drives =
"C1537A"
; DAT40 drives=
"C5683A"
; DAT24x6 autoloaders=
"C1557A"
;
DAT40x6 autoloaders=
"C5713A"
.
DLTvs tape drives
{DECDLT, TPDLT,8,4,"BNCHMARK","DLT1",0,0,{0},
MTCAN_BSF|MTCAN_BSR|MTCAN_APPEND|MTCAN_SETMK|MTCAN_PART|
MTCAN_PREV|MTCAN_SYNC|MTCAN_SPEOD|MTCAN_CHKRDY|MTCAN_VAR|
MTCAN_SETSZ|MTCAN_SILI|MTCAN_SEEK|MTCAN_CHTYPEANY,
/* minimum delay on i/o is 4 minutes, because when a retry is
* performed, the drive retries a number of times, and then
* rewinds to BOT, repositions, and tries again. */
40, 4*60, 4*60, 5*60, 3*3600, 512, 512*512,
tpsc_default_dens_count, tpsc_default_hwg_dens_names,
tpsc_default_alias_dens_names,
{0}, 0, 0, 0,
0, (u_char *)0 },
For an explanation of the functions of the
MTCAN
values and constants, see "
MTCAN
and Constants Values
".
3
Recompile the kernel by running
autoconfig
and then reboot the system. When you
reboot, the device files for the Ultrium drive will be created automatically.
The following device files will be created in
/dev/rmt
:
tps0d3
tps0d3c
tps0d3cnr
tps0d3cnrns
tps0d3cnrnsv
tps0d3cnrs
tps0d3cnrsv
tps0d3cnrv
tps0d3cns
tps0d3cnsv
tps0d3cs
tps0d3csv
tps0d3cv
tps0d3nr
tps0d3nrns
tps0d3nrnsv
tps0d3nrs
tps0d3nrsv
tps0d3nrv
tps0d3ns
tps0d3nsv
tps0d3s
tps0d3sv
tps0d3v
tps0d3stat
These device file names can be interpreted as follows:
Device Name Function
c
Compression
nr
No rewind on close
v
Device supports variable block sizes
ns
Device does not byte-swap
s
Device does byte-swap
stat
Allows the device to be used when one of the other device
files specifying the same physical device is already opened
For example, the device file
tps0d3
indicates a device on controller card 0 at SCSI ID 3,
and the device file
tps0d3nrv
indicates a device on controller card 0 at SCSI ID 3 that
does not rewind on close and supports variable block sizes.
Once the device files have been created, you should confirm that your new tape drive is
working properly. See
Verifying Installation
.
MTCAN and constants values
The
MTCAN
values have the following functions:
MTCAN
value
Capability Enabled
APPEND
Append to existing tape data
BSF
Backspace file
BSR
Backspace record
CHKRDY
Determine if a tape cartridge is present
CHTYPEANY Change density and/or fixed to variable at points other than
beginning of tape
COMPRESS Compression
PART
Multiple partitions
PREV
Prevent media removal
SEEK
Seek to a particular block
SETMK
Setmarks
SETSZ
Fixed block size can be set
SILI
Suppress illegal length indicators
SPEOD
Space to EOD (end of data)
SYNC
Synchronous mode SCSI
VAR
Variable block sizes
The constants have the following functions:
Constant
Description
40
Transfer time-out in "inverse ticks"
4*60
Minimum time-out in seconds for any command
4*60
Space command time-out in seconds
5*60
Time-out in seconds for long operations (such as rewinds)
512
Default block size in bytes for fixed block size mode
64*512
or
512*512
Recommended blocking factor in bytes for the upper limit of
read/write commands
© 2001, Hewlett-Packard Company
file:///C|/Documents%20and%20Settings/topher.COL-SPRINGS/Desktop/dltvs80%20manual/document/common/unix/reseller/eng/c_silcon.htm [11/29/2001 8:34:29 AM]