The process of migrating the repository from an Azure single server to an Azure flexible server involves three steps to Migrate Kyvos and Kyvos Manager from the Single Server Repository to the Flexible Server will remain the same. To migrate Kyvos and Kyvos Manager .
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
Note
|
Creation of a Flexible Server instance
Anchor | ||||
---|---|---|---|---|
|
For Kyvos Manager
Download the FlexibleServerKyvosManagerRepository.json templates from here to create a Flexible PostgreSQL Server.
Deploy the template and while providing parameters, ensure that you keep the repository’s password and username the same as currently in use on the single server.
For Kyvos
Download the FlexibleServerKyvosRepository.json templates from here to create a Flexible PostgreSQL Server.
Deploy the template and while providing parameters, ensure that you keep the repository’s password and username the same as currently in use on the single server.
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
Important You must attach the Contributor role to Managed Identity on the Kyvos Flexible Server for starting or stopping Flexible Server through cluster scheduling. |
Migrating data from a Single server to a Flexible Server
Anchor | ||||
---|---|---|---|---|
|
The process of migrating from a single server to a flexible involves two steps.
Granting permission
Anchor | ||||
---|---|---|---|---|
|
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
Important The Single server instance from which data is migrated to Flexible Server, either this Single server must be kept running to allow rollback if required later. |
To migrate Single Server Repository to Flexible Server.
...
, perform the following steps.
Grant permission for data access from single server for migrating it to flexible server. To do this, open the single server for Kyvos and Kyvos Manager. Go to Connection Security and switch Allow access to Azure services to Yes.
...
Download the templates from here to create a Flexible PostgreSQL Server for Kyvos and Kyvos Manager.
...
Deploy those templates and keep the repository passwords and users the same as single servers.
Migrating Kyvos and Kyvos Manager from Postgres to Flexible Server
...
Migrating Repository data from Single Server to Flexible Server
Anchor | ||||
---|---|---|---|---|
|
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
Important
|
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
Note
|
Open the newly created Flexible Postgres Server for Kyvos.
Click Migrate.
Click Migrate from Single Server.
Provide the name of Migration and click Next.
In the Source field, choose the Server name of the existing Single server Postgres of Kyvos.
Provide the password of the existing Single server Postgres of Kyvos. Choose all the databases to migrate and then click Next.
In Target section, provide the password of the flexible server (which should be same as single server) and then click on review and create.
The migration could take some minutes to several hours depending on the size of data.
...
Configuring Kyvos Manager
...
repository
...
Anchor |
---|
...
panelIconId | atlassian-note |
---|---|
panelIcon | :note: |
bgColor | #DEEBFF |
|
Once the migration is completed
...
, follow the below steps to configure the new flexible server with
...
Kyvos Manager.
To configure the new flexible server with Kyvos and Kyvos Manager, perform the following steps.
Ssh into Kyvos Manager node.
Stop the Kyvos Manager service by using the ./stop-km.sh command.
Go to /data/kyvos/installs/kyvosmanager_war/kyvosmanagerdata/server/db and open jdbc.properties.
Replace the server name in jdbc url with the server name of the Flexible server.
Remove the server name in jdbc.username and add the username.
For example, if existing username is ‘jdbc.username=kmdbuser@kyvosManager-postgresServer-6487’ then change CHANGE it to ‘jdbc.username=kmdbuser’.Start Kyvos Manager using the ./start-km.sh command.
Configuring Kyvos repository
Login into Kyvos Manager, navigate to Utilities then
...
refer to the Manage Kyvos Repository section.
...
Change the server name to the name of Flexible Server Kyvos Repository and click on Fetch and then Save.
...
After completing the upgrade process and configuring Flexible server, you must start Kyvos services.