On Sat, Jul 3, 2010 at 6:36 AM, Daniel Dinu <daniel.d...@gmail.com> wrote:
> Hi guys,
> This is my version of Opensolaris:
> Sun Microsystems Inc.   SunOS 5.11      snv_111b        November 2008
> I have installed 2 zones on it:
> k...@opensolaris:~$ zoneadm list -cv
>  ID NAME             STATUS     PATH                           BRAND    IP
>   0 global           running    /                              native   shared
>   4 zone1            running    /vol1/zone1                    ipkg     shared
>   5 zone2            running    /vol1/zone2                    ipkg     shared
> Filesystem used is zfs.
> k...@opensolaris:~$ zfs list
> NAME                       USED  AVAIL  REFER  MOUNTPOINT
> rpool                     4.79G  10.8G  81.5K  /rpool
> rpool/ROOT                3.31G  10.8G    19K  legacy
> rpool/ROOT/opensolaris    8.55M  10.8G  2.90G  /
> rpool/ROOT/opensolaris-1   776K  10.8G  2.89G  /
> rpool/ROOT/opensolaris-2  3.30G  10.8G  3.12G  /
> rpool/dump                 511M  10.8G   511M  -
> rpool/export              5.60M  10.8G    21K  /export
> rpool/export/home         5.58M  10.8G    21K  /export/home
> rpool/export/home/kido    5.56M  10.8G  5.56M  /export/home/kido
> rpool/exported              20K   100M    20K  /rpool/exported
> rpool/swap                 512M  11.2G   101M  -
> rpool/zone1                243M   257M    22K  /vol1/zone1
> rpool/zone1/ROOT           243M   257M    19K  legacy
> rpool/zone1/ROOT/zbe       243M   257M   243M  legacy
> rpool/zone2                242M  4.76G    22K  /vol1/zone2
> rpool/zone2/ROOT           242M  4.76G    19K  legacy
> rpool/zone2/ROOT/zbe       242M  4.76G   242M  legacy
> zone1 is installed in /vol1/zone1 and zone2 in /vol1/zone2.
> zone1 was configured as a "sparse root" zone (I used "create" command).
> zone2 was configured as a "whole root" zone (I used "create -b" command).
> Still, the space used is the same for both zones, as depicted above....Of 
> course, I expected that zone2 to use more space than zone1 (GB vs. MB).

Sparse root zones do not exist with OpenSolaris.  When you use
zonecfg's "create" (without -b), the file /etc/zones/SUNWdefault.xml
is used as the initial configuration for the zone.  With "create -b",
/etc/zones/SUNWblank.xml is used.  On OpenSolaris, these files are the
same because the new packaging system does not support sparse zones.

In Solaris 10, SUNWdefault.xml listed /usr and several other
directories as inherit-pkg-dir.  Thus, the zones were sparse.
SUNWblank.xml listed no inherit-pkg-dirs.

Sparse zone support was just fully removed from the source:


In earlier days (such as a year ago when the release you are using was
new), it seemed as though there was some interest in continuing to
support sparse root zones with the ipkg brand (but no code released to
support it).  However, other factors have made sparse zones less
important than they were 5+ years ago when Solaris 10 was released.
Those that I have observed are....

- The new packaging system tends to lead to smaller installations by default
- Typical hard drives are much larger
- ZFS compression and deduplication can reduce the disk usage

Mike Gerdts
zones-discuss mailing list

Reply via email to