1833777 Members
2750 Online
110063 Solutions
New Discussion

swinstall

 
SOLVED
Go to solution
Patricia Tang
Advisor

swinstall

Hi All,

Recently i try to apply patch PHNE_25484 into my HP-UX 11 Server.

However i having problem during rebuild the kernel. The Error message show :

NOTE: Building a new kernel based on template file "/stand/system"
Generating module: krm...
Compiling /stand/build/conf.c...
Loading the kernel...
ld: Unsatisfied symbol "mi_timer_alloc" in file /usr/conf/lib/librpc.a[rpcmod.o]
ld: Unsatisfied symbol "mi_timer" in file /usr/conf/lib/librpc.a[rpcmod.o]
ld: Unsatisfied symbol "mi_timer_free" in file /usr/conf/lib/librpc.a[rpcmod.o]
ld: Unsatisfied symbol "mi_timer_valid" in file /usr/conf/lib/librpc.a[rpcmod.o]
4 errors.
*** Error exit code 1

Stop.
make failure.
ERROR: The command "/usr/sbin/mk_kernel", which is used to rebuild
the kernel, has failed. Because kernel-related filesets were
installed, this command must be executed by "swinstall",
without failures, before the load can continue. Check the
above output for details about the failure.
NOTE: The Install Phase has suspended. Check the above output for
reasons.

By issue command swlist -l fileset -a state |grep PHNE_25484 , it show me status install.

I try to run swconfig * to change the status to configure and it is sucess.

Is swconfig run the rebuld kernel command???
what else can i do ?

Below is the command i use to install patch:
swinstall -x autoreboot=true -x patch_match_target=true -s /tmp/PHNE_25484.depot

Please advise.

Regards,
Pat
11 REPLIES 11
Michael Tully
Honored Contributor

Re: swinstall

Hi,

I've not installed that patch, but with any
kernel patch (or any patch) there are some
unwritten rules to follow:

1. Create make_recovery_tape (ignite tape)
2. Run the swinstall program with the
preview option first, to see if there are
any errors.

You could test a generation of your kernel
by doing this.

# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
vi the file and change something, or
remove something. Save the file.
# mk_kernel -s system

This will generate a kernel. Post your outcome.

Michael
Anyone for a Mutiny ?
S.K. Chan
Honored Contributor
Solution

Re: swinstall

For now yes, but you still need to make sure all the dependencies patches for PHNE_25484 are install. What you should have done is copy all these patches (including PHNE_25484 into one depot and install 'em in one session.
s800: 11.00
PHCO_22314
PHKL_22589
PHCO_23117
PHNE_22566
PHKL_20202

Patricia Tang
Advisor

Re: swinstall

Hi Micheal,

Thanks for your reply.

I did follow the step and run mk_kernel -s system . Below is the output :

Generating module: krm...
Compiling conf.c...
Loading the kernel...
ld: Unsatisfied symbol "mi_timer_alloc" in file /usr/conf/lib/librpc.a[rpcmod.o]
ld: Unsatisfied symbol "mi_timer" in file /usr/conf/lib/librpc.a[rpcmod.o]
ld: Unsatisfied symbol "mi_timer_free" in file /usr/conf/lib/librpc.a[rpcmod.o]
ld: Unsatisfied symbol "mi_timer_valid" in file /usr/conf/lib/librpc.a[rpcmod.o]
4 errors.
*** Error exit code 1

Stop.
config: make did an exit(1)

Please advise.

Regards,
Pat
Patricia Tang
Advisor

Re: swinstall

Hi Chan,

Thanks for replying my message.

Allow me to ask , how to put into one depot?
Currently i have downloaded all patch and put it in directory /tmp

Hope you don't mind to send me the command

Thanks

Regards,
Pat
S.K. Chan
Honored Contributor

Re: swinstall

Assuming you've got all the patches in /tmp.You would do this ..
# cd /tmp
# for x in PH*
> do
> sh $x
> done
==> running interactive for loop to unshar them

# mkdir /tmp/patch_depot
# for y in PH*.depot
> do
> swcopy -s /tmp/$y \* @ /tmp/patch_depot
> done
==> creating the patch depot

Finally just run swinstall with /tmp/patch_depot as your source.
Patricia Tang
Advisor

Re: swinstall

Hi Chan,

After issue all command that you status, Fially i run "swinstall -s /tmp/patch_depot"

But i still having the same problem which status "mk_kernel used to rebuild the kernel, has failed"

My System still not able to rebuild new kernel.

Please advise.

I have another question , can i swintall by using option enforce_kernbld_failure=false to enable my install proceed first?

If result status configure when issue command "swlist -l fileset -a state" can i assume it is successfull install ???

I need this patch to be install.

Many Thanks.

Regards,
Pat
U.SivaKumar_2
Honored Contributor

Re: swinstall

hi,
try removing that patch using swremove and installing it again. this time look carefully
for any installation errors.
regards,
U.SivaKumar
Innovations are made when conventions are broken
S.K. Chan
Honored Contributor

Re: swinstall

Here is what I think .. we need to find out where the symbols "mi_timer*" reside (in which library) and which patch has that library. Once we found that patch, load that patch FIRST, then the rest of the pack later. By doing that the kernel would not complain about not being able to find "mi_timer*" symbols. I found out that the patch PHNE_22566 which loads libstream.a library is the one. First do this to see if "mi_timer*" is in libstream.a

# cd /usr/conf/lib
# nm libstream.a|grep mi_timer

If you do not get anything back, go ahead and load patch PHNE_22566 and after that repeat the above. Now "mi_timer*" symbols should be in there. Proceed with the rest of the patches.
If "mi_timer*" symbols are already in libstream.a to begin with then I would not know why the kernel refuse to compile.
Clemens van Everdingen
Honored Contributor

Re: swinstall

Hi,

Did you by any change changed the installation option to reinstall=true ?

If yes and you had all the dependencies there, patch PHKL_18543 PM/VM/UFS/async/scsi/io/DMAPI/JFS/perf patch
is reinstalled then.

I hope you have an ignite tape available, else you will be left with the only other option:

Do a cold install from CD !
So a complete install form your system !

Check your swagent.log file to see if the patch is really reinstalled.

Good luck,
C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Patricia Tang
Advisor

Re: swinstall

Hi Chan,

Thanks for your advise, and now patch PHNE_25484 have been install successfully without any error.

I have another question hope you don't mind to give me some advise.

I have issue swlist -vl patch |grep PHNE_25484 but i can't see anything display.

By issue swlist -l patch |grep PHNE_25484 , information of patch PHNE_25484 only display.

Why swlist -vl patch doesn't display PHNE_25484 info ???

Many Thanks.

Regards,
Pat
S.K. Chan
Honored Contributor

Re: swinstall

I'm glad it worked out :)
Frankly I'm not sure or have not really used "-v" option before, it's supposed to list all the attributes of the file/filesets, hence I can't comment on that. If there is any consolation, I ran the same commands (swlist -l patch vs swlist -vl patch) and I noticed too some of the patches are not found in "swlist -vl patch" output. You would want to run ..
# swlist -l fileset -a state
to make sure all filesets are in configured state.