検索

7.239. RegistrationConfiguration 構造体

download PDF

このタイプは、オブジェクト (仮想マシン、テンプレートなど) の登録方法を記述し、障害復旧ソリューションの実装に使用されます。

このタイプに含まれる各マッピングを使用して、元のシステムのオブジェクトを、仮想マシンまたはテンプレートが登録されているシステムの対応するオブジェクトにマップできます。たとえば、クラスター 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>
表7.314 属性の概要
名前タイプ概要

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

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

© 2024 Red Hat, Inc.