Installing a DAT (Tape) drive in Linux
How do I setup and use a DAT drive in Linux?
- Ensure the switches on the DAT drive are set to default factory settings.
- Check the boot up log files that are in the /var directory (/var/logs ?) and look at how the system booted up. Do you see a DAT drive? If so, then Linux also "sees" the drive.
- Check the /dev directory for rmt devices. If rmt device names are present, then check the date of the files; it may be that the DAT drive was detected after all. You can remove any rmt device names since Linux will recreate them on boot up anyway. It may also be good to delete the log files that Linux creates during boot up in order to not be confused with previous boot ups.
- Boot the system with the DAT drive attached and execute the following commands:
lsmod - this will show the current loaded modules. Only one should be st. If there are more than one st, then one of them should be unloaded. (It may help to have the sg driver loaded as TDiag uses the SG driver).
dmesg | grep tape - If a tape drive was detected there should be a message similar to "Detected tape st0 . . . ". This command would scan the /var log files which were created during boot up.
Also, look at the /dev directory to view for any rmt devices. Since we deleted any /rmt devices in the above step, any new rmt devices should be the DAT drive.
Two more things, if the SCSI controller that the DAT drive is attached to is a wide controller, then there must be a wide terminator on the cable to terminate the upper portion of the bus. To do that, remove the terminator jumpers on the DAT drive and attach the wide terminator.
Also, do not be fooled by the output of an mt status command to a tape drive which does not have a tape installed. The MT command for status, MT -f /dev/rmt0 status, will show a busy or some other kind of message which will look like an error. Put a tape in before issuing an MT status command.
System x Hardware Options:All operating systems listed
Older System x:Caldera Open UNIX 8.x
Older System x:Red Hat Linux
Older System x:SUSE Linux
Older System x:Turbolinux
[{"Type":"HW","Business Unit":{"code":"BU016","label":"Multiple Vendor Support"},"Product":{"code":"HW189","label":"Older System x->xSeries 360"},"Platform":[{"code":"PF025","label":"Platform Independent"},{"code":"PF041","label":"HMC"},{"code":"PF042","label":"Caldera"},{"code":"PF047","label":"SurePOS"},{"code":"PF048","label":"SUSE"}],"Line of Business":{"code":"","label":""}},{"Type":"HW","Business Unit":{"code":"BU016","label":"Multiple Vendor Support"},"Product":{"code":"HW18L","label":"Older System x->xSeries 330"},"Platform":[{"code":"PF025","label":"Platform Independent"},{"code":"PF041","label":"HMC"},{"code":"PF042","label":"Caldera"},{"code":"PF047","label":"SurePOS"},{"code":"PF048","label":"SUSE"}],"Line of Business":{"code":"","label":""}},{"Type":"HW","Business Unit":{"code":"BU016","label":"Multiple Vendor Support"},"Product":{"code":"HW18M","label":"Older System x->xSeries 340"},"Platform":[{"code":"PF025","label":"Platform Independent"},{"code":"PF041","label":"HMC"},{"code":"PF042","label":"Caldera"},{"code":"PF047","label":"SurePOS"},{"code":"PF048","label":"SUSE"}],"Line of Business":{"code":"","label":""}},{"Type":"HW","Business Unit":{"code":"BU016","label":"Multiple Vendor Support"},"Product":{"code":"HW18U","label":"Older System x->xSeries 342"},"Platform":[{"code":"PF025","label":"Platform Independent"},{"code":"PF041","label":"HMC"},{"code":"PF042","label":"Caldera"},{"code":"PF047","label":"SurePOS"},{"code":"PF048","label":"SUSE"}],"Line of Business":{"code":"","label":""}},{"Type":"HW","Business Unit":{"code":"BU016","label":"Multiple Vendor Support"},"Product":{"code":"HW18V","label":"Older System x->xSeries 350"},"Platform":[{"code":"PF025","label":"Platform Independent"},{"code":"PF041","label":"HMC"},{"code":"PF042","label":"Caldera"},{"code":"PF047","label":"SurePOS"},{"code":"PF048","label":"SUSE"}],"Line of Business":{"code":"","label":""}},{"Type":"HW","Business Unit":{"code":"BU016","label":"Multiple Vendor Support"},"Product":{"code":"HW18W","label":"Older System x->xSeries 370"},"Platform":[{"code":"PF025","label":"Platform Independent"},{"code":"PF041","label":"HMC"},{"code":"PF042","label":"Caldera"},{"code":"PF047","label":"SurePOS"},{"code":"PF048","label":"SUSE"}],"Line of Business":{"code":"","label":""}},{"Type":"HW","Business Unit":{"code":"BU016","label":"Multiple Vendor Support"},"Product":{"code":"HW18X","label":"Older System x->xSeries 380"},"Platform":[{"code":"PF025","label":"Platform Independent"},{"code":"PF041","label":"HMC"},{"code":"PF042","label":"Caldera"},{"code":"PF047","label":"SurePOS"},{"code":"PF048","label":"SUSE"}],"Line of Business":{"code":"","label":""}},{"Type":"HW","Business Unit":{"code":"BU016","label":"Multiple Vendor Support"},"Product":{"code":"HW19L","label":"Older System x->xSeries 343"},"Platform":[{"code":"PF025","label":"Platform Independent"},{"code":"PF041","label":"HMC"},{"code":"PF042","label":"Caldera"},{"code":"PF047","label":"SurePOS"},{"code":"PF048","label":"SUSE"}],"Line of Business":{"code":"","label":""}},{"Type":"HW","Business Unit":{"code":"BU016","label":"Multiple Vendor Support"},"Product":{"code":"HWN07","label":"Older System x->Netfinity 8500R"},"Platform":[{"code":"PF025","label":"Platform Independent"},{"code":"PF041","label":"HMC"},{"code":"PF042","label":"Caldera"},{"code":"PF047","label":"SurePOS"},{"code":"PF048","label":"SUSE"}],"Line of Business":{"code":"","label":""}},{"Type":"HW","Business Unit":{"code":"BU016","label":"Multiple Vendor Support"},"Product":{"code":"HWN08","label":"Older System x->Netfinity 5600"},"Platform":[{"code":"PF025","label":"Platform Independent"},{"code":"PF041","label":"HMC"},{"code":"PF042","label":"Caldera"},{"code":"PF047","label":"SurePOS"},{"code":"PF048","label":"SUSE"}],"Line of Business":{"code":"","label":""}},{"Type":"HW","Business Unit":{"code":"BU016","label":"Multiple Vendor Support"},"Product":{"code":"HWN10","label":"Older System x->Netfinity 5100"},"Platform":[{"code":"PF025","label":"Platform Independent"},{"code":"PF041","label":"HMC"},{"code":"PF042","label":"Caldera"},{"code":"PF047","label":"SurePOS"},{"code":"PF048","label":"SUSE"}],"Line of Business":{"code":"","label":""}},{"Type":"HW","Business Unit":{"code":"BU016","label":"Multiple Vendor Support"},"Product":{"code":"HWN11","label":"Older System x->Netfinity 7100"},"Platform":[{"code":"PF025","label":"Platform Independent"},{"code":"PF041","label":"HMC"},{"code":"PF042","label":"Caldera"},{"code":"PF047","label":"SurePOS"},{"code":"PF048","label":"SUSE"}],"Line of Business":{"code":"","label":""}},{"Type":"HW","Business Unit":{"code":"BU016","label":"Multiple Vendor Support"},"Product":{"code":"HWN12","label":"Older System x->Netfinity 6000R"},"Platform":[{"code":"PF025","label":"Platform Independent"},{"code":"PF041","label":"HMC"},{"code":"PF042","label":"Caldera"},{"code":"PF047","label":"SurePOS"},{"code":"PF048","label":"SUSE"}],"Line of Business":{"code":"","label":""}},{"Type":"HW","Business Unit":{"code":"BU016","label":"Multiple Vendor Support"},"Product":{"code":"HWN13","label":"Older System x->Netfinity 4500R"},"Platform":[{"code":"PF025","label":"Platform Independent"},{"code":"PF041","label":"HMC"},{"code":"PF042","label":"Caldera"},{"code":"PF047","label":"SurePOS"},{"code":"PF048","label":"SUSE"}],"Line of Business":{"code":"","label":""}},{"Type":"HW","Business Unit":{"code":"BU016","label":"Multiple Vendor Support"},"Product":{"code":"HWN15","label":"Older System x->Netfinity 7600"},"Platform":[{"code":"PF025","label":"Platform Independent"},{"code":"PF041","label":"HMC"},{"code":"PF042","label":"Caldera"},{"code":"PF047","label":"SurePOS"},{"code":"PF048","label":"SUSE"}],"Line of Business":{"code":"","label":""}},{"Type":"HW","Business Unit":{"code":"BU016","label":"Multiple Vendor Support"},"Product":{"code":"QU00DIA","label":"System x Hardware Options->Tape Drive->12 \/ 24 GB->01K1282"},"Platform":[{"code":"PF025","label":"Platform Independent"},{"code":"PF041","label":"HMC"},{"code":"PF042","label":"Caldera"},{"code":"PF047","label":"SurePOS"},{"code":"PF048","label":"SUSE"}],"Line of Business":{"code":"","label":""}},{"Type":"HW","Business Unit":{"code":"BU016","label":"Multiple Vendor Support"},"Product":{"code":"QU00FMH","label":"System x Hardware Options->Tape Drive->20 \/ 40 GB->00N7991"},"Platform":[{"code":"PF025","label":"Platform Independent"},{"code":"PF041","label":"HMC"},{"code":"PF042","label":"Caldera"},{"code":"PF047","label":"SurePOS"},{"code":"PF048","label":"SUSE"}],"Line of Business":{"code":"","label":""}},{"Type":"HW","Business Unit":{"code":"BU016","label":"Multiple Vendor Support"},"Product":{"code":"QU00HWX","label":"System x Hardware Options->Tape Drive->12 \/ 24 GB->09N4041"},"Platform":[{"code":"PF025","label":"Platform Independent"},{"code":"PF041","label":"HMC"},{"code":"PF042","label":"Caldera"},{"code":"PF047","label":"SurePOS"},{"code":"PF048","label":"SUSE"}],"Line of Business":{"code":"","label":""}}]