- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- tar - unexpected end of tape message
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
Forums
Discussions
Discussions
Discussions
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
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
02-18-2003 05:19 AM
02-18-2003 05:19 AM
I am trying to extract a tar archive from a supplier but I am getting end of tape messages whenever I try and list or unload the tape. I can get all of the files off of the tape correctly apart from the last one which always comes up as a short file - Heres the message -
live:/> tar -tvf /dev/rmt/1m
rw-rw-rw- 0/0 475136 Nov 26 09:54 2002 ./TAR/gbdataf1.fme
rw-rw-rw- 0/0 26329088 Nov 26 09:54 2002 ./TAR/gbdataf2.fme
rw-rw-rw- 0/0 11530240 Nov 26 09:54 2002 ./TAR/gbdataf3.fme
rw-rw-rw- 0/0 24993792 Nov 26 09:54 2002 ./TAR/gbdataf4.fme
rw-rw-rw- 0/0 24338432 Nov 26 09:54 2002 ./TAR/gbdataf5.fme
rw-rw-rw- 0/0 3395584 Nov 26 09:54 2002 ./TAR/gbdataf6.fme
rw-rw-rw- 0/0 20480 Nov 25 15:26 2002 ./TAR/gbdataf7.fme
Tar: end of tape
Tar: to continue, enter device/file name when ready or null string to quit.
The last file always extracts as -rw-rw-rw- 1 root sys 18944 Feb 18 11:35 gbdataf7.fme
This is the third such tape from them but before I conclusivly say its their problem does anyone have any further insight.
Have tried extract one two different drives/systems (Both DDDS3).
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2003 05:29 AM
02-18-2003 05:29 AM
Re: tar - unexpected end of tape message
tar during backup will write on the next tape.
Probably they are backingup via cron which mails the tape request to root and they have never seen it.
After a while the tar timeout and you have an unfinished shortened file where you are lost.
Customer should check the backup especially for mail and then try using fbackup instead.
Or pipe tar via dd to compress the input
Steve Steel
"Never mistake knowledge for wisdom. One helps you make a living; the other helps you make a life."
-- Sandra Carey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2003 05:30 AM
02-18-2003 05:30 AM
Re: tar - unexpected end of tape message
The file sizes don't look overly large, so I wouldn't expect them to go over 1 tape, so it looks like you've been given a duff tape.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2003 05:34 AM
02-18-2003 05:34 AM
SolutionI've problems reading tapes fom SGI because they use variable block sizes.
Try:
dd if=/dev/rmt/1m bs=1024k l tar xvf -
(l is pipe!)
Other suggestion:
They should add one more file, which you don't use.
Regards
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2003 06:15 AM
02-18-2003 06:15 AM
Re: tar - unexpected end of tape message
The last file is exactly a multiple of the default blocking factor (10KB, 20 blocks). Perhaps that leads to a blocking problem (which, as Volkmar also mentions, is common for non-HP-UX source platforms).
Try:
dd if=/dev/rmt/1m bs=10k conv=sync | tar tvf -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2003 06:18 AM
02-18-2003 06:18 AM
Re: tar - unexpected end of tape message
I had tried adjusting the blocksizes on the extracts without success so thanks for the info.