- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Tape-to-Tape Copy
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
11-14-2002 10:52 AM
11-14-2002 10:52 AM
I'm trying to do a tape to tape copy of an archive that was created on an NT box. I tried dd and it seems to only get me the header files created by the NT dump and not the actual data. All i want to do is make an exact copy of the date from tape 1 to tape 2 irrespective of what is on the tape and how it was originally created. Any help is greatly apprciated.
Regards,
Tim
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2002 10:53 AM
11-14-2002 10:53 AM
Re: Tape-to-Tape Copy
You'll have to keep running dd (using both input and output no-rewind devices) until you get an error indicating that you've reached the end of the input tape.
Also ensure that you're specifying a big enough block size (bs=nnnnn) to dd, otherwise you'll lose data. If you don't know the tape blocksize err on the side of caution.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2002 06:00 PM
11-14-2002 06:00 PM
Re: Tape-to-Tape Copy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2002 12:00 AM
11-15-2002 12:00 AM
Re: Tape-to-Tape Copy
use a mix of what John and David wrote :
- keep running dd using a no-rewind device until you get a end of tape message,
- for each file, dd will give you a message :
X+Y records. A good blocksize would give X+0 records because X is the number of entire blocks and Y the number of partial blocks
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2002 01:47 AM
11-15-2002 01:47 AM
Re: Tape-to-Tape Copy
#!/usr/bin/perl
system "/usr/bin/mt -f /dev/rmt/0m rewind";
$s = "000";
while (1) {
print STDERR "Reading LV $s into Tp$s ...\n";
$f = "Tp".$s++;
system "dd if=/dev/rmt/0m ibs=102400 of=$f";
-s $f or last;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2002 01:50 AM
11-15-2002 01:50 AM
Solution#!/usr/bin/perl
$tp = "/dev/rmt/0m";
system "/usr/bin/mt -f $tp rewind";
$s = "000";
while (1) {
print STDERR "Reading LV $s into Tp$s ...\n";
$f = "Tp".$s++;
system "dd if=${tp}n ibs=102400 of=$f";
-s $f or last;
}
system "/usr/bin/mt -f $tp rewind";
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2002 05:38 AM
11-15-2002 05:38 AM
Re: Tape-to-Tape Copy
I've been using dd manually to get this tape to copy. Each time it stops it gives a message like
23241 + 0 in
23241 + 0 out
It's not picking up any partial blocks. Do I need to still use the large block size? Also is there any documentation/resources I can reference?
thx,
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2002 06:00 AM
11-15-2002 06:00 AM
Re: Tape-to-Tape Copy
n + 0 blocks
I'd rather see
0 + n blocks, so I'm sure it got all data
I should say that the correct block size is probably the fastest, but asking for too much does hurt less than asking for too little. If your system allows you to ask a 1Meg buffer, do use it for unknown tapes.
The best documentation for tapes on different systems is called experience. Together with defensive handling (not using OS specific backup/restore software) system interchange is best guaranteed. If you stay on HP-UX, backup/restore is probably the fastest way to deal with your data to/from tape. If other (OS) systems come in play, you are bound to tar and cpio (preferably from GNU)
pts