Operating System - HP-UX
1825780 Members
2431 Online
109687 Solutions
New Discussion

Reinstallation of HPUX 11.00

 
SOLVED
Go to solution
Michael O'brien_1
Regular Advisor

Reinstallation of HPUX 11.00

Hi,

I would appreciate any advise regarding reinstallation of hpux 11.00.

I have several L-Class machines, one of them has always had various problem, it hangs just before going into /sbin/rc. I've tried to reset the set_params as a possible solution, didn't work and also several other fixes to no avail. I managed to get the machine to boot by pressing. ctrl \ c return.

The server will then boot successfully. It seems to be the machine that was built on Friday afternoon.

The latest problem I'm having with this machine is some X services don't work. The server doesn't have a video card so all my X sessions are remote either to a pc running exceed or to a sun workstation.

I can get SAM, xclock to work. But I get a font error when I try to connect to CDE ( /var/dt/Xerrors) reports unable to load font.
I also get an error when try to run oracle oui (jni error's) then the oui dies.

I've spent a bit to time comparing the fonts dir's and Xsetup file to the working L-Classes

All the other L-Class servers don't have any of theses problems.

So I have decided to reinstall the OS, The current configuration of the disks is as follows:

vg00 = 2 x 18GB (OS)
vg01 = 2 x 70GB (Apps)

I would like to know the best way, if possible to re-import vg01 disks into the newly installed OS on vg00 and hopefully with the apps still intact.

Any tips or suggestions would be most welcome.

Thanks
Michael

6 REPLIES 6
harry d brown jr
Honored Contributor

Re: Reinstallation of HPUX 11.00

Michael,

get the latest version of ignite-ux and create a make_tape_recovery of your GOOD working L-class, then use that tape to "CLONE" the misbehaving L-class.

make_tape_recovery -AvI

The "I" tells the installer to allow you to CHANGE things like the hostname, IP, etc...

live free or die
harry
Live Free or Die
Pete Randall
Outstanding Contributor

Re: Reinstallation of HPUX 11.00

Michael,

Use vgimport

Pete

Pete
harry d brown jr
Honored Contributor

Re: Reinstallation of HPUX 11.00

Yes, for your VG's use the vgexport before reloading the OS.

live free or die
harry
Live Free or Die
S.K. Chan
Honored Contributor
Solution

Re: Reinstallation of HPUX 11.00

Importing vg01 ..

1) Umount all filesystem associate with vg01.
2) Deactivate vg01
# vgchange -a n /dev/vg01
3) Remove the VG entry from /etc/lvmtab & the associated device files from the system.
# vgexport -m /tmp/mapfile /dev/vg01

Make sure you transfer a copy of /tmp/mapfile to remote server (will need this file later in the import process).
4) Installed your new OS.
5) Recreate the vg01
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x0X0000
Note: The minor number (0x0X0000) must be unique for each volume group. Substitute X for a number not in use on the system. Use: ll /dev/*/group to see existing group files on the system. (Ex: # mknod /dev/vg01/group c 64 0x010000)
6) Import the VG info for all disks that are associated with it as follows (get the previously saved mapfile and put it in /tmp)
# vgimport -m /tmp/mapfile /dev/vg01 /dev/dsk/pv_name1 /dev/dsk/pv_name2 ......
Note: The "pv_name" is a list each of the block device(s) corresponding to the new hardware path(s). The new device files should have been created during system start up. Use: ioscan -fn to get the new device file names if needed.
7) Activate the VG.
# vgchange -a y /dev/vg01
8) Backup the VG configuration.
# vgcfgbackup /dev/vg01
9) Edit /etc/fstab appropriately.
Wodisch
Honored Contributor

Re: Reinstallation of HPUX 11.00

Hi,

use the "-s" option to "vgexport":

vgexport -s -m /tmp/vg01.map /dev/vg01

and copy that file to another station!

Then you may later (after installing the OS) copy it back and use

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgimport -s -m /tmp/vg01.map

to re-import your VG01!

The only problem I see would be with the applications, not the data: are your apps installed using "swinstall" and hence visible for "swlist"? Then you may have to re-install them and that would do harm to your data, potentially at least...

HTH,
Wodisch
MANOJ SRIVASTAVA
Honored Contributor

Re: Reinstallation of HPUX 11.00

Hi Michael

Use a ignite tape froma similar system and run it with the interactive option incase you want to change the filesystem sizes .

After the system comes up do a vgimport of the data volumes vg01 .

Bringup the applications.

Incase you a ignite of the system befroe it was messed up you can just restore that , or incase these are not there then just a reload of OS/application and vgimporting the vg01 will work .


Manoj Srivastava