- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Tape to Tape backups
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
09-25-2001 04:25 AM
09-25-2001 04:25 AM
Tape to Tape backups
I have an urgent need to do tape to tape backups. I cannot load the tape onto a disc drive to make a copy of it. I've tried to dd a test tar file and only managed to get one (1) file inside the tar on the new tape. I'm using HP9000 C360 running HP UX with two surestore 24e tape drives. So the question is does anyone know how to do the tape to tape copy or know of a HP or third party utility to do this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2001 04:32 AM
09-25-2001 04:32 AM
Re: Tape to Tape backups
dd is a good choice for dubbling tapes.
What about:
dd if=/dev/rmt/#m of=/dev/rmt/#m bs=10k
where # are the instance numbers of your drives.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2001 04:39 AM
09-25-2001 04:39 AM
Re: Tape to Tape backups
How were you able to determine the block size to use. Usually I have problems with this...although I've had a good amount of success with using bs=18k.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2001 04:53 AM
09-25-2001 04:53 AM
Re: Tape to Tape backups
you need to be sure about the blocksizes and about the number of filesets on the tape.
If the backup was created with "tar -cvf /dev/rmt/0m", your blocksize will be 5120 bytes for example. If there where several runs to the norewind device, several dd's might be needed, because dd stops at the EOF-marker of the first fileset.
Hope this helps
Volker
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2001 06:27 AM
09-25-2001 06:27 AM
Re: Tape to Tape backups
Your fundamental problem is determining the block size of the source tape. I would do it like this (and assuming this is tar format rather):
dd if=/dev/rmt/2m (or whatever) ibs=10k obs=512 | tar vtf -
This will produce a listing to stdout. When you get the input blocksize correct, you will see no errors. If 10k doesn't work, try 5k; eventually you will get there.
Once that is done, you simply use dd and set bs equal to the ibs determined by the method above.
I suggest that if you do have multiple tar archives on the source tape that you use the Berkeley style norewind devices (e.g. /dev/rmt/2mnb).
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2001 03:19 PM
09-25-2001 03:19 PM
Re: Tape to Tape backups
We did something like this on an RS/6000(untested on HP9000)
#!/usr/bin/ksh
var1=0
while true
do
dd if=/dev/rmt/0mn of=/dev/rmt/1mn bs=10k
if [[$? -eq 0]]
then
print "File copied" $var1
((var1=var1+1))
else
print "Finished"
exit
fi
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 02:25 AM
09-26-2001 02:25 AM
Re: Tape to Tape backups
After a public domain package "buffer" failed to meet my requirements, I wrote a C program which creates a massive FIFO (many hundreds of MB) in shared memory which is being filled by one process and emptied by another. The two processes sync themselves with hi and lo watermarks and wake each other up to fill or empty respectively. It assumes equal block sizes on input and output, therefore it is invoked with
a.out indev outdev [ kblocksz [ mbuffersz]]
I observed a practically streaming behaviour copying between like drives. Sounds interesting?
By the way, to arrive at the tape block size I use
dd if=$TAPE bs=1024k count=1 | wc
should my "info" extension to "mt" command not work for any reason.