Operating System - HP-UX
1825748 Members
2520 Online
109687 Solutions
New Discussion

Re: How to backup entire VG

 
Rashid Hamid
Regular Advisor

How to backup entire VG

Hi All

Could anyone advice on how to backup entire vg including raw, lv and filesystem in HPUX. in AIX, savevg command will backup the entire vg. eg: savevg -i -f /dev/rmt0 vg01


Is there any command in HPUX that similar to savevg?

Thanks

Regards
Rashid Hamid



I'm Parit Madirono/Parit Betak Boyz
13 REPLIES 13
Ralph Grothe
Honored Contributor

Re: How to backup entire VG

Not really meant for that, but if you had MirrorDisk/UX you could lvextend -m ... the LVs of the VG.
Madness, thy name is system administration
Ivajlo Yanakiev
Respected Contributor

Re: How to backup entire VG

You can use make_tape_recovery
but it get only FS and VG config but not
raw LV. For raw LV you need some like DD
Ranjith_5
Honored Contributor

Re: How to backup entire VG

Hi Rashid,

'savevg' is used to create the image of he volume group in a tape. If it is the root vg tape can be creatde so that it is bootable.
Similarly in HP-UX we have Ignite-UX for system recovery.

The steps are as follows:

1. Download and install Ignite-UX from
< www.software.hp.com >

2. Insert a tape into your tape drive (/dev/rmt/0m) and run following command while the system has little or no activity. You might need to specify the full path leading to the command.

# make_tape_recovery -A

This is a newer command. It used to be "make_recovery -AC". The command uses /dev/rmt/0mn as the default tape device for making the recovery tape. This command backs up every file in the root disk/volume vg00 and later make it possible to use the check_recovery command, to see how much has changed on the system since the tape was made.

3. Ensure that you have a good full backup of your system. The make_tape_recovery utility was not designed to replace standard backup procedures for all your data files.

4. Review the log files:
/var/opt/ignite/logs/makrec.log1 #Logs progress reports
/var/opt/ignite/logs/makrec.log2 #Logs an Index of filesets stored on tape

In the event of a catastrophic failure of your root disk(s). Use the following procedure to recover:

1. Replace the disk(s)

2. Insert latest make_tape_recovery tape into the tape drive and boot the system.

3. Interrupt the boot process, initiate a search and boot from your tape drive.

Main Menu: search ipl
Main Menu: boot scsi.#.0

4. Don't interrupt the recovery process. Allow the recovery process to continue non-interactively.

5.Once the system boots (approx 1-2 hrs, depending on archive size), recover latest backups.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=729160

DOCS n DOWNLOAD:-
-----------------------

1.) http://www.software.hp.com/products/IUX/docs/sysadm.html
2.) http://www.software.hp.com/products/IUX/infolib.html#N100E0


FAQ:-
----------
http://www.cs.uu.nl/wais/html/na-dir/hp/Ignite-UX_faq.html



Best Regards,
Syam
Jan Sladky
Trusted Contributor

Re: How to backup entire VG

Hi Rashid,

I'm not sure whether make_tape_recovery can raw
data, but you still have a chance.

try

make_tape_recovery -p -v -x inc_entire=vg01

The -p option means that only simulation of backup process is done , this way you can find out if raw data will be backup.

post the result

rgds Jan
GSM, Intelligent Networks, UNIX
Rashid Hamid
Regular Advisor

Re: How to backup entire VG

Thanks everybody for the reply.

Correct me if i'm wrong. make_tape_recovery is only backup for vg00 only. It is similar to mksysb command in AIX where its only backup rootvg.
What I looking is the command to backup entire non-rootvg in HPUX.

Regards
Rashid
I'm Parit Madirono/Parit Betak Boyz
Bill Hassell
Honored Contributor

Re: How to backup entire VG

dd will make a copy of the logical volumes regardless of content (filesystem, swap areas, raw data). It is a very primitive tool with no diagnostics, no recovery from disk/tape errors and no documentation stored on the tape as to what it contains. There is no single command so you would have to customize a script to dd each lvol using the no-rewind device file. Careful records are mandatory. Restoration is also very tricky. You cannot recover individual files from the tape, just dd of the entire volume. And be very careful restoring with dd. If you specify the wrong lvol, you'll destroy all the data in that lvol.


Bill Hassell, sysadmin
Ranjith_5
Honored Contributor

Re: How to backup entire VG

Hi Rashid,

As far as concerned the backup of non-root vg file system we actually dont require an image backup with ignite. Better option is go for a normal backup with tar/other 3rd party backup softwares and restore it whenever required.

regards,
Syam
D Block 2
Respected Contributor

Re: How to backup entire VG

Rashid,

the dd command just might do the trick, as Bill points out, we user Veritas Netbackup. but there is also dd command..., you might search itrc.hp.com or google.com for dd examples and usage. best of luck,
Tom

Golf is a Good Walk Spoiled, Mark Twain.
lawrenzo
Trusted Contributor

Re: How to backup entire VG

/usr/sbin/sam offers a tool to schedule / run backups.

You can also use fbackup the frecover to restore the files. see the man pages for examples.

lawzo
hello
lawrenzo
Trusted Contributor

Re: How to backup entire VG

sorry I meant fbackup to save files - frecover to restore the files.

ef fbackup -i / -e/ -g/path -f /

the -i is include directory trees
the -e is to exclude
use of the -g is with a graph file where you will specify the directories to include / exclude using i or e at the start of each line.

then -f specifies where to write the file to.

another example from another machine using dd

fbackup -f -i |rsh "dd of=/dev/rmt/1m bs=1024k"

hope this helps

read the man pages as there is lots of good info there.
hello
Ivajlo Yanakiev
Respected Contributor

Re: How to backup entire VG

Make_tape_recovery can backup any VGxx
use -x inc_entire=vg_name.

make_tape_recovery DO NOT save your raw devices. It create boot file and tar content from all VG file system (LV).

KapilRaj
Honored Contributor

Re: How to backup entire VG

I think the only way is to "dd" or a mirror on another disk

Kaps
Nothing is impossible
Ivajlo Yanakiev
Respected Contributor

Re: How to backup entire VG

I'm not sure :)
If you use oracle you can use oracle softwareto backup raw LV. Probably any software that work with raw LV have software to make backup.

For what you are use yuor raw LV ??