Hi Marlanne

the -b option basically created a whole root zone.
Note that the best method of creating whole root zone is to follow the directions at the site below ( look for whole root zone )


look at the note in step 9, where you run the following as part of the zonecfg.

zonecfg:whole-1> remove inherit-pkg-dir dir=/sbin
zonecfg:whole-1> remove inherit-pkg-dir dir=/usr
zonecfg:whole-1> remove inherit-pkg-dir dir=/platform
zonecfg:whole-1> remove inherit-pkg-dir dir=/lib

So use above as opposed to the "-b" option. ( they give the same result basically but the documented result is the one to follow ).

Now as to what advantages it gives. Basically if you are installing an app that needs to install into any of the above locations then you will need to run with a whole root zone. But most apps do not require this. And some others can be configured to avoid these directories. For instance nearly all 3rd party apps run fine in sparse root zones, Oracle and apache being examples of apps that run fine on sparse root zones.

Their are advantages to using only sparse root zones if at all possible.
1 They require less physical space.
2 Are easier to administer ( as the core directories can only be modifed by the global zone admin )
     Quicker to patch/upgrade due to the shared dirs.
3 Require less VM, due to the shared libs in /usr only being loaded once from the global zone and shared among the other sparse zones.. That is, an app in the local zone will not need to load up shared libs from /usr that are already loaded, it can just grab them as is if they are already loaded. So less memory footprint.

So I'd advise you to use sparse root zones if at all possible. Only is the app has to use these directories woudl you then use whole root zones.


Marlanne DeLaSource wrote:

What are the advantages/disadvantages of creating a zone with the -b option 
(like in the excellent page here http://users.tpg.com.au/bdgcvb/zones.html by 
Brendan Gregg). It duplicates a lot of space but what can be done that can't be 
with a normal zone (called a small zone in the page quoted above).

Is it supported ?

Thanks for your answers.

This message posted from opensolaris.org
zones-discuss mailing list

zones-discuss mailing list

Reply via email to