/var/sadm/pkg

unix

    Next

  • 1. Solaris 2.7 question
    Hi, Could someone who is running Sun OS 2.7 with latest patches (up to 3-4 months old is fine) run following command and post it here or send me by email ? ls -al /usr/bin Thanks, SS
  • 2. How to for configuring secure RPC between two Solaris machines?
    Does anybody know if there's a document that can tell me in a few easy steps what it takes to set up a secure RPC connection between to Solaris machines? I don't know if it matters, but the connection is supposed to be between two users who do not have the same user id. Thanks for any answers. Wenslauw
  • 3. CUPS CDE
    Hello, I am going to be rolling CUPS out as a replacement for lp on solaris 8. The only problem I have is the print manager in CDE cannot talk to CUPS Any suggestions as to what I can use instead ? I cannot find the source code for KDEprint which looks like the best replacement. Anyone know where I can find it ?
  • 4. SunRay freeze
    Solaris: 5.9 (112233-08) SunRay server: 2.0 (Patch: 114880-03) I'm having a problem with our lab of SunRays where I will often go in and find a number of them at the "blue square" stage and hourglass for the pointer. The blue square info reports they are at stage 26D. The only solution seems to be to kill the utsession and then power-cycle the SunRay. The setup we have is two SunFire v240's in a basic failover configuration (using a dedicated private interconnect). The secondary server will often complain "in.dhcpd[513]: [ID 990463 daemon.error] Client: xxxxxxxxxxxxxx is trying to renew yy.yy.yy.yy, an IP address it has not leased." (x being the SunRay ethernet address and yy being the IP address). I always thought it strange having two dhcp servers on the same subnet but that seems to be the way the install scripts set things up. Thoughts/advice appreciated.

/var/sadm/pkg

Postby greek_philosophizer » Sat, 15 Apr 2006 06:34:04 GMT

If /var/sadm/pkg is inadvertently evacuated,

is the machine effectively headed for a reinstall?

.


Re: /var/sadm/pkg

Postby Ken Gray » Sat, 15 Apr 2006 09:25:50 GMT

In article < XXXX@XXXXX.COM >,




If you don't have a backup, yes. Without /var/sadm/pkg, you won't be 
able to install patches, etc. Everything will still run, and it will 
boot, but you won't be able to maintain it.

-- 
Ken

Real address krgray*at*verizon*dot*net

Re: /var/sadm/pkg

Postby greek_philosophizer » Fri, 21 Apr 2006 02:11:32 GMT

Thanks for that.

I thought we may have had an unrecoverable situation
on one of our machines but the directory was just moved
to a softlink because of space issues and then the softlink
was wiped.

.


Similar Threads:

1./var/sadm/pkg is very huge

Hello.

I noticed that my /var/sadm/pkg is rather big. It's currently about 1.7g.
Can I deleted no longer required "save" directories from there (like
/var/sadm/pkg/SUNWzfsu/save)?

Thanks,

Alexander Skwar

2./var/sadm/pkg direcotry Q

Since the pkginfo files in the /var/sadm/pkg/pkg_name is not being touched
if i remove /var/sadm/pkg/pkg_name/save dir, removing the save direcotory is
not going to effect when i run pkgrm or patchrm?  or is the pkginfo files
being called only when i run the command pkginfo, showrev -p and
patchadd -p?

what is the save dir for anyway?




-- 
****PLEASE REMOVE "_SPAM_SUCKS" before reply


3.pkg - recreated /var/sadm/install/contents

For some unknown reason, /var/sadm/install/contents is missing
on a couple of our systems, making pkginfo and friends useless.
A web search has not turned up any method for recreating the
database.

So, is there a magic set of commands that I can run to
repopulate that ugly beast?

Linolil

For example; if an RPM database gets corrupt on a linux system.

rm -f /var/lib/rpm/__db*
rpm -vv --rebuilddb

4.Repost: Solaris Live Upgrade: questions about /var/sadm

Sorry for the report, seems like my news reader misbehaved (Ah, MSFT!)

 According to the solaris FAQ:

--------8<-----------------

