Skip to content

Commit f5fc585

Browse files
committed
(DOCSP-29603): Backport DOCSP-7275 to v6.0. (#5029)
* (DOCSP-7275): Added tutorial for Ops Manager migration to a new project. * (DOCSP-7275): Marked last step optional. * (DOCSP-7275): Incorporated Nic's feedback. * (DOCSP-7275): Added important backup notes. * (DOCSP-7275): Fixed note indent. * (DOCSP-7275): Incorporated Emilio's feedback.
1 parent 0ad3042 commit f5fc585

File tree

4 files changed

+173
-0
lines changed

4 files changed

+173
-0
lines changed

config/sphinx.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ saas-base:
268268
- /tutorial/manage-ports.txt
269269
- /tutorial/manage-s3-blockstore-storage.txt
270270
- /tutorial/manage-two-factor-authentication.txt
271+
- /tutorial/migrate-deployment-to-new-project.txt
271272
- /tutorial/monitoring-large-deployments.txt
272273
- /tutorial/move-jobs-to-new-backup-daemon.txt
273274
- /tutorial/nav/advanced-deployments.txt
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
title: "Download snapshots."
2+
optional: true
3+
stepnum: 1
4+
level: 4
5+
ref: download-snapshots-mp
6+
content: |
7+
8+
If you have backup enabled and want to retain snapshots:
9+
10+
a. Download any snapshots that you want to keep:
11+
12+
- :doc:`Download the snapshots for a replica set
13+
</tutorial/restore-replica-set>`.
14+
- :doc:`Download the snapshots for a sharded cluster
15+
</tutorial/restore-sharded-cluster>`.
16+
17+
#. :ref:`Stop all backups <stop-backup>`.
18+
19+
.. important::
20+
21+
All existing snapshots remain available for download until they
22+
expire, but |onprem| captures no new snapshots.
23+
24+
---
25+
title: "Prepare backup components."
26+
optional: true
27+
stepnum: 2
28+
level: 4
29+
ref: prepare-backup-mp
30+
content: |
31+
32+
If you want backup enabled for your MongoDB deployment in the new
33+
project, :doc:`prepare your backup components
34+
</core/backup-preparations>`.
35+
36+
---
37+
title: "Prepare the old project."
38+
stepnum: 3
39+
level: 4
40+
ref: prepare-old-project-mp
41+
content: |
42+
43+
a. :doc:`Deactivate the backup and monitoring {+mdbagent+} functions
44+
</tutorial/mongodb-agent-functions/>` in the old project.
45+
46+
#. :doc:`Unmanage the MongoDB deployment in the old project, but continue to monitor it </tutorial/unmanage-deployment>`.
47+
48+
---
49+
title: "Prepare the new project."
50+
stepnum: 4
51+
level: 4
52+
ref: prepare-new-project-mp
53+
content: |
54+
55+
a. :ref:`Create a new project <create-project>` to use as the
56+
destination project.
57+
58+
#. Click :guilabel:`Settings` in the left navigation.
59+
60+
#. Note the :guilabel:`Project ID` value on the
61+
:guilabel:`Project Settings` tab.
62+
63+
#. :doc:`Create a new Agent API key </tutorial/manage-agent-api-key>`.
64+
65+
---
66+
title: "Prepare the {+mdbagent+}."
67+
stepnum: 5
68+
level: 4
69+
ref: prepare-agent-mp
70+
edition: onprem
71+
content: |
72+
73+
.. note::
74+
75+
If you have multiple deployments in your project and a
76+
{+mdbagent+} installed only on the hosts that you plan to move,
77+
you must install new agents on servers that you will not move to
78+
the new project.
79+
80+
a. :ref:`Stop the {+mdbagent+} <stop-mdb-agent>`.
81+
82+
#. Edit the :doc:`{+mdbagent+} configuration file
83+
</reference/mongodb-agent-settings/>` to update the
84+
:setting:`mmsGroupId` and :setting:`mmsApiKey` settings with the
85+
values from for the new project.
86+
87+
#. (Optional) If the new project is a new Ops Manager, update the
88+
:setting:`mmsBaseUrl` setting.
89+
90+
#. :ref:`Start the {+mdbagent+} <start-mdb-agent>`.
91+
92+
The MongoDB deployment servers should appear on the
93+
:guilabel:`Servers` and :guilabel:`Agents` tabs.
94+
95+
---
96+
title: "Migrate the MongoDB deployment."
97+
stepnum: 6
98+
level: 4
99+
ref: migrate-deployment-mp
100+
content: |
101+
102+
a. :doc:`Activate the backup and monitoring {+mdbagent+} functions
103+
</tutorial/mongodb-agent-functions/>` in the new project.
104+
105+
#. :ref:`Add the MongoDB deployment to your new project
106+
<add-existing-mongodb-hosts>`.
107+
108+
#. (Optional) :doc:`Start backups
109+
</tutorial/stop-restart-terminate-backup>`.
110+
111+
---
112+
title: "Remove the old project."
113+
optional: true
114+
stepnum: 7
115+
level: 4
116+
ref: remove-project-mp
117+
content: |
118+
119+
.. warning::
120+
121+
This step permanetly deletes your old project and its related
122+
artifacts.
123+
124+
a. :ref:`Terminate all backups <terminate-backup>` in the old project.
125+
126+
.. important::
127+
128+
If you don't terminate all backups in the old project, all
129+
existing snapshots remain available for download until they
130+
expire and occupy disk space. You can't remove the MongoDB
131+
deployment and delete the old project unless your terminate all
132+
backups.
133+
134+
#. :doc:`Completely remove the MongoDB deployment
135+
</tutorial/unmanage-deployment>` from the old project.
136+
137+
#. :ref:`Delete the old project <delete-project>`.
138+
139+
...

source/migration.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ configurations into |service|.
5656
self-managed migration. To learn more, see
5757
:atlas:`Seed with mongorestore </import/mongorestore/>`.
5858

59+
You can also migrate a MongoDB deployment from one |mms| project
60+
to another project. To learn more, see
61+
:ref:`Migrate a MongoDB Deployment to a New Project
62+
<migrate-deployment-to-new-project>`.
63+
5964
.. cond:: cloud
6065

6166
.. list-table::
@@ -107,6 +112,7 @@ configurations into |service|.
107112

108113
/tutorial/migrate-to-atlas
109114
/tutorial/migrate-community-to-atlas
115+
/tutorial/migrate-deployment-to-new-project
110116

111117

112118
.. cond:: cloud
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.. _migrate-deployment-to-new-project:
2+
3+
=============================================
4+
Migrate a MongoDB Deployment to a New Project
5+
=============================================
6+
7+
.. default-domain:: mongodb
8+
9+
.. contents:: On this page
10+
:local:
11+
:backlinks: none
12+
:depth: 1
13+
:class: singlecol
14+
15+
You can migrate a MongoDB deployment from one |onprem| project to
16+
another project.
17+
18+
Considerations
19+
--------------
20+
21+
Historic metrics for the MongoDB deployment don't migrate to the new
22+
project.
23+
24+
Procedure
25+
---------
26+
27+
.. include:: /includes/steps/migrate-deployment-to-new-project.rst

0 commit comments

Comments
 (0)