Re: Adding ZFS as "fs" to zone fails
- From: Alexander Skwar <usenet@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 26 Sep 2007 20:09:06 +0200
First of, thanks for having replied to my post.
· cindy <cindy.swearingen@xxxxxxx>:
I'm no zones expert but setting a zonepath to a ZFS file system in
the Solaris 10 8/07 release is not supported.
I also tried to /not/ do this. I tried setting zonepath to /tmp/z/t;
/tmp is *NOT* swap. So the issue at hand has nothing to do with
zonepath on ZFS.
Your choices are to add a ZFS dataset or delegate a ZFS
dataset to a non-global zone in the Solaris 10 8/07 release.
The add fs syntax looks like this:
# zonecfg -z myzone
zonecfg:myzone> add fs
zonecfg:myzone:fs> set type=zfs
zonecfg:myzone:fs> set special=mpool2/fs3
zonecfg:myzone:fs> set dir=/shared/fs2
That's what I did, see this excerpt from the zoneadm info:
raw not specified
In addition, the mpool2/fs3 mountpoint must be set to legacy.
That's what I did, see the excerpt from zfs get all:
pool/zones/test_fs mounted no -
pool/zones/test_fs mountpoint legacy local
The delegated syntax looks like this:
# zonecfg -z myzone
zonecfg:myzone> add dataset
zonecfg:myzone:dataset> set name=mpool2/fs2
Ah, okay. For this particular "directory", I'm not interested in
a delegated dataset.
Any other ideas, someone, please?
I googled a bit and found that Solaris used to be broken and LU
just barfed. It seems that this bug is still present. Did Sun
remove that bug in U3 and re-introduce it in U4? What I'm trying
to do is described in the documentation, eg. at
Links I found:
-> Zones and ZFS broken. Workaround: Add the ZFS fs later, after
having run "zoneadm ... install".
-> Talks about a bug. 6412875 zoneadm mount does not mount filesystems in vfstab
-> zoneadm install broken. Add fs later on.
Could someone please check if that bug was removed in U3 and if that
really is a regression? Or could somebody maybe please verify, if the
following testcase works:
zfs create pool/dummy
zfs set mountpoint=legacy pool/dummy
zonecfg -z dummy
zoneadm -z dummy verify && zoneadm -z dummy install
For me, on Solaris 10 U4 Sparc, this fails:
adm@winds02 /tmp $ sudo -H zoneadm -z dummy install
Preparing to install zone <dummy>.
ERROR: No such file or directory: cannot mount </zp/root/somewhere> in non-global zone to install: the source block device or directory <pool/dummy> cannot be accessed
ERROR: cannot setup zone <dummy> inherited and configured file systems
ERROR: cannot setup zone <dummy> file systems inherited and configured from the global zone
ERROR: cannot create zone boot environment <dummy>
This is expected, at least according to the posts I mentioned above
in this post.
Everyone is more or less mad on one point.
-- Rudyard Kipling
- Prev by Date: Re: Question On Floating Point In Gcc For Solaris Sparc
- Next by Date: need solaris 2.6 x86 for download, pls
- Previous by thread: Re: Adding ZFS as "fs" to zone fails
- Next by thread: Re: Adding ZFS as "fs" to zone fails