Matthew:

Thanks.

I did not notice this option.

Searching on the net led me to another solution (copying below), which can
be used after a zone has already been created.

global# zfs create -o montpoint=none zones/ds
global# zonecfg -z {UUID}
  add dataset
    set name=zones/ds
  end
  commit
  exit

-- Stop and start the zone
zone# init 5
global# vmadm start {UUID}

-- From within the zone, mount the ZFS dataset
zone# zfs set mountpoint=/var/www zones/ds

My goal is to have a ZFS dataset available within a zone that will survive
the deletion of a VM. Will this be true for the dataset created within the
VM via the delegated_dataset option? And similarly, will a delegated
dataset created via the second option survive the deletion of a VM?

Thanks.




On 4 January 2015 at 23:33, Matthew Frost <[email protected]> wrote:

> I am not being sarcastic just not close to a smartos server at the moment.
>
>
> in the vmadm manual  you will find a delegate property which can be
> applied to zones, as far as i remember (i could be wrong, did it a while
> ago) you can only set this property on creation and not on an existing
> zones.
>
> ------------------------------
> *From: *"Sam M via smartos-discuss" <[email protected]>
> *To: *[email protected]
> *Sent: *Sunday, January 4, 2015 6:31:05 PM
> *Subject: *[smartos-discuss] Delegate ZFS Dataset
>
> Hello all.
>
> What's the easiest way to delegate a a ZFS dataset from the GZ to a VM so
> that I can snapshot/rollback/etc. from within the VM, as one would a ZFS
> dataset in the GZ?
>
> I don't want to add an lofs mount to the VM.
>
> I know this has come up before, but I couldn't find the thread.
>
> Thanks.
>
> Sam
> *smartos-discuss* | Archives
> <https://www.listbox.com/member/archive/184463/=now>
> <https://www.listbox.com/member/archive/rss/184463/26617859-103233bd> |
> Modify
> <https://www.listbox.com/member/?&;>
> Your Subscription <http://www.listbox.com>
>
>



-------------------------------------------
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