Visit Our UNIX and Linux User Community

duplicating ignite tapes

Thread Tools Search this Thread
Operating Systems HP-UX duplicating ignite tapes
# 1  
Old 05-27-2009
duplicating ignite tapes

I have a B180L controller running HP-UX 10.2 with an internal DDS2 tape drive and an external Surestore DDS (24gb) tape drive. I want to make duplicate copies of ignite tapes from one tape drive to another. What is the best way to do this?
# 2  
Old 05-27-2009
I used to do those things, not for ignite but backup tapes (reels) on a 9000/855...(HP-UX 8...)
I remembered using dd, so Id go for dd:
dd if=<dev DDS-1> of=<dev DDS-2> bs=10k-64k ?

Wait I found (perhaps...) better:
Original KMine RCEN KNC032098003
Ignite-UX: Duplicating a DAT tape made with the make_recovery command

Problem Description

How can I duplicate a DAT tape made with the make_recovery

Configuration Info

Operating System - HP-UX
Version - 10.20
Hardware System - HP9000
Series - S777
C1533A tape drive
60M tape


The attached script duplicates a DAT tape made with the make_recovery
command. It has been successfully tested once.

This script is not part of the Ignite-UX product, nor is it
supported or guaranteed by HP.

###################### DISCLAIMER #################################
# This software is provided as is with no guarantee or warranty
# expressed or implied as to its appropriateness or effectiveness.
# Tested configuration:
#   Machine    9000/777
#   HP-UX      10.20
#   Ignite     v1.38
#   Tape drive C1533A
#   Tape       60M
# Bootable tape created with:
#    make_recovery -d /dev/rmt/c1t0d0DDS1n
# Tape duplication steps:
#  put recovery tape in drive
#   dup_tape -u /dev/rmt/c1t0d0DDS1n -d /extra
#  put blank tape in drive
#   dup_tape -p /dev/rmt/c1t0d0DDS1n -d /extra
# This command takes the two sections off of a boot install tape
# and puts them in regular files. Then the command can be used to
# put them back to another tape.
# The boot area requires 32MB and the system archive depends on the
# amount of inclusion done for make_recovery (typical minimum is
# 300MB). So, to duplicate a tape you will need approximately 350MB
# of free disk space.

typeset -i upack=0 pack=0
typeset tdir tdev bootimage sysimage opt

usage (){
      print "usage: $1 [u|p] no_rewind_tape_device [d] tmp_dir"
      print "unpack example: $1 -u /dev/rmt/1mn -d /extra_space"
      exit 1

# check for enough command line arguments
(( $# < 4 )) && usage ${0##*/}

while getopts :u:p:d: opt
  case $opt in
     d) # temp dir
     u) #unpack
     p) #repack
      usage ${0##*/}

if [[ $tdev = "" || $tdir = "" ]];then
  usage ${0##*/}

if [[ ! -c $tdev ]]; then
  print "$tdev not found or not a character device."
  exit 1

if [[ ! -d $tdir ]]; then
  print "$tdir not found or not a directory."
  exit 1


if (( upack )) ;then
      mt -t ${tdev} rew

      print "Extracting the boot area."
      dd if=${tdev} bs=2k of=${bootimage}
      print "Boot file contents."
      lifls -l ${bootimage}

      print "Extracting the system archive."
      dd if=${tdev} bs=10k of=${sysimage}

      file ${bootimage} ${sysimage}
if (( pack )) ;then
      mt -t ${tdev} rew

      print "Putting the boot area on tape."
      dd if=${bootimage} of=${tdev} bs=2k

      print "Putting the system archive on tape."
      dd if=${sysimage} of=${tdev} bs=10k

      mt -t ${tdev} offline
exit 0

ITRC source:

All the best

Last edited by vbe; 05-27-2009 at 02:17 PM.. Reason: added source (refs from HP...)

Previous Thread | Next Thread
Test Your Knowledge in Computers #71
Difficulty: Easy
Linux, macOS, Android, iOS, Chrome OS, Orbis OS used on the PlayStation 4, whatever firmware is running on your router, all of these operating systems are generally referred to as a Unix-like operating system.
True or False?

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Duplicating and changing sh file

Hello, I have a file named that I want to duplicate into,,..., etc. I also need to change the text within each file so that it would fit the file name. For example, in there is a command to save some output as 'output_1.txt', and also there is an input... (3 Replies)
Discussion started by: haguyw
3 Replies

2. UNIX for Dummies Questions & Answers

duplicating a line

I have a text file which is the results of running a tests hundreds of times. For simplicity let's say that each test consists of 5 lines of text numbered 1-5 e.g. 1 aaa aaa aaa 2 bbb bbb bbb 3 ccc ccc ccc 4 ddd ddd ddd 5 eee eee eee 1 aaa aaa aaa 2 bbb bbb bbb 3 ccc... (4 Replies)
Discussion started by: millsy5
4 Replies

3. Shell Programming and Scripting

mv duplicating directories

Hi Folks, I've put together a script for sorting my backup files into sub folders to be run from a cron job. Each file is named username.tar.gz and the file /etc/trueuserowners contains all users and their owner in the format "user: owner". The script works fine identifying users and their owners... (10 Replies)
Discussion started by: beddo
10 Replies

4. Red Hat

Duplicating ethernet speed

Hi guys, Suppose you have a server with two ethernet cards (1GB each) and each cards are connecting to two different switches cisco 3750. My question is: How can I setup my server's network interfaces to increase the throughput up to 2GB? is it possible? If not, do you know another way to up... (3 Replies)
Discussion started by: iga3725
3 Replies

5. UNIX for Dummies Questions & Answers

remove duplicating lines

Hi, i have a webserver logfile and want to count how many page views there have been. I was thinking about removing lines that begin with the same user and same date&time, because it indicates they were just looking at one page and multiple hits were counted. My question is how do I do this?... (6 Replies)
Discussion started by: JudithBorg
6 Replies

6. Post Here to Contact Site Administrators and Moderators

Sorry for duplicating posts

Discussion started by: vrguha
1 Replies

7. Shell Programming and Scripting

duplicating 1st row of data

Hi, I have data in the following format: data1 data2 data3 data4 data5 data6 data7 data8 data9 data10 I require the final output to be: data1 data1 data1 data1 i only require the 1st line but I need to replicate it in n rows where n is the number of rows where data... (4 Replies)
Discussion started by: ReV
4 Replies

8. HP-UX

ignite tapes

can any1 tell me how to make ignite tapes for the HP-ux. this company said it was: "make_tape_recovery_A", but that don't work. (4 Replies)
Discussion started by: JBX
4 Replies

Featured Tech Videos