From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Iain Barker Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Removing a corrupt patch Date: Tue, 15 Jun 2004 11:26:32 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1087313368 337 80.91.224.253 (15 Jun 2004 15:29:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 15 Jun 2004 15:29:28 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Jun 15 17:29:17 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1BaFsD-0002KH-00 for ; Tue, 15 Jun 2004 17:29:17 +0200 Original-Received: (qmail 21903 invoked by uid 5); 15 Jun 2004 15:29:11 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 21888 invoked by uid 49501); 15 Jun 2004 15:29:11 -0000 Original-Received: from ibarker@aastra.com by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.4.110):SA:0(-4.9/5.0):. Processed in 1.01477 secs); 15 Jun 2004 15:29:11 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 15 Jun 2004 15:29:10 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0HZC00C96WCLGU@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 15 Jun 2004 11:29:09 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.2-X27 #30899) id <0HZC00K02WCAAL@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 15 Jun 2004 11:28:59 -0400 (EDT) Original-Received: from solmail1.aastra.com (eumail.aastra.com [62.2.240.252]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0HZC00JCQWC8EE@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 15 Jun 2004 11:28:58 -0400 (EDT) Original-Received: from bilmail.aastra.com ([10.50.2.10]) by solmail1.aastra.com with Microsoft SMTPSVC(6.0.3790.0); Tue, 15 Jun 2004 17:26:34 +0200 Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft Exchange V6.5.6944.0 Thread-Topic: Missing tun0 and tun1 devices ? Thread-Index: AcRS4S6T1gxNscXFTRuaG9cSsQFNlgAAovLgAAApVZAAALUloA== Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 15 Jun 2004 15:26:34.0139 (UTC) FILETIME=[2434E6B0:01C452ED] Xref: main.gmane.org gmane.os.tru64.managers:7125 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:7125 No idea why the two tools see different patch databases, but the quick = way to fix the corruption is to restore the individual patch files from the backup copy in /var/adm/patch/backup then remove the setld references = from /usr/.smdb. and finbally reinstall the patch using dupatch. See below for details from Jenny Butler (thanks) how to delete the patch manually, and restore the original configuration more carefully than I = did! For some reason dupatch couldn't install using patch ID C409.01, but = when I tried to reinstall it as 'all patches in a kit' rather than as a = single patch it worked successfully. ./dupatch -install -kit . -name x -note x -patch all Now both setld and dupatch can see the patch and ssh is operating = correctly. > setld -i | grep OSFPATC0040901540 OSFPATC0040901540 installed Patch: Fix for SSRT3629B, = ssh (Security Related Patches) >>> Email from Jenny Butler: First, have a good backup and second, do this with caution! If this is a production system, try it first on a test system. Look in /usr/.smdb. for files names OSFPATC0040901540.* and in the .inv file, it will list the files that were changed by the patch = kit. If you used the setld option to make this patch reversable, the previous files should be saved in /var/adm/patch/backup under the name OSFPATC0040901540.tar.gz. You could retrieve the previous version of files from that backup file. Carefully, verify whether the files listed in the .inv file were = replaced by the patch or not. If so, unzip/untar the backup file into a = temporary or non-system space (maybe /usr/local/src). Check the sizes, dates, and you can check the checksums of these files versus those in the "production" location. If you have everything you need, you can remove the files in /usr/.smdb. named OSFPATC0040901540.* and then go to /usr/cluster/members/member0/.smdb. and remove the OSFPATC0040901540.sts (this is where setld get the status) and this will make setld -i not list this patch. Oh, you didn't say you were on a TruCluster, but if you were, you would need to also check and clean out /usr/cluster/members/member1/.smdb., member2, and so on for as many members as there are - only the OSFPATC0040901540 files. Finally, put back the pre-patch files from the .tar.gz backup carefully, being sure about protections, ownership, links, and any other things. Do a ls -l before and after - maybe even saving the files before you put the old ones back - take as many precautions as you can. -----Original Message----- From: tru64-unix-managers-owner@ornl.gov [mailto:tru64-unix-managers-owner@ornl.gov]On Behalf Of Iain Barker Sent: Tuesday, 15 June, 2004 10:41 To: tru64-unix-managers@ornl.gov Subject: Removing a corrupt patch I've got a system on which the ssh patch partially applied, and now ssh = doesn't work. (T64KIT0020964-V51BB24-ES-20031204.tar, patch OSFPATC0040901540 number = C409.01 on Tru64_UNIX_V5.1B) Using setld I can see the patch is present, but is not in the correct = "installed" state: > setld -i | grep OSFPATC0040901540 OSFPATC0040901540 load completed Patch: Fix for SSRT3629B, = ssh (Security Related Patches) I booted single user to use dupatch to delete the patch, but now dupatch = doesn't think it's installed: # dupatch -delete -name x -note x -patch C409.01 Patch "C409.01" for Tru64_UNIX_V5.1B is not installed on your system. There are no deletable patches as specified on the command line. Also, if I do a "dupatch -track -type patch" it doesn't show this patch = in the installed list. Somehow dupatch and setld seem to have a different list of patches that = are applied. Any ideas?