- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Tar returns tape error (5)
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
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
тАО10-07-2002 02:15 AM
тАО10-07-2002 02:15 AM
I have a problem restoring a backup tape that used the tar utility. when I tar -tvf on the machine, after restoring several files, the error occurs and fails. I have tested the tape on another machine and it works fine.(using the same set of commmand).
I have read that there is a 2GB limit on tar. Is that refering to each individual file on a tar archive? Or the whole tar archive cannot exceed 2GB?
Thx a lot!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2002 02:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2002 02:23 AM
тАО10-07-2002 02:23 AM
Re: Tar returns tape error (5)
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2002 02:24 AM
тАО10-07-2002 02:24 AM
Re: Tar returns tape error (5)
The second part of your question is simple, tar has a file limit of 2 gb, no limit on the archive.
In your case you mentioned a test on a other server, has this server the same OS + hardware (tape device) ?
Regards
RJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2002 02:25 AM
тАО10-07-2002 02:25 AM
Re: Tar returns tape error (5)
exit(0)
no error & no warning.
exit(1)
Tar: cannot create temporary file (%s)
Invalid blocksize. (Max %d)
tar: blocksize %d too big, can't get memory
tar:Invalid or non-existent device file %s
Can only create standard output archives
tar: cannot open %s
tar: option not supported for this device %s
tar: cannot write to %s: write protected
tar: usage tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] ......
Attempt to create archive of no files. Nothing dumped.
tar: cannot preserve extent attributes for %s. aborting...
Tar: cannot create temporary file (%s)
Invalid blocksize. (Max %d)
tar: blocksize %d too big, can't get memory
tar:Invalid or non-existent device file %s
Can only create standard output archives
exit(2)
directory checksum error
tar: %s: HELP - extract write error
tar: Cannot close %s
Tar: tape write error
exit(3)
Tar: tape read error
Tar: tape blocksize error
Tar: blocksize = 0; broken pipe?
Tar: error! blocksize changed
exit(4)
Tar: tape backspace error
Tar: ioctl to write filemarks failed (%d). aborting...
Tar: ioctl to determine device online failed. aborting...
exit(5)
tar: Cannot change directory to '%s'
tar: Path '%s' skipped
tar: cannot open %s
Missing links to %s
tar: %s: cannot access file
tar: Out of memory. Cannot detect symbolic link loops
tar: Loop of symbolic links detected, tar terminated
tar: cannot stat %s. Not dumped.
tar: Size of %s > %s. Not dumped.
tar: %s: directory read error
tar: %s: directory read error
tar: %s: symbolic link too long
tar: can't read symbolic link
tar: %s: cannot open file
tar: %s: link to name too long
Out of memory. Link information lost
%s: file changed size
tar: %s is not a file. Not dumped
tar: %s: symbolic link failed
%s: cannot link
tar: %s couldn't create character device
tar: %s couldn't create block device
tar: %s couldn't create fifo
tar: %s couldn't create directory
tar: %s couldn't create directory
tar: %s - cannot create
tar: chmod failed
tar: chown failed
tar: couldn't get uname for uid %d
tar: couldn't get gname for gid %d
tar: pwd failed
tar: %s: pathname too long
tar: %s: prefix too long
tar: %s: file name too long
%s: file name too long
NOTE: exit code is condsidered as 'NONFATAL_ERRCODE'
It is for individual files not the entire archive.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2002 02:28 AM
тАО10-07-2002 02:28 AM
Re: Tar returns tape error (5)
The 2Gb limit refers to individual files, not the whole archive.
If the 2gb limit is not the problem, sometimes it is worth trying pax to read the tape. Can't remember the exact command,
pax -vf /dev/rmt/0m
check the man pages.
Cheers
Keely
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2002 02:44 AM
тАО10-07-2002 02:44 AM
Re: Tar returns tape error (5)
I am using a rewindable device. I use the tar -cvf command to create the archive on a tape device. I experience problem after several files have been exported...around 4 files of total size 3GB has been successfully restored before the error came out.
The file being restored when the error came was restored partially.
Thx!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2002 03:06 AM
тАО10-07-2002 03:06 AM
Re: Tar returns tape error (5)
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2002 11:30 PM
тАО10-07-2002 11:30 PM
Re: Tar returns tape error (5)
This is the screen dump of the error. I have backup from a K460 server and restore on a K210 server. Both uses the same model of DDS3 tape drive.
sfaudev1 /u09/oradata/faspprod #tar -xvf /dev/rmt/1m
x ./users01.dbf, 10493952 bytes, 20496 tape blocks
x ./dis_data01.dbf, 52436992 bytes, 102416 tape blocks
x ./ftss_index01.dbf, 314580992 bytes, 614416 tape blocks
x ./nls_index01.dbf, 629153792 bytes, 1228816 tape blocks
x ./rbs01.dbf, 31465472 bytes, 61456 tape blocks
Tar: tape error (5)
sfaudev1 /u09/oradata/faspprod #echo $?
2
I guess the exit status is 2. I have recreated the device files and the same error comes out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-08-2002 07:43 AM
тАО10-08-2002 07:43 AM
Re: Tar returns tape error (5)
It may be also a problem with the SCSI controller. We had the same problem few weeks ago with one L2000 and, finally, the SCSI controller for the bus the tape was on had to be replaced.
Regards.
Xavier.