Operating System - HP-UX
1822566 Members
3434 Online
109642 Solutions
New Discussion юеВ

full recovery of HP-UX system

 
SOLVED
Go to solution
Asya
Regular Advisor

full recovery of HP-UX system

Hi,

On our 11.0 system one of the hard drives died. Before, full backup was done of it using Legato Networker.
After putting in new harddrive, I tried doing full recovery. Server crashed after the first reboot. I then opened a ticket with legato asking them to point me to partitions/directories that I should avoid recovering. I was told:
/stand/vmunix
I followed Legato's directions, but, unfortunately, after next reboot, same thing..though it did get further this time. I'm guessing that i should also avoid /dev.
My question..in your opinion, which directories and partitions i should avoid recovering in order to have a successful system recovery?

Thank you!
Asya
15 REPLIES 15
Patrick Wallek
Honored Contributor

Re: full recovery of HP-UX system

I would avoid ANYTHING in VG00. (/, /stand, /var, /usr, /opt)

My preferred backup methodology:

1) Do weekly Ignite/UX make_tape_recovery backups for VG00 only.

2) Backup everything nightly with some other backup method.

You should only have OS stuff in VG00. There should never be any production data in VG00.
Asya
Regular Advisor

Re: full recovery of HP-UX system

Patrick,

thank you for your reply. But what if there is data in /opt that needs to be recovered?

Thanks,
Asya
Pete Randall
Outstanding Contributor

Re: full recovery of HP-UX system

Asya,

In that case, restore only the particular /opt subdirectories that you need to.


Pete

Pete
Steven E. Protter
Exalted Contributor

Re: full recovery of HP-UX system

I think the backup methodology is at fault.

A full backup of the system with legato, omniback or fbackup or veritas is not going to get a bootable system.

If you restored the root fs and /stand/vmunix off that type of backup, your system may be unrecoverable.

You might be faced with having to restore from an Ignite backup like Patrick recommends. If you don't have that, you may be faced with restoring the whole os from scratch starting with Core os CD's.

You should not restore any of the following with Legato, though this list is not complete;

/ root including /dev /etc (may be able to survive this).

/stand/vmunix


LIF
OS tools required to boot.

That is what ignite is for.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Asya
Regular Advisor

Re: full recovery of HP-UX system

Thank you all for responses.
This system was setup about 5 years by someone who is not even at this company any longer. Currently, i do everything with Ignite...this was not possible with this system (it's been a while since hard drive crashed..i just finally got to it).

Asya
derek b smith_1
Regular Advisor

Re: full recovery of HP-UX system

In relation to this, what is the latest version of ignite for 11.11.0306.1 and 11.0

thank you,
derek
Patrick Wallek
Honored Contributor

Re: full recovery of HP-UX system

For the latest Ignite go to:

http://software.hp.com/products/IUX

Re: full recovery of HP-UX system

Hey,

the methode, I prefere:

new Install with core OS,
boot up and restore /etc to get the old config, then restore
the needed directories.

Alex
Michael Duthie
Trusted Contributor
Solution

Re: full recovery of HP-UX system

This is very rough but -

Install from the HPUX Install CD

Setup LVM using: pvcreate, vgcreate, lvcreate, newfs.
identify device files of disks by using: ioscan -fnCdisk | more

mkdir /DR
cp -p /stand/vmunix /DR
cp -p /stand/system /DR
cp -p /stand/bootconf /DR
cp -p /stand/rootconf /DR
cp -p /stand/ioconfig /DR
cp -p /etc/inittab /DR
cp -p /etc/fstab /DR
cp -p /etc/lvmtab /DR
cp -p /etc/ioconfig /DR
cp -r -p /dev /DR
cp -p /etc/rc.config.d/netconf /DR

Install Legato .. import tape to database

Do a full restore.

Merge tunable parameters from restored /stand/system with install system file and create new kernel, and copy the other files from /DR back in place. Copy the install kernel to vmunix.prev just in case.

This system should now boot up.

Any futher question please ask, I know little about legato but the principal works with Omniback
Asya
Regular Advisor

Re: full recovery of HP-UX system

Michael,

Thank you for your informative post.
How do i create new kernel after restore..?

Thank you,
Asya
KapilRaj
Honored Contributor

Re: full recovery of HP-UX system

A new kernel would be there after a fresh install. Only thing u whould look at is ,u have a copy of last system file and can tune the kernel parameters accordingly.

Regds,

Kaps
Nothing is impossible
Sean OB_1
Honored Contributor

Re: full recovery of HP-UX system

asya,

You can create the new kernel after merging tunable parameters into the system file using either SAM or the kmupdate command.

man kmupdate

Sean OB_1
Honored Contributor

Re: full recovery of HP-UX system

also man mk_kernel
Michael Tully
Honored Contributor

Re: full recovery of HP-UX system

Creating a kernel manually can be done like this:

cd /stand/build
/usr/lbin/sysadm/system_prep -s system
vi system (make your changes and save the file)
mk_kernel -s system
kmupdate
cd /
reboot your system
Anyone for a Mutiny ?
Asya
Regular Advisor

Re: full recovery of HP-UX system

Thank you Michael!
I had a successful recovery..system is up and running now. Thank you again!

Asya