[zones-discuss] [Fwd: cool]

2009-04-30 Thread Gary Combs

FYI...

 Original Message 
Subject:cool
Date:   Thu, 30 Apr 2009 16:04:20 -0500
From:   Linda kateley 
Reply-To:   linda.kate...@sun.com
To: 	Danielle Weinberg , Jeff Huber 
, Mark Ramczyk , Scott 
Seighman , "Karen (Kerr) Greenland" 
, gse-sys-na-cent...@sun.com, Dave Misch 
, Gary Czurylo , Adele Yuen 
, Bonnie Clemens , Stephen 
Boettcher , Annie Chan , 
OS Ambassadors 




In the past i have had just about every customer i talk to wanting a 
nice gui for zone monitoring..


I just ran into this and it looks like the real deal.

http://www.init6.com/slideshow-p1.html

--
Linda Kateley
Architect
Sun Microsystems
612-807-6349



--
  * Gary Combs *
Technical Marketing

*Sun Microsystems, Inc.*
3295 NW 211th Terrace
Hillsboro, OR 97124 US
Phone x32604/+1 503 715 3517
Fax 503-715-3517
Email gary.co...@sun.com


"Weakness of attitude becomes weakness of character." - /Albert Einstein/

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

Re: [zones-discuss] zones in opensolaris (os200811) differs from zones in solaris 10?

2009-04-30 Thread Edward Pilatowicz
On Thu, Apr 30, 2009 at 09:33:57AM -0600, Jerry Jelinek wrote:
> solarg wrote:
>> hello all,
>> i'm wondering how to create a sparse zone in os2008.11:
>
> Sparse zones are not currently supported on opensolaris.
>
> This is tracked as:
> 2550 Support for sparse root zones
>
>> - in solaris 10, just use "create" instead of "create -b" does a  
>> "sparse" zone
>> - in os2008.11, you have to add manually:
>> add inherit-pkg-dir
>> set dir=/lib
>> end
>> add inherit-pkg-dir
>> set dir=/platform
>> end
>> add inherit-pkg-dir
>> set dir=/sbin
>> end
>> add inherit-pkg-dir
>> set dir=/usr
>> end
>
> Don't do that.
>
> The IPS pkg software does not currently support the concept
> of a sparse zone.  The inherit-pkg-dir directive is
> intimately tied to the packaging software.  Only the svr4
> pkg software supports sparse zones right now.
>

to help avoid this type of confusion in the future i just filed:

8567 ipkg zones verify callback should abort if it sees inherit-pkg-dir

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


Re: [zones-discuss] [Fwd: df -h in zone cluster]

2009-04-30 Thread Joseph Balenzano
I think this is the same issue as CR 6798104.  There is a workaround you 
can try which is documented in the report, which is use a df utility




Get a private copy of df from a Solaris 10 8/07 or 120011-14 and use the 
*private* copy when you need to check on the filesystem status.

*** DO NOT replace the df binary that comes with S10U6 with an older version ***



Ellard Roush wrote:

Hi,

The question raised by Sunil seems to be a zones question.
Does anyone have an explanation or is this a bug ?

Regards,
Ellard

 Original Message 
Subject: df -h in zone cluster
Date: Thu, 30 Apr 2009 10:28:38 -0400
From: Sunil Sohani 
To: sunclus...@sun.com

Hi,

IHAC running "zone clusters". They are are running some monitoring 
software within zone cluster which does "df -h" to monitor disk space.


Here is sample output:

