st - shared tape administration
st -f device_file [-r] [-s]
The st command provides users with a command-line interface to check
the status of a shared tape device or to reclaim a shared tape device
from a host system that has failed while holding a reservation on the
shared tape device. The st command can also be used for the same
purpose on shared library robotic devices. To use the st command you
must have root user id.
Please see examples below for usage.
st recognizes the following options and arguments:
-f device_file Specifies the tape device file or sctl pass-through
device file for the shared tape/library device. This
parameter is mandatory and st will report an error if
-f device_file is omitted.
-r Allows the user to reclaim a shared tape device or
shared library robotic device in the case where a host
failed while holding a reservation on the shared
device. This option causes a bus device reset to be
issued to the device specified by the -f option.
-s Prints out the current status of the shared
tape/library device specified by the -f option.
st returns 0 upon successful completion and 1 otherwise.
st -f /dev/scsi/st_device -s
The following shows three examples of output from the above command.
Device is reserved by another host
The above output indicates that the shared device is reserved by
another host and is therefore unavailable at this time.
Device not ready
The above output indicates that the shared device is not ready for use
at this time.
Hewlett-Packard Company - 1 - HP-UX Release 11i: November 2000
Device is OK and available
The above output indicates that the shared device is ready for use at
To reclaim a shared tape/library device from a failed host, the
following command can be used:
st -f /dev/scsi/st_device -r
The -r option must be used with care. When reclaiming devices, it must
be ensured that the host from which the device is being reclaimed has
in fact failed, as data may be lost as the result of reclaiming a
device that is currently in use by another host.
The sctl SCSI pass-through driver must be configured in the kernel
before this command can be used to administer the shared tape device.
st was developed by Hewlett-Packard.
mt(1), scsi(7), scsi_ctl(7).
Hewlett-Packard Company - 2 - HP-UX Release 11i: November 2000