Will Single to Flexi postgres migration migrates users too? and if there are any foreign data wrappers?

Jaiyasree Venkataramanan 0 Reputation points
2024-11-27T17:52:47.81+00:00
  1. We have a single server which says auto migration is scheduled. But we are not able to view who scheduled the migration automatically. please help.
  2. After single to flexi migration, can we still use single server if there are any issues in target flexi servers?
  3. In case of several databases (10), which is best online or offline migration?
  4. Will online or offline migration, also migrates users, roles, foreign data wrappers?
  5. How long will the migration takes for db size around 70GB?

Thanks for the support!

Regards,

Jai

Azure Database Migration service
Azure Database for PostgreSQL
{count} votes

1 answer

Sort by: Most helpful
  1. Mahesh Kurva 1,470 Reputation points Microsoft Vendor
    2024-11-27T20:40:23.63+00:00

    Hi @Jaiyasree Venkataramanan,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    As I understand it, you're dealing with a database migration and have a few specific questions related to the process. I'm happy to help you with them.

    We have a single server which says auto migration is scheduled. But we are not able to view who scheduled the migration automatically. please help.

    Auto migration from a single server to a flexible server is typically scheduled by the Azure service itself. You can check the migration schedule and details in the Azure portal under the “Migration” blade of your single server instance.

    For more information, please refer the documents:

    https://learn.microsoft.com/en-us/azure/postgresql/migrate/automigration-single-to-flexible-postgresql
    https://learn.microsoft.com/en-us/azure/postgresql/migrate/migration-service/tutorial-migration-service-single-to-flexible?tabs=portal%2Coffline

    After single to flexi migration, can we still use single server if there are any issues in target flexi servers?

    After migrating to a flexible server, the single server is generally set to read-only mode and eventually decommissioned. If there are issues with the target flexible server, you would need to address them directly on the flexible server as the single server won’t be available for write operations.

    In case of several databases (10), which is best online or offline migration?

    Online Migration: Minimizes downtime by keeping the source database online during the migration. This is ideal if you need continuous availability.

    Offline Migration: Involves taking the source database offline, which can be faster but results in downtime. This might be suitable if you can afford a maintenance window.

    For more information, please refer the documents:

    https://learn.microsoft.com/en-us/azure/dms/faq-mysql-single-to-flex

    https://learn.microsoft.com/en-us/azure/dms/resource-scenario-status#offline-vs-online-migration.

    Will online or offline migration, also migrates users, roles, foreign data wrappers?

    The migration service supports migration for users and roles only when the source is Azure Database for PostgreSQL - Single Server.

    Foreign Data Wrappers:

    If your database uses this extension, the following steps must be performed to ensure a successful migration.

    1. Temporarily remove (unlink) the foreign data wrapper on the source instance.
    2. Perform data migration of the rest by using the migration service.
    3. Restore the foreign data wrapper roles, user, and links to the target after migration.

    For more information, please refer the documents:

    https://learn.microsoft.com/en-us/azure/postgresql/migrate/migration-service/best-practices-migration-service-postgresql#database-with-postgres_fdw-extension

    https://learn.microsoft.com/en-us/azure/postgresql/migrate/migration-service/concepts-user-roles-migration-service

    https://www.postgresql.org/docs/current/postgres-fdw.html

    How long will the migration takes for db size around 70GB?

    The time required for migrating a 70GB database can vary based on factors like network speed, server performance, and the complexity of the data. Generally, it could take anywhere from a few hours to a day.

    Hope this helps. Do let us know if you any further queries.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.