Re: [zones-discuss] whole root not installed ?!?
My fault entirely; it is well documented here: http://docs.sun.com/app/docs/doc/819-2450/zones.intro-1?l=en&a=view kido -- This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] whole root not installed ?!?
Mike, Frank , thank you both for your quick and accurate response! kido -- This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] whole root not installed ?!?
On Sat, Jul 3, 2010 at 7:35 AM, Daniel Dinu wrote: > Thank you so much for your answer! > > So, when I thought that I cannot install a whole root zone, in fact I had 2 > already installed...that's funny :) > > I have to admit that I checked the files in /etc/zones and I was a little bit > surprised by their (lack of) content regarding inherited dirs, but I thought > this should be hard-coded somewhere else...whatever... > > Is this documented somewhere else, besides bugs.opensolaris.org ? Cause I've > read quite a few pages about zones before starting to install one, and I > don't recall any mention of this...OK, I admit I didn't check > bugs.opensolaris.org, but as a beginner I don't read the bugs database :) Completely misleading information is available at http://hub.opensolaris.org/bin/view/Community+Group+zones/faq#HQWhatisaglobalzoneSparserootzoneWholerootzoneLocalzone. Note that it talks about Solaris 10 rather than OpenSolaris and is correct from the Solaris 10 perspective. I'm not aware of any docs that are correct from the OpenSolaris perspective. -- Mike Gerdts http://mgerdts.blogspot.com/ ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] whole root not installed ?!?
Thank you so much for your answer! So, when I thought that I cannot install a whole root zone, in fact I had 2 already installed...that's funny :) I have to admit that I checked the files in /etc/zones and I was a little bit surprised by their (lack of) content regarding inherited dirs, but I thought this should be hard-coded somewhere else...whatever... Is this documented somewhere else, besides bugs.opensolaris.org ? Cause I've read quite a few pages about zones before starting to install one, and I don't recall any mention of this...OK, I admit I didn't check bugs.opensolaris.org, but as a beginner I don't read the bugs database :) Thank you, again, kido -- This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] whole root not installed ?!?
On Sat, 03 Jul 2010 13:36:51 +0200, Daniel Dinu wrote: > zone1 is installed in /vol1/zone1 and zone2 in /vol1/zone2. > zone1 was configured as a "sparse root" zone (I used "create" command). > zone2 was configured as a "whole root" zone (I used "create -b" command). > Still, the space used is the same for both zones, as depicted aboveOf > course, I expected that zone2 to use more space than zone1 (GB vs. MB). > > Can anybody tell what have I done wrong? Is there something else I should've > done, besides using "create -b" for the whole root zone creation? nothing wrong, there are no sparse root zones for the ipkg(5) branded zones in OpenSolaris. --- frankB ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] whole root not installed ?!?
On Sat, Jul 3, 2010 at 6:36 AM, Daniel Dinu wrote: > Hi guys, > > This is my version of Opensolaris: > Sun Microsystems Inc. SunOS 5.11 snv_111b November 2008 > > I have installed 2 zones on it: > k...@opensolaris:~$ zoneadm list -cv > ID NAME STATUS PATH BRAND IP > 0 global running / native shared > 4 zone1 running /vol1/zone1 ipkg shared > 5 zone2 running /vol1/zone2 ipkg shared > > Filesystem used is zfs. > k...@opensolaris:~$ zfs list > NAME USED AVAIL REFER MOUNTPOINT > rpool 4.79G 10.8G 81.5K /rpool > rpool/ROOT 3.31G 10.8G 19K legacy > rpool/ROOT/opensolaris 8.55M 10.8G 2.90G / > rpool/ROOT/opensolaris-1 776K 10.8G 2.89G / > rpool/ROOT/opensolaris-2 3.30G 10.8G 3.12G / > rpool/dump 511M 10.8G 511M - > rpool/export 5.60M 10.8G 21K /export > rpool/export/home 5.58M 10.8G 21K /export/home > rpool/export/home/kido 5.56M 10.8G 5.56M /export/home/kido > rpool/exported 20K 100M 20K /rpool/exported > rpool/swap 512M 11.2G 101M - > rpool/zone1 243M 257M 22K /vol1/zone1 > rpool/zone1/ROOT 243M 257M 19K legacy > rpool/zone1/ROOT/zbe 243M 257M 243M legacy > rpool/zone2 242M 4.76G 22K /vol1/zone2 > rpool/zone2/ROOT 242M 4.76G 19K legacy > rpool/zone2/ROOT/zbe 242M 4.76G 242M legacy > > zone1 is installed in /vol1/zone1 and zone2 in /vol1/zone2. > zone1 was configured as a "sparse root" zone (I used "create" command). > zone2 was configured as a "whole root" zone (I used "create -b" command). > Still, the space used is the same for both zones, as depicted aboveOf > course, I expected that zone2 to use more space than zone1 (GB vs. MB). Sparse root zones do not exist with OpenSolaris. When you use zonecfg's "create" (without -b), the file /etc/zones/SUNWdefault.xml is used as the initial configuration for the zone. With "create -b", /etc/zones/SUNWblank.xml is used. On OpenSolaris, these files are the same because the new packaging system does not support sparse zones. In Solaris 10, SUNWdefault.xml listed /usr and several other directories as inherit-pkg-dir. Thus, the zones were sparse. SUNWblank.xml listed no inherit-pkg-dirs. Sparse zone support was just fully removed from the source: http://bugs.opensolaris.org/view_bug.do?bug_id=6939693 http://hg.genunix.org/onnv-gate.hg/rev/76969fc28795 In earlier days (such as a year ago when the release you are using was new), it seemed as though there was some interest in continuing to support sparse root zones with the ipkg brand (but no code released to support it). However, other factors have made sparse zones less important than they were 5+ years ago when Solaris 10 was released. Those that I have observed are - The new packaging system tends to lead to smaller installations by default - Typical hard drives are much larger - ZFS compression and deduplication can reduce the disk usage -- Mike Gerdts http://mgerdts.blogspot.com/ ___ zones-discuss mailing list zones-discuss@opensolaris.org