7.238. RegistrationConfiguration struct
此类型描述了对象(虚拟机、模板等)如何注册,用于灾难恢复解决方案的实施。
此类型中包含的每个映射都可用于将原始系统中的对象映射到注册虚拟机或模板的系统中对应的对象。例如,可能会有一个主设置,其中包含在群集 A 上配置的虚拟机,以及一个带有集群 B 的活动次要设置。集群 B 与该虚拟机兼容,如果发生灾难恢复方案,存储域可以导入到次要设置,用户可以将虚拟机注册到群集 B。
在这种情况下,我们可以通过定义集群映射来自动执行恢复过程。注册实体后,其 OVF 将指示它属于群集 A,但映射将指示群集 A 将替换为群集 B。红帽虚拟化管理器应执行该交换机,并将虚拟机注册到次要站点中的群集 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>
名称 | 类型 | 概述 |
---|---|---|
| 描述如何映射关联性组。 | |
| 描述如何映射关联性标签。 | |
| 描述如何映射对象引用的集群。 | |
| 描述如何映射用户的域。 | |
| 描述如何映射 LUN。 | |
| 描述如何映射角色。 | |
| 映射将在注册过程中应用的虚拟 NIC 配置集的规则。 |