7.239. RegistrationConfiguration 構造体
このタイプは、オブジェクト (仮想マシン、テンプレートなど) の登録方法を記述し、障害復旧ソリューションの実装に使用されます。
このタイプに含まれる各マッピングを使用して、元のシステムのオブジェクトを、仮想マシンまたはテンプレートが登録されているシステムの対応するオブジェクトにマップできます。たとえば、クラスター A で設定された仮想マシンを使用したプライマリーセットアップと、クラスター B を使用したアクティブなセカンダリーセットアップが存在するとします。クラスター B はその仮想マシンと互換性があり、障害復旧シナリオにおいてストレージドメインをセカンダリーセットアップにインポートし、ユーザーが仮想マシンをクラスター B に登録できます。
その場合、クラスターマッピングを定義することで、回復プロセスを自動化できます。エンティティーが登録されると、その OVF はそれがクラスター A に属していることを示しますが、マッピングはクラスター A がクラスター B に置き換えられることを示します。Red Hat Virtualization Manager は切り替えを行い、仮想マシンをセカンダリーサイトのクラスター B に登録する必要があります。
クラスターマッピングは一例に過ぎず、さまざまな種類のマッピングがあります。
- クラスターマッピング。
- LUN マッピング。
- ロールマッピング
- ドメインマッピング
- パーミッションのマッピング。
- アフィニティーグループのマッピング。
- アフィニティーラベルのマッピング。
- 仮想 NIC プロファイルのマッピング。
Red Hat Virtualization Manager で登録操作が行われると、各マッピングは特定の OVF のデータに使用されます。
マッピングを使用した XML 表現の例:
<action>
<registration_configuration>
<cluster_mappings>
<registration_cluster_mapping>
<from>
<name>myoriginalcluster</name>
</from>
<to>
<name>mynewcluster</name>
</to>
</registration_cluster_mapping>
</cluster_mappings>
<role_mappings>
<registration_role_mapping>
<from>
<name>SuperUser</name>
</from>
<to>
<name>UserVmRunTimeManager</name>
</to>
</registration_role_mapping>
</role_mappings>
<domain_mappings>
<registration_domain_mapping>
<from>
<name>redhat</name>
</from>
<to>
<name>internal</name>
</to>
</registration_domain_mapping>
</domain_mappings>
<lun_mappings>
<registration_lun_mapping>
<from id="111">
</from>
<to id="222">
<alias>weTestLun</alias>
<lun_storage>
<type>iscsi</type>
<logical_units>
<logical_unit id="36001405fb1ddb4b91e44078f1fffcfef">
<address>44.33.11.22</address>
<port>3260</port>
<portal>1</portal>
<target>iqn.2017-11.com.name.redhat:444</target>
</logical_unit>
</logical_units>
</lun_storage>
</to>
</registration_lun_mapping>
</lun_mappings>
<affinity_group_mappings>
<registration_affinity_group_mapping>
<from>
<name>affinity</name>
</from>
<to>
<name>affinity2</name>
</to>
</registration_affinity_group_mapping>
</affinity_group_mappings>
<affinity_label_mappings>
<registration_affinity_label_mapping>
<from>
<name>affinity_label</name>
</from>
<to>
<name>affinity_label2</name>
</to>
</registration_affinity_label_mapping>
</affinity_label_mappings>
<vnic_profile_mappings>
<registration_vnic_profile_mapping>
<from>
<name>gold</name>
<network>
<name>red</name>
</network>
</from>
<to id="738dd914-8ec8-4a8b-8628-34672a5d449b"/>
</registration_vnic_profile_mapping>
<registration_vnic_profile_mapping>
<from>
<name>silver</name>
<network>
<name>blue</name>
</network>
</from>
<to>
<name>copper</name>
<network>
<name>orange</name>
</network>
</to>
</registration_vnic_profile_mapping>
</vnic_profile_mappings>
</registration_configuration>
</action>
| 名前 | 型 | Summary |
|---|---|---|
|
| アフィニティーグループのマッピング方法を説明します。 | |
|
| アフィニティーラベルのマッピング方法を説明します。 | |
|
| オブジェクトが参照するクラスターのマッピング方法を説明します。 | |
|
| ユーザーのドメインのマッピング方法を説明します。 | |
|
| LUN のマッピング方法を説明します。 | |
|
| ロールのマッピング方法を説明します。 | |
|
| 登録プロセス中に適用される仮想 NIC プロファイルのマッピングルール。 |