Thanks for the input Jussi.

The reprovision just hung around for five minutes then failed. Looking at the 
log sent me cross-eyed on this notebook.

The longer term plan was to document a process for the reprovision for future 
automation with Ansible. Because of the scant documentation on reprovisioning, 
I wasn't sure of the best way to keep my data intact. I wanted to get the zone 
in a state where I had to do as little with Ansible as possible which is why 
I'd like a best practices document.

I'm kind of new to configuration management tools and this is probably a bit 
off-topic, but do you use Ansible to configure your zone from scratch or do you 
manually configure your zone and then work with Ansible to get it back to a 
functional state?

​Kevin Ratcliffe

Sent from ProtonMail​

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On 17 April 2018 9:20 PM, Jussi Sallinen <[email protected]> wrote:

> ​​
> 
> On 17/04/2018 23.01, [email protected] wrote:
> 
> > Hi
> > 
> > Is there any good documentation regarding reprovisioning best
> > 
> > practices? man vmadm doesn't help much.
> > 
> > I reprovisioned a zone with delegated datasets mounted at
> > 
> > /var/openldap and /opt/local/etc/openldap and the zone ended up in a
> > 
> > failed state. Recovery was simple enough but some do's and dont's for
> > 
> > future reference would be handy. Should I have mounted the delegated
> > 
> > datasets at their default location and symlinked instead? Do I just
> > 
> > back my data up to a delegated dataset and copy it back after the
> > 
> > reprovision? How do the smart people do this?
> 
> That might have something to do with the mountpoints being under /var
> 
> and /opt, I've always mounted the delegated dataset in /data by doing #
> 
> zfs set mountpoint=/data and haven't seen issues when reprovisioning zones.
> 
> What kind of behavior you faced while reprovisioning?
> 
> Yes you could copy data over to a delegated dataset and copy back after
> 
> reprovisioning but I've found it easiest (and quickest in terms of
> 
> repvosioning, combined with tools such as Ansible for rebuilding new
> 
> instances) to just edit configuration files where possible, ie. with web
> 
> servers such as Apache or Nginx just pointing to /data/www/foobar for
> 
> web root.
> 
> Hope these will help a little bit.
> 
> 
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> -Jussi Sallinen
> 
>  +358 40 700 7600
> 
>  [email protected]
> 
> 
> -----------------------------------------------------
> 
> smartos-discuss
> 
> Archives: https://www.listbox.com/member/archive/184463/=now
> 
> 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
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