On Mon, 2003-08-25 at 21:10, Peter Kiem wrote: > Hi, > > I have a script in a customer site which performs a backup to tape and > then tries to verify the backup. This is my script: > > #!/bin/bash > echo "rewinding tape" > mt -f /dev/st0 rewind > echo "retensioning tape" > mt -f /dev/st0 retension > echo "starting backup" > tar -cpf /dev/st0 --verify --files-from /root/scripts/backup.inc > --exclude-from /root/scripts/backup.exc > echo "rewinding tape & unloading tape" > mt -f /dev/st0 rewoffl > echo "finished backup" > > > But at the end of the backup I see: > tar: /dev/st0: Cannot read: Input/output error > tar: /dev/st0: Cannot read: Input/output error > tar: /dev/st0: Cannot read: Input/output error > tar: /dev/st0: Cannot read: Input/output error > tar: /dev/st0: Cannot read: Input/output error > tar: /dev/st0: Cannot read: Input/output error > tar: /dev/st0: Cannot read: Input/output error > tar: /dev/st0: Cannot read: Input/output error > tar: /dev/st0: Cannot read: Input/output error > tar: /dev/st0: Cannot read: Input/output error > tar: /dev/st0: Cannot read: Input/output error > tar: /dev/st0: Cannot read: Input/output error > tar: Too many errors, quitting > tar: Error is not recoverable: exiting now > > > They have cleaned the drive, changed tapes but I always get the above > error messages. > > Am I verifying the backup correctly or am I doing something wrong? > > -- > Regards, > +-----------------------------+---------------------------------+ > | Peter Kiem .^. | E-Mail : <[EMAIL PROTECTED]> | > | Zordah IT /V\ | Mobile : +61 0414 724 766 | > | IT Consultancy & /( )\ | WWW : www.zordah.net | > | Internet Services ^^-^^ | ICQ : "Zordah" 866661 | > +-----------------------------+---------------------------------+ > My current spamtrap address is [EMAIL PROTECTED]
Try to run the "mt -f /dev/st0 erase" before write/read any data on the tape. -- Marcos de Souza Trazzini <[EMAIL PROTECTED]> Servmicro Informática LTDA -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list