搜索

7.238. RegistrationConfiguration struct

download PDF

此类型描述了对象(虚拟机、模板等)如何注册,用于灾难恢复解决方案的实施。

此类型中包含的每个映射都可用于将原始系统中的对象映射到注册虚拟机或模板的系统中对应的对象。例如,可能会有一个主设置,其中包含在群集 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>
表 7.313. 属性概述
名称类型概述

affinity_group_mappings

RegistrationAffinityGroupMapping[]

描述如何映射关联性组。

affinity_label_mappings

RegistrationAffinityLabelMapping[]

描述如何映射关联性标签。

cluster_mappings

RegistrationClusterMapping[]

描述如何映射对象引用的集群。

domain_mappings

RegistrationDomainMapping[]

描述如何映射用户的域。

lun_mappings

RegistrationLunMapping[]

描述如何映射 LUN。

role_mappings

RegistrationRoleMapping[]

描述如何映射角色。

vnic_profile_mappings

RegistrationVnicProfileMapping[]

映射将在注册过程中应用的虚拟 NIC 配置集的规则。

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.