HP VS80 DLT VS80 Tape Drive User's Guide - Page 31

UNIX sgi, determining the SCSI id, configuring the device files, MTCAN and constants values

Page 31 highlights

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 related topics determining the SCSI ID configuring the device files MTCAN and constants values 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 (64kilobyte blocks). 1Open the kernel configuration file /var/sysgen/master.d/scsi, for IRIX 6.2 and later, with a text editor. 2Find 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". 3Recompile 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 40 4*60 4*60 5*60 512 64*512 or 512*512 Description Transfer time-out in "inverse ticks" Minimum time-out in seconds for any command Space command time-out in seconds Time-out in seconds for long operations (such as rewinds) Default block size in bytes for fixed block size mode 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]

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79

UNIX sgi
hp learning products
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]