- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Use dd to make copy of tape ???
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
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
тАО11-12-2001 04:10 AM
тАО11-12-2001 04:10 AM
Use dd to make copy of tape ???
I want to make a copy of a DLT tape using the dd comand.
I have two DLT drives located on separate machines.
Is it possible to do this and if so would anybody be kind enough to give me the command as I have limited knowledge of dd.
Also are there any drawbacks in using dd ?
Cheers
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2001 04:24 AM
тАО11-12-2001 04:24 AM
Re: Use dd to make copy of tape ???
DD is disk dump, not tape dump.
You should consider tar.
If it's an ignite tape, you can mount the tape using the mt command and then copy it.
Here's a link example:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0xfa73abe92dabd5118ff10090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2001 04:28 AM
тАО11-12-2001 04:28 AM
Re: Use dd to make copy of tape ???
Actually your answer may be in the man dd page.
I never know you could do that!
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2001 04:43 AM
тАО11-12-2001 04:43 AM
Re: Use dd to make copy of tape ???
dd if=/dev/rmt/XX of=/dev/rmt/XX bs=64k
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2001 06:05 AM
тАО11-12-2001 06:05 AM
Re: Use dd to make copy of tape ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2001 06:51 AM
тАО11-12-2001 06:51 AM
Re: Use dd to make copy of tape ???
Ver A.02.10 which does not support copying
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2001 07:12 AM
тАО11-12-2001 07:12 AM
Re: Use dd to make copy of tape ???
dd if=/dev/rmt/0m ibs=20b |remsh remotehost dd of=/dev/rmt/0m obs=20b
If cpio was used, using no special blocking, then use this, as it also has been tested:
dd if=/dev/rmt/0m ibs=1b |remsh remotehost dd of=/dev/rmt/0m obs=1b
if you used the "B" option for cpio, then change "ibs" and "obs" from "1b" to "10b".
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2001 07:18 AM
тАО11-12-2001 07:18 AM
Re: Use dd to make copy of tape ???
You should be able to do this. You will need to
examine the Device Block Size under OmniBack for the DLT drive that created the medium. This is found under the 'Advanced Options' for that particular logical device. You also need to be aware that generally several sessions (and thus several files) are actually stored on the meduium. You will need to use the no-rewind and hopefully the Berkeley no-rewind device.
Here is the basic idea:
assume 64k blocksize
local devive is /dev/rmt/1mnb
remote host is 'bugs'
remote device is /dev/rmt/2mnb
dd if=/dev/rmt/1mnb bs=64k | remsh bugs bs=64k of=/dev/rmt/2mnb
Repeat this step until 0+0 blocks in is echo'ed to stderr. This will indicate the last session on the media. I don't have a 2.10 version to test this on so I might repeat the step untill 2 0+0 blocks in is echo'ed to stderr. It's possible that a zero-length file is used as a tape mark between sessions.
You really need to update to a later version of OB2 - at least 2.55 and 3.x would be much better.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2001 07:23 AM
тАО11-12-2001 07:23 AM
Re: Use dd to make copy of tape ???
> Ver A.02.10 which does not support copying
Maybe it does. See my response in the "Duplicate Omniback II Tapes" thread http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xe471fd3f91d3d5118ff40090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2001 07:29 AM
тАО11-12-2001 07:29 AM
Re: Use dd to make copy of tape ???
One final question for Clay.
When you say "Repeat the step ...."
Do you mean put it into a loop.
If so would a
while true
do
...
work ?
Cheers
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-12-2001 07:33 AM
тАО11-12-2001 07:33 AM
Re: Use dd to make copy of tape ???
It is nearly impossible to copy OmniBack tapes (or fbackup tapes for that matter) with dd(1). OmniBack tapes are full of Fast Search Marks (or similar DLT marks), which dd(1) knows nothing about. Theoretically a scripted series of dd(1) and mt(1) commands could perhaps do the trick, but that would not be simple.
Perhaps a (Third Party) general purpose (DLT) tape copy utility could be used, but 1) I have no pointers to such Third Party products, 2) they may not be needed (see my response in the other thread) and 3) as you and others mentioned, upgrading to a newer OmniBack version is probably much simpler.