Comprehensive data protection for all workloads
Post Reply
Jabi
Service Provider
Posts: 51
Liked: 5 times
Joined: Dec 29, 2015 11:21 am
Contact:

Migration to Postgresql

Post by Jabi »

Hi,

I have a customer with an old SQL Server (Express).
Instead of Upgrading MSSQL i would like to migriate to Postgres.
Is there an official best practice or a how to guide ?

thanks
Mildur
Product Manager
Posts: 9848
Liked: 2610 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Migration to Postgresql

Post by Mildur »

Hi Jabi

May I ask, how big is the infrastructure you want to migrate? How many VMs are protected by this VBR server?
Does this customer has a Veeam Enterprise Manager involved in his infrastructure?

For scalability and reliability purposes, we recommend to stay on MSSQL for now as the configuration database. If the customer still want to switch, migration steps are documented in our Userguide:
VBR: https://helpcenter.veeam.com/docs/backu ... ml?ver=120
EM: https://helpcenter.veeam.com/docs/backu ... ql&ver=120

If you manually install the PostgreSQL server, please also check out this command to optimize your PostgreSQL configuration for Veeam:
https://helpcenter.veeam.com/docs/backu ... ts&ver=120

Best,
Fabian
Product Management Analyst @ Veeam Software
Jabi
Service Provider
Posts: 51
Liked: 5 times
Joined: Dec 29, 2015 11:21 am
Contact:

Re: Migration to Postgresql

Post by Jabi »

Hi,

Not that big, 20 VMs
Hardend Repo, TapeServer etc

No EM
Mildur
Product Manager
Posts: 9848
Liked: 2610 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Migration to Postgresql

Post by Mildur »

Thanks.
I don't see any issues with such environments.

1) Install a support PostgreSQL server (locally or remote): https://helpcenter.veeam.com/docs/backu ... ml?ver=120
2) Use the link to migrate the VBR configuration database: https://helpcenter.veeam.com/docs/backu ... ml?ver=120
3) Use the PowerShell command to optimize the PostgreSQL configuration for VBR: https://helpcenter.veeam.com/docs/backu ... ts&ver=120

Please give us a feedback how the migration process worked for your customer.

Best,
Fabian
Product Management Analyst @ Veeam Software
hexadecimal
Influencer
Posts: 16
Liked: 8 times
Joined: Apr 26, 2021 3:18 pm
Contact:

Re: Migration to Postgresql

Post by hexadecimal »

I've seen a lot of talk about migrating away from MSSQL to PostgreSQL. Are there any significant performance benefits resulting in the migration for those backing up up to 50 VMs, fully utilizing vbr (surebackup, cloud, sobr, etc.) and employing VDRO. Or is it simply to move away from the MS SQL db platform to an open source platform?
Jabi
Service Provider
Posts: 51
Liked: 5 times
Joined: Dec 29, 2015 11:21 am
Contact:

Re: Migration to Postgresql

Post by Jabi »

What is the minimum Version for PostgreSql as Veeam ConfigDB ?
Mildur
Product Manager
Posts: 9848
Liked: 2610 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Migration to Postgresql

Post by Mildur » 1 person likes this post

Hello Hexadecimal

The main reason I see that customer want to migrate their database is because of the MSSQL Express size 10GB limitation.
If you use MSSQL as the database server, VBR environments which protects a lot of objects (VMs, Agents, large File To Tape Job, ...) could have a bigger database than 10GB and so required a MSSQL standard license to overcome the 10GB limits of MSSQL Express.
With PostgreSQL, you don't have that 10GB limit. Going to PostgreSQL can save you license costs.

Best,
Fabian
Product Management Analyst @ Veeam Software
Mildur
Product Manager
Posts: 9848
Liked: 2610 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Migration to Postgresql

Post by Mildur »

Jabi wrote: Feb 15, 2023 12:11 pm What is the minimum Version for PostgreSql as Veeam ConfigDB ?
It's in the system requirements I shared in step 1:
https://helpcenter.veeam.com/docs/backu ... ments.html
SQL Database
Local or remote installation of the following versions of PostgreSQL:
PostgreSQL 14
PostgreSQL 15 (PostgreSQL 15.1 is included in the setup)
Product Management Analyst @ Veeam Software
lienkristian
Service Provider
Posts: 31
Liked: 4 times
Joined: Dec 30, 2016 11:43 am
Full Name: Kristian Lien
Contact:

Re: Migration to Postgresql

Post by lienkristian »

