IMHO the best way is using a VM with a delegated dataset. You need some
scripting to upgrade settings and install custom packages on a vanilla
dataset. A tutorial can be found here:
http://www.cyber-tec.org/2015/01/17/use-delegate-dataset-for-samba-zone/

option in vm config file is:

"delegate_dataset": true,


I had the same problem a few weeks ago when I "upgraded" a vm by changing
the package source, which is not the SmartOS way. It broke the machine. I
used LoFS mounts for my data.

On this forum I was adviced to use delegated datasets. I backed up my
datasets using the zfs tools, after that I created a new vm with a
delegated dataset. I installed samba and copied over my config which
required little changes for the directory. I restored the data under the
new /zones/<vmguid>/data folder using the zfs tools. Now I have a VM which
I can reprovision without fear of loosing my data and I do not have make a
lot of manual adjustments reprovisioning. Those I have to make can be
scripted easily, e.g. restoring samba.config. ,users/passwords. (not yet
tested).






Op ma 18 mei 2015 om 08:01 schreef Ian Collins <[email protected]>:

> Robert Mustacchi wrote:
> > On 5/17/15 16:19 , Greg Zartman wrote:
> >> I'm wondering that the best method is to upgrade a SmartOS zone (base64)
> >> that has a deligated dataset?
> >>
> >> The scenario I have is that I've setup a simple Base64 zone with rsync
> and
> >> samba to function as a simple off-site backup store.  Basically a
> poormans
> >> NAS.   The Samba is just to easily mount the backups in the zone so they
> >> can be moved to other media should they be needed for a restore.
> >>
> >> To date, I've just installed a new zone with a current image and then
> moved
> >> the data over from the older zone to the newer one.  This isn't very
> >> efficient and I hate doing it. :)
> > We do this all the time as part of SDC. What we do is invoke vmadm
> > reprovision and replace the base image with a new one, maintaining the
> > delegated dataset. One difference is that the image that we're replacing
> > already has all of the necessary packages and services pre-installed.
>
> It's a pity vmadm reprovision isn't documented!
>
> --
> Ian.
>
>
>
> -------------------------------------------
> smartos-discuss
> Archives: https://www.listbox.com/member/archive/184463/=now
> RSS Feed:
> https://www.listbox.com/member/archive/rss/184463/27088367-38945110
> Modify Your Subscription:
> https://www.listbox.com/member/?&;
> Powered by Listbox: 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