[zones-discuss] how to find global-zone from zone

2007-08-29 Thread Remco Fugers
Hi, I was wondering if it's possible to find out to which global zone a zone is related. (And not from Globalzone point of view!) It might happen (as a sysadmin) that you login to a zone but you need to perform maintenance in the global zone (i.e. Veritas VM -stuff). Thanks in advance Remco

Re: [zones-discuss] zonename

2007-08-29 Thread Boyd Adamson
Sabri Ali [EMAIL PROTECTED] writes: Hello! if  i'm in a zone localy how do i know the zone global, with which command ?? Think's This should probably be in the FAQ. It last came up about 2 weeks ago: http://www.opensolaris.org/jive/thread.jspa?threadID=35960 Boyd

Re: [zones-discuss] how to find global-zone from zone

2007-08-29 Thread Boyd Adamson
(Replying to the correct thread this time) Remco Fugers [EMAIL PROTECTED] writes: Hi, I was wondering if it's possible to find out to which global zone a zone is related.  (And not from Globalzone point of view!) It might happen (as a sysadmin) that you login to a zone but you need to

Re: [zones-discuss] how to find global-zone from zone

2007-08-29 Thread John Chase
Remco, There is no command to display the Global zone of a non-global zone but there are a few tricks that I have heard of. One is to create a file in the zone path of each zone and then read it from the non-global On the Global touch /zone_path/root/etc/global.hostname On the non

Re: [zones-discuss] how to find global-zone from zone

2007-08-29 Thread Steffen Weiberle
In a related, but similar situation. How does one know that they are actually in a non-global zone vs a global zone? (Using a committed interface). zonename(1). And zonecfg(1M) states that the name 'global' is reserved. Steffen Brandorr wrote: On 8/29/07, John Chase [EMAIL PROTECTED]

Re: [zones-discuss] how to find global-zone from zone

2007-08-29 Thread Björn Sobek
Hi, we implemented a cron-job in the global zone to run the following srcipt: #!/bin/ksh PATH=$PATH:/usr/sbin:/usr/bin OSVERSION=`uname -r | awk -F. '{print $2}'` if [ ${OSVERSION} -gt 9 ]; then zonename | grep global /dev/null 21 [ $? -ne 0 ] exit 0 for i in `zoneadm

Re: [zones-discuss] how to find global-zone from zone

2007-08-29 Thread Yanakiev, Vladimir
This is easy: In the global zone [EMAIL PROTECTED] zoneadm list global labv490-01z3 labv490-01z2 labv490-01z6 labv490-01z7 labv490-01z4 labv490wsz1

Re: [zones-discuss] how to find global-zone from zone

2007-08-29 Thread Brandorr
On 8/29/07, John Chase [EMAIL PROTECTED] wrote: Remco, There is no command to display the Global zone of a non-global zone but there are a few tricks that I have heard of. One is to create a file in the zone path of each zone and then read it from the non-global On the Global

Re: [zones-discuss] how to find global-zone from zone

2007-08-29 Thread Paul Kraus
On 8/29/07, Brandorr [EMAIL PROTECTED] wrote: In a related, but similar situation. How does one know that they are actually in a non-global zone vs a global zone? (Using a committed interface). `ps -ef` and look for pid 0,1,2,3; these should only be visible in a global zone. -- Paul Kraus

Re: [zones-discuss] how to find global-zone from zone

2007-08-29 Thread Christine Tran
Paul Kraus wrote: On 8/29/07, Brandorr [EMAIL PROTECTED] wrote: In a related, but similar situation. How does one know that they are actually in a non-global zone vs a global zone? (Using a committed interface). `ps -ef` and look for pid 0,1,2,3; these should only be visible in a global

Re: [zones-discuss] zonename

2007-08-29 Thread Brandorr
On 8/29/07, Boyd Adamson [EMAIL PROTECTED] wrote: Sabri Ali [EMAIL PROTECTED] writes: Hello! if i'm in a zone localy how do i know the zone global, with which command ?? Think's This should probably be in the FAQ. It last came up about 2 weeks ago:

Re: [zones-discuss] zonename

2007-08-29 Thread Michael Barto
This question has been asked before. This is the trick we use: Since the zone command /usr/sbin/zoneadm list -vi does not display the name of the global zone when logged on to a local zone, we added to the global zone OS filesystem in "/usr/bin" a script/command called "zone-global-name".

Re: [zones-discuss] zonename

2007-08-29 Thread Sabri Ali
Bonjour, It's correct if you have à local zone creating whitout -b option ! but if yoy are creating you local zone whith -b option the /usr in the local zone is not the same in the global zone !! SABRI ALI MEDIAPOST SERVICES DSI - Ressources Administrateur système 9 boulevard du

Re: [zones-discuss] how to find global-zone from zone

2007-08-29 Thread Michael Barto
Since this seems to be a common question that has shown up on this list from time to time, I have added our method to our Solaris Zone RunBook which is free and posted it at: http://www.logiqwest.com/dataCenter/Demos/RunBooks/Zones/listingGlobal.html Hope this helps till Sun finally puts a

[zones-discuss] Need code review: 6558857 ZSD callback locking cause deadlocks

2007-08-29 Thread Erik Nordmark
Fixing the above CR requires changing how locking is done across the ZSD callbacks. The new design is to determine what callbacks are needed while holding the usual locks, but not hold any locks across the actual callbacks. This holds up under extreme stress testing where zones come and go at

Re: [zones-discuss] Need code review: 6558857 ZSD callback locking cause deadlocks

2007-08-29 Thread Nicolas Williams
On Wed, Aug 29, 2007 at 03:52:49PM -0700, Dan Price wrote: On Wed 29 Aug 2007 at 03:47PM, Erik Nordmark wrote: Fixing the above CR requires changing how locking is done across the ZSD callbacks. The new design is to determine what callbacks are needed while holding the usual locks, but

Re: [zones-discuss] Need code review: 6558857 ZSD callback locking cause deadlocks

2007-08-29 Thread Erik Nordmark
Nicolas Williams wrote: Hmmm, someone commented (in the VSD case) that maybe we ought to have a common object-specific key facility. Here we have fixes to two different object-specific key facilities. I think a heads up to the RE for CR 6588504 is in order. And maybe we should think about