Data fields for SCSI tape devices

Ubuntu 22.04 LTS LPAR mode z/VM guest KVM guest

There are specific data fields for SCSI tape devices.

Table 1. lstape data fields for SCSI tape devices
Attribute Description
Generic SCSI generic device file for the tape drive (for example /dev/sg0). This attribute is N/A if the SCSI generic device driver, sg, is not available.
Device Main device file for accessing the tape drive, for example:
  • /dev/st0 for a tape drive that is attached through the Linux® st device driver
  • /dev/sch0 for a medium changer device that is attached through the Linux changer device driver
  • /dev/IBMchanger0 for a medium changer that is attached through the IBMtape or lin_tape device driver
  • /dev/IBMtape0 for a tape drive that is attached through the IBMtape or lin_tape device driver
Target The ID in Linux used to identify the SCSI device.
Vendor The vendor field from the tape drive.
Model The model field from the tape drive.
Type Tapedrv for a tape driver or changer for a medium changer.
State The state of the SCSI device in Linux. This state is an internal state of the Linux kernel, any state other than "running" can indicate problems.
HBA The bus-ID of the FCP device or of the virtio-scsi-ccw virtual HBA to which the tape drive is attached. N/A if the device does not have a sysfs ancestor with subsystem ccw.
WWPN The WWPN (worldwide port name) of the tape drive in the SAN. N/A if the device is not attached through zfcp.
Serial The serial number field from the tape drive. NO/SG if the SCSI generic device driver, sg, is not available. NO/INQ if sg is available, but the sg_inq command from the scsi/sg3_utils package is unavailable.