Operating System - HP-UX
1829628 Members
1708 Online
109992 Solutions
New Discussion

Re: hpux 11.0 OS Backup and restore

 
SOLVED
Go to solution
John Ross_7
New Member

hpux 11.0 OS Backup and restore

Hi,
I have an 18Gb disk that is failing, but after much trouble have managed to boot it.

I would like to do an OS level backup that would allow me to restore NIS database, passwords, lvm info, previosly loaded pathes etc.

From doing some research it appears that the ignite utility would do this, but my /opt/ignite/bin directory is empty but for the print_manifest command. I suspect that this is an add on software that costs extra. Is this true, and if so what are my other options to accomplish the backup?

Many thanks,

John
6 REPLIES 6
Patrick Wallek
Honored Contributor
Solution

Re: hpux 11.0 OS Backup and restore

Yes, Ignite/UX is additional software that has to be installed, but there is NO CHARGE. It is FREE!

The main site for Ignite:
http://software.hp.com/products/IUX/

Download it from:
http://software.hp.com/products/IUX/download.html

Once you have it downloaded, create your tape with the command:

# /opt/ignite/bin/make_tape_recovery -a /dev/rmt/?mn -I -v -x inc_entire=vg00

If you are going to have to reload, I would create a couple of Ignite/UX tapes just to be on the safe side.
John Ross_7
New Member

Re: hpux 11.0 OS Backup and restore

Thanks Patrick.

If vg00 encompasses more than one disk is this a problem? Will the restore see vg01, vg02, and vg03 (current state before backup andrestore) if they were on other disks or will I have to use vgscan?

John
Sridhar Bhaskarla
Honored Contributor

Re: hpux 11.0 OS Backup and restore

Hi John,


No. It's not a problem. The option '-x inc_entire=vg00' will take care of it. ALso you don't need to worry about LVM configuration. Ignite will restore the LVM configuration after the restoration.

But it is a good idea to generate map files for all the VGs and save them on another system so in case if something happens, you can import the VGs back.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
John Ross_7
New Member

Re: hpux 11.0 OS Backup and restore

Sounds like a great tip. The map files you are suggesting saving to another server, do you mean the lvmtab file?
Sridhar Bhaskarla
Honored Contributor

Re: hpux 11.0 OS Backup and restore

Hi John,

No. Basically you would do the following. For each volume group run

vgexport -p -v -s -m /tmp/vgxx.s.map vgxx
vgexport -p -v -m /tmp/vgxx.map -f /tmp/vgxx.disks vgxx
ll /dev/*/group > groups.out

Now copy all the vgxx.map, vgxx.s.map, vgxx.disks and groups.out files onto another server as a backup.

In case if you have to import the VGs back, then you simply do the following. COpy back all those files into /tmp directory

#mkdir /dev/vgxx
#mknod /dev/vgxx/group c 64 0x0?0000

(You can get 0x0?0000 from groups.out file. You can also choose one unique number but it will be safe if you use the previous minor number)
#vgimport -v -s -m /tmp/vgxx.s.map vgxx

This should import the volume group vgxx. Activate the VG and mount the filesystems as /etc/fstab would already get restored by Ignite.

#vgchange -a y vgxx
#mount -a

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
John Ross_7
New Member

Re: hpux 11.0 OS Backup and restore

Sri,

Thank you for your help and expertise. I greatly appreciate it!

John