patchadd/patchrm


 
Thread Tools Search this Thread
Operating Systems Solaris patchadd/patchrm
# 1  
Old 12-01-2005
patchadd/patchrm

Ok, I attempted to apply a patch to a V440 and it bailed part way through. When I tried to patchrm the patch (after booting from CD), patchrm said that I had to fully install the failed patch before I could delete it. Since installing it killed the system forcing a boot from CD, it sounds like a catch-22. Can't install due to failure, can't delete due to incomplete install.

It's possible I could pkgadd the three undo files (/var/sadm/pkg/SUNW[csl|csr|csrx]/save/109147-30/undo.Z) except that the -R option doesn't seem to work as I expect it to.

pkgadd -d /mnt/var/sadm/pkg/SUNW.....109147-39 -R /mnt

I get a "can't update /var/sadm/..." some file which of course is true since / is the mounted boot CD.

Thoughts? Ideas on where to go forward on this? I'm about to the "reinstall the OS and let apps reinstall; they have backups, right?" point but would still like to recover without having to take a bunch of time reconfiguring the system.

Thanks.

Carl
# 2  
Old 12-02-2005
pkgadd or patchadd
# 3  
Old 12-02-2005
I'm not sure what to do. However, when doing a bit of checking I did find on thing. The patchadd manpage (at least for Sol 10) has a very long list at the end showing the possible error messages as well as workarounds. If you haven't looked at that yet, see if you can find the error message you got when it first failed on that list. Maybe you'll find something useful there.
# 4  
Old 12-02-2005
Quote:
Originally Posted by sarvesha
pkgadd or patchadd
Well patchadd was the tool that I used to attempt to install the patch. patchadd calls pkgadd to install a minimal version of the package that's being patched. As part of the backout, the old files are stored as a compressed datastream package in /var/sadm/pkg/SUNWcsl/save/109147-39/undo.Z. The uncompressed undo.Z file is the datastream file.

I was thinking I could pkgadd that undo file and recover from the bad patch but I wasn't able to get pkgadd -R /mnt [path.to.pkg] working. It was trying to update a /var/sadm/... file and that's the mounted CD.

patchrm failed because 109147-39 wasn't completely installed and I couldn't fully install 109147-39 because patchadd -R /mnt [patch] was failing from CD. Again for unknown reasons.

catch-22.

That's why I was going to attempt to manually apply the datastream packages.

I spoke to Sun support yesterday and they admitted there was a problem with 109147-39 but couldn't pin down if our configuration was affected by the problem (the Sun second level support guys weren't familiar with the V440's which didn't help).

Ultimately we restalled the OS yesterday on both systems. I installed all the necessary patches last night excluding 109147-40 (released Monday). Then, with crossed fingers and toes, I installed 109147-40 without issue.

The main problem was how to recover when the tool used to recover wasn't working as expected.

Carl
# 5  
Old 12-02-2005
Quote:
Originally Posted by rhfrommn
I'm not sure what to do. However, when doing a bit of checking I did find on thing. The patchadd manpage (at least for Sol 10) has a very long list at the end showing the possible error messages as well as workarounds. If you haven't looked at that yet, see if you can find the error message you got when it first failed on that list. Maybe you'll find something useful there.
Heh, believe me, I went through the man pages with a fine toothed comb as well as searching sunforums, this site, linuxquestions (both) and the web in several places. I found some interesting tools to fix little additional problems but nothing that addressed this one in particular.

Thanks for checking it out though.

Carl
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

I am new & I have a question about patchadd in Solaris 11

Hi guys, I am really new to Solaris. My question is about the patching package management. Now I was provided some old packages within that there are hard-coded codes written with commands like "patchadd", so anyway I can make them work with Solaris 11? Cheers! (8 Replies)
Discussion started by: ethanzhou
8 Replies

2. Solaris

patchadd -p ,, basic question

greetings, I am new to solaris, have a basic question. I have to check for patch 137111-04 (as prerequisite) for installing Oracle. # patchadd -p | grep 137111-04 # patchadd -p | grep 137111 Patch: 137137-09 Obsoletes: 120741-01 120986-12 120992-02 121008-02 121274-01 121414-01... (2 Replies)
Discussion started by: mubeenmd
2 Replies

3. Shell Programming and Scripting

For Loop help with patchrm Solaris 10

Hello all looking to write a for loop to remove patches in the /var/sadm/patch directory. So far this is what i have: #! /bin/sh cd /var/sadm/patch ls -l | awk '{print $9}' > patches /usr/bin/sort -r patches > patches_r for i in 'cat patches_r' do echo "going to remove... (6 Replies)
Discussion started by: caddyjoe77
6 Replies

4. Solaris

patchadd command

# patchadd /Desktop/117837-08.jar Validating patches... Loading patches installed on the system... Done! Loading patches requested to install. Done! The following requested patches have packages not installed on the system Package SPROcc from directory SPROcc in patch 117837-08 is... (19 Replies)
Discussion started by: seyiisq
19 Replies

5. Solaris

patchadd error

Greetings All- I ran into this problem today and was curious if anyone else had seen it. I am attempting to add patch 137402-02 on a v890 running Sol9. Here's the error I get: #> patchadd 137402-02 Checking installed patches... Verifying sufficient filesystem capacity (dry run... (7 Replies)
Discussion started by: bluescreen
7 Replies

6. Solaris

patchadd fails to apply a patch

Hello, I'm trying to apply the patch on Solaris 9 : $/jac/update$ patchadd ./112945-46 Checking installed patches... One or more patch packages included in 112945-46 are not installed on this system. Patchadd is terminating. The error message is not really talkative so I had a... (7 Replies)
Discussion started by: Tex-Twil
7 Replies

7. UNIX for Dummies Questions & Answers

patchrm problem

Hello, In order to remove a patch, I type following command; # #patchrm 119314-11 and following error message shown on the screen, the patch can not be removed: Cannot find teh backout packages for 119314-11 119314-11 cannot ve backed out. Patchrm is terminating. WARNING: patchrm... (0 Replies)
Discussion started by: XNOR
0 Replies

8. Solaris

Patchadd error

Hi, I have a Sun fire V280R server and when i updated the kernel patch i got this error. mdb not found: patchadd not safe. /kernel/dacf/sparcv9/usb_ac_dacf: undefined symbol 'am_attach' /kernel/dacf/sparcv9/usb_ac_dacf: undefined symbol 'am_src2' /kernel/dacf/sparcv9/usb_ac_dacf: undefined... (3 Replies)
Discussion started by: Jartan
3 Replies
Login or Register to Ask a Question