mt.7 (2010 09)

m
mt(7) mt(7)
NAME
mt - magnetic tape interface and controls for stape and estape
DESCRIPTION
This entry describes the behavior of HP magnetic tape interfaces and controls. The files
/dev/rtape/*
refer to specific raw tape drives controlled by the estape driver. The major number of these device special
files is dynamically allocated and the minor number does not encode any device specific information.
The files
/dev/rmt/* refer to specific raw tape drives controlled by the legacy stape driver, and the
behavior of each given unit is specified in the major and minor numbers of the DSF. The legacy driver
and DSFs are deprecated and will be removed in a future version of HP-UX.
Naming Conventions
The device special files (referred to as DSFs) for the
estape driver have the following naming conven-
tions:
/dev/rtape/tape#_BEST
[n][
b]
There are four such files (referred to as persistent DSFs) corresponding to each of the four different per-
mutations of the
n and b options. These are claimed by the
estape driver. See intro (7) for more details
on persistent device special file names.
There are two naming conventions for legacy DSFs. The standard (preferred) convention is used on sys-
tems that support long file names. An alternate convention is provided for systems limited to short file
names. The following standard convention is recommended because it allows for all possible
configuration options in the device name and is used by mksf (1M) and insf (1M):
/dev/rmt/c#t#d#[o][z][e][p][s
[#]][w]BEST[C[#]][n][b]
The following alternate naming convention is provided to support systems in which the
/dev/rmt direc-
tory requires short file names. These DSF names are less descriptive, but guarantee unique device nam-
ing and are used by mksf(1M) and insf (1M) where required.
/dev/rmt/c#t#d#[f#|i#][n][b
]
For each tape device present, twelve DSFs are automatically created when the system is installed. If
legacy mode is disabled (via the
-L option in rmsf), only four DSFs in
/dev/rtape will be created post
installation. These are claimed by the
estape driver.
Four legacy DSFs will be created in the
/dev/rmt directory using the following naming convention.
These are legacy DSFs and are claimed by the stape driver.
/dev/rmt/c#t#d#BEST[n][b].
Four more legacy DSFs with the format
/dev/rmt/#m
[n][b] will be automatically created when the sys-
tem is installed using the pre-HP-UX 10.0 device file naming convention. This includes an arbitrary
number to distinguish this tape device from others in the system, followed by the letter
m. There are four
such DSFs because each of the four different permutations of the
n and b options (see below) are created.
These files are created for compatability with pre-HP-UX 10.0 scripts and for users who find the old con-
vention easier to remember.
Each of the automatically created DSFs which utilize the standard or alternate naming conventions is
linked to a device file which utilizes the pre-HP-UX 10.0 naming convention. That is, the DSFs in the for-
mat
/dev/rmt/#m[n][b] are created as hardlinks to the corresponding /dev/rmt/c#t#d#
BEST[n][b]
DSFs mentioned above.
Thus, the DSFs which utilize the pre-HP-UX 10.0 naming convention provide the same functionality as
the device files which contain the density specification
BEST (standard naming convention).
Options
The options described here are common to all legacy tape drivers. The
c#t#d# notation in the legacy
DSF name derives from ioscan output and is described in the manpages for ioscan (1M) and intro (7).
c# Instance number assigned by the operating system to the interface card.
t# Target address on a remote bus (for example, SCSI address)
d# Device unit number at the target address (for example, SCSI LUN).
w Writes wait for physical completion of the operation before returning status. The default
behavior (buffered mode or immediate reporting mode) requires the tape device to buffer the
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (10 pages)