[nflug] tape drive problems (scsi)
Darin Perusich
Darin.Perusich at cognigencorp.com
Thu May 4 10:31:05 EDT 2006
i'm curious as to why you are erasing the tape, there really isn't a
need to do this. because you are using /dev/st0 you do not need to
rewind the tape it will rewind automatically, /dev/nst0 is the no-rewind
device on linux. try removing the rewind to see if it makes a difference.
try dd'ing /dev/zero onto the device to see if it errors? something like
'dd if=/dev/zero of=/dev/st0 bs=512k count=10000' will write alot of
nothing to the tape for you.
Cyber Source wrote:
> Now, I have a very rudimentary script as a cron like so ( I don't need
> sequential backups, etc. )
>
> #!/bin/bash
> mt erase
> tar cvf /dev/st0 /Backup/Monday
> mt rewind
>
> So, my question would be, do I need to set a block size in my script to
> make this more reliable? I have read the man page on mt (and st), lots
> of options but no examples (so many scsi options). Anyway, so I might
> save myself tons of trial and error, can anyone give me a clue? Thanks,
> Peter
>
--
Darin Perusich
Unix Systems Administrator
Cognigen Corporation
395 Youngs Rd.
Williamsville, NY 14221
darinper at cognigencorp.com
_______________________________________________
nflug mailing list
nflug at nflug.org
http://www.nflug.org/mailman/listinfo/nflug
More information about the nflug
mailing list