- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: TAR issue
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
тАО02-15-2007 07:57 PM
тАО02-15-2007 07:57 PM
TAR issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2007 08:02 PM
тАО02-15-2007 08:02 PM
Re: TAR issue
If you use the verbose option ( -v ) I would hope any errors/anomalies would present themselves
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2007 08:13 PM
тАО02-15-2007 08:13 PM
Re: TAR issue
could you please expand on "doesn't complete correctly" ? Are certain files (links) not being tared up ?
Please list the command used and problem definition, like expected vs. actual results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2007 08:28 PM
тАО02-15-2007 08:28 PM
Re: TAR issue
tar -cvf xxxxx.tar xxxxx (where xxxxx is the directory name).
It appears to run through and end normally, and produces no errors, but the tar file is imcomplete. Directory size is 302982861 then when I tar it and extract it again it is just short at 302927757. Is there a logging option which can be applied?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2007 08:30 PM
тАО02-15-2007 08:30 PM
Re: TAR issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-15-2007 09:07 PM
тАО02-15-2007 09:07 PM
Re: TAR issue
Create a list of tar files:
tar -tvf x.tar > a.lis
Extract the filenames only:
awk '{print $NF }' a.lis > b.lis
Create a list of files in directory:
find /dir > c.lis
Compare the two:
sdiff -s b.lis c.lis
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2007 01:09 AM
тАО02-16-2007 01:09 AM
Re: TAR issue
Size is not always a good indicator. It is possible that the directory you tar'ed had subdirectories that had grown in size over the years. When you extracted the files the sub-directories were recreated, but now have a smaller size, due to fewer files in those sub-directories.
I would advise going through the directories and doing a cksum on the files (files ONLY not directories). Compare the cksums from the original and the one created from the tar restore.
If they all match, then you are OK.
Something like this may work:
# find xxxxx -type f | xargs cksum >> orig.cksum
# find xxxxx.new -type f | xargs cksum >> new.cksum
# diff orig.cksum new.cksum
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2007 01:21 AM
тАО02-16-2007 01:21 AM
Re: TAR issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2007 01:28 AM
тАО02-16-2007 01:28 AM
Re: TAR issue
By the way, the 111, is the UID of the user that was the owner.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-16-2007 03:06 AM
тАО02-16-2007 03:06 AM
Re: TAR issue
- how many file is there in the directory?
- Does the directory change while you tar?
- what is the size of the tar file?