# df -h
Filesystem size   used  avail capacity  Mounted on
/0K   8.1G13G39%/
/dev21G   8.1G13G39%/dev
/lib31G   9.6G21G32%/lib
/platform   31G   9.6G21G32%/platform
/sbin   31G   9.6G21G32%/sbin
/usr31G   9.6G21G32%/usr
/usr/local  31G   9.6G21G32%/usr/local
proc 0K 0K 0K 0%/proc
ctfs 0K 0K 0K 0%/system/contract
mnttab   0K 0K 0K 0%/etc/mnttab
objfs0K 0K 0K 0%/system/object
swap17G   376K17G 1%/etc/svc/volatile
fd   0K 0K 0K 0%/dev/fd
swap17G64K17G 1%/tmp
swap17G56K17G 1%/var/run
/sbin   31G   9.6G21G32%/var/cluster/sbin.org
/usr/cluster/lib/sc/ifconfig_client_proxy
31G   9.6G21G32%/sbin/ifconfig
zdtgdbq01/odb0K29K86G 1%/odb
zdtgdbq01/odb/dtg02/flashdata01
 0K   5.1G   4.9G52%
/odb/dtg02/flashdata01

zdtgdbq01/odb/dtg02/oraarch
 0K   525M   9.5G 6%/odb/dtg02/oraarch
zdtgdbq01/odb/dtg02/orabackup
 0K14M  10.0G 1%/odb/dtg02/orabackup
zdtgdbq01/odb/dtg02/orabin
 0K   2.2G   7.8G22%/odb/dtg02/orabin
zdtgdbq01/odb/dtg02/oradata01
 0K   1.2G   8.8G12%/odb/dtg02/oradata01
zdtgdbq01/odb/dtg02/oradata02
 0K   1.3G   8.7G13%/odb/dtg02/oradata02
zdtgdbq01/odb/oem01/orabin
 0K   1.9G   8.1G19%/odb/oem01/orabin

zdtgdbq01 is a ZFS pool used for Oracle database that has been added 
to this "zone cluster". Monitoring software looks at "size" column and 
sees "0K" and starts sending alerts.


Is there a solution for this? Or is that how it is going to be and 
they need to change the way they monitor it?


Customer thinks they haven't configured the resource group properly.

Sunil

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



--
---
  __ Joseph Balenzano
  /_/\   ISV Engineering
 / \\ \  Sun Microsystems Inc.
/_\ \\ / joseph.balenz...@sun.com 
   /_/ \/ / /Phone/Fax 203.653.4186 
  /_/ /   \//\  
  \_\//\   / /
   \_/ / /\ /
\_/ \\ \
 \_\ \\

  \_\/
-- 


___
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:
> 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


[zones-discuss] [Fwd: df -h in zone cluster]

2009-04-30 Thread Ellard Roush

Hi,

The question raised by Sunil seems to be a zones question.
Does anyone have an explanation or is this a bug ?

Regards,
Ellard

 Original Message 
Subject: df -h in zone cluster
Date: Thu, 30 Apr 2009 10:28:38 -0400
From: Sunil Sohani 
To: sunclus...@sun.com

Hi,

IHAC running "zone clusters". They are are running some monitoring software 
within zone cluster which does "df -h" to monitor disk space.


Here is sample output:

# df -h
Filesystem size   used  avail capacity  Mounted on
/0K   8.1G13G39%/
/dev21G   8.1G13G39%/dev
/lib31G   9.6G21G32%/lib
/platform   31G   9.6G21G32%/platform
/sbin   31G   9.6G21G32%/sbin
/usr31G   9.6G21G32%/usr
/usr/local  31G   9.6G21G32%/usr/local
proc 0K 0K 0K 0%/proc
ctfs 0K 0K 0K 0%/system/contract
mnttab   0K 0K 0K 0%/etc/mnttab
objfs0K 0K 0K 0%/system/object
swap17G   376K17G 1%/etc/svc/volatile
fd   0K 0K 0K 0%/dev/fd
swap17G64K17G 1%/tmp
swap17G56K17G 1%/var/run
/sbin   31G   9.6G21G32%/var/cluster/sbin.org
/usr/cluster/lib/sc/ifconfig_client_proxy
31G   9.6G21G32%/sbin/ifconfig
zdtgdbq01/odb0K29K86G 1%/odb
zdtgdbq01/odb/dtg02/flashdata01
 0K   5.1G   4.9G52%/odb/dtg02/flashdata01
