HighDots.NET Computer Hardware Forums  

Can copy tape on fly?

Storage systems Storage system issues, both hardware and software (comp.arch.storage)


Discuss Can copy tape on fly? in the Storage systems forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
alex
 
Posts: n/a

Default Can copy tape on fly? - 05-17-2007 , 04:40 AM






If I have 2 tape drives. Can I copy all content from a tape, say A, to
another, say B, on fly? Or I must restore all content on tape A to
disk and archive them to tape B? Appreciated for any reply.


Reply With Quote
  #2  
Old   
Rob Turk
 
Posts: n/a

Default Re: Can copy tape on fly? - 05-17-2007 , 05:30 AM






"alex" <shao.tu (AT) gmail (DOT) com> wrote

Quote:
If I have 2 tape drives. Can I copy all content from a tape, say A, to
another, say B, on fly? Or I must restore all content on tape A to
disk and archive them to tape B? Appreciated for any reply.

As always, it depends. If you know which software wrote the original tape
then things are much easier. If it's a Unix/Linux tape you may be able to do
a block level copy of some sort, or use tar or cpio to copy the data. If you
know it's from a certain backup software vendor then maybe you can get an
eval copy of the software and duplicate the tape if it has a copy function.

Last but not least is generic tape copier software. I have written such
software in the past for specific tape drives and there's a couple of
commercial software packages out there that can do that.

Rob




Reply With Quote
  #3  
Old   
alex
 
Posts: n/a

Default Re: Can copy tape on fly? - 05-18-2007 , 12:28 AM



On 5月17日, 下午6時30分, "Rob Turk" <wipe_this_r.t... (AT) chello (DOT) nl> wrote:
Quote:
"alex" <shao... (AT) gmail (DOT) com> wrote in message

news:1179394845.197044.191610 (AT) l77g2000hsb (DOT) googlegroups.com...

If I have 2 tape drives. Can I copy all content from a tape, say A, to
another, say B, on fly? Or I must restore all content on tape A to
disk and archive them to tape B? Appreciated for any reply.

As always, it depends. If you know which software wrote the original tape
then things are much easier. If it's a Unix/Linux tape you may be able todo
a block level copy of some sort, or use tar or cpio to copy the data. If you
know it's from a certain backup software vendor then maybe you can get an
eval copy of the software and duplicate the tape if it has a copy function.

Last but not least is generic tape copier software. I have written such
software in the past for specific tape drives and there's a couple of
commercial software packages out there that can do that.

Rob
Thanks for reply. Follow your descriptions. The problem I ran into
should be easy since the content of the original tape was archived via
star utility. I had be been tried using pipe, like star -x ... | start
-c ..., to achieve that. But it didn't work. star reported that it
cannot handle such condition. So I really don't know how to do that
this time. Can you give me some directions? The tape library I'm using
is Sun StorEdge C4 and it is attached to a linux box running RHEL AS4.
Thanks again.



Reply With Quote
  #4  
Old   
jcomeau_ictx
 
Posts: n/a

Default Re: Can copy tape on fly? - 05-19-2007 , 04:10 AM



On May 17, 11:28 pm, alex <shao... (AT) gmail (DOT) com> wrote:
Quote:
On 517, 銝630, "Rob Turk" <wipe_this_r.t... (AT) chello (DOT) nl> wrote:
"alex" <shao... (AT) gmail (DOT) com> wrote in message
If I have 2 tape drives. Can I copy all content from a tape, say A, to
another, say B, on fly? Or I must restore all content on tape A to
disk and archive them to tape B? Appreciated for any reply.
As always, it depends. If you know which software wrote the original tape
then things are much easier. If it's a Unix/Linux tape you may be able to do
a block level copy of some sort, or use tar or cpio to copy the data. If you
know it's from a certain backup software vendor then maybe you can get an
eval copy of the software and duplicate the tape if it has a copy function.
Thanks for reply. Follow your descriptions. The problem I ran into
should be easy since the content of the original tape was archived via
star utility. I had be been tried using pipe, like star -x ... | start
-c ..., to achieve that. But it didn't work.
Did you try the block level copy, as Rob suggested? For disks on
Linux, this generally works:

dd if=/dev/hda of=/dev/hdb

Of course, use the right nodes under /dev for your tape drives :^)



Reply With Quote
  #5  
Old   
Torbjorn Lindgren
 
Posts: n/a

Default Re: Can copy tape on fly? - 05-19-2007 , 11:54 AM



alex <shao.tu (AT) gmail (DOT) com> wrote:
Quote:
On 5月17日, 下午6時30分, "Rob Turk" <wipe_this_r.t... (AT) chello (DOT) nl> wrote:
"alex" <shao... (AT) gmail (DOT) com> wrote in message
news:1179394845.197044.191610 (AT) l77g2000hsb (DOT) googlegroups.com...

