Managing Zones using ZFS



Martin has a really useful blog entry on using a new Nevada build 40 feature for cloning a zone. No need to hack it anymore, it's simply there.

I have found this capability, even through hacking, to be invaluable. While it saves me hours of cumulative time waiting, it also enables me to concentrate on whatever the problem is at hand. For example, I deployed an N-Tier Highly Available (sans a single laptop) application using zones on my laptop in under an hour. That included zone creation, product installation and configuration, etc.

I'll tell you where I am having a problem, though. Getting my head around which zone does what and then understanding the zfs/zone dependency tree. For example, at the peak I had roughly 20 zones cloned and slightly tweaked to meet my needs. Grokking which zone had what tweak was problematic. The temporary solution was to create (using the hack) snapshots with names such as "appserver@TWEAKED_THIS" and "appserver@after_TWEAKED_THIS_and_then_tweaked_that". I would get a few levels deep. Then, of course, when it comes time to clean it all up, it's not easy (that I know of) to find out which cloned zones depend on what other cloned zones. There is, of course, the zfs "origin" property, but I wish there were a zfs command to recursively print out the entire zfs dependency tree from pool root down to leaf nodes. "zfs -r", which seems to stop at snapshots (IIRC) and doesn't pick up the clones of snapshots. The origin property does, though. A perl or shell script could probably do it with some thought.

I haven't tried build 40 yet, so some of this may be addressed.


Comments:

Now is a good time to mention that John will be speaking about ZFS at the August meeting of UUASC-OC. Everyone is invited!

Posted by Rabbs on June 05, 2006 at 03:24 AM PDT #

Post a Comment:
Comments are closed for this entry.
About

John Clingan

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today