zdtgdbq01/odb/dtg02/oraarch
 0K   525M   9.5G 6%/odb/dtg02/oraarch
zdtgdbq01/odb/dtg02/orabackup
 0K14M  10.0G 1%/odb/dtg02/orabackup
zdtgdbq01/odb/dtg02/orabin
 0K   2.2G   7.8G22%/odb/dtg02/orabin
zdtgdbq01/odb/dtg02/oradata01
 0K   1.2G   8.8G12%/odb/dtg02/oradata01
zdtgdbq01/odb/dtg02/oradata02
 0K   1.3G   8.7G13%/odb/dtg02/oradata02
zdtgdbq01/odb/oem01/orabin
 0K   1.9G   8.1G19%/odb/oem01/orabin

zdtgdbq01 is a ZFS pool used for Oracle database that has been added to this 
"zone cluster". Monitoring software looks at "size" column and sees "0K" and 
starts sending alerts.


Is there a solution for this? Or is that how it is going to be and they need to 
change the way they monitor it?


Customer thinks they haven't configured the resource group properly.

Sunil

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


Re: [zones-discuss] zones in opensolaris (os200811) differs from zones in solaris 10?

2009-04-30 Thread Christine Tran
On Thu, Apr 30, 2009 at 11:25 AM, solarg  wrote:
> hello all,
> i'm wondering how to create a sparse zone in os2008.11:
> - in solaris 10, just use "create" instead of "create -b" does a "sparse"
> zone
> - in os2008.11, you have to add manually:
> add inherit-pkg-dir

Ermmm ... I don't think zones in OS is of the same type as zones in
S10.  They are of type ipkg, and in 10, they can be of type native,
branded, etc.  Zones in OS are independent of the global zone, they
pull their own packages using the package manager.  You may even say
that the concept of "sparse" and "whole" doesn't apply to zone in OS.

CT

-- 
http://www.apress.com/book/view/1430218916
---
Pro OpenSolaris - It's what's for dinner.
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] zones in opensolaris (os200811) differs from zones in solaris 10?

2009-04-30 Thread Jerry Jelinek

solarg wrote:

hello all,
i'm wondering how to create a sparse zone in os2008.11:


Sparse zones are not currently supported on opensolaris.

This is tracked as:
2550 Support for sparse root zones

- in solaris 10, just use "create" instead of "create -b" does a 
"sparse" zone

- in os2008.11, you have to add manually:
add inherit-pkg-dir
set dir=/lib
end
add inherit-pkg-dir
set dir=/platform
end
add inherit-pkg-dir
set dir=/sbin
end
add inherit-pkg-dir
set dir=/usr
end


Don't do that.

The IPS pkg software does not currently support the concept
of a sparse zone.  The inherit-pkg-dir directive is
intimately tied to the packaging software.  Only the svr4
pkg software supports sparse zones right now.

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


[zones-discuss] zones in opensolaris (os200811) differs from zones in solaris 10?

2009-04-30 Thread solarg

hello all,
i'm wondering how to create a sparse zone in os2008.11:
- in solaris 10, just use "create" instead of "create -b" does a 
"sparse" zone

- in os2008.11, you have to add manually:
add inherit-pkg-dir
set dir=/lib
end
add inherit-pkg-dir
set dir=/platform
end
add inherit-pkg-dir
set dir=/sbin
end
add inherit-pkg-dir
set dir=/usr
end

but one thing i don't understand is the space devoted to the zones:

here for the "sparse" zone
rpool/export/toto  237M  15.8G37K  /export/toto
rpool/export/toto/ROOT 236M  15.8G18K  legacy
rpool/export/toto/ROOT/zbe 236M  15.8G   236M  legacy

here for a "whole" zone:
rpool/export/catalogue4   4.93M  15.8G37K  /export/catalogue4
rpool/export/catalogue4/ROOT  4.90M  15.8G18K  legacy
rpool/export/catalogue4/ROOT/zbe  4.88M  15.8G   235M  legacy


thanks for help,

gerard

___
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