If I have 2 tape drives. Can I copy all content from a tape, say A, to
another, say B, on fly? Or I must restore all content on tape A to
disk and archive them to tape B? Appreciated for any reply.

As always, it depends. If you know which software wrote the original tape
then things are much easier. If it's a Unix/Linux tape you may be able to do
a block level copy of some sort, or use tar or cpio to copy the data. If you
know it's from a certain backup software vendor then maybe you can get an
eval copy of the software and duplicate the tape if it has a copy function.

Thanks for reply. Follow your descriptions. The problem I ran into
should be easy since the content of the original tape was archived via
star utility. I had be been tried using pipe, like star -x ... | start
-c ..., to achieve that.
This would have unpacked all data (star -x) and then created a new
archive (star -c). You want to copy the tape "as is", using the block
level copy he mentions.

The standard Linux/Unix way to copy things to/from devices is dd.
Since you know it's written with star it's ought not to be THAT
complicated, it avoids most of the really thorny problems with more
advanced tape users (segment marks and multiple independent tape
sections).

You MAY need to match star's block size used when writing the tape,
default is 10 kB but as they mention in the manpage a bigger number is
better due to generally better performance...

OTOH even if you get the block size wrong it looks like the -B option
may well allow it to work.

Also, if there's multiple backups on the tape you need to use the
"non-rewinding" tape device, and run dd for each backup! Figuring out
when there's no more data isn't exactly hard, but at that point I
really suggest getting someone to help you which knows how to do
things like this instead of trying to do it yourself!

So, best guess with default block size and only one backup:

dd if=/dev/TAPE1 of=/dev/TAPE2 bs=10k

Where TAPE1 is the (i)nput tape (original) and TAPE2 is the (o)utput
tape, ie the copy. Use "man dd" for more information and options.


Quote:
this time. Can you give me some directions? The tape library I'm using
is Sun StorEdge C4 and it is attached to a linux box running RHEL AS4.
Just make really sure you're putting the right tape into right tape
drive, so you're not overwriting the original with an empty file :-)

I'd recommend testing the "input" tape with star first, the rewind and
run the copy.


Reply With Quote
  #6  
Old   
alex
 
Posts: n/a

Default Re: Can copy tape on fly? - 05-21-2007 , 08:35 AM



On 5月20日, 上午12時54分, Torbjorn Lindgren <t... (AT) none (DOT) invalid> wrote:
Quote:
alex <shao... (AT) gmail (DOT) com> wrote:
On 5 17 , U 6 30 , "Rob Turk" <wipe_this_r.t... (AT) chello (DOT) nl> wrote:
"alex" <shao... (AT) gmail (DOT) com> wrote in message
news:1179394845.197044.191610 (AT) l77g2000hsb (DOT) googlegroups.com...

If I have 2 tape drives. Can I copy all content from a tape, say A, to
another, say B, on fly? Or I must restore all content on tape A to
disk and archive them to tape B? Appreciated for any reply.

As always, it depends. If you know which software wrote the original tape
then things are much easier. If it's a Unix/Linux tape you may be ableto do
a block level copy of some sort, or use tar or cpio to copy the data. If you
know it's from a certain backup software vendor then maybe you can getan
eval copy of the software and duplicate the tape if it has a copy function.

Thanks for reply. Follow your descriptions. The problem I ran into
should be easy since the content of the original tape was archived via
star utility. I had be been tried using pipe, like star -x ... | start
-c ..., to achieve that.

This would have unpacked all data (star -x) and then created a new
archive (star -c). You want to copy the tape "as is", using the block
level copy he mentions.

The standard Linux/Unix way to copy things to/from devices is dd.
Since you know it's written with star it's ought not to be THAT
complicated, it avoids most of the really thorny problems with more
advanced tape users (segment marks and multiple independent tape
sections).

You MAY need to match star's block size used when writing the tape,
default is 10 kB but as they mention in the manpage a bigger number is
better due to generally better performance...

OTOH even if you get the block size wrong it looks like the -B option
may well allow it to work.

Also, if there's multiple backups on the tape you need to use the
"non-rewinding" tape device, and run dd for each backup! Figuring out
when there's no more data isn't exactly hard, but at that point I
really suggest getting someone to help you which knows how to do
things like this instead of trying to do it yourself!

So, best guess with default block size and only one backup:

dd if=/dev/TAPE1 of=/dev/TAPE2 bs=10k

Where TAPE1 is the (i)nput tape (original) and TAPE2 is the (o)utput
tape, ie the copy. Use "man dd" for more information and options.

this time. Can you give me some directions? The tape library I'm using
is Sun StorEdge C4 and it is attached to a linux box running RHEL AS4.

Just make really sure you're putting the right tape into right tape
drive, so you're not overwriting the original with an empty file :-)

I'd recommend testing the "input" tape with star first, the rewind and
run the copy.- 隱藏被引用文字 -

- 顯示被引用文字 -
I appreciate all you guys. dd does work for my purpose. Thanks again.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.