SUMMARY: pkgadd

From: Tony C. Wu (tonywu@life.nthu.edu.tw)
Date: Fri Mar 20 1998 - 12:08:09 CST


I created empty 'save' directories under /var/sadm/pkg and that solved
the problem.

Thanks to the following ppl for their instant helps.

From: HCDEB@mead.com
From: Brent Parish <bparish@pfn.com>
From: "Darryl V. Pace" <dpace@tacticsus.com>
From: Gerald Combs - Unicom Communications <gerald@unicom.net>
From: Bob Fulwiler <bobf@colltech.com>
From: Alexandre Peixoto Ferreira <alexandre.ferreira@flug.com.br>
From: "D. Stewart McLeod" <stewart.mcleod@boeing.com>
From: Sanjaya Srivastava <Sanjaya.Srivastava@Eng.Sun.COM>
From: Casper Dik <casper@holland.Sun.COM>
From: Ian TCollins <itc1@scigen.co.uk>

---------- Original message ----------
Date: Thu, 19 Mar 1998 02:37:27 +0800 (CST)
From: "Tony C. Wu" <tonywu@life.nthu.edu.tw>
To: sun-managers@eecs.nwu.edu
Subject: pkgadd

Hi,

I removed /var/sadm/*/save to free /var space, but now I am getting
troubles installing new patches. Is there any way around ?

# ./installpatch .

Checking installed packages and patches...
Generating list of files to be patched...
Verifying sufficient filesystem capacity (exhaustive method)...
Installing patch packages...
pkgadd: ERROR: unable to transfer prior contents to save directory
</var/sadm/pkg/SUNWcsu/save>

The installation of patch 103577-07 was interrupted.
Installpatch needs to be re-invoked to ensure proper installation of the
patch.

Backoutpatch is terminating.

Installpatch is terminating.

----- Answers -------------------------------------------------
>From HCDEB@mead.com Thu Mar 19 09:59:35 1998
Date: Wed, 18 Mar 1998 14:27:46 -0500
From: HCDEB@mead.com
To: "Tony C. Wu" <tonywu@life.nthu.edu.tw>
Subject: Re: pkgadd

Have you tried just recreating the save directories?

cd /var/sadm/pkg
for file in *
do
mkdir $file/save
chmod 755 $file/save
done

>From bparish@pfn.com Thu Mar 19 09:59:41 1998
Date: Wed, 18 Mar 1998 14:46:43 -0500
From: Brent Parish <bparish@pfn.com>
To: "'Tony C. Wu'" <tonywu@life.nthu.edu.tw>
Subject: RE: pkgadd

You cant symbolic link the save directory to a location that has free space?
Brent Parish
Unix/Network Systems Administrator
PFN, Inc.
26 Landsdowne Street
Cambridge, MA 02139
(617) 679-0269
bparish@pfn.com

>From dpace@tacticsus.com Thu Mar 19 09:59:48 1998
Date: Wed, 18 Mar 1998 14:15:41 -0500
From: "Darryl V. Pace" <dpace@tacticsus.com>
To: "Tony C. Wu" <tonywu@life.nthu.edu.tw>
Subject: Re: pkgadd

You might be able to remedy your problem by recreating that directory.
However, I think that you will probably have to restore that directory,
from tape if you have it, or from the Solaris installation CD if
possible.
The /var/sadm directory is an important one. It contains, among other
things, a subdirectory for every package installed on your system, and
other info. the system uses to manage its packages.

Darryl

>From gerald@unicom.net Thu Mar 19 09:59:52 1998
Date: Wed, 18 Mar 1998 14:24:38 -0600 (CST)
From: Gerald Combs - Unicom Communications <gerald@unicom.net>
To: "Tony C. Wu" <tonywu@life.nthu.edu.tw>
Subject: Re: pkgadd

  I'm not sure how to get around the missing save directories. Each patch
I've installed comes with an 'Install.info' document explaining how to
install patches under different circumstances. It also includes a man
page for installpatch about 1/3 of the way down. You might try the -u
(unconditional) or -d (don't save backout files) flags.

  According to a Sun InfoDoc that I ran across once, the recommended way
to clear out unneeded patch info is to go into /var/sadm and run

    find . -name "*obsolete*"

  This will give you a list of old backout data that has been replaced by
more recent data. These files can be deleted at your discretion. I
usually feed the list into "|xargs rm".

  Good luck!

---------------------------------------------------------------------------
 ***** ***** Gerald Combs gerald@unicom.net
  *** *** Kernel engraver http://www.unicom.net
   * * Unicom Communications, Inc. (913)327-5309
    ***** 7223 W. 95th St., Ste 325 (913)327-5376 Fax
     *** Overland Park, KS 66212 (913)327-5375 Client Support
      *
---------------------------------------------------------------------------

>From bobf@colltech.com Thu Mar 19 09:59:56 1998
Date: Wed, 18 Mar 1998 14:31:38 -0600 (CST)
From: Bob Fulwiler <bobf@colltech.com>
To: "Tony C. Wu" <tonywu@life.nthu.edu.tw>
Subject: Re: pkgadd

Did you create a link from /var/... to the new location so that pkgadd can
find it?

Bob

  ______
 / __/ /_ Bob Fulwiler On-Site: AT&T Wireless
/ /_ __/ http://www.colltech.com Phone: (425) 803-8972
\__/ /ollective bobf@colltech.com bobf@oz.net
   \_\echnologies http://www.oz.net/~bobf

>From alexandre.ferreira@flug.com.br Thu Mar 19 09:59:59 1998
Date: Wed, 18 Mar 1998 17:36:21 -0300
From: Alexandre Peixoto Ferreira <alexandre.ferreira@flug.com.br>
To: "Tony C. Wu" <tonywu@life.nthu.edu.tw>
Subject: Re: pkgadd

Hi,

I would recommend that you remove the files inside the save directory,
because the installpatch needs this directory to save the files for a
possible removal of the patch. Another option is to tell installpatch to
install the patches with no backup of the files, use the -d flag.

Regards,

Alexandre

--
 -----------------------------------------------------------------
 Alexandre Peixoto Ferreira              Telefone: (048) 281-7083
 Diretor de Produtos                     Fax:      (048) 281-7099
 Flug Telematica e Automacao Ltda
 Rua Prof. Sofia Quint de Souza, 99
 Florianopolis-SC 88085-040
 e-mail:   alexandre.ferreira@flug.com.br
 -----------------------------------------------------------------

>From stewart.mcleod@boeing.com Thu Mar 19 10:00:01 1998 Date: Wed, 18 Mar 1998 12:36:20 -0800 From: "D. Stewart McLeod" <stewart.mcleod@boeing.com> To: "Tony C. Wu" <tonywu@life.nthu.edu.tw> Subject: Re: pkgadd

Use the "-d" option which will not save the backout files for you.

Stew

-- # D. Stew McLeod ... working at The Boeing Company .. in Renton, WA. #"A pessimist sees the difficulty in every opportunity; # an optimist sees the opportunity in every difficulty." # - Sir Winston Churchill (1874-1965)

>From Sanjaya.Srivastava@Eng.Sun.COM Thu Mar 19 10:00:05 1998 Date: Wed, 18 Mar 1998 13:34:49 -0800 (PST) From: Sanjaya Srivastava <Sanjaya.Srivastava@Eng.Sun.COM> To: tonywu@life.nthu.edu.tw Subject: Re: pkgadd

Hi-, Try using the nosave option in installpatch.

...Sanjaya

>From casper@holland.Sun.COM Thu Mar 19 10:00:08 1998 Date: Wed, 18 Mar 1998 22:59:38 +0100 From: Casper Dik <casper@holland.Sun.COM> To: "Tony C. Wu" <tonywu@life.nthu.edu.tw> Subject: Re: pkgadd

I think you should not remote the save directories. Only the contents thereof.

>From itc1@scigen.co.uk Thu Mar 19 23:25:05 1998 Date: Thu, 19 Mar 1998 08:57:03 GMT From: Ian TCollins <itc1@scigen.co.uk> To: tonywu@life.nthu.edu.tw Subject: Re: pkgadd

If you can, recover the files! Anything under /var/sadm/ should be left well alone. Rather than remove it, move it.

Ian



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:34 CDT