Need to make single tape backup of RS/6000

Posted on 2005-04-10
Last Modified: 2013-11-17
Totally new to AIX and just found out I'll have to start backing up our RS/6000 weekly. I've already gone through one round of backing it up and had to use 5 tapes per the instructions I was given.

(1)Tape for mksysb
(3)Tapes for each of the various volume groups
(1)Tape for rootvg

From what I have read there is a way I could put this to nearly one tape. This is a quote from another post.

You could do an entire system backup on a single tape, e.g.
mksysb -i /dev/rmt0n; savevg -f /dev/rmt0n vg _1; savevg -f /dev/rmt0n vg _2;...

Is this the best way to do it? I've read in other posts you should keep your mksysb on a seperate tape, true? If I keep this to one tape, can someone give the command I would use to restore a vg from this single tape?
Question by:midwestexp
    LVL 6

    Expert Comment

    I have always kept my mksysb tape separate from any other for the reason that I may want to restore / archive off my other volume groups more often, which would require spooling through the portion of the tape that contained the mksysb (putting additional time into a job and also stressing the tape more that is required.)
    LVL 20

    Accepted Solution

    (A)Tape for mksysb
    (B)Tapes for each of the various volume groups or tapes for eah filesystems except rootvg

    It is no need to have tape for rootvg as the mksysb has the entire backup of rootvg. You can restore any files of rootvg from mksysb tapes.

    If you use savevg to backup the data, you have to restore at vg level. If you use backup to backup the data, you can restore data at filesystem level. If your volume group have more than one PVs, one PV crash and it has only filesystem.You can restore that filesystem and it is no need to restore the entire volume group especially for VGs with a lot of PVs and filesystems.  If your VG has one PV,  restvg is simpler to restore the entire vg.

    Author Comment

    Prof666 - So the only real reason to put mksysb to its own tape is just for time saving when it comes to restoring?

    cpc2004 - What you're saying is that the extra rootvg backup I was doing is redundant because the mksysb is already saving that information? I'm not sure I quite understand the last portion of your response. What is a PV? How can I find out if I have more than one PV in a VG?
    LVL 20

    Expert Comment

    Bootable mksysb tape are made up of four images: the boot image. The BOS Install/Maintenance image, the toc image and the system backup Image. The first three files must be created with a tape block_size value of 512. The second and fourth images are stored in backup/restore format.
    Example: Restore ./var/adm/ras/errlog
    tctl -f/dev/rmt0.1 rewind
    tctl -f/dev/rmt0.1 fsf  3
    restore -rvf /dev/rmt0.1 ./var/adm/ras/errlog

    PV means physical volume
    lssue commnd lspv to display the status of all the physical volumes.

    Author Comment

    Hoping I'll have access to the box tomorrow to do some testing and find out for sure how many PVs there are. Provided each VG has only one PV, is it safe to say that the following command will give me a full system backup?

    mksysb -i /dev/rmt0n; savevg -f /dev/rmt0n vg _1; savevg -f /dev/rmt0n vg _2;savevg -f /dev/rmt0n vg_3
    LVL 20

    Expert Comment

    This command generate the script If you have 10 application vg, it generates 10 savevg statements.

    lsvg | grep -v rootvg |awk '{ print "savevg -f /dev/rmt0  " $1}' >

    savevg -f /dev/rmt0 vg _1
    savevg -f /dev/rmt0 vg _2
    savevg -f /dev/rmt0 vg_3

    Expert Comment

    Should consider sysback product

    Try Tivoli Storage Manager for sysback.

    It met your requirement.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    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

    Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
    I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Video by: Phil
    This video goes over how to configure and start a jail in FreeBSD.  This video is meant to supplement the article included with this course.

    759 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

    13 Experts available now in Live!

    Get 1:1 Help Now