- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Tar: 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
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
10-24-2001 08:40 AM
10-24-2001 08:40 AM
Tar: tape error (5)
I know the tape and drive are OK because I've read the tape in 3 other machines. I swapped the drive out with another of the same model that I know works and the same error occured.
I have another machine using the same model DDS and the same STAPE driver without issue. The only thing I can come up with is a possible card issue.
Here are some facts and output:
Server: L2000
DDS: C1537A
(A listing of the test files I'm using.)
root@ddfin01 [ /tmp ]
# ll A*
-rw-rw-r-- 1 root sys 9502720 Oct 24 12:17 AAAa15595.TMP
-rw-rw-r-- 1 root sys 169723 Oct 24 11:55 AAAa15949.TMP
-rw-rw-r-- 1 root sys 8340565 Oct 24 11:55 AAAa16909.TMP
-rw-rw-r-- 1 root sys 415146 Oct 24 11:55 AAAa17203.TMP
-rw-rw-r-- 1 root sys 157435 Oct 24 11:55 AAAa19393.TMP
-rw-rw-r-- 1 root sys 415146 Oct 24 11:55 AAAa21440.TMP
(Using TAR with the default block setting of 4.)
root@ddfin01 [ /tmp ]
# tar cvf /tmp/AAA*
a /tmp/AAAa15949.TMP 332 blocks
a /tmp/AAAa16909.TMP 16291 blocks
a /tmp/AAAa17203.TMP 811 blocks
a /tmp/AAAa19393.TMP 308 blocks
a /tmp/AAAa21440.TMP 811 blocks
(Tar: tape error (5) during read.)
root@ddfin01 [ /tmp ]
# tar t
Tar: blocksize = 4
/tmp/AAAa15595.TMP
/tmp/AAAa15949.TMP
Tar: tape error (5)
(Changing the block setting to 1.)
root@ddfin01 [ /tmp ]
# tar cvbf 1 /dev/rmt/0m /tmp/AA*
a /tmp/AAAa15595.TMP 2398 blocks
a /tmp/AAAa15949.TMP 332 blocks
a /tmp/AAAa16909.TMP 16291 blocks
a /tmp/AAAa17203.TMP 811 blocks
a /tmp/AAAa19393.TMP 308 blocks
a /tmp/AAAa21440.TMP 811 blocks
(Tape reads just fine with blocksize of 1.)
root@ddfin01 [ /tmp ]
# tar t
Tar: blocksize = 1
/tmp/AAAa15595.TMP
/tmp/AAAa15949.TMP
/tmp/AAAa16909.TMP
/tmp/AAAa17203.TMP
/tmp/AAAa19393.TMP
/tmp/AAAa21440.TMP
Thanks in advance for any help/direction anyone can provide.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 08:44 AM
10-24-2001 08:44 AM
Re: Tar: tape error (5)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 08:48 AM
10-24-2001 08:48 AM
Re: Tar: tape error (5)
Take a look at the thread http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x2471dfe5920fd5118fef0090279cd0f9,00.html, or http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x9a6d37f45ef7d4118fef0090279cd0f9,00.html
Cheers,
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 08:49 AM
10-24-2001 08:49 AM
Re: Tar: tape error (5)
tar cvf /tmp/AAA*
will write your tar to the first file in the directory. It is not writing to tape!
So when you do a "tar t " it is reading from your tape drive by default.
the correct syntax is
tar cvf /dev/rmt/0m /tmp/AAA*
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 08:52 AM
10-24-2001 08:52 AM
Re: Tar: tape error (5)
[root]pbctst: ls -l /tmp/va*
-rw-rw-r-- 1 root sys 0 Oct 24 12:53 /tmp/va0
-rw-rw-r-- 1 root sys 5422 Aug 29 11:56 /tmp/va2_ioscan
-rw-rw-r-- 1 root sys 5728 Aug 29 12:54 /tmp/va3_ioscan
-rw-rw-r-- 1 root sys 5908 Aug 29 15:06 /tmp/va4_ioscan
-rw-rw-r-- 1 root sys 5203 Aug 29 10:51 /tmp/va_ioscan
-rw-rw-r-- 1 root sys 0 Oct 24 12:53 /tmp/vaa
[root]pbctst: tar cvf /tmp/va*
a /tmp/va2_ioscan 11 blocks
a /tmp/va3_ioscan 12 blocks
a /tmp/va4_ioscan 12 blocks
a /tmp/va_ioscan 11 blocks
a /tmp/vaa 0 blocks
[root]pbctst: ls -l /tmp/va*
-rw-rw-r-- 1 root sys 30720 Oct 24 12:54 /tmp/va0
-rw-rw-r-- 1 root sys 5422 Aug 29 11:56 /tmp/va2_ioscan
-rw-rw-r-- 1 root sys 5728 Aug 29 12:54 /tmp/va3_ioscan
-rw-rw-r-- 1 root sys 5908 Aug 29 15:06 /tmp/va4_ioscan
-rw-rw-r-- 1 root sys 5203 Aug 29 10:51 /tmp/va_ioscan
-rw-rw-r-- 1 root sys 0 Oct 24 12:53 /tmp/vaa
[root]pbctst:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 09:03 AM
10-24-2001 09:03 AM
Re: Tar: tape error (5)
tar cvf /dev/rmt/0m /path
I have also tried without the "f" and with the 0mn device.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 09:09 AM
10-24-2001 09:09 AM
Re: Tar: tape error (5)
Remove the tape device
files and recreate it again.
using rmsf/insf. This is just
to make sure they were
created correctly.
do an ioscan -nfCtape
to see they are recognised.
-raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 09:45 AM
10-24-2001 09:45 AM
Re: Tar: tape error (5)
Take a look at the threads below.
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=f488e10b1181616ce7/screen=ckiDisplayDocument?docId=200000043254754
http://us-support2.external.hp.com/cki/bin/doc.pl/sid=f488e10b1181616ce7/screen=ckiDisplayDocument?docId=200000038250707
Hope this helps.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2001 02:02 AM
10-25-2001 02:02 AM
Re: Tar: tape error (5)
"Forgot to mention, when I force a blocksize of 1 there is no error. It only happens w/ the default blocksize of 4."
The default block size is 20, not 4. See the description of the "b" option.
I advise to check which block size tar actually used, i.e.
dd if=/dev/rmt/0m of=/tmp/record bs=64k count=1 ; ll /tmp/record
The size of /tmp/record will be the record size in bytes. Divide by 512 to get blocks. If it is 20, then leave things as they are, i.e. do not use the "b" option, not on write and not on read.
Also check the dmesg(1M) output and syslog file at the time of the error. In UNIX, a driver can only return limited information to the 'application', i.e. in this case tar. Because of this UNIX (standard) design limitation, HP-UX drivers often report additional information in the system message buffer (which is read by dmesg).