Problem with SCSI DDS3 tape drive
I have a tape drive on /dev/nst0 which I've been tarring my filesystems two for over a year now.
The tar command I use to write to tape is
tar -cvpf /dev/nst0 --label="Backup:`date '+%d-%B-%Y'`" --directory / --exclude=mnt --exclude=proc --exclude=dev --exclude=tmp --exclude=root . > /tmp/Backup-`date '+%d-%B-%Y'`-Log
Which writes the tar file to the tape and puts a log file in /tmp. After that I rewind the tape with
mt -f /dev/nst0 rewind
and take it offline with
mt -f /dev/nst0 offline
This has been working fine for ages however when I try to dothis now I ge the error
tar: /dev/nst0: Wrote only 0 of 10240 bytes
tar: Error is not recoverable: exiting now
From looking at the log file this tar command generates sometimes this happens after only a few files, sometimes after almost the whole backup is written, however it invariably always happens and something is not backed up. Oh the other thing is it always says 10240 bytes? Mabye this is signitficant?
Can anyone fill me in on what this means. Is the drive bad or is this something to do with a configuration perhaps? Each time I try to backup its on a different tape so Idont think its dodgy tapes.
thanks heaps for reading this far !!