1833587 Members
3720 Online
110061 Solutions
New Discussion

Duplicate a tape

 
LUCAS_34
Occasional Contributor

Duplicate a tape

I try to duplicate an installation system tape.
I did:
#dd if=/dev/rmt/0mn of=/dev/rmt/1mn bs=2k
=>The bootable parts was cloned
After
#dd if=/dev/rmt/0mn of=/dev/rmt/1mn bs=10k
For the second part which is empty
Then
#dd if=/dev/rmt/0mn of=/dev/rmt/1mn bs=10k
=>To create the datas parts

In the firmware, I can boot to the tape, but not to the setup , the error is:
"Bad magic LIF"
4 REPLIES 4
Robert-Jan Goossens
Honored Contributor

Re: Duplicate a tape

Hi Lucas,

I think it is easier to use the ignite command copy_boot_tape.

/opt/ignite/bin/copy_boot_tape

Best regards,
Robert-Jan
LUCAS_34
Occasional Contributor

Re: Duplicate a tape

The problem comes from the second block which is empty. So make_boot_tape duplicate the boot area, but not the system one.
BUT, i'll try to make a dd after the copy_boot_tape
Stephen Keane
Honored Contributor

Re: Duplicate a tape

You must use a block size of 2k when creating the bootable area of a tape.
Borislav Perkov
Respected Contributor

Re: Duplicate a tape

Hi Lucas,

If you are making copy of tape build with make_tape_recovery than you have only:
#dd if=/dev/rmt/0mn of=/dev/rmt/1mn bs=2k
for boot and
#dd if=/dev/rmt/0mn of=/dev/rmt/1mn bs=10k
for files.

But if you make installation tape you have to be aware of this:
First on a bootable tape is the Logical Interchange Format (LIF)
volume containing all the components required to boot off the tape. It
also includes the Ignite-UX toolset and configuration information that
controls how Ignite-UX will operate. Additionally, the tape includes
configuration file information about the software sources on the tape, SD
depot (if there is one), and all archives on the media. An installation tape
can be comprised of just the LIF volume. For example, if you need an
installation tape to simply boot a system and load the software from the
network, then only the LIF volume is necessary.
The LIF volume is followed by the first operating system archive (A1) or
is empty (E) (A1/E) if the installation is solely from the software depot.
This is followed by either a serial depot (D) or another operating system
archive (A2) (D/A2). There can only be one depot on a tape, and it must
be the third file on the tape due to an SD restriction.
Lastly, the previous volumes can be followed by one or more additional
archives, limited only by the capacity of the tape. If more archives are
needed, they can be put on a second tape.

In your case the best way is to repeat the procedure for making the installation tape from the system than making the copy of the first tape.

Regards,
Borislav