Current Issue


Table of contents

CD-ROM

Sys Admin and The Perl Journal CD-ROM version 12.0

Version 12.0 delivers every issue of Sys Admin from 1992 through 2006 and every
issue of The Perl Journal from 1996-2002 in one convenient CD-ROM!

Order now!

Sys Admin Magazine > Archives > 2006 > May
SysAdminMag.com

Questions and Answers

Amy Rich

Q When we first installed our Solaris 8 machines, it seemed like 1G would be plenty of space for /var. However, we've gotten to the point now where we need to delete logs early or we run out of disk space. The biggest disk hog seems to be the /var/sadm directory, which claims to hold package and patch information. Is there any way we can reclaim some of this space for our log files?

A By default, the Solaris patching mechanism creates backup copies of the packages replaced by the patch. Every time you install a patch using patchadd, the current package is compressed into a file called /var/sadm/pkg/<PKGNAME>/save/<PATCHNAME>/undo.Z. If you install newer versions of the same patch, the undo.Z file in the older version of the patch directory is renamed to obsolete.Z. Let's say you've applied three different revisions of patch 117350, which replaces the packages SUNWcsu, SUNWcsr, SUNWcarx, SUNWcar, SUNWcsxu, and SUNWhea:

117350-12
117350-18
117350-25
You'll find the following save files under /var/sadm/pkg:

   SIZE  FILE NAME

     20  SUNWcsu/save/117350-12/obsoleted_by
  25947  SUNWcsu/save/117350-12/obsolete.Z
     10  SUNWcsu/save/117350-18/obsoleted_by
  26724  SUNWcsu/save/117350-18/obsolete.Z
  28263  SUNWcsu/save/117350-25/undo.Z
     20  SUNWcsr/save/117350-12/obsoleted_by
 807215  SUNWcsr/save/117350-12/obsolete.Z
     10  SUNWcsr/save/117350-18/obsoleted_by
 819144  SUNWcsr/save/117350-18/obsolete.Z
 820046  SUNWcsr/save/117350-25/undo.Z
     20  SUNWcarx/save/117350-12/obsoleted_by
3035397  SUNWcarx/save/117350-12/obsolete.Z

				  



MarketPlace

Build IT Knowledge with Current & Trusted Content
Helps Employees Develop & Hone New Technical Programming Skills. Sign Up & Get Full Access.

Six Sigma Certification
100% Online-Six Sigma Certificate from Villanova - Find Out More Now.

Learn Embedded Linux, $349
Hands-on kit teaches fundamentals of embedded Linux development on real target hardware. ARM9 SBC.

Workflow Enabled Help Desk & IT Service Management
Automate service desk activities and integrate processes across IT. Learn more here.

Wanna see your ad here?