• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 790
  • Last Modified:

Restore volume group from a remote tape drive

How can I perform a restoration of a savevg backup that resides within a remote host tape drive?
  • 2
2 Solutions
First, have enough spare storage on the machine on which you wish to restore the vg to make a copy of the vg. Copy the tape to disk on the machine with the tape drive, using "dd". Then transfer the file containing the image, which is in "backup file format" to the machine where you wish to restore. Then use the command "restore -Tvqf <file>" to test the file. If this works, you can restore the volume group using the "restvg" command.
Actually you can create a fifo, pump file from remote there, and read it with restorevg.
You might try something like:

rsh oz '(dd if=/dev/rmt0 )' | restorevg -

This will require the rsh & rlogin be enabled on the remote host. (THIS is a big security hole and I am speaking heresy here). But if you are on a secure network and only open the service for a short period, it might not be a problem. If both machines are ssl and ssh enabled, you can do this securly using ssh. Then you will be prompted for a password or you can setup the private/public key to avoid the password prompt.

Secondly, you will need to experiment with this. The dd command may require some block size options to work with the restorevg tape. Also it might require a - to get the standard output into the pipe as in: dd if=/dev/rmt0 -

Thirdly, you will need to place the proper options in the restorevg command to get your desired results.

No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:

split between sjm_ee http:#16600092 and robertfwoods http:#16633874
giving B grade:
neither tape copy method works in context
mksysb crates multiple files on tape
one is bootblock, one label, one TOC and last is cpio/pax archive needed

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

EE Cleanup Volunteer

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now