Unix Technical Forum

tar problems

This is a discussion on tar problems within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> Have a couple Sun E4500 systems/Solaris 8 with dual-1TB raids and Sony AIT tape drives. I need to move ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 10:17 AM
Mike
 
Posts: n/a
Default tar problems

Have a couple Sun E4500 systems/Solaris 8 with dual-1TB raids and Sony
AIT tape drives.

I need to move a directory with 76K+ files (roughly 26GB) from one
system to the other.

I first tried /usr/sbin/tar to create a tape to move to the other
system. I created the tar file just fine and can do a 'tar tvf' command
to see what is on the tape ok as well. However when I try to extract
the files on the target system it will only extract about 2.6GB and
then it dies.

The target system raid has over 500GB available and inode usage count
is only single-digit. So putting the additional 26GB is not a problem
space wise.

The error message I am getting tar just says "tape read error"

I have tried the tape on a couple other systems and get the same
results. I even tried a different tape and excluded more files I
thought might be bad - same results.

Unfortunately, the systems are on different networks so I can't just
connect the two for the transfer.


tar issue???


Thanks,
Mike

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 10:17 AM
Dave (from the UK)
 
Posts: n/a
Default Re: tar problems

Mike wrote:
> Have a couple Sun E4500 systems/Solaris 8 with dual-1TB raids and Sony
> AIT tape drives.
>
> I need to move a directory with 76K+ files (roughly 26GB) from one
> system to the other.
>
> I first tried /usr/sbin/tar to create a tape to move to the other
> system. I created the tar file just fine and can do a 'tar tvf' command
> to see what is on the tape ok as well. However when I try to extract
> the files on the target system it will only extract about 2.6GB and
> then it dies.


Can you extract the data on the same system to where you copied it from?

Are you using different AIT drives, or are you using the same drive and
moving the drive too, or just the tape?

It could be the tape drive is bad, so it not writing the data to tape
properly. It might be able to read tapes it has written, but other
drives are unable to.

Tar should be ok - it is largefile aware. There are well known issues
with device files, but I doubt that is your problem.



--
Dave K

Minefield Consultant and Solitaire Expert (MCSE).

Please note my email address changes periodically to avoid spam.
It is always of the form: month-year@domain. Hitting reply will work
for a couple of months only. Later set it manually.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 10:18 AM
Danick Veenstra
 
Posts: n/a
Default Re: tar problems

might be a tar-issue. As this kind of things are time-consuming, I would
try gnu-tar to restore, just to see what happens - it can't get worse
The next step might be to use gnu-tar to dump the files to tape.
Or even better - although a bit more obscure - use 'ufsdump'

On
Thu, 23 Feb 2006 18:34:18 -0800, Mike wrote:

> Have a couple Sun E4500 systems/Solaris 8 with dual-1TB raids and Sony
> AIT tape drives.
>
> I need to move a directory with 76K+ files (roughly 26GB) from one
> system to the other.
>
> I first tried /usr/sbin/tar to create a tape to move to the other
> system. I created the tar file just fine and can do a 'tar tvf' command
> to see what is on the tape ok as well. However when I try to extract
> the files on the target system it will only extract about 2.6GB and
> then it dies.
>
> The target system raid has over 500GB available and inode usage count
> is only single-digit. So putting the additional 26GB is not a problem
> space wise.
>
> The error message I am getting tar just says "tape read error"
>
> I have tried the tape on a couple other systems and get the same
> results. I even tried a different tape and excluded more files I
> thought might be bad - same results.
>
> Unfortunately, the systems are on different networks so I can't just
> connect the two for the transfer.
>
>
> tar issue???
>
>
> Thanks,
> Mike


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 10:18 AM
JulianJ
 
Posts: n/a
Default Re: tar problems

Danick Veenstra wrote:
> might be a tar-issue. As this kind of things are time-consuming, I would
> try gnu-tar to restore, just to see what happens - it can't get worse
> The next step might be to use gnu-tar to dump the files to tape.
> Or even better - although a bit more obscure - use 'ufsdump'
>
> On
> Thu, 23 Feb 2006 18:34:18 -0800, Mike wrote:
>
>> Have a couple Sun E4500 systems/Solaris 8 with dual-1TB raids and Sony
>> AIT tape drives.
>>
>> I need to move a directory with 76K+ files (roughly 26GB) from one
>> system to the other.
>>
>> I first tried /usr/sbin/tar to create a tape to move to the other
>> system. I created the tar file just fine and can do a 'tar tvf' command
>> to see what is on the tape ok as well. However when I try to extract
>> the files on the target system it will only extract about 2.6GB and
>> then it dies.
>>
>> The target system raid has over 500GB available and inode usage count
>> is only single-digit. So putting the additional 26GB is not a problem
>> space wise.
>>
>> The error message I am getting tar just says "tape read error"
>>
>> I have tried the tape on a couple other systems and get the same
>> results. I even tried a different tape and excluded more files I
>> thought might be bad - same results.
>>
>> Unfortunately, the systems are on different networks so I can't just
>> connect the two for the transfer.
>>
>>
>> tar issue???
>>
>>
>> Thanks,
>> Mike

>


You could try nfs mounting the target volume onto the source machine and
then do:
ufsdump 0f - /dir/to/copy \ | (cd /nfs/mount ; ufsrestore xf -)

This way you won't need to use any tape. Time will depend the network
between the boxes.

If you can't nfs mount he file system then just do a ufsdump:
On the source box do:
ufsdump 0f /dev/rmt/0c /dir/to/copy
mt -f /dev/rmt/0 rewoffl

On the destination box:
cd /dir/to/restore/to
ufsrestore xf /dev/rmt/0c
mt -f /dev/rmt/0 rewoffl



JulianJ
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:24 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com