Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swarming - small changes #4408

Merged
merged 1 commit into from
Mar 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Note that when Swarming is enabled, this will result in some major changes to th
> [!IMPORTANT]
>
> - Swarming cannot be enabled on DataMiner Main Release 10.5.
> - Once the element configuration has been moved from disk to database, there is no good way to revert this change, which means that if you were to disable Swarming again, you would lose all your elements, leaving your DMS with a lot of lingering references to non-existing elements. For instructions on how to disable Swarming and **partially** recover your elements, see [Partially rolling back Swarming](xref:SwarmingRollback).
> - If you decide to [roll back Swarming](xref:SwarmingRollback) again, you will need to restore a backup to get the element XML files back. Any changes that have been implemented to elements after you enabled Swarming will be lost. As a consequence, the sooner you decide to roll back, the smaller the impact of the rollback will be.
##### Capabilities

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Note that when Swarming is enabled, this will result in some major changes to th
> [!IMPORTANT]
>
> - Swarming cannot be enabled on DataMiner Main Release 10.5.
> - Once the element configuration has been moved from disk to database, there is no good way to revert this change, which means that if you were to disable Swarming again, you would lose all your elements, leaving your DMS with a lot of lingering references to non-existing elements. For instructions on how to disable Swarming and **partially** recover your elements, see [Partially rolling back Swarming](xref:SwarmingRollback).
> - If you decide to [roll back Swarming](xref:SwarmingRollback) again, you will need to restore a backup to get the element XML files back. Any changes that have been implemented to elements after you enabled Swarming will be lost. As a consequence, the sooner you decide to roll back, the smaller the impact of the rollback will be.

##### Capabilities

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ uid: EnableSwarming

