- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Tar: tape blocksize error
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
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
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
тАО12-10-2010 12:39 AM
тАО12-10-2010 12:39 AM
I am trying to view the content of tape which contains ignite backup but getting error "Tar: tape blocksize error".Am i doing any thing wrong ? please help.
#ioscan -fnkC tape
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 0 0/7/1/0.0.0 stape CLAIMED DEVICE HP C7438A
/dev/rmt/0m /dev/rmt/0mn /dev/rmt/c1t0d0BEST /dev/rmt/c1t0d0BESTn /dev/rmt/c1t0d0DDS /dev/rmt/c1t0d0DDSn
/dev/rmt/0mb /dev/rmt/0mnb /dev/rmt/c1t0d0BESTb /dev/rmt/c1t0d0BESTnb /dev/rmt/c1t0d0DDSb /dev/rmt/c1t0d0DDSnb
#tar -tvf /dev/rmt/c1t0d0BESTn
Tar: tape blocksize error
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2010 12:49 AM
тАО12-10-2010 12:49 AM
Re: Tar: tape blocksize error
I think you have first to get rid of the first block in the tape, and then read the tar file:
# mt -f /dev/rmt/c1t0d0BESTn rew
# mt -f /dev/rmt/c1t0d0BESTn fsf 1
# tar -tvf /dev/rmt/c1t0d0BESTn
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2010 12:53 AM
тАО12-10-2010 12:53 AM
Re: Tar: tape blocksize error
# mt -f /dev/rmt/c1t0d0BESTn
fsf 1
# tar -tvf /dev/rmt/c1t0d0BESTn
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1252842
rgs,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2010 12:53 AM
тАО12-10-2010 12:53 AM
Re: Tar: tape blocksize error
NOw I am getting the below error
#tar -tvf /dev/rmt/c1t0d0BESTn
Tar: blocksize = 0; broken pipe?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2010 01:02 AM
тАО12-10-2010 01:02 AM
Re: Tar: tape blocksize error
then it worked.
Can any one explain why are skipping ahead ? what is that we are skipping ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2010 01:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2010 01:12 AM
тАО12-10-2010 01:12 AM
Re: Tar: tape blocksize error
The trick to get the block size of a tape:
# mt -t /dev/rmt/c1t0d0BESTn rew
# mt -t /dev/rmt/c1t0d0BESTn fsf 1
# dd if=/dev/rmt/c1t0d0BESTn of=/dev/null ibs=128k obs=1 count=1
0+1 records in
10240+0 records out
-> this means that block size is 10240 ( it is always the size indicated as records out.
# mt -t /dev/rmt/c1t0d0BESTn rew
# mt -t /dev/rmt/c1t0d0BESTn fsf
# tar -tvbf 20 /dev/rmt/c1t0d0BESTn
20is for 10240 ( 512 bytes blocks)
the size should be 20 for the second record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2010 01:33 AM
тАО12-10-2010 01:33 AM