Re: [zones-discuss] monitor number of lwp in zone

2012-04-26 Thread Hung-Sheng Tsao (LaoTsao ) Ph. D.


try this link
http://hub.opensolaris.org/bin/view/Project+zonestat/files?viewer=attachmentslanguage=en

On 4/26/2012 11:33 AM, Christian Meier wrote:

Dear List,

with the solaris resource control feature you are able to set the max
number of LWP for a zone

e.g

bash-3.00# prctl -n zone.max-lwps -i zone v0136
zone: 20: v0136
NAMEPRIVILEGE   VALUEFLAG   ACTION
RECIPIENT
zone.max-lwps
 privileged120   -   deny
 -
 system  2.15G max
deny -

with the rctladm you're able to generate warning if the limit was reached:

Apr 26 16:34:52 g0057 genunix: privileged rctl zone.max-lwps (value 120)
exceeded by process 15930 in zone v0136.

is there a simple way to get the actual value of the zone(s)?

actual known ways:
prstat:
/usr/bin/prstat -LZ

with sed,grep and awk possible:
  /usr/bin/prstat -LZ -n 1,10 1 1 | sed '1,3d' | grep -v Total
  0  216  111M  139M   6.8%   0:09:05 0.1% global
 20  100   40M   23M   1.1%   0:00:32 0.0% v0136


kstat:
kstat -p unix:0:lwp_cache:buf_inuse
unix:0:lwp_cache:buf_inuse  319

but I get only the sum of all lwp on the system, not for a special zone

ps:
ps -efZ -o zone,zoneid,lwp,args | grep global | wc -l
  219
ps -efZ -o zone,zoneid,lwp,args | grep v0136 | wc -l
  105

on Solaris 11 it is possible to get these values by zonestat
e.g.

$ zonestat -p -P zones -r processes,lwps 1 1
interval:processes:system-limit:global:66:0.22%:-:-
interval:processes:system-limit:v0134:30:0.10%:-:-
interval:lwps:system-limit:global:670:0.00%:-:-
interval:lwps:system-limit:v0134:112:0.00%:-:-

but for solaris 10?

any hints are very welcome

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

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


Re: [zones-discuss] v2v solaris 8-9 zone to solaris 10 zone

2010-09-20 Thread LaoTsao

 hi
may be one can do
1)in physical machine do live upgrade from s8 to s10 09/10
2)use p2v to migrate to s10 zone
regards



On 9/20/2010 2:21 PM, Jordan Vaughan wrote:

Hi Gael,

No, there is no supported way to convert an S8- or S9-branded zone to 
a native Solaris 10 zone.


Regards,
Jordan

On 09/17/10 06:27 PM, Gael wrote:

Hello
Now that p2v supports S10 with U9, is there some automated  easier way
to convert existing solaris 8/9 branded zones into native S10 whole
zones using the global zone os version ?
Regards

--
Gael Martinez




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

___
zones-discuss mailing list
zones-discuss@opensolaris.org
attachment: laotsao.vcf___
zones-discuss mailing list
zones-discuss@opensolaris.org

Re: [zones-discuss] Need help on Solaris 10 LDoms; Hardware is T5140

2010-09-16 Thread LaoTsao

 checkout
http://wikis.sun.com/display/SolarisLogicalDomains/LDoms%20Community%20Cookbook
http://www.sun.com/blueprints/0207/820-0832.pdf
http://www.timwort.org/SA345_HTML/index.htm

On 9/16/2010 2:23 PM, Sanjay Akula wrote:

Hi Users,

I'm new to Solaris 10 LDoms, I need some help to configure T5140 
server and have a couple Ldoms Virtual machines in it.


Help me please...


--
Regards,

SysAdmin


___
zones-discuss mailing list
zones-discuss@opensolaris.org
attachment: laotsao.vcf___
zones-discuss mailing list
zones-discuss@opensolaris.org

Re: [zones-discuss] Add mountpoint to zone without a reboot

2010-08-25 Thread LaoTsao



On 8/25/2010 2:32 PM, Mike DeMarco wrote:

Is it possible to add a new zfs filesystem to a zone without rebooting the zone?

yes

I have a need to add a filesystem to a zone for a couple of weeks but can not 
take an outage of the zone.
attachment: laotsao.vcf___
zones-discuss mailing list
zones-discuss@opensolaris.org

Re: [zones-discuss] Can I recover zones from a dead system/disk?

2010-08-25 Thread LaoTsao

 if U create mirror  zfs root pool by attach the 2nd disk
one need to install bootblk on the 2nd vdev
if U install mirror root pool during the installation then bootblk are 
already installed on both vdev

not sure this ur issues:-(
regards


On 8/25/2010 7:14 PM, Robert Hartzell wrote:

On 08/25/10 03:23 PM, Ian Collins wrote:

On 08/26/10 10:16 AM, Robert Hartzell wrote:

Ok I was able to change the zoned property and mount to another
location. I was able to recover the database... but still couldn't
attach the zone.
Now I can get back to working on getting the disk to boot again.

Thanks for all the help.


No problem, just remember - backups are a wonderful thing!



Oh yes I know... Bacula is awesome! I have complete backups thats not 
the issue. I rebuilt the system with new disks and restored from 
backups last week.


I am trying to figure out what the reason is for having a mirrored 
rpool. In this case the first disk failed and the second disk wont 
complete booting up for some reason. The disk is fine.


If I import the rpool from the second disk to another system most of 
the zfs file systems are not available so the data can't be retrieved.
If I boot with install media and import the pool the zone datasets are 
still not available and I have the same issue with exporting/importing 
the zones.


Too bad there isn't a tool somewhere that's designed to recover an 
rpool thats healthy but for some reason won't boot.


Anyways it was just an exercise on trying to recover a down system.

attachment: laotsao.vcf___
zones-discuss mailing list
zones-discuss@opensolaris.org