Around B43 Solaris Zones were given a new configuration attribute: dataset. This allows us to provide ZFS within a zone itself.
Before I continue, I think we should talk about ZFS terminology for a second. When I first started out with ZFS I found this idea of nested filesystems a bit odd. I remember watching the flash demo’s created by Dan Price and wondering why he kept creating filesystems within filesystems. When I see /storage/users/benr I think directories, not nested filesystems. But, over time as I’ve used ZFS more and more I’ve learned to adapt my thinking and now see the power and flexability provided. Instead of thinking of nested filesystems we can think of datasets within a pool which provide end-point filesystems. Of course to really see how this works you should sit down and look at the beauty of ZFS’s design (this is a good starting point, or listen to the designers describe in this video). And so for now, a pool is base structure that ties layout to disk, datasets are abstractions that act as a root for other filesystems, and filesystems are what you typically think of for storing data.
Back to the joys of ZFS… If your already using ZFS and Zones you have everything you need, you just need to connect the two. Lets see how.
Lets first take a look at the zone we’re going to modify using zonecfg‘s info option:
root@aeon ~$ zonecfg -z playzone001 info
zonename: playzone001
zonepath: /ultrastor/playzone001
autoboot: true
bootargs:
pool:
limitpriv:
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
net:
address: 10.0.0.24
physical: nge0
As you can see, nothing special or interesting about it.
Now lets create a ZFS dataset, a filesystem that will host future filesystems within the zone:
root@aeon ~$ zfs create ultrastor/playzone001_ds
That was simple. Now lets give that dataset to the zone to use. We’ll use zonecfg to set the “dataset” resource’s “name” property which points to the dataset we just created. After making config change we’ll need to reboot the zone to make it take effect.
root@aeon ~$ zonecfg -z playzone001 'add dataset; set name="ultrastor/playzone001_ds"; end; verify; commit' root@aeon ~$ zoneadm -z playzone001 reboot
Done! Now lets have a looksie…
root@aeon ~$ zlogin playzone001
[Connected to zone 'playzone001' pts/15]
Last login: Sat Sep 30 02:07:13 on pts/21
Sun Microsystems Inc. SunOS 5.11 snv_47 October 2007
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
ultrastor 251G 115G 66.3G /ultrastor
ultrastor/playzone001_ds 24.5K 115G 24.5K /ultrastor/playzone001_ds
# df -h
Filesystem size used avail capacity Mounted on
...
ultrastor/playzone001_ds
366G 24K 115G 1% /ultrastor/playzone001_ds
Notice that its already mounted, but the mountpoint is ugly. Lets fix that and create a new filesystem.
# zfs set mountpoint=/zfs ultrastor/playzone001_ds
# df -h
Filesystem size used avail capacity Mounted on
...
ultrastor/playzone001_ds
366G 24K 115G 1% /zfs
# zfs create ultrastor/playzone001_ds/web
# zfs set mountpoint=/web ultrastor/playzone001_ds/web
# df -h /web
Filesystem size used avail capacity Mounted on
ultrastor/playzone001_ds/web
366G 24K 115G 1% /web
# zfs snapshot ultrastor/playzone001_ds/web@snap1
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
ultrastor 251G 115G 66.3G /ultrastor
ultrastor/playzone001_ds 71.5K 115G 24.5K /zfs
ultrastor/playzone001_ds/web 24.5K 115G 24.5K /web
ultrastor/playzone001_ds/web@snap1 0 - 24.5K -
As you can see, using datasets within a zone is easy to do and adds a lot of power to your container deployments.
It should be noted… functionality within a zone isn’t prefect, for instance the pool and dataset isn’t hidden bellow the zone. It’d be nice ultimately to mask that somehow so you just saw “zfs” as the pool for instance. More noteworthy, however, zfs create -V (size) won’t work within the zone, it gets into a weird state where the filesystem is created but the size ignored, and then you can’t destroy it from within the zone, so you have to go back out to the globalzone and fix it there. But, thats pretty minor.
Hello my friends
Restore confidence — take Viagra!
buy viagra
order viagra
Click Here to Order Viagra
http://www.netscape.com/member/buyviagradrjohn Buy Viagra
http://www.propeller.com/member/orderviagradrjohn2 Order Viagra
Buy Viagra Professional Only $2.772 Best Price
Decreases in red blood cell parameters, decreases in white blood cell counts (including severe neutropenia and rare reports of agranulocytosis; see PRECAUTIONS: PATIENT INFORMATION), elevated sedimentation rates, elevated platelet counts, thrombocytopenia
buy accutane
Skin and Appendages: acne fulminans, alopecia (which in some cases persists), bruising, cheilitis (dry lips), dry mouth, dry nose, dry skin, epistaxis, eruptive xanthomas,7 flushing, fragility of skin, hair abnormalities, hirsutism, hyperpigmentation and hypopigmentation, infections (including disseminated herpes simplex), nail dystrophy, paronychia, peeling of palms and soles, photoallergic/photosensitizing reactions, pruritus, pyogenic granuloma, rash (including facial erythema, seborrhea, and eczema), sunburn susceptibility increased, sweating, urticaria, vasculitis (including Wegener’s granulomatosis; see PRECAUTIONS: Hypersensitivity), abnormal wound healing (delayed healing or exuberant granulation tissue with crusting; see PRECAUTIONS: PATIENT INFORMATION)
order accutane
Endocrine/Metabolic: hypertriglyceridemia (see WARNINGS: Lipids), alterations in blood sugar levels (see PRECAUTIONS: Laboratory Tests)
Acomplia
To study these sorts of effects, Sanofi-Aventis tested its potential blockbuster on a huge scale, recruiting more than 13,000 people in both Europe and North America to sample the medicine’s effectiveness in smoking cessation, weight loss and the prevention of type-2 diabetes.
generic Acomplia
Acomplia
http://digg.com/health/Acomplia_Rimonabant_is_an_appetite_suppressant_diet_pill Acomplia
http://digg.com/health/Acomplia_Rimonabant_is_an_appetite_suppressant_diet_pill buy Rimonabant
gwz735v4mj1m9veh
http://wszfoywxev.com rel=”nofollow”>viyskhz wfupyl
http://nxjbiyrqk.com
http://tqrjlmucv.com rel=”nofollow”>gufafrr pbtua
http://zbxyhto.com
http://vkppekmqp.com rel=”nofollow”>glyeb voeuopo
http://vgjfrkgzp.com
http://yrczzslk.com rel=”nofollow”>auruoa xclmx
http://roupkkaxh.com
Microsoft PhotoDraw 2.0 software
purchase Microsoft Windows Server 2003 Enterprise 64 Bit x64
http://qqwo.yourfreehosting.net/index286.html rel=”nofollow”>cheap online pill viagra[url=http://qqwo.yourfreehosting.net/index286.html]cheap online pill viagra[/url]http://qqwo.yourfreehosting.net/what-is-the-oppsite-of-viagra.html rel=”nofollow”>what is the oppsite of viagra[url=http://qqwo.yourfreehosting.net/what-is-the-oppsite-of-viagra.html]what is the oppsite of viagra[/url]http://qqwo.yourfreehosting.net/viagra-samples-free.html rel=”nofollow”>viagra samples free[url=http://qqwo.yourfreehosting.net/viagra-samples-free.html]viagra samples free[/url]http://qqwo.yourfreehosting.net/index10.html rel=”nofollow”>viagra and premature ejaculation[url=http://qqwo.yourfreehosting.net/index10.html]viagra and premature ejaculation[/url]
http://tyxq.fr33webhost.com/high-blood-pressure-and-viagra.html rel=”nofollow”>high blood pressure and viagra[url=http://tyxq.fr33webhost.com/high-blood-pressure-and-viagra.html]high blood pressure and viagra[/url]http://tyxq.fr33webhost.com/easybuy-viagra.html rel=”nofollow”>easybuy viagra[url=http://tyxq.fr33webhost.com/easybuy-viagra.html]easybuy viagra[/url]http://tyxq.fr33webhost.com/viagra-speedo-videos.html rel=”nofollow”>viagra speedo videos[url=http://tyxq.fr33webhost.com/viagra-speedo-videos.html]viagra speedo videos[/url]http://tyxq.fr33webhost.com/aspirin-with-viagra.html rel=”nofollow”>aspirin with viagra[url=http://tyxq.fr33webhost.com/aspirin-with-viagra.html]aspirin with viagra[/url]
Very interesting article: “ZFS within a Zone: Using Datasets”
To study these sorts of effects, Sanofi-Aventis tested its potential blockbuster on a huge scale, recruiting more than 13,000 people in both Europe and North America to sample the medicine’s effectiveness in smoking cessation, weight loss and the prevention of type-2 diabetes.
No Captcha for posting? Look into one and it will reduce spam….
i agree with you
I very intersted in the article
P90x .It really is not expensive if you factor in the cost
of a gym membership,P90x workout . The cost for P90X is
about three months of a paid gym membership but you get to
keep the program foreverP90x . You can try many of the
online sites, but it will be the same as buying from the
company or a Beachbody Coach. Make sure you are getting
original DVD’s. People are selling copies all over. The
problem is how long will they last, P90x workout ,and you
truly need the exercise and nutrition guide to even follow
the program. You can go to any site or you can go to
http://www.p90xmall.com and click on products. P90x dvd You can
order directly from the site,P90x dvd.
learned to adapt my thinking and now see the power and [url=http://www.mydiscountjordanshoes.com/air-jordan-xv-c-79.html] air-jordan-xv
[/url]
I’m a little late finding this article, but I loved it.
As we know, now sunglasses are loved by more and more people, and everyone would like to have a pair of comfortable sunglasses,save up to 47%.welcome to http://www.eyewear-rayban.com
http://www.mbtshoeslatest.com
http://www.nikeairmaxshoe.com
If you want to purchase the http://www.p90x-buying.com rel=”nofollow”>P90X Extreme Home Fitness System for yourself, the best place to begin is online. Many Internet sites-such as http://www.p90x-buying.com, for example-have great pricing($59.99) and shipping discounts, as well. Even with the shipping cost, you could end up paying less than you would in a local store.
Now beachbody begin! P90X Extreme Home Fitness System is the best choice for yourself when you want to have a strong but healthy body, the best place to begin is online shoping. Many Internet sites-such as http://www.p90x-buying.com, have competitive pricing($59.99) and free shipping as well. Even with the shipping cost, you could end up paying less than you would in a local store.
I want to say very thank you for this great informations. now i understand about it. Thank you !
http://www.shoes-on-line.com : nike shox
http://www.ajordanshoes.com : Jordan Basketball Shoes
i really appreciate what you’re doing here. very interesting site.
http://www.timberlandbootsale.co.uk
you have a very talented and skilled writting. i had a great time reading your comments.
http://www.timberlandboots4sale.co.uk
00zoe
MBT shoes http://www.mbtshoes4sale.co.uk
Timberland boots http://www.timberlandbootsale.co.uk
Incorrect / Missing CAPTCHA Code – We’re sorry, but there was an error with your submission. Please go back and try again
11zoe
cheap ugg boots http://www.cheapuggbootssale.co.uk
Timberland boots sale http://www.timberlandboots4sale.co.uk