Operating System - HP-UX
1824207 Members
3830 Online
109669 Solutions
New Discussion юеВ

IGNITE tape voor all VG's

 
SOLVED
Go to solution
I.Delic
Super Advisor

IGNITE tape voor all VG's

Hi,

How can i make a IGNITE TAPE to cover all my VG's.

I have box with 3 vg's.
Root vg00 ( 2 disk mirror)
data vg01 ( 2 disk mirror)
data vg02 ( 2 disk mirror)
Before i start to make this tape i wil shutdown all databases

Thank you in advance

Idriz

P.S. it is a great feeling to have a such tape


6 REPLIES 6
G. Vrijhoeven
Honored Contributor
Solution

Re: IGNITE tape voor all VG's

Hi,

Check man make_tape_recovery:

make_tape_recovery -x inc_entire=vg00 -x inc_entire=vg01 etc.

Regards,

Gideon
Jeff Schussele
Honored Contributor

Re: IGNITE tape voor all VG's

Hi Idriz,

If that's *all* the VGs it would be as follows:

make_tape_recovery -Ivx inc_entire=vg00 -x inc_entire=vg01 -x inc_entire=vg02

Assuming your tape dev is /dev/rmt/0mn - else you'd also need

-a /dev/rmt/Xmn

where X=tape instance #

NTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
RAC_1
Honored Contributor

Re: IGNITE tape voor all VG's

man make_tape_recover

the -x options is for that.
make_tape_recovery -x inc_entire=vg00 -x inc_entire=v01 -x inc_entire=vg02 -v -I -a /dev/rmt/0mn

Anil
There is no substitute to HARDWORK
Pete Randall
Outstanding Contributor

Re: IGNITE tape voor all VG's

Idriz,

Just a caution - that's not really the intent of make_tape_recovery. Ignite make_tape_recovery is supposed to be just that - a recovery tool to get your system back up quickly by booting of the tape and reloading your root volume: vg00. From there you would use conventional backup/restore products to recover the rest of your data. Make_tape_recovery does not provide any of the niceities of more sophisticated backup products such as incremental backups, easy restore of individual files/directories, etc.

I would strongly suggest that you use make_tape_recovery just for vg00 and the backup the rest of your data using conventional means.


Pete

Pete
Simon Hargrave
Honored Contributor

Re: IGNITE tape voor all VG's

If you want this to ignite all vg's (even newer ones you add later) you can use the script: -

CMD="make_tape_recovery"

for VG in `/usr/sbin/vgdisplay | grep "VG Name" | cut -d\/ -f3`
do
CMD=$CMD" -x inc_entire=$VG "
done

CMD=$CMD" -v -I -a /dev/rmt/0mn"

$CMD
Bill Hassell
Honored Contributor

Re: IGNITE tape voor all VG's

NOTE: There is a bug in make_tape_recovery when saving multiple VG's. It will NOT save all the vg00 files! You'll see this warning when you run make_tape_recovery with multiple VG's on the command line. HP has acknowledged the bug and will have a fix next quarter.

That being said, it is very important NOT to make a recovery tape with multiple VGs. The MOST common use of a backup tape is to recover a few files or perhaps a directory. make_tape_recovery is designed ONLY to erase all the disks and reinstall. If your system uses LVM mirroring, you must manually configure this after reloading.You must always interact during the reload to make sure the right disks are being defined in VG00, especially with mirroring. And make_tape_recovery cannot save any files larger than 2Gb.

True, you can play with the mt command to position the tape and use pax to restore some files but that is incredibly slow compared to fbackup. The strategy should be:

1. Download the latest version of Ignite/UX.
2. Run make_tape_recovery during a quiet time on the system.
3. Use fbackup to backup all files and directories for fast restores.


Bill Hassell, sysadmin