On Mon, Nov 17, 2008 at 7:44 PM, Jeff Victor <[EMAIL PROTECTED]> wrote:
> Hi Kevin,
>
> I believe that you cannot patch your way from U1 to U5 - i.e. that the
> system is missing some functionality that would be there if you had
> applied the updates - but your point is still valid. I will look into
> the correctness of using patch levels to detect feature availability.

Huh?  There are very few features delivered in Solaris updates that
aren't delivered via patches.  So few that I can only think of one
time where it has made a difference (postgres version different
between updates).  When really important features are released as new
packages "genesis patches" are delivered to deliver the feature.  This
is how the U1 + patches system below has zfs on it even though zfs
didn't come out until U2.

All of the functionality that this script cares about for this comes
as part of the recommended patch set.  Consider this system:

# cat /etc/release
                       Solaris 10 1/06 s10s_u1wos_19a SPARC
           Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                           Assembled 07 December 2005

# uname -rv
5.10 Generic_127111-09

That puts it somewhere in between U4 and U5 for kernel patches.
Because the recommended bundle was used, it puts it somewhere in
between for other aspects (e.g. libzonecfg, etc.) as well.  Let's take
a look at the checks that zonestat does for updates:

   356  # For zones with RAM caps (U4+), get current values for RAM
usage and Cap.
   357  if ($update>3) {
   358    open (RCAP, "/usr/bin/svcs -H rcap|");

# svcs -H rcap
disabled       May_03   svc:/system/rcap:default

Exists but disabled.

   440      if ($update>4) {
   441        open(PRCTL, "/bin/prctl -Pi zone -n zone.cpu-cap $z|");
   442        while (<PRCTL>) {

Not at update 5's kernel and related patch set yet, so I wouldn't
expect that this would work.  However, let's take a look at another
system that was installed with update 4 but has update 5+ patches.

# cat /etc/release
                       Solaris 10 8/07 s10s_u4wos_12b SPARC
           Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 16 August 2007

# uname -rv
5.10 Generic_137111-08

# prctl -Pi zone -n zone.cpu-cap XXXX
zone: 3: XXXX
zone.cpu-cap system 4294967295 inf deny -

-- 
Mike Gerdts
http://mgerdts.blogspot.com/
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to