Wednesday, July 18, 2012

VCS Basics

I started exploring VCS couple of months ago and extract of all possible experiments are here. These are all working scenarios and if anything doesn't seem good...please feel free to discuss. I am certified on VCS 5.0 and always look for new challenges and scenarios.
My target through this blog is to provide you actual working environment of all the components of VCS. Disclosure of any doubts/confusion/suggestions will highly be appreciated .

 

The tutorial will be divided in following groups :-
1. Installation
2. Configuration
3. Service groups
4. Resources
*********************************************************************************
1. Installation

* Requirement :-

1.1) Two nodes with 64 bit Solaris 10 installed.
1.2) SF ( storage foundation, VxVM installed ) 
1.3) HA ( Veritas Cluster Server )

2. Configuration

Here we are planning to bring two nodes , sys1 & sys2, in a cluster. Make entries in /etc/hosts file so that hostnames sys1 and sys2 can be resolved properly:-

*Requirement :-
2.1) 3 NICs ( 2 for cluster interconnect and 1 for public access ).

*What is cluster interconnect ?
It connects nodes in a cluster through crossover cables, nic-to-nic connection.They communicate through ethernet address. No IP required, no need of routers or switches. If more than 2 nodes, use a hub or switch to connect them, use straight through cable this time.
Third nic contains public IP. All these 3 are used to carry heartbeats ( I am alive signals) and used by each nodes to make sure all listed nodes are alive in the cluster.

Private networks, cluster interconnect nxge1 & nxge2. Public NIC nxge0.

* Three configuration files are required :-
              /etc/llttab , /etc/llthosts and  /etc/gabtab 

It should contain info like this :-

#cat /etc/llttab
set-node sys1
set-cluster 0
link  nxge1  /dev/nxge1 - ether - -
link  nxge2  /dev/nxge2 - ether - -
link-lowpri /dev/nxge0 – ether - -

# cat /etc/llthosts
0 sys1
1 sys2

#cat /etc/gabtab
/sbin/gabconfig -c -n 2
 
test LLT/GAB:
On  sys1& sys2:
#llttest –nvv |more
#lltconfig
#gabconfig –a
GAB Port Memberships
===============================================================
Port a gen   e9ca05 membership 01
Port h gen   e9ca08 membership 01

* Start HA on each node:- 
#hastart

*Check status :-
#hastatus -sum

* NOTE :- Some times we need to reboot the nodes after configuring first time.

No comments:

Post a Comment