1)It has Two Nodes – Ost3 and ost4 – FailoverdomainNode
2)Two Failover Domain Name- OSS_Domain3- OSS_Domain4- failoverdomain name
3)Six Resource Are there Four Storage Two IP
Four Storage
a)ost5 - device - /dev/dm-0 – Mount Point –ost5
b)ost6 - device - /dev/dm-1– Mount Point –ost6
c)ost7 - device - /dev/dm-2– Mount Point –ost7
d)ost8 - device - /dev/dm-3– Mount Point –ost8
Two IP Resource
a) ip address="20.0.1.207/16
b) ip address="20.0.1.208/16
4)Two Service are There,
Each Service Has three Reource [ Two storage one ip]
These cluster Configured In Active - Passive Mode- What is Active Passive Mode
/etc/cluster/cluster.conf File Example
<?xml version="1.0"?>
<cluster alias="OSSS" config_version="24" name="OSSS">
<fence_daemon post_fail_delay="0" post_join_delay="3"/>
<clusternodes>
<clusternode name="oss3" nodeid="1" votes="1">
<fence>
<method name="1">
<device lanplus="" name="ipmi_oss3"/>
</method>
</fence>
</clusternode>
<clusternode name="oss4" nodeid="2" votes="1">
<fence>
<method name="1">
<device lanplus="" name="ipmi_oss4"/>
</method>
</fence>
</clusternode>
</clusternodes>
<cman expected_votes="1" two_node="1"/>
<fencedevices>
<fencedevice agent="fence_ipmilan" ipaddr="30.0.1.203" login="root" name="ipmi_oss3" passwd="root123" option="off"/>
<fencedevice agent="fence_ipmilan" ipaddr="30.0.1.204" login="root" name="ipmi_oss4" passwd="root123" option="off"/>
</fencedevices>
<rm>
<failoverdomains>
<failoverdomain name="OSS_Domain3" ordered="1" restricted="1">
<failoverdomainnode name="oss3" priority="1"/>
<failoverdomainnode name="oss4" priority="2"/>
</failoverdomain>
<failoverdomain name="OSS_Domain4" ordered="1" restricted="1">
<failoverdomainnode name="oss3" priority="2"/>
<failoverdomainnode name="oss4" priority="1"/>
</failoverdomain>
</failoverdomains>
<resources>
<lustrefs device="/dev/dm-0" force_fsck="0" force_unmount="0" mountpoint="/ost5" name="ost5" self_fence="1"/>
<lustrefs device="/dev/dm-1" force_fsck="0" force_unmount="0" mountpoint="/ost6" name="ost6" self_fence="1"/>
<lustrefs device="/dev/dm-2" force_fsck="0" force_unmount="0" mountpoint="/ost7" name="ost7" self_fence="1"/>
<lustrefs device="/dev/dm-3" force_fsck="0" force_unmount="0" mountpoint="/ost8" name="ost8" self_fence="1"/>
<ip address="20.0.1.207/16" monitor_link="1"/>
<ip address="20.0.1.208/16" monitor_link="1"/>
</resources>
<service autostart="1" domain="OSS_Domain3" name="lustre_1" recovery="relocate">
<lustrefs ref="ost5"/>
<lustrefs ref="ost6"/>
<ip ref="20.0.1.207/16"/>
</service>
<service autostart="1" domain="OSS_Domain4" name="lustre_2" recovery="relocate">
<lustrefs ref="ost7"/>
<lustrefs ref="ost8"/>
<ip ref="20.0.1.208/16"/>
</service>
</rm></cluster>
How To read the cluster.conf file.
1) Read the service tag
2) From the service tag it will refer to the failover domain and Resource tag.
0 Comments