mt - magnetic tape positioning and control
mt [ -f | -t tapedevice ] command [ count ] [ command [ count ] ... ]
mt is used to position or control the specified magnetic tape drive supporting the commands listed below. Commands that support a count field allow multiple operations to be performed (the rewind, status and offline commands do not support a count field). mt will output failure messages if the specified tape drive cannot be opened or if the operation fails.
The -f option specifies which tape device to use. Use sysconfig -t to list all tape devices on the filer. -t has the same effect as -f.
eof, weof Writes count end-of-filemarks beginning at the current position on tape.
mt -f device status
After the filer accesses the tape device, you can use the sysconfig -t command to display information about the device emulation.
The following example uses mt to display status information for the norewind tape device, unit zero, highest format (density):
toaster> mt -f nrst0a status
Tape drive: Exabyte 8505 8mm
Status: ready, write enabled
Format: EXB-8500C (w/compression)
fileno = 0 blockno = 0 resid = 0
To skip over a previously created dump file to append a dump onto a norewind tape device, use the fsf (forward space file) command:
toaster> mt -f nrst0a fsf 1
In takeover mode, the failed filer has no access to its tape devices. If you enter the mt command in partner mode, the command uses the tape devices on the live filer.
na_partner(1)
, na_sysconfig(1), na_tape(4).