Backup/restore of region controllers

Junaid Ali junaidali at xgrid.co
Thu Feb 2 03:53:24 UTC 2017


Hi Andres,

When I was restoring MAAS onto a new node, I was having issues with
region-rack controller sync. Replacing /var/lib/maas, excluding
'boot-resources', with the backed up one, everything started working like a
charm.



--
Junaid

On Thu, Feb 2, 2017 at 2:12 AM, Andres Rodriguez <
andres.rodriguez at canonical.com> wrote:

> Hi Junaid,
>
> I just wanted to make a clarification. You don't really *need* to backup
> /var/lib/maas/* for most cases. The Region Controller will automatically
> re-generate everything (all config files, re-import images, etc). So:
>
> 1. If you have both MAAS Region and Rack on the same machine, there's
> definitely no need to backup /var/lib/maas/*
> 2. If you have additional stand alone rack controllers, you need to make
> sure the secret is updated to the one re-generated in (1) in order for the
> rack controller to re-connect to the new region controller.
>
> Hope this helps!
>
>
>
> On Wed, Feb 1, 2017 at 3:14 PM, Junaid Ali <junaidali at xgrid.co> wrote:
>
>> > However, you can omit /var/lib/maas/boot-resources. This directory
>> contains the boot-images, on restore MAAS will automatically reimport them.
>> +1. Thanks Lee for pointing it out.
>>
>> On Feb 2, 2017 01:10, "Lee Trager" <lee.trager at canonical.com> wrote:
>>
>> Hi Junaid,
>>
>> You are correct that /var/lib/maas should also be backed up as well.
>> However, you can omit /var/lib/maas/boot-resources. This directory contains
>> the boot-images, on restore MAAS will automatically reimport them.
>>
>> Lee
>>
>> On Wed, Feb 1, 2017 at 11:23 AM, Junaid Ali <junaidali at xgrid.co> wrote:
>>
>>> We should also consider /var/lib/maas/. I was able to completely restore
>>> maas (both region and rack controller) with
>>> 1. MAAS DB
>>> 2. /etc/maas
>>> 3. /var/lib/maas
>>>
>>> Thanks,
>>> Junaid
>>>
>>> On Feb 2, 2017 00:18, "Mark Shuttleworth" <mark at ubuntu.com> wrote:
>>>
>>>>
>>>> I think everything you care about is in the postgres database and
>>>> /etc/maas/
>>>>
>>>> Mark
>>>>
>>>> On 01/02/17 17:48, Sandor Zeestraten wrote:
>>>>
>>>> Hi,
>>>>
>>>> Where can I find procedures for backing up and restoring a region
>>>> controller?
>>>> If there isn't any, what would be the current best approach to do so?
>>>>
>>>> --
>>>> Sandor Zeestraten
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Maas-devel mailing list
>>>> Maas-devel at lists.ubuntu.com
>>>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>>>> an/listinfo/maas-devel
>>>>
>>>>
>>> --
>>> Maas-devel mailing list
>>> Maas-devel at lists.ubuntu.com
>>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>>> an/listinfo/maas-devel
>>>
>>>
>>
>>
>> --
>> Maas-devel mailing list
>> Maas-devel at lists.ubuntu.com
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>> an/listinfo/maas-devel
>>
>>
>
>
> --
> Andres Rodriguez
> Engineering Manager, MAAS
> Canonical USA, Inc.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/maas-devel/attachments/20170202/618bf05e/attachment.html>


More information about the Maas-devel mailing list