Operating System - HP-UX
1826408 Members
4275 Online
109692 Solutions
New Discussion

Re: HP-UX 10.20 to 11i upgrade

 
SOLVED
Go to solution
Jim Mickens
Frequent Advisor

HP-UX 10.20 to 11i upgrade

Yes, another 10.20 to 11 upgrade question.

Upgrading K220 server from 10.20 to 11i (32bit, as K22- not capable of 64). Currently configured with vg00 mirrored. Plan is to break mirror and cold install to mirror drives, leaving primary available to boot under 10.20 if things go awry, and vgimporting rest of vg's. I've attached a checksheet based on the myriad of messages I've read regarding the subject. Would appreciate any critiques.

My question is this: I haven't seen anything regarding moving the user accounts. Is this accomplished simply by merging the contents of the /etc/passwd and /etc/group files? I need to be able to move almost all (but not quite) the users from the 10.20 install to the 11i install.
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: HP-UX 10.20 to 11i upgrade

As long as your systems are not trusted then you can simply merge the passwd and group files with a text editor. Make sure that you are logged as root in at least two sessions and that that you have safe copies of the files. That way you can get yourself out of trouble almost as fast as you got yourself in.
If it ain't broke, I can fix that.
Ted Ellis_2
Honored Contributor

Re: HP-UX 10.20 to 11i upgrade

teh format of the passwd and group file is the same, so you can take information from your old files and append them to the new system. What I would suggest is to copy your 10.20 password and group file to different files, then strip out any of the non-system accounts and groups.... then save these files somewhere where you can get to them after you have installed the new OS (and before you vgimport the old vgs). After the fresh install, you can append them with the following to update your password file.

cat >> /etc/passwd
cat >> /etc/group

Just make sure you do not tamper with the system accounts... especially root. There is a shell difference between the 2 operating systems and if you just copy the passwd file over it will not allow root access...

You will also either need some sort of backup of their home directories (tar), unless the home directories are part of the vgs you will be reimporting. Hope that helps.

Ted
S.K. Chan
Honored Contributor

Re: HP-UX 10.20 to 11i upgrade

I took a quick look and notice something immediately. The "lvreduce" part (when you break the existing miror on 10.20), after all the lvreduce you would have to vgreduce the disk out from vg00.
# vgreduce vg00 /dev/dsk/cXtXdX
# lvlnboot -v
==> Just checking to make sure.
The new installation (11i), I would bump up /tmp space instead of 200MB to maybe 800MB or even 1GB, it depends on how much /tmp would need in your operating environment but 200MB seems too little (unless you have OnlineJFS to deal with this later). As for the users entries in passwd and group files yes they can be merged quite easily. Keep root password entry "untouched" (just in case).
Jim Mickens
Frequent Advisor

Re: HP-UX 10.20 to 11i upgrade

That answers my user question, thanks.

Anybody that wants to shoot holes in my procedure, feel free.
Jim Mickens
Frequent Advisor

Re: HP-UX 10.20 to 11i upgrade

Thanks for catching the vgreduce. I missed it.

As far as /tmp, I will max it out as best I can based on the other parameters. I've only got 2 4GB drives to work with on this.
S.K. Chan
Honored Contributor

Re: HP-UX 10.20 to 11i upgrade

Later when you get around to mirror the 2 11i root drives, it's always a good practice to do a clean mirror. I'm assuming you're going to mirror them to another 2 x 4GB drives ? By clean mirror I mean one-to-one mirror. This can be achieve by setting up a different PVG (physical volume group) and set your LVs to mirror as PVG-strict. That way you have 2 sets (so to speak) of root drives. I thought I'd to mention this because you're not using a single root disk for your OS. Oracle part (don't even want to go there ..), I would imagine some kernel tweaking is in order, patches to install, etc, It helps to determine these requirement up front.