I have a customer with Enterprise Manager and aprox 200 protected vm's in multiple domains. using S3 repo, StoreOnce and local storage for the repositories. Does this migration require to reenter all the passwords for the users used? And how do we convert the enterprise manager since the two need to be on the same technology and not one MSSQL and one PostgreSQL
Mildur
Product Manager
Posts: 9848
Liked: 2610 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Migration to Postgresql

Post by Mildur » 1 person likes this post

Hello Kristian
Does this migration require to reenter all the passwords for the users used?
Reentering passwords after a configuration restore was never required if your configuration backup was encrypted.
And how do we convert the enterprise manager since the two need to be on the same technology and not one MSSQL and one PostgreSQL
I provided a link in my first answer:
EM: https://helpcenter.veeam.com/docs/backu ... ql&ver=120

Best,
Fabian
Product Management Analyst @ Veeam Software
Jabi
Service Provider
Posts: 51
Liked: 5 times
Joined: Dec 29, 2015 11:21 am
Contact:

Re: Migration to Postgresql

Post by Jabi »

soory for asking again, is there a way to change the database without uninstalling and reinstalling vbr ?
Egor Yakovlev
Product Manager
Posts: 2582
Liked: 710 times
Joined: Jun 14, 2013 9:30 am
Full Name: Egor Yakovlev
Location: Prague, Czech Republic
Contact:

Re: Migration to Postgresql

Post by Egor Yakovlev » 1 person likes this post

is there a way to change the database without uninstalling and reinstalling vbr ?
Absolutely!
Links to documentation, provided by Fabian as an answer to the first post in this thread, have all the steps to migrate configuration database from one engine to another for the current VBR installation without need of reinstall.
Long story short, when restoring backup server configuration in "Migrate" mode, on a step "Target Database" you will now be able to choose a PostgreSQL server.

/Cheers!
allankjaer
Service Provider
Posts: 17
Liked: 1 time
Joined: Apr 09, 2014 9:11 am
Full Name: Allan Kjaer
Contact:

Re: Migration to Postgresql

Post by allankjaer »

Is the a sizing guide/guideline, for when to use SQL Express vs SQL Standard vs Postgresqql with v12?
dave_lub
Novice
Posts: 9
Liked: never
Joined: Jun 14, 2012 10:36 am
Contact:

Re: Migration to Postgresql

Post by dave_lub »

Can you upgrade EM to V12 with postgresql and let B&R servers on v11?
Egor Yakovlev
Product Manager
Posts: 2582
Liked: 710 times
Joined: Jun 14, 2013 9:30 am
Full Name: Egor Yakovlev
Location: Prague, Czech Republic
Contact:

Re: Migration to Postgresql

Post by Egor Yakovlev »

allankjaer wrote: Feb 16, 2023 8:57 am Is the a sizing guide/guideline, for when to use SQL Express vs SQL Standard vs Postgresqql with v12?
You can get MS database recommendations at Design VBR Database section of best practices guide.
General rule of thumb for PostgreSQL vs MS SQL is "few thousand workloads". For anything below, PostgreSQL as default will suite you well, removing any possible obstacle met with MS SQL Express.
Gostev
Chief Product Officer
Posts: 31836
Liked: 7328 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland
Contact:

Re: Migration to Postgresql

Post by Gostev »

For V12 GA build, our QA is reasonably confident with the usage of PostgreSQL in environments with up to 1000 machines per job and up to 5000 machines total (per backup server). These are not final scalability limits by any means, it was just a good sane target for the initial release. From here on it will be an iterative process of them gradually increasing test environments size, uncovering new PostgreSQL bottlenecks and having R&D address them. Plus learning specific customer scenarios and corner cases where we did not expect PostgreSQL might struggle. We've been through this exact iterative process with the SQL Server before, which is why we're playing it safe with PostgreSQL for a start as well.
sebastian
Novice
Posts: 9
Liked: never
Joined: Oct 28, 2015 1:00 pm
Full Name: Sebastian
Location: Bavaria
Contact:

Re: Migration to Postgresql

Post by sebastian »

I tried to move EM to PostgreSQL but when I try to import my backup i get an error message:

"The configuration backup file is valid.

Failed to connect to PostgreSQL server localhost:5432. GSS/SSPI authentication but IntegratedSecurity not enabled"

Any hints about this? EM Service runs at local system service.
I tried running the service with my local user, also no success.

Edit: Nevermind, when /login:<value> /password:<value> is omitted, everything works fine :)
Jabi
Service Provider
Posts: 51
Liked: 5 times
Joined: Dec 29, 2015 11:21 am
Contact:

Re: Migration to Postgresql

Post by Jabi »

