On Mon, May 26, 2014 at 5:51 PM, Ian Collins <i...@ianshome.com> wrote:

> Nicholas Lee via smartos-discuss wrote:
>
>> When using zonecfg add fs, what is the functional difference between
>> type=lofs and type=zfs?
>>
>> I know that lofs mounts a directory from the GZ in one or more NGZs.  It
>> was suggested [1] that this is actually the recommended method over using
>> NFS. NFS server and NFS client with the same kernel can lead to kernel
>> deadlocks - not sure if this is still an issue.
>>
>>
> It is still preferred, that's how sparse zones (no longer supported in
> Solaris but used for SmartOS zones) map shared filesystems.
>
>  The only detail I can find specifically about type=zfs is that: "You can
>> add a ZFS file system as a generic file system when the goal is *solely to
>> share space* with the global zone."
>>
>>
>> Can you also mount the type=zfs filesystem in the GZ? Or other NGZs?
>>
>>  If amount is specified as type=zfs, the zone "owns" the filesystem,
> which has its "zoned" property set.
>
>
Does this mean no other zone or the GZ can access that fs?


>
>  Is there a specific reason with smartos to use either option?
>>
>>
> If you want a zfs dataset (such as a SmartOS delegated dataset) that can
> be managed by a zone,  use type=zfs.  If you want to share directories from
> the GZ, use type=lofs.
>
> vmadm only allows a delegated dataset to be added at creation time.


Actually delegated datasets are different from type=zfs. Different setup
(see below), plus they delegate control the zone for the filesystem.

zonecfg -z zone
add dataset
  set name=zones/data/zone
  set alias=zone-data
end

vs

zonecfg -z zone
  add fs
  set type=zfs
  set special=zones/data/zone
  set dir=/export/shared
end

or

zonecfg -z zone
  add fs
  set type=lofs
  set special=/zones/data/zone
  set dir=/export/shared
end

Nicholas



-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to