Restore volume group from a remote tape drive

Posted on 2006-05-03
Last Modified: 2013-11-17
How can I perform a restoration of a savevg backup that resides within a remote host tape drive?
Question by:nsome
    LVL 14

    Accepted Solution

    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.
    LVL 61

    Expert Comment

    Actually you can create a fifo, pump file from remote there, and read it with restorevg.
    LVL 4

    Assisted Solution

    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.

    LVL 61

    Expert Comment

    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

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
    FreeBSD on EC2 FreeBSD ( is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now