Re: [zones-discuss] how long would it take to install a zone on Sun
On 9/19/07, Dan Price <[EMAIL PROTECTED]> wrote: > By default /opt will be *copied* from the global zone. If you want > it to be "sparse" instead (which means it will be a loopback, read-only > filesystem) then add an inherit-pkg-dir entry for /opt. This will > usually significantly speed up installation, especially if you have > a lot of stuff in /opt. I initially thought this was a good idea, but life in the trenches says otherwise. I've found it extremely common that software needs to be installed into /opt - sometimes via pkgadd and sometimes otherwise. If software is installed via pkgadd, single-zone installation of software is just broken with an inherited /opt. If it is installed via another mechanism, you can mount other file systems on subdirectories of /opt - but means that you have to create the mount point in the global zone. This has the potential to complicate zone migration and causes confusion for those that are already struggling with zones and inherited directories. -- Mike Gerdts http://mgerdts.blogspot.com/ ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] how long would it take to install a zone on Sun
I have scripted out my zone builds for consistency and to make site specific additions to the new zones post install. Assuming the zone root filesystem is on a different disk from the OS, it takes about 15 minutes to create a sparse zone and 25 minutes to create a whole root zone on an E2900. That includes the config, install, initial boot of the zone, and about 1 minute of site specific post-install setup in the zone. Phil This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] how long would it take to install a zone on Sun
On Wed 19 Sep 2007 at 10:21AM, Steffen Weiberle wrote: > Hi Dick, > > Dick Davies wrote: > > On 19/09/2007, Steffen Weiberle <[EMAIL PROTECTED]> wrote: > > > > > >>On ZFS, with Nevada, a snapshot and then clone is created, so it > >>is very fast. > > > > > > That's also the case in Solaris 10 update 4, I believe. > > That is not my experience, and I just tried it on build 12 (not > GA version), and it did not create a ZFS snapshot nor a clone of Correct. Because we can't upgrade zones living on zfs filesystems (yet) we left this feature out of S10 U4. It is, however, in Nevada. -dp -- Daniel Price - Solaris Kernel Engineering - [EMAIL PROTECTED] - blogs.sun.com/dp ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] how long would it take to install a zone on Sun
On Tue 18 Sep 2007 at 11:06PM, sunnie wrote: > After reading some material about zoneadm clone, it seems to me that > such a fast zone creation requires the template zone to be on a zfs > file system. However, if not, anything else can help speed up > installing zone? Especially, at present, my SUNOS only have a global > zone. By default /opt will be *copied* from the global zone. If you want it to be "sparse" instead (which means it will be a loopback, read-only filesystem) then add an inherit-pkg-dir entry for /opt. This will usually significantly speed up installation, especially if you have a lot of stuff in /opt. -dp -- Daniel Price - Solaris Kernel Engineering - [EMAIL PROTECTED] - blogs.sun.com/dp ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] how long would it take to install a zone on Sun
Hi Dick, Dick Davies wrote: > On 19/09/2007, Steffen Weiberle <[EMAIL PROTECTED]> wrote: > > >>On ZFS, with Nevada, a snapshot and then clone is created, so it >>is very fast. > > > That's also the case in Solaris 10 update 4, I believe. That is not my experience, and I just tried it on build 12 (not GA version), and it did not create a ZFS snapshot nor a clone of that snapshot. This partial ZFS list shows the difference between S10 and Nevada. I just cloned a zone who's zonepath is in /zones. You will see an old clone done with NV 60 still in the pool. # zfs list NAME USED AVAIL REFER MOUNTPOINT mypool77.5G 24.9G 2.45G /mypool mypool/data 52.9G 24.9G 1.11G /mypool/data mypool/data/iso 51.8G 24.9G 51.8G /mypool/data/iso mypool/jumpstart 21.3G 24.9G 21.3G /jumpstart mypool/zones-nv60-070320 529M 24.9G 27.5K /export/zones mypool/zones-nv60-070320/zone186 15.4M 24.9G 520M /export/zones/zone186 mypool/zones-nv60-070320/zoneX 514M 24.9G 511M /export/zones/zoneX mypool/zones-nv60-070320/[EMAIL PROTECTED] 2.53M - 512M - mypool/zones-s10u4b12 228M 24.9G 228M /zones # ls -l /zones total 9 drwx-- 4 root root 4 Aug 9 11:47 zone-shared drwx-- 4 root root 4 Aug 9 11:01 zone1 drwx-- 5 root root 5 Sep 19 10:11 zone2 zone2 is a clone of zone-shared # zoneadm list -cv ID NAME STATUS PATH BRANDIP 0 global running/ native shared - zone1installed /zones/zone1 native excl - zone-shared installed /zones/zone-shared native shared - zone2installed /zones/zone2 native shared Steffen ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] how long would it take to install a zone on Sun
On 19/09/2007, Steffen Weiberle <[EMAIL PROTECTED]> wrote: > On ZFS, with Nevada, a snapshot and then clone is created, so it > is very fast. That's also the case in Solaris 10 update 4, I believe. -- Rasputin :: Jack of All Trades - Master of Nuns http://number9.hellooperator.net/ ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] how long would it take to install a zone on Sun
sunnie wrote: > After reading some material about zoneadm clone, it seems to me that such a > fast zone creation requires the template zone to be on a zfs file system. > However, if not, anything else can help speed up installing zone? > Especially, at present, my SUNOS only have a global zone. It is faster with the zonepath on ZFS, but clones are relatively fast on UFS as well. At least sparse zones. On my laptop about 30 seconds or so, last time I actually payed attention. Compared to five to ten minutes if not a clone. What I like about cloaning is that the SMF repository is copied. The initial boot of a cloned zone is the part I really appreciate being accelerated. Plus all the customizations also carried over, of course. On ZFS, with Nevada, a snapshot and then clone is created, so it is very fast. Steffen > > > This message posted from opensolaris.org > ___ > zones-discuss mailing list > zones-discuss@opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] how long would it take to install a zone on Sun
After reading some material about zoneadm clone, it seems to me that such a fast zone creation requires the template zone to be on a zfs file system. However, if not, anything else can help speed up installing zone? Especially, at present, my SUNOS only have a global zone. This message posted from opensolaris.org ___ zones-discuss mailing list zones-discuss@opensolaris.org
Re: [zones-discuss] how long would it take to install a zone on Sun Sparc?
On 9/18/07, sunnie <[EMAIL PROTECTED]> wrote: > it seems that very long ? > anything else I can do to speed it? Configure, install, boot, then halt one zone that serves as a good base configuration. The use "zoneadm clone". Since you are on an OpenSolaris list, I'm assuming that you are not running Solaris 10. If this is the case and your template zone has a zonepath at the root of a zfs file system, clones can be created in seconds. The variant of the code that I wrote[1] (which doesn't do sysidcfg) could do it in less than a second on the slowest machine that OpenSolaris supports. 1. http://mgerdts.blogspot.com/2006/02/zone-created-in-0922-seconds.html -- Mike Gerdts http://mgerdts.blogspot.com/ ___ zones-discuss mailing list zones-discuss@opensolaris.org