PowerVSで、データセンター間のデータレプリケーションが可能なGlobal Replication Service(GRS)機能が発表されました。
-----2024/3 追記 ここから-----
この記事ではAPIで確認する方法を書きましたが、現在はCLIコマンドも用意されており、容易に確認できます。2024年3月時点で5ペア(10箇所)でGRSが利用可能です。
$ ibmcloud pi disaster-recovery --all-regions
List disaster recovery locations for all cloud instances under account XXXXX as user XXXXXXX...
Location: eu-de-2
Replication Site:
Location: mad04
Is Active: true
Location: mad02
Replication Site:
Location: eu-de-1
Is Active: true
Location: wdc07
Replication Site:
Location: dal10
Is Active: true
Location: dal10
Replication Site:
Location: wdc07
Is Active: true
Location: eu-de-1
Replication Site:
Location: mad02
Is Active: true
Location: us-east
Replication Site:
Location: us-south
Is Active: true
Location: us-south
Replication Site:
Location: us-east
Is Active: true
Location: wdc06
Replication Site:
Location: dal12
Is Active: true
Location: dal12
Replication Site:
Location: wdc06
Is Active: true
Location: mad04
Replication Site:
Location: eu-de-2
Is Active: true
$
-----追記ここまで-----
利用できるデータセンターは下記と書いてあるので、APIで確認してみます。
https://cloud.ibm.com/docs/power-iaas?topic=power-iaas-getting-started-GRS#locations-GRS
You can use the GRS location APIs to determine the locations that support storage replication and their mapped location. For more information, see all disaster recovery locations supported by Power System Virtual Server.
下記のAPIで確認できます。
https://cloud.ibm.com/apidocs/power-cloud#pcloud-locations-disasterrecovery-getall
必要な情報はBearer tokenとPowerVSインスタンスのCRNです。
下記を参考に、IBM Cloud Shell上で Bearer tokenを取得し、$iam_tokenに格納します。
https://qiita.com/testnin2/items/3a4ca8a1a2b79b713c48
$ export iam_token=`ibmcloud iam oauth-tokens | awk '{printf $4}'`
CRNは下記コマンドで確認します(どのPowerVSインスタンスのCRNを選んでも、結果は変わらないようでした)。
$ ibmcloud pi sl
上記のtokenとCRNを指定してAPIを呼び出します。
利用可能なエンドポイントは下記で確認できます。
https://cloud.ibm.com/apidocs/power-cloud#endpoint
$ curl -X GET https://private.jp-tok.power-iaas.cloud.ibm.com/pcloud/v1/locations/disaster-recovery -H "Authorization: Bearer ${iam_token}" -H 'CRN: crn:v1:bluemix:public:power-iaas:tok04:a/xxxxxxxxxxxxxxxxxxxxxxx:xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx::' -H 'Content-Type: application/json'
{"disasterRecoveryLocations":[{"location":"dal12","replicationSites":[{"isActive":true,"location":"wdc06"}]},{"location":"wdc06","replicationSites":[{"isActive":true,"location":"dal12"}]}]}
$
上記の出力より、現時点(2022/10/25)ではGRSはdal12とwdc06で利用可能なことが分かりました。
以上