Fedora 15 + scsi tape drive

Craig White craigwhite at azapple.com
Sat Oct 15 01:00:14 UTC 2011


On Fri, 2011-10-14 at 14:24 -0700, Bill Perry wrote:
> Thank-you.
> 
> It appears that the st module is loaded.
> #lsmod |grep st
> <stuff>
> st                     32080  0
> 
> Next, I tried the command write to the tape as /dev/st0. I put a 
> writeable tape in the drive.
> I have a couple of files in /root called yum_list...
> 
> tar cvf /dev/st0 /root/yum*
> tar: /dev/st0: Cannot open: Input/output error
> tar: Error is not recoverable: exiting now
> 
> The /dev/tape/by-id/... is a link pointing to /dev/st0
> tar cvf /dev/tape/by-id/scsi-1HP_C7438_xxxxx /root/yum*
> tar: /dev/tape/by-id/scsi-1HP_C7438A_xxxxx: Cannot open: Input/output error
> tar: Error is not recoverable: exiting now
> 
> Running rescan-scsi-bus.sh does not help.
> 
> Running
> mt -f /dev/st0 offline
> does not do anything.
> mt -f /dev/st0 status
> SCSI 2 tape drive:
> File number=-1, block number=-1, partition=0.
> Tape block size 0 bytes. Density code 0x0 (default).
> Soft error count since last status=0
> General status bits on (10000):
>   IM_REP_EN
> 
> The tape drive still appears in lsscsi
----
st refers to an automatic tape drive and nst refers to a manually
controlled drive and most backup software prefers the usage of nst as it
wants to get control over the drive and tape positioning anyway.

You might want to try...

mt -f /dev/nst0 rewind
mt -f /dev/nst0 status

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the users mailing list