Linux-HA Logo

NetVault client用リソースエージェント (NVclient)

説明

NVclientは、バックボーン・ソフトウェア株式会社[1]のバックアップ/リストア・ソフトウェア NetVault Backup[2] のクライアントソフトを、起動・停止・状態監視するリソースエージェントです。

ACT側で動作し、NetVault clientの以下の3つのプロセスをHeartbeatから起動・停止・状態監視を行います。

ダウンロード

インストール

  # tar xzvf NVclient-1.3.tar.gz
  NVclient-1.3/NVclient

 # cd NVclient-1.3
 # chown root NVclient
 # chgrp root NVclient
 # chmod 755 NVclient

 # cp -p NVclient /usr/lib/ocf/resource.d/heartbeat/.

cib.xmlの設定

NetVault clientのホームディレクトリを nv_homeに設定します。 NetVault clientをインストールしたディレクトリをvalueに指定してください。(/etc/.nv6_home の1行目に記述されています)

GUI(hb_gui)から NVclientを設定した場合は、/etc/.nv6_home から設定を読み取り、nv_homeのvalue値がデフォルト設定されます。

以下 cib.xml例はACT、SBY構成で、その他のリソースとして IPaddrリソースを使用し、NVClientとIPaddrリソースでリソースグループを作成しています。 NVClientのmonitor は設定せず、startやstop時の障害も検知しない設定のため、IPaddrで障害を検知した場合のみSBY側にフェイルオーバする設定になります。

<cib admin_epoch="0" epoch="2" have_quorum="false" 
cib_feature_revision="1.3" generated="false" num_updates="1" 
ignore_dtd="false" num_peers="2" 
cib-last-written="Sat Jul 21 19:19:19 2007">
   <configuration>
     <crm_config>
       <cluster_property_set id="idCluseterPropertySet">
         <attributes>
           <nvpair id="symmetric_cluster"
             name="symmetric_cluster" value="true"/>
           <nvpair id="no_quorum_policy"
             name="no_quorum_policy" value="ignore"/>
           <nvpair id="stonith_enabled"
             name="stonith_enabled" value="false"/>
           <nvpair id="short_resource_names"
             name="short_resource_names" value="true"/>
           <nvpair id="is_managed_default"
             name="is_managed_default" value="true"/>
           <nvpair id="transition_idle_timeout"
             name="transition_idle_timeout" value="120000"/>
           <nvpair id="default_resource_stickiness"
             name="default_resource_stickiness" value="INFINITY"/>
           <nvpair id="stop_orphan_resources"
             name="stop_orphan_resources" value="false"/>
           <nvpair id="stop_orphan_actions"
             name="stop_orphan_actions" value="true"/>
           <nvpair id="remove_after_stop"
             name="remove_after_stop" value="false"/>
           <nvpair id="default_resource_failure_stickiness"
             name="default_resource_failure_stickiness" value="0"/>
           <nvpair id="stonith_action"
             name="stonith_action" value="false"/>
         </attributes>
       </cluster_property_set>
     </crm_config>

     <nodes>
     </nodes>

     <resources>
       <group id="grpNVclient" restart_type="restart">
         <primitive id="prmIpNVclient" class="ocf" type="IPaddr" provider="heartbeat">
           <operations>
             <op id="ipNVclient_start"
               name="start" timeout="60s" on_fail="restart"/>
             <op id="ipNVclient_monitor"
               name="monitor" interval="10s" timeout="5s" on_fail="restart"/>
             <op id="ipNVclient_stop"
               name="stop" timeout="60s" on_fail="restart"/>
           </operations>
           <instance_attributes id="atrIpNVclient">
             <attributes>
               <nvpair id="ipNVclient" name="ip" value="192.168.10.10"/>
               <nvpair id="maskNVclient" name="netmask" value="24"/>
               <nvpair id="nicNVclient" name="nic" value="eth0"/>
             </attributes>
           </instance_attributes>
         </primitive>
         <primitive id="prmNVclient" class="ocf" type="NVclient" provider="heartbeat">
           <operations>
             <op id="opNVclient_start" name="start" timeout="60s" disabled="false"
               role="Started" on_fail="restart"/>
             <op id="opNVclient_stop" name="stop" timeout="60s" disabled="false"
               role="Started" on_fail="restart"/>
           </operations>
           <instance_attributes id="atrNVclient">
             <attributes>
               <nvpair id="NVclient:nvhome"
                 name="nv_home" value="/usr/netvault"/>
               <nvpair id="NVclient:ignoreerror"
                 name="ignore_error" value="on"/>
               <nvpair id="prmNVclient_target_role"
                 name="target_role" value="started"/>
             </attributes>
           </instance_attributes>
         </primitive>
       </group>
     </resources>
     <constraints/>
   </configuration>
 </cib>

リリース情報

関連情報

Heartbeat用 追加パッケージ集 (contrib)[5]


References

[1]http://www.bakbone.co.jp/
[2]http://www.bakbone.co.jp/products/netvault.html
[3]http://wiki.linux-ha.org/ja/NVclient_ja?action=AttachFile&do=get&target=NVclient-1.3.tar.gz
[4]http://wiki.linux-ha.org/ja/NVclient_ja?action=AttachFile&do=get&target=NVclient-1.2.tar.gz
[5]http://www.linux-ha.org/ja/Contrib_ja


This information provided courtesy of the Linux-HA project at http://linux-ha.org/