Egor Yakovlev wrote: Feb 15, 2023 8:39 pm Absolutely!
Links to documentation, provided by Fabian as an answer to the first post in this thread, have all the steps to migrate configuration database from one engine to another for the current VBR installation without need of reinstall.
Long story short, when restoring backup server configuration in "Migrate" mode, on a step "Target Database" you will now be able to choose a PostgreSQL server.

/Cheers!
ok have to try that, was confused bei the statement, once you connected postgresdb to your veram instance, …
spiritie
Service Provider
Posts: 193
Liked: 40 times
Joined: Mar 01, 2016 10:16 am
Full Name: Gert
Location: Denmark
Contact:

Re: Migration to Postgresql

Post by spiritie »

2/2 of our VBR servers which has been migrated to Postgres are spamming logs with all kinds of different issues and one server has been spamming Veeam logs with 100MB/s for over a week now, while the other is going crazy on tmp DB files. Would urge others to stay away for now.
Gostev
Chief Product Officer
Posts: 31836
Liked: 7328 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland
Contact:

Re: Migration to Postgresql

Post by Gostev »

Actually it can't be that bad either because PostgreSQL was the database installed by default since the very first V12 beta well over a year ago. Because of this decision, most of the V12 testing was naturally done on PostgreSQL. And as I already mentioned, the only reservation our QA has at this time is the environment size.

So most likely most of those issues you're seeing are not related to the PostgreSQL usage, rather they are some usual teething issues of a major release (e.g. too much logging in some corner cases).
alexander sh
Veeam Software
Posts: 41
Liked: 28 times
Joined: Dec 13, 2012 8:52 am
Full Name: Alexander Shelemin
Location: Prague
Contact:

Re: Migration to Postgresql

Post by alexander sh »

spiritie wrote: Feb 17, 2023 11:05 am 2/2 of our VBR servers which has been migrated to Postgres are spamming logs with all kinds of different issues and one server has been spamming Veeam logs with 100MB/s for over a week now, while the other is going crazy on tmp DB files. Would urge others to stay away for now.
@spiritie have you opened a support case for these issues regarding Postgres? I'd be happy to take a look.
spiritie
Service Provider
Posts: 193
Liked: 40 times
Joined: Mar 01, 2016 10:16 am
Full Name: Gert
Location: Denmark
Contact:

Re: Migration to Postgresql

Post by spiritie » 1 person likes this post

@alexander sh

We have 2 cases open already, RnD is looking at it :) but thanks.
spiritie
Service Provider
Posts: 193
Liked: 40 times
Joined: Mar 01, 2016 10:16 am
Full Name: Gert
Location: Denmark
Contact:

Re: Migration to Postgresql

Post by spiritie » 1 person likes this post

Veeam should really link the:
https://helpcenter.veeam.com/docs/backu ... ml?ver=120

Inside the article of:
https://helpcenter.veeam.com/docs/backu ... ml?ver=120

We've missed the step on our migrations and only stumbled into it because of this forum post.
Egor Yakovlev
Product Manager
Posts: 2582
Liked: 710 times
Joined: Jun 14, 2013 9:30 am
Full Name: Egor Yakovlev
Location: Prague, Czech Republic
Contact:

Re: Migration to Postgresql

Post by Egor Yakovlev » 1 person likes this post

Passed to documentation team.
Thanks for feedback!
jveerd1
Service Provider
Posts: 53
Liked: 10 times
Joined: Mar 12, 2013 9:12 am
Full Name: Joeri van Eerd
Contact:

Re: Migration to Postgresql

Post by jveerd1 »

Can you share some more details on the automatic customization of the postgresql settings? How does this work? Which parameters are used in this case?
Egor Yakovlev
Product Manager
Posts: 2582
Liked: 710 times
Joined: Jun 14, 2013 9:30 am
Full Name: Egor Yakovlev
Location: Prague, Czech Republic
Contact:

Re: Migration to Postgresql

Post by Egor Yakovlev » 2 people like this post

You can use "Set-VBRPSQLDatabaseServerLimits -DumpToFile C:\temp\sql.txt" to see all parameters and it's values.
/Cheers!
William Bohn
Enthusiast
Posts: 38
Liked: 8 times
Joined: Mar 11, 2019 6:19 pm
Full Name: Bill Bohn
Contact:

Re: Migration to Postgresql

Post by William Bohn »

Is it best to upgrade to v12 first and leave it on MSSQL and then do the database conversion to PostgreSQL or switch to the new database as you upgrade to V12?
Mildur
Product Manager
Posts: 9848
Liked: 2610 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Migration to Postgresql

Post by Mildur »

You must upgrade first to V12.
Migration to PostgreSQL cannot be done as a part of the backup server upgrade to V12.

Best,
Fabian
Product Management Analyst @ Veeam Software
Post Reply

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 48 guests