cancel
Showing results for 
Search instead for 
Did you mean: 

tape backup using

boncafe
Occasional Visitor

tape backup using

I have created a tape backup using

tar cf /dev/nst0 /home

When I try to view the contents of the backup with this command

tar tvf /dev/nst0

My systems hangs for about 5 minutes and then returns...

tar: /dev/st0: Cannot read: Input/output error
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now

Any ideas what I might be missing?
4 REPLIES
Steven E. Protter
Exalted Contributor

Re: tape backup using

Shalom,

Perhaps the tape needs to be rewound.

Or perhaps the write failed.

echo $?

After making the backup.

A non-zero answer means failure.

Check the write tab.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
boncafe
Occasional Visitor

Re: tape backup using

I backup files by .tar.gz Read & Write It's work, But I backup folder ( tar -cvf /dev/nst0 /home ) Write success.

If I have restore ( tar -xvf /dev/nst0 /home )
Not work, Error

tar: /dev/st0: Cannot read: Input/output error
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now


Note: I have used Cleaning Tape.
Francisco Manso_2
Occasional Visitor

Re: tape backup using

What kind of bus is the tape connected to?. Try to see what is in dmesg when you perform the tar. Also, while backing up try to "tail -f /var/log/messages". Also check /proc/scsi/scsi before and after the backup (I have a similar problem, and it fails because the unit ID-connected to SAS bus- changes during the tar)
boncafe
Occasional Visitor

Re: tape backup using

I shaved solution.
Use Tap Cleaning and run command # mt -f /dev/nst0 erase

Ok, It work.

Thank you,
Tips: http://www.susethailand.com