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/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to