Preventing tape label overwrites (Linux)
IBM Storage Protect tape labels can be overwritten by an application that uses a generic or native driver. If tape labels are overwritten, data can be lost.
About this task
The IBM Storage Protect Passthru device driver uses the Linux SCSI generic device driver (sg) to control and operate tape devices that are attached on the system. If the Linux generic SCSI tape device driver (st) is loaded to the kernel and configures attached tape devices, conflicts about how a device is managed can result. The reason for the conflicts is that the generic sg driver and the st driver can both control the same device. To prevent tape label overwrites, complete one of the following tasks:
If the st driver controls devices that are used by IBM Storage Protect, Tivoli Storage Manager internal tape labels can be overwritten and data can be lost. If an application uses the st driver to control devices and the non-rewind option is not specified, tapes are automatically rewound following completion of an operation. The auto-rewind operation relocates the tape header position to the beginning of the tape. If the tape remains loaded in the drive, the next non-IBM Storage Protect write operation overwrites the IBM Storage Protect tape label because the label is at the beginning of the tape.
To prevent IBM Storage Protect labels from being overwritten, ensure that only the IBM Storage Protect Passthru driver controls devices that are used by Tivoli Storage Manager. Remove the st driver from the kernel. Alternatively, if the driver is used by some applications on the system, delete the special files that correspond to Tivoli Storage Manager devices. Deleting the special files ensures that the st driver can no longer control them.
If you are using the IBMtape device driver to control devices on your system, you might encounter the same issues with device driver control conflicts. Review your IBMtape documentation to determine how to resolve this issue and prevent data loss.