Swarming [will eventually support automatic switchover](xref:Swarming#upcoming-features) of elements in case issues are detected, so that it will replace Failover functionality.

- No [data offloads](xref:Offload_database) are configured.
- No [data offloads](xref:Offload_database) are configured (note that this prerequisite will no longer be needed soon).

- The [*LegacyReportsAndDashboards* soft-launch option](xref:Overview_of_Soft_Launch_Options#legacyreportsanddashboards) is not enabled.

Expand Down Expand Up @@ -94,6 +94,8 @@ To enable Swarming using SLNetClientTest tool:

During DataMiner startup, the existing element XML files will be moved from the disk to the database. This can take several minutes. While this is happening, a message will be displayed on any clients that are trying to connect.

![Swarming message](~/user-guide/images/Swarming_message.jpg)

> [!TIP]
> In case you encounter DataMiner startup issues after you have enabled Swarming, refer to [Troubleshooting - DataMiner startup issues](xref:Troubleshooting_Startup_Issues#swarming-issue).

Expand Down
39 changes: 19 additions & 20 deletions user-guide/Advanced_Functionality/Swarming/RollbackSwarming.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
uid: SwarmingRollback
---

# Partially rolling back Swarming
# Rolling back Swarming

> [!IMPORTANT]
> When you roll back Swarming, your data will only partially be recovered. The more time has passed since Swarming was enabled, the more information may be lost. If you are using a test system and you do not need to keep your data, a clean reinstall is advised.
When Swarming is enabled, the element config XML files (e.g. `Element.xml`, `ElementData.xml`, `Description.xml`, etc.) are moved from disk to the database. There is currently no procedure to move them back to disk, so you will instead need to [restore the files from a backup](#restoring-the-element-xml-files-from-a-backup) from before Swarming was enabled. Any **changes that happened to elements or redundancy groups after Swarming was enabled will be lost**. As a consequence, if you enabled Swarming but want to switch back, e.g. to temporarily go for a Failover setup and only enable Swarming later when failure detection has been implemented, the sooner you roll back Swarming again, the better.

When Swarming is enabled, the element config XML files (e.g. `Element.xml`, `ElementData.xml`, `Description.xml`, etc.) are moved from disk to the database. There is currently no procedure to move them back to disk.
The longer you wait, the greater the impact will be. Any modifications to existing elements or redundancy groups since the backup and any new elements or redundancy groups created since the backup will be lost, and any reference to them could become invalid. This for example means that services, redundancy groups, etc. could have references to elements that no longer exist.

However, there are some things you can do partially recover some data.
For a small system, instead of restoring a backup, you can [restore elements using an export and import](#restoring-elements-using-an-export-and-import).

## Partial rolling back Swarming from a backup
If you are using a test system and do not need to keep your data, we recommend doing a clean reinstall instead.

## Restoring the element XML files from a backup

When DataMiner is moving the XML files from disk to database, it will take a backup first. This migration happens during the first DataMiner startup after the Swarming feature is enabled.

Expand All @@ -28,12 +29,15 @@ To restore this backup and roll back Swarming:

This will restore both the elements and redundancy groups to be back as they were at the time of the backup, meaning that any changes or additions since the backup will be lost.

1. [Manually disable Swarming](#manually-disabling-swarming-in-the-config-files).
1. Manually disable Swarming:

1. Restart all DMAs.
1. Shut down all DMAs in the DMS.

1. On every DMA, delete the file `C:\Skyline DataMiner\Swarming.xml`.

> [!IMPORTANT]
> When you restore the backup, any modifications to existing elements or redundancy groups since the backup and any new elements or redundancy groups created since the backup will be lost. Any reference to these elements could become invalid.
1. Restart all DMAs.

1. Restart all DMAs.

## Restoring elements using an export and import

Expand All @@ -43,17 +47,12 @@ For small systems, an alternative is to export the latest version of the element

Do not include any data from the database in the export. Only the element configuration should be included.

1. [Manually disable Swarming](#manually-disabling-swarming-in-the-config-files).
1. Manually disable Swarming:

1. [Import the elements](xref:Importing_elements_services_etc_from_a_dmimport_file) again.
1. Shut down all DMAs in the DMS.

## Manually disabling Swarming in the config files
1. On every DMA, delete the file `C:\Skyline DataMiner\Swarming.xml`.

> [!IMPORTANT]
> This is not advised and can have big consequences for the system. For example, services, redundancy groups, etc. can have references to elements that no longer exist.
1. Restart all DMAs.

1. Shut down all DMAs in the DMS.

1. On every DMA, delete the file `C:\Skyline DataMiner\Swarming.xml`.

1. Restart all DMAs.
1. [Import the elements](xref:Importing_elements_services_etc_from_a_dmimport_file) again.
2 changes: 1 addition & 1 deletion user-guide/Advanced_Functionality/Swarming/Swarming.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Swarming can be enabled from DataMiner 10.5.1/10.6.0 onwards.<!-- RN 41490 --> N
- Element configuration will be stored in the cluster-wide database instead of in the element XML files on the disk of the DataMiner Agent hosting each element.

> [!IMPORTANT]
> Once the element configuration has been moved from disk to database, there is no good way to revert this change, which means that if you were to disable Swarming again, you would lose all your elements, leaving your DMS with a lot of lingering references to non-existing elements. For instructions on how to disable Swarming and **partially** recover your elements, see [Partially rolling back Swarming](xref:SwarmingRollback).
> If you decide to [roll back Swarming](xref:SwarmingRollback) again, you will need to restore a backup to get the element XML files back. Any changes that have been implemented to elements after you enabled Swarming will be lost. As a consequence, the sooner you decide to roll back, the smaller the impact of the rollback will be.
## Upcoming features

Expand Down
2 changes: 1 addition & 1 deletion user-guide/Advanced_Functionality/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ items:
topicUid: SwarmingElements
- name: Swarming bookings
topicUid: SwarmingBookings
- name: Partially rolling back Swarming
- name: Rolling back Swarming
topicUid: SwarmingRollback
- name: Tutorials
items:
Expand Down
Binary file added user-guide/images/Swarming_message.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.