|3.40) Why does installing patches take so much space in /var/sadm?

    All the files that are replaced by a patch are stored under
    /var/sadm/patch/<patch-id>/save so the patch can be safely
    backed out.  Newer patches will save the old files
    under /var/sadm/pkg/<pkg>/save/<patch-id>/undo.Z, for each package
    patches.

    You can remove the <patchdir>/save directory provided you also
    remove the <patchdir>/.oldfilessaved file.  Newer patches will not
    install a .oldfilessaved file.

    Alternatively, you can install a patch w/o saving the old
    files by using the "-d" flag to installpatch.

|3.41) Do I need to back out previous versions of a patch?

    No, unless otherwise stated in the patch README.
    If the previous patch installation saved the old
    files, you may want to reclaim that space.

    Patches can be backed out with (Solaris 2.6+):
     patchrm <patch-id>

    or in earlier releases:

     /var/sadm/patch/<patch-id>/backoutpatch <patch-id>

    Backoutpatch can take an awful long time, especially when the
    patch contained a lot of files.  This is fixed in later versions
    of backoutpatch.

---------------->8---------------------------

Prior to doing the live upgrade, I would like to minimize the size of my
root partition
(containing /var in my case) Can I safely remove all patches (not just the
save directories)
from /var/sadm/patches or will live upgrade do it automatically ?

I presume that after a solaris upgrade, the liste of installed patches on
the system will be NULL ?

Another last point, does "back out patch" mean to go back to the state
BEFORE the patch was applied ?
I don't understand the 3.41 paragraph. What does it mean ? It seems to mean
that whenever you apply a new
patch, you should go back to the previous version before installing ?

Ex: Original package = blabla-01

Apply patch blabla-02  (BlaBla-01 saved)

You now want to apply patch blabla-03.

Does question 3.41 ask: "if you need to install patch blabla-03 you should
first back ou to blabla-01 ?"

If so, what do you do if the README tells you that you have to, but you
REMOVED the save directory ?

Thanks !


5.Solaris Live upgrade: questions about /var/sadm/patch

 According to the solaris FAQ:--------8<-----------------|3.40) Why does
installing patches take so much space in /var/sadm?    All the files that
are replaced by a patch are stored under    /var/sadm/patch/<patch-id>/save
so the patch can be safely    backed out.  Newer patches will save the old
files    under /var/sadm/pkg/<pkg>/save/<patch-id>/undo.Z, for each package
patches.    You can remove the <patchdir>/save directory provided you also
remove the <patchdir>/.oldfilessaved file.  Newer patches will not
install a .oldfilessaved file.    Alternatively, you can install a patch w/o
saving the old    files by using the "-d" flag to installpatch.|3.41) Do I
need to back out previous versions of a patch?    No, unless otherwise
stated in the patch README.    If the previous patch installation saved the
old    files, you may want to reclaim that space.    Patches can be backed
out with (Solaris 2.6+):     patchrm <patch-id>    or in earlier releases:
/var/sadm/patch/<patch-id>/backoutpatch <patch-id>    Backoutpatch can take
an awful long time, especially when the    patch contained a lot of files.
This is fixed in later versions    of
backoutpatch.---------------->8---------------------------Prior to doing the
live upgrade, I would like to minimize the size of my root partition
(containing /var in my case) Can I safely remove all patches (not just the
save directories)from /var/sadm/patches or will live upgrade do it
automatically ? I presume that after a solaris upgrade, the liste of
installed patches on the system will be NULL ?Another last point, does "back
out patch" mean to go back to the state BEFORE the patch was applied ? I
don't understand the 3.41 paragraph. What does it mean ? It seems to mean
that whenever you apply a newpatch, you should go back to the previous
version before installing ?Ex: Original package = blabla-01Apply patch
blabla-02  (BlaBla-01 saved)You now want to apply patch blabla-03.Does
question 3.41 ask: "if you need to install patch blabla-03 you should first
back ou to blabla-01 ?" If so, what do you do if the README tells you that
you have to, but you REMOVED the save directory ?Thanks !


6. Cleaning Up /var/sadm

7. frequency alphabet for files in /var/sadm/install/contents

8. for huge "recommended" patch, not enough room in /var/sadm/patch



Return to unix

 

Who is online

Users browsing this forum: No registered users and 60 guest