HP-UX systems12
See the man page (man 1m mksf) for other options of the mksf command. The stape section
covers the SCSI tape driver options. The man page
man 7 mt describes long filenames used in
HP-UX 10.x and later.
Example:
To create a device file with the following characteristics:
• A hardware address specified by instance 5 (
-I 5)
• No rewind (
-n)
• Berkeley mode tape positioning on close (
-u)
• A filename of
4mnb, where 4 is the tape device identifier (/dev/rmt/4mnb)
You would execute the following:
% /sbin/mksf -d stape -I 4 -n -u /dev/rmt/4mnb
Check that the appropriate device file was created using lssf:
% /sbin/lssf /dev/rmt/4mnb
This should produce the following output to show the device file now exists:
stape card instance 0 SCSI target 6 SCSI LUN 0 berkeley no rewind
BEST density at address 2/0/1.6.0 /dev/rmt/4mnb
To create a device file for Ultrium in uncompressed mode, use a command such as:
mksf -H -a -b U_18
[-u] Berkeley mode; absence of this parameter indicates AT&T mode.
Berkeley and AT&T modes differ in their read-only close behavior:
• In Berkeley mode, the tape position remains unchanged by a device
close operation.
• In AT&T mode, a device close operation causes the tape to be
repositioned just after the next tape filemark (the start of the next
file).
In most cases, Berkeley mode should be used.
/dev/rmt/X<name> Path of the device file, where:
X Tape device identifier. Use the next available identifier. You
can examine the contents of
/dev/rmt using the ls
command to determine which identifiers have already been
used.
<name> Short name (in HP-UX 9.x-style) of the device file:
mnb No rewind, compression disabled, Berkeley-mode device
hnb No rewind, compression disabled, Berkeley-mode device
mnb No rewind, compression disabled, Berkeley-mode device
hnb No rewind, compression enabled, Berkeley-mode device
Argument Description