- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Tar: tape error (5) on tar rv but not tar cv
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 01:23 AM
тАО08-28-2003 01:23 AM
Tar: tape error (5) on tar rv but not tar cv
My problem is that the single tar cv command works all the time on one server but if I use the second method it always fails on the first tar rv command. The error is:
Tar: tape error (5) and $? is set to 1.
Any ideas? If it is a dodgy tape/drive then why does the first method work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 01:29 AM
тАО08-28-2003 01:29 AM
Re: Tar: tape error (5) on tar rv but not tar cv
The first method probably works because the tape is continuously streaming and not looking do to do file markers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 01:30 AM
тАО08-28-2003 01:30 AM
Re: Tar: tape error (5) on tar rv but not tar cv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 01:32 AM
тАО08-28-2003 01:32 AM
Re: Tar: tape error (5) on tar rv but not tar cv
It could be a bad drive a bad tape or a bad controller. Need to eliminate the controller by checking syslog for errors.
Change the tape and try again to test the tape problem.
Tim.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 01:41 AM
тАО08-28-2003 01:41 AM
Re: Tar: tape error (5) on tar rv but not tar cv
If you wish to do this type of backup then 'cpio' would be an alternative.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 01:50 AM
тАО08-28-2003 01:50 AM
Re: Tar: tape error (5) on tar rv but not tar cv
The syslog shows that there is a SCSI lbolt error at the same time as the tar failure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 02:03 AM
тАО08-28-2003 02:03 AM
Re: Tar: tape error (5) on tar rv but not tar cv
Your scsi error doesnt mean you have a hardware problem, it depends on your level of scsi patches. Are your scsi/stape/tape2 drivers and the tar binary uptodate ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 03:34 AM
тАО08-28-2003 03:34 AM
Re: Tar: tape error (5) on tar rv but not tar cv
The difference in the methods probably has to do with the actual tape position. NOTE: The default tape device file (/dev/rmt/0m) is an AT&T device with what can be best be described as bizarre behavior. Refer to the mt man page for warnings where you'll see that the Berkeley device file is required to get the expected behavior. AT&T closes the drive and automatically positions to the beginning of the current file regardless of the no-rewind option.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 03:53 AM
тАО08-28-2003 03:53 AM
Re: Tar: tape error (5) on tar rv but not tar cv
Cheers
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 12:28 PM
тАО08-28-2003 12:28 PM
Re: Tar: tape error (5) on tar rv but not tar cv
negative experience with tar-append, but feel free to correct with your experience....
I tried around with the append to archive option and one thing I never managed was to restore a file, that had been appended multiple times with easy selection criteria.
Throughout the append, the content of the previous stored data is not checked (as far as I tested). So you could append as often as you like a file to an archive, and when listing the inventory you found it is all in the archive.
So if you create on Monday and append on Tuesday through Friday, you will have 5 files in the archive (tar is behaving diffrent from ar, which will handle this by replacing the file if it exists), from which you only would be able to restore Monday (when specifying the name for restore -> first hit and stop) or Friday (restore the entire archive and get the file five times overwritten) or, if you have flink eyes, quick finges and a working crtl-c trap, catch Tuesday or Wendsday in between on a full restore. Nothing to be handled real good.
Why not opening a new fileset ? Use cv multiple times and the no-rewind device and no mt upon save.
Getting Inventory ?
tar tv
tar tv
tar tv
restoring ? I.e.
mt fsf 4
tar xv
Did anyone came across this and found a solution to restore the 4th stored ./usr/myfile of 6 in a tar-archive ?
I tried this with 9.04 and early 10.10 but I think tar is not evolving very rapidly any more :-)
So from my experience, I would suggest not to use append to tar-archives. Go for seperate archives on a norewind device.
Hope this helps
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2003 06:46 AM
тАО09-02-2003 06:46 AM