OPNsense Forum

English Forums => Zenarmor (Sensei) => Topic started by: gw3013 on July 02, 2024, 08:42:56 PM

Title: Migrate ElasticSearch Database
Post by: gw3013 on July 02, 2024, 08:42:56 PM
We tested Zenarmor on old hardware and after deciding we want to continue with it, I am deploying it on new machines. I am wondering if anyone has migrated an ElasticSearch DB from one physical machine to another and what the best method for this is, as to not lose data.

Thanks!
Title: Re: Migrate ElasticSearch Database
Post by: sy on July 03, 2024, 03:12:05 PM
Hi,

Actually, there is no official option to migrate elasticsearch data. How many days were you keeping the data on old FW?

Title: Re: Migrate ElasticSearch Database
Post by: almodovaris on July 03, 2024, 06:55:55 PM
Clonezilla, then apply some tweaks for the new hardware.
Title: Re: Migrate ElasticSearch Database
Post by: almodovaris on July 04, 2024, 02:11:58 PM
Otherwise, cloning a Linux/FreeBSD root partition can be done with tar. Getting the bootloader to work is more complicated, but not impossible.
Title: Re: Migrate ElasticSearch Database
Post by: gw3013 on July 05, 2024, 04:43:59 PM
After some discussion, we decided to move to an external DB on a VM.

Thanks for the replies!
Title: Re: Migrate ElasticSearch Database
Post by: Greg_E on July 05, 2024, 08:54:48 PM
Out of curiosity, what kind of data were you trying to keep?