- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: TAR 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
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
12-24-2003 03:30 AM
12-24-2003 03:30 AM
TAR ERROR
I have to tar up a .depot file from one box (to Tape) and extract it on another. Cant ftp because of different network. I ran "tar -cvf /dev/rmt/0m 'filename'.
Then on the target:
tar -xvf /dev/rmt/0m .
I get the following error:
tar blocksize = 2
directory checksum error.
Is this a mismatch with tar versions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2003 03:40 AM
12-24-2003 03:40 AM
Re: TAR ERROR
try changing the blocksize to -b 20 in your command line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2003 04:32 AM
12-24-2003 04:32 AM
Re: TAR ERROR
Also if the directory struture is changing during extraction or isn't consistent between the two machines these things can happen.
I always try to tar and extract at the same relative location to root to prevent this from happening.
Its also possible that the tar file itself is corrupt and you need to tar it again.
tar tvf /dev/rmt/0m
What does that do? Follow the respnse, perhaps try tvf on a different system.
Tape drive problems can definitely cause this Robert.
Hope you are well.
Have a good day.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2003 12:13 PM
12-24-2003 12:13 PM
Re: TAR ERROR
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2003 01:35 AM
12-29-2003 01:35 AM
Re: TAR ERROR
I use a little 3com daemon on my PC to move files from inside our firewall to a web server in our DMZ rather then eff with a tape.
I would also use fbackup to backup the file,
fbackup is much more portable between HP/UX systems..
fbackup -f /dev/rmt/0m -d /pathtofile/filename
then restore when frecover
frecover -xFvi filename -f /dev/rmt/0m
from the tape..
Just a thought IF you must use a tape.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2003 06:03 PM
12-29-2003 06:03 PM
Re: TAR ERROR
# mt -t /dev/rmt/0mn rewind
Then write your data (with specified block size to rule out any problems related to that):
# tar cvbf 20 /dev/rmt/0m 'yourfiles'
Test the tape on the machine it was written
# tar tvf /dev/rmt/0m
(It should report blocksize=20, otherwise you could specify it again)
On the other machine, you can test the tape again, or start restoring immediately:
# tar xvbf 20 /dev/rmt/0m
Also make sure you don't accidentally use the wrong tapedrive. I've had that problem too, with tapedrives hidden in the 19" racks, out of sight... You can test it by unloading/ejecting the tape from the command line:
# mt -t /dev/rmt/0mn offl