Re: [zones-discuss] Creating a zone with the -b option
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 As Enda points out, this is the supported method for creating "whole root" zones. The "create -b" subcommand to zonecfg(1M) acutally means start the configuration off with an empty or blank template. At the current time, this is equivalent to a zone with the above inherit-pkg-dir resources removed but that might not be the case in the future. dsc ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] Creating a zone with the -b option
Marlanne DeLaSource writes: > 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). It allows users inside the zone to write to the directories (/lib, /platform, /sbin, and /usr) that would otherwise be inherited from the global zone. When a directory is inherited, it's read-only inside the zone, even to all-powerful root. (Though root may, of course, mount other things underneath.) This can be helpful with non-Sun software that (nontheless and despite filesystem(5)) installs to /usr. For what it's worth, the two models are normally called "sparse root" and "whole root." > Is it supported ? Everything documented in man pages (such as the -b option) is supported, unless somehow explicitly disclaimed. -- James Carlson, KISS Network<[EMAIL PROTECTED]> Sun Microsystems / 1 Network Drive 71.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] Creating a zone with the -b option
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 ) http://docs.sun.com/app/docs/doc/817-1592/6mhahuooq?a=view 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. Enda 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@opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
[zones-discuss] Creating a zone with the -b option
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@opensolaris.org