Need to make single tape backup of RS/6000

Posted on 2005-04-10
Medium Priority
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

Expert Comment

ID: 13752501
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

cpc2004 earned 2000 total points
ID: 13753071
(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

ID: 13755167
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?
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

LVL 20

Expert Comment

ID: 13757930
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

ID: 13759445
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

ID: 13760078
This command generate the script save_vg.sh. If you have 10 application vg, it generates 10 savevg statements.

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

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

Expert Comment

ID: 13877436
Should consider sysback product

Try Tivoli Storage Manager for sysback.

It met your requirement.

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) 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…
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.:
Suggested Courses
Course of the Month16 days, left to enroll

850 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