Re: [zones-discuss] high values for zones size in os2008.11

2009-04-30 Thread James Carlson
solarg writes:
> James Carlson wrote:
> 
> > At a guess, the difference between these two machines is that
> > 'catalogue4' was likely created as a sparse-root zone, while
> > 'catalogue2' was created as a whole-root zone.  The clones of that
> > whole-root zone ('catalogue3' and 'test-drupal') use little disk
> > space, as most of it is 'referred' from 'catalogue2'.
> > 
> 
> how do you know if a zone is "sparse" or "whole"?

On SX:CE, it would be looking at the file system list with zonecfg for
inherit-pkg-dir.

> Doing a zonecfg, i see 
> no differences between the zones, they don't contain "inherit-pkg-dir" ?

In that case, it's harder to explain what you saw.  Is it possible
that 'catalogue4' was actually created as a clone of some other zone
on that system you're comparing against?

> somebody said that it is not possible to have sparse zones in os2008.11, 
> even if "man zonecfg" doesn't say nothing about it?

I doubt it's possible to do that in the OpenSolaris distribution, as
that's not based on System V packaging.  The tools are different
there.

-- 
James Carlson, Solaris Networking  
Sun Microsystems / 35 Network Drive71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] high values for zones size in os2008.11

2009-04-30 Thread James Carlson
solarg writes:
> >> # zfs list
> >> NAME   USED  AVAIL  REFER 
> >> MOUNTPOINT
> >> rpool/zones/catalogue2/ROOT/zbe   4.49G  17.9G  7.47G  legacy
> >> rpool/zones/catalogue3/ROOT/zbe149M  17.9G  6.80G  legacy
> >> rpool/zones/test-drupal/ROOT/zbe   511M  17.9G  5.21G  legacy
> >>
> >> on another os2008.11 machine, i created a new zone, and don't notice 
> >> these high values:
> >> # zfs list
> >> NAME   USED  AVAIL  REFER  MOUNTPOINT
> >> rpool/export/catalogue4   4.07M  16.1G21K  /export/catalogue4
> >> rpool/export/catalogue4/ROOT  4.05M  16.1G18K  legacy
> >> rpool/export/catalogue4/ROOT/zbe  4.03M  16.1G   235M  legacy
> >>
> >> what is the meaning of REFER? can i gain more space?

"REFER" is documented on the zfs(1M) man page.  It's the amount of
space accessible by the dataset and some or all of it may be shared
with another dataset.  If you're interested in the amount of disk
space used, then the "USED" column is what you want.

At a guess, the difference between these two machines is that
'catalogue4' was likely created as a sparse-root zone, while
'catalogue2' was created as a whole-root zone.  The clones of that
whole-root zone ('catalogue3' and 'test-drupal') use little disk
space, as most of it is 'referred' from 'catalogue2'.

This part of the output shows the relationships:

> rpool/zones/catalogue2/ROOT/zbe4.52G  7.47G 
>   rpool/zones/catalogue/ROOT/z...@catalogue2_snap
> rpool/zones/catalogue2/ROOT/z...@test_drupal_snap358M  4.75G  -
> rpool/zones/catalogue2/ROOT/z...@catalogue3_snap85.2M  7.47G  -
[...]
> rpool/zones/catalogue3/ROOT/zbe 149M  6.66G 
>   rpool/zones/catalogue2/ROOT/z...@catalogue3_snap
[...]
> rpool/zones/test-drupal/ROOT/zbe511M  5.21G 
>   rpool/zones/catalogue2/ROOT/z...@test_drupal_snap

-- 
James Carlson, Solaris Networking  
Sun Microsystems / 35 Network Drive71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] high values for zones size in os2008.11

2009-04-30 Thread solarg

Dan Price wrote:

On Thu 30 Apr 2009 at 08:29AM, solarg wrote:

hello all,
i have a machine with os2008.11 that serves as a web server, and has 
many zones installed.

I'm surprised by the size of zones:
# zfs list
NAME   USED  AVAIL  REFER MOUNTPOINT
rpool/zones/catalogue2/ROOT/zbe   4.49G  17.9G  7.47G  legacy
rpool/zones/catalogue3/ROOT/zbe149M  17.9G  6.80G  legacy
rpool/zones/test-drupal/ROOT/zbe   511M  17.9G  5.21G  legacy

on another os2008.11 machine, i created a new zone, and don't notice 
these high values:

# zfs list
NAME   USED  AVAIL  REFER  MOUNTPOINT
rpool/export/catalogue4   4.07M  16.1G21K  /export/catalogue4
rpool/export/catalogue4/ROOT  4.05M  16.1G18K  legacy
rpool/export/catalogue4/ROOT/zbe  4.03M  16.1G   235M  legacy

what is the meaning of REFER? can i gain more space?

thanks for help,


Gerard,

I can make a guess:  I suspect that space in your zones is being
consumed by data which is 'stuck' in zfs snapshots.  Can you do a 'zfs
list -t all'?  You might have an automatic snapshot service turned on,
or have manually made snapshots.


no for automatic snapshots i'm sure


Or you might be using zfs clones?  It would be nice to see the output of:


yes i'm using zfs clones


zfs list -t all -o name,used,refer,origin



he...@antigone:~# zfs list -t all -o name,used,refer,origin
NAMEUSED  REFER 
 ORIGIN

rpool  48.8G75K  -
rpool/ROOT 4.30G18K  -
rpool/ROOT/opensolaris 7.34M  2.71G 
 rpool/ROOT/opensolari...@2008-12-12-20:55:37

rpool/ROOT/opensolaris-1   4.29G  4.06G  -
rpool/ROOT/opensolari...@install131M  2.65G  -
rpool/ROOT/opensolari...@2008-12-12-20:55:37102M  2.71G  -
rpool/dump 4.00G  4.00G  -
rpool/export   6.18G45K  -
rpool/export/catalogue  838M   810M  -
rpool/export/catalo...@241208_135510   25.9M   425M  -
rpool/export/catalo...@koha3   2.37M   423M  -
rpool/export/catalogue21.39G  1.38G  -
rpool/export/catalog...@koha3  2.04M   423M  -
rpool/export/catalog...@koha-3.0.0 1.51M   430M  -
rpool/export/catalogue3 802M   802M  -
rpool/export/catalog...@catalogue3  399K   802M  -
rpool/export/home  1.03G22K  -
rpool/export/home/annaw 676M   676M  -
rpool/export/home/henry 383M   383M  -
rpool/export/home/poutrain 20.5K  20.5K  -
rpool/export/local   18K18K  -
rpool/export/polynice  1.07G19K  -
rpool/export/polynice/apps 1.07G  1.07G  -
rpool/export/test36K18K  -
rpool/export/test-drupal   42.4M  42.4M  -
rpool/export/test/test1  18K18K  -
rpool/export/test_deleg  36K18K  -
rpool/export/test_deleg/toto 18K18K  -
rpool/export/www946M18K  -
rpool/export/www/cmi 18K18K  -
rpool/export/www/concur0318K18K  -
rpool/export/www/gm3647M   647M  -
rpool/export/www/intralif18K18K  -
rpool/export/www/latp   299M   299M  -
rpool/export/www/lif 18K18K  -
rpool/export/www/logs18K18K  -
rpool/export/www/mailman 18K18K  -
rpool/export/www/src 18K18K  -
rpool/export/www/support 18K18K  -
rpool/export/www/webmail 18K18K  -
rpool/export/www2   123M21K  -
rpool/export/www2/chorale.univ-provence.fr 8.33M  8.33M  -
rpool/export/www2/latp242.4M  22.3M  -
rpool/export/www2/latp2/sampta09   20.0M  20.0M  -
rpool/export/www2/www.latp.univ-mrs.fr 72.7M  68.4M  -
rpool/export/www2/www.latp.univ-mrs...@avantk

Re: [zones-discuss] high values for zones size in os2008.11

2009-04-29 Thread Dan Price
On Thu 30 Apr 2009 at 08:29AM, solarg wrote:
> hello all,
> i have a machine with os2008.11 that serves as a web server, and has 
> many zones installed.
> I'm surprised by the size of zones:
> # zfs list
> NAME   USED  AVAIL  REFER MOUNTPOINT
> rpool/zones/catalogue2/ROOT/zbe   4.49G  17.9G  7.47G  legacy
> rpool/zones/catalogue3/ROOT/zbe149M  17.9G  6.80G  legacy
> rpool/zones/test-drupal/ROOT/zbe   511M  17.9G  5.21G  legacy
> 
> on another os2008.11 machine, i created a new zone, and don't notice 
> these high values:
> # zfs list
> NAME   USED  AVAIL  REFER  MOUNTPOINT
> rpool/export/catalogue4   4.07M  16.1G21K  /export/catalogue4
> rpool/export/catalogue4/ROOT  4.05M  16.1G18K  legacy
> rpool/export/catalogue4/ROOT/zbe  4.03M  16.1G   235M  legacy
> 
> what is the meaning of REFER? can i gain more space?
> 
> thanks for help,

Gerard,

I can make a guess:  I suspect that space in your zones is being
consumed by data which is 'stuck' in zfs snapshots.  Can you do a 'zfs
list -t all'?  You might have an automatic snapshot service turned on,
or have manually made snapshots.

Or you might be using zfs clones?  It would be nice to see the output of:

zfs list -t all -o name,used,refer,origin

-dp

-- 
Daniel Price, Solaris Kernel Engineeringhttp://blogs.sun.com/dp
___
zones-discuss mailing list
zones-discuss@opensolaris.org


[zones-discuss] high values for zones size in os2008.11

2009-04-29 Thread solarg

hello all,
i have a machine with os2008.11 that serves as a web server, and has 
many zones installed.

I'm surprised by the size of zones:
# zfs list
NAME   USED  AVAIL  REFER MOUNTPOINT
rpool/zones/catalogue2/ROOT/zbe   4.49G  17.9G  7.47G  legacy
rpool/zones/catalogue3/ROOT/zbe149M  17.9G  6.80G  legacy
rpool/zones/test-drupal/ROOT/zbe   511M  17.9G  5.21G  legacy

on another os2008.11 machine, i created a new zone, and don't notice 
these high values:

# zfs list
NAME   USED  AVAIL  REFER  MOUNTPOINT
rpool/export/catalogue4   4.07M  16.1G21K  /export/catalogue4
rpool/export/catalogue4/ROOT  4.05M  16.1G18K  legacy
rpool/export/catalogue4/ROOT/zbe  4.03M  16.1G   235M  legacy

what is the meaning of REFER? can i gain more space?

thanks for help,

gerard

___
zones-discuss mailing list
zones-discuss@opensolaris.org