MGN エージェントを再インストールする際に、「ユーザー提供のリソース ID- オプション」をアンインストール前と同じ文字列にすることは可能ですか
困っていること
MGN エージェントを再インストールする際に、「ユーザー提供のリソース ID- オプション」をアンインストール前と同じ文字列にすることは可能ですか。教えてください。
どう対応すればいいの?
はい、「ユーザー提供のリソース ID- オプション」をアンインストール前と同じ文字列にすることは可能です。
mgn:server:user-provided-id
The server's user-provided ID. The MGN connector uses this parameter when installing the AWS replication agent on the server.
MGN エージェントをアンインストール すると、対象のソースサーバーは 「切断済み」 のステータスとなり表示が残ります。
移行元サーバーにリソース ID- オプション: XXXXXX を付与して再度 MGN エージェントをインストールします。
こちらより、ソースサーバーの一覧に 「切断済み」 のステータスとして存在する xxxxxx の ステータスが 「例) テストの準備完了」 となります。
確認してみた
移行元サーバー (Linux OS) に MGN エージェントのインストールを行います。
詳細な手順については省略させて頂きますが、以下をご参考ください。
sudo wget -O ./aws-replication-installer-init.py https://aws-application-migration-service-ap-northeast-1.s3.amazonaws.com/latest/linux/aws-replication-installer-init.py
オプション、--user-provided-id で Test-Server とします。
sudo python3 aws-replication-installer-init.py --region us-east-1 --aws-access-key-id <ACCESS_KEY_ID> --aws-secret-access-key <SECRET_ACCESS_KEY> --user-provided-id Test-Server--no-prompt
ソースサーバーの一覧に、ソースサーバー名 Test-Server が表示されました。
では、Disconnect from service (サービスから切断) を実行します。
This uninstalls the AWS Replication Agent from the source server and data replication stops for the source server. If you need to restart data replication for this server, you need to reinstall the agent. This action does not affect any test or cutover instances that have been launched for this source server, but you can no longer identify which source servers your Amazon EC2 instances correspond to.
それでは、再度 MGN エージェントをインストールします。
成功しました。
また、ソースサーバーの一覧に、ソースサーバー名 Test-Server で再度表示されました。