AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。
Docs Menu

MongoDB Ops Managerおよびバッキングデータベースのバージョンをアップグレードする

Operator が配置を管理するために使用する リソース仕様 で、 インスタンスとMongoDB Ops Manager バッキング データベース のメジャー バージョンとマイナーMongoDB Ops Manager バージョンを更新します。Kubernetes

警告

既存の設定と可用性を維持するには、現在のMongoDB Ops Managerインスタンスで以下をバックアップします。

  • conf-mms.propertiesを安全な場所に移動します。 conf-mms.propertiesは MongoDB Ops Manager インスタンスの設定を保存します。

  • gen.keyファイルを安全な場所に移動します。 gen.keyは、 MongoDB Ops Managerのバッキングデータベースとユーザー認証情報を暗号化および復号化するための詳細を提供します。 MongoDB Ops Managerは、アップグレード プロセスの一環としてこれらのファイルを削除する場合があります。

No officially supported backup method exists for the Application Database. If the upgrade fails, contact MongoDB Support for help fixing the issue with the Ops Manager version.

  1. MongoDB Ops Managerをアップグレードする 」の考慮事項、前提条件、および手順に従って、 MongoDB Ops Managerをアップグレードします。

    重要

    アップグレードするときに Ops Manager のメジャー バージョンをスキップしないでください。現在のメジャー バージョンで利用可能な最新のパッチ リリースにアップグレードし、その後、次のメジャー7.0 バージョンにアップグレードします。ターゲットのバージョンに達するまで、このプロセスを繰り返します。例、.x から8.0 にアップグレードするには、まず利用可能な最新の7.0 パッチ リリースにアップグレードします。現在のバージョンのアップグレード パスを見つけるには、「 Ops Manager のアップグレード 」を参照してください。

  2. Reference Use a Compatible MongoDB Version to ensure your backing databases use a MongoDB version that is compatible with the new Ops Manager version.

  3. バッキング データベースを互換性のあるMongoDBバージョンにアップグレードする必要がある場合は、「 MongoDBバージョンのアップグレード 」を参照してください。

MongoDB Ops Managerおよびアプリケーション データベースのバージョンをアップグレードするには、次の手順を実行します。

1
  1. spec.versionを新しいMongoDB Ops Managerバージョンに設定します。

  2. アプリケーション データベースをアップグレードした 場合は、 spec.applicationDatabase.versionを互換性のある MongoDB バージョンに設定します。

重要

互換性のある MongoDB Server バージョンを選択していることを確認してください。

互換性のあるバージョンは、MongoDB database リソースが使用する基本イメージによって異なります。

警告

以下の例に示すように、現在の Ops Manager の配置に関連付けられているアプリケーションデータベースのリソースは順次アップグレードされるため、アップグレードプロセスを開始する前に、アプリケーションデータベースが実行している MongoDB の現在のバージョンに featureCompatibilityVersion を明示的に設定する必要があります。

これにより、アップグレードする過程で Ops Manager とアプリケーションデータベース間で発生する可能性のあるデータの不整合の問題を防止します。

1apiVersion: mongodb.com/v1
2kind: MongoDBOpsManager
3metadata:
4 name: om
5spec:
6 topology: SingleCluster # optional, SingleCluster by default
7 opsManagerURL: https://link.to.configured.load-balancer.example.com # optional OM URL for the operator
8replicas: 1
9version: "8.0.0"
10 adminCredentials: ops-manager-admin-secret
11 configuration:
12 mms.fromEmailAddr: admin@example.com
13 mms.security.allowCORS: "false"
14 security:
15 tls:
16 ca: issuer-ca
17 backup:
18 enabled: true
19 encryption:
20 kmip:
21 server:
22 url: kmip.corp.mongodb.com:5696
23 ca: mongodb-kmip-certificate-authority-pem
24 headDB:
25 storage: "30Gi"
26 labelSelector:
27 matchLabels:
28 app: my-app
29 opLogStores:
30 - name: oplog1
31 # Sets labels for the oplog store.
32 assignmentLabels: ["test1", "test2"]
33 mongodbResourceRef:
34 name: my-oplog-db
35 mongodbUserRef:
36 name: my-oplog-user
37 s3Stores:
38 - name: s3store1
39 # Sets labels for the S3 store.
40 assignmentLabels: ["test1", "test2"]
41
42 mongodbResourceRef:
43 name: my-s3-metadata-db
44 mongodbUserRef:
45 name: my-s3-store-user
46 s3SecretRef:
47 name: my-s3-credentials
48 pathStyleAccessEnabled: true
49 s3BucketEndpoint: s3.region.amazonaws.com
50 s3BucketName: my-bucket
51 applicationDatabase:
52 passwordSecretKeyRef:
53 name: om-db-user-secret
54 key: password
55 members: 3
56 topology: SingleCluster
57 version: "7.0.21-ubi8"
58 featureCompatibilityVersion: "6.0" # During upgrade, set this FCV value to your currently deployed AppDB version.
59 security:
60 certsSecretPrefix: appdb
61 tls:
62 ca: issuer-ca
2
kubectl apply -f <om-resource-specification>.yaml

Kubernetes は、新しい仕様で配置を自動的に再構成します。 これらの変更はMongoDB Ops ManagerまたはCloud Managerアプリケーションに反映されます。