VCS : Adding new node to the existing cluster
By Ramdev
Install the VCS software manually on serv er check the packages and install the license key .
1. ./Installvcs -installonly
Configuring LLT and GAB: Create the LLT and GAB configuration files on the new node and update the files on the existing
nodes.
To configure LLT 1 Create the file /etc/llthosts on the new node. You must also update it on each of the current nodes in the
cluster.
For example, suppose y ou are adding east to a cluster consisting of north and south:
- If the file on one of the existing nodes resembles: file /etc/llthosts
0 north
1 south
- Update the file for all nodes, including the new one, resembling: file /etc/llthosts
0 north
1 south
2 east
2. Create the file /etc/llttab on the new node, making sure that line beginning set-node specifies the new node.
The file /etc/llttab on an existing node can serv e as a guide.
The following example describes a sy stem where node east is the new node on cluster number 2:
set-node east
set-cluster 2
link qfe0 qfe:0 ether link
qfe1 qfe:1 ether 3
On the new sy stem, run the command:
# /sbin/lltconfig -c
To configure GAB
1. Create the file /etc/gabtab on the new system.
- If the /etc/gabtab file on the existing nodes resembles:
# /sbin/gabconfig c
Then the file on the new node should be the same, although it is recommended to use the -c-nN option, where N is the
number of cluster nodes.
- If the /etc/gabtab file on the existing nodes resembles:
# /sbin/gabconfig -c -n2
Announcements
Unix & Linux Beginners
Unix & Linux Intermediate
Unix & Linux Experts
Storage
Then, the file on all nodes, including the new node, should change to reflect the change in the number of cluster nodes.
For example, the new file on each node should resemble:
# /sbin/gabconfig -c -n3
The -n flag indicates to VCS the number of nodes required to be ready to form a cluster before VCS starts.
2. On the new node, run the command, to configure GAB:
# /sbin/gabconfig -c
To verify GAB
1. On the new node, run the command:
# /sbin/gabconfig -a
The output should indicate that Port a membership shows all nodes including the new node. The output should
resemble:
GAB Port Memberships
====================================
Port a gen a3640003 membership 01 2
2. Run the same command on the other nodes (north and south) to verify that the Port a membership
includes the new node:
# /sbin/gabconfig -a
GAB Port Memberships
====================================
Port a gen a3640003 membership 01 2
Port h gen fd57 0002 membership 01
Port h gen fd57 0002 v isible ; 2
** Adding the node to the existing cluster:
Perform these tasks on one of the existing nodes in the cluster.
To add the new node to the existing cluster;
1. Enter the command:
# haconf -makerw
2. Add the new system to the cluster:
# hasys -add east
3. Stop VCS on the new node:
# hastop -sys east
4. Copy the main.cf file from an existing node to your new node:
# rcp /etc/VRTSvcs/conf/config/main.cf east:/etc/VRTSvcs/conf/config/
5. Start VCS on the new node:
# hastart
6. If necessary, modify any new system attributes.
7. Enter the command:
# haconf -dump -makero
Starting VCS and verifying the cluster
Start VCS after adding the new node to the cluster and v erify the cluster.
To start VCS and v erify the cluster
1 . From the new sy stem, start VCS with the new sy stem added to the cluster:
# hastart
2 . Run the GAB configuration command on each node to v erify that Port a and Port h include the new node in the
membership:
# /sbin/gabconfig -a
GAB Port Memberships
===================================
Port a gen a3640003 membership 01 2
Port h gen fd57 0002 membership 01 2
Discussion isBetter way to Learnmore about thisarticle, Just shareto your friends
0Like Share 0
Like this:
Be the first to like this.
Like
Ramdev (384 Posts)
I have started unixadminschool.com ( aka gurkulindia.com) in 2009 as my own personal reference blog, and later
sometime i have realized that my leanings might be helpful for other unixadmins if I manage my knowledge-base in
more user friendly format. And the result is today's' unixadminschool.com. Click on below web link to connect me at
linkedin.
Share Email
Comment On Blog Comment On G+ Comment on Facebook
6 Responses to VCS : Adding new node to the existing cluster
1.
Jayapal on October 16, 2011 at 3:55 pm
nice one
Reply
2.
Pal on April 4, 2013 at 1:30 pm
Does we need to edit the main.cf file in exidting nodes prior to copy to new node ?
Reply
Ramdev on April 4, 2013 at 3:43 pm
you dont need to touch main.cf, if you are modifying the configuration with ha commands. but make sure you follow
the sequence
>>> open the configuration in read write mode with : haconf -makerw
>>> Make the modifications
>>> save the configuratio into main.cf : haconf -dump -makero
Reply
3.
Abhishek on April 18, 2013 at 10:12 am
Is it necessary to copy main.cf from running node to new node ? I mean, on new node, if llt and gab starts, hastart will look for
configuration files on running cluster and update its local config files accordingly .
If not,
If main.cf is copied, types.cf should also be copied. what say Rama..??
Reply
4.
Ramdev on April 19, 2013 at 3:11 am
Abhishek,
is it necessary to copy main.cf from running node to new node ?
copying is something we want do when we have more numbers of changes to replicate over. Alternatively you can copy the
running config to the local files using haconf -dump -makero., if those changes were made when the running config in write
mode.
If main.cf is copied, types.cf should also be copied. what say Rama..??
if you are not using the customized types.cf, the default one works well , because we anyway manage same level of VCS and
supporting packages for all the cluster nodes.
Reply
5. Confluence: LITP Project on May 23, 2013 at 4:14 pm
V C S: A lter C luster a nd Repla ce Fa ulty N ode
Adding and Removing Cluster Nodes Adding and remov
Reply
Search & Hit Enter
Get our E-Learning information forWorking Linux & Unix Professionals
Name:
Email:
Submit
unixadminschool.com
What is in your mind, about this post ? Leave a Reply
unixadminschool.com - QuizCenter
3,006 people like unixadminschool.com - Quiz Center.
Facebook social plugin
Like
Recent Comments
Ramdev Your feedback is alwayswelcome. I have corrected it. onExperience LINUX LVM (Logical VolumeManager) with real time examples
Mahesh Vijapure Hi Ram, Pls checkout below two places where you... onExperience LINUX LVM (Logical VolumeManager) with real time examples
Mahesh Vijapure Cool.. Welcome..You doing great Job Sir.. :) on RedhatEnterprise Linux - Network Bonding -Quick Reference (...
Ramdev Kapil, I will get back you onthis. on Linux Samba Serverintegration with Windows ActiveDirectory Part...
Ramdev Thanks Mahesh, corrected it. on Redhat Enterprise Linux -Network Bonding - Quick Reference(...
Mahesh Vijapure [root@cent62 ~]#cat /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth0 Please modify thedevice name... on Redhat EnterpriseLinux - Network Bonding - QuickReference (...
Kapil I was able to connect mymachine to AD; authenticate... on LinuxSamba Server integration withWindows Active Directory Part...
venkat please tell where to search forleft part Yogesh.. on Deployment andunderstanding of LDOMS (LogicalDomains)
lokesh really superb..... this post helpslot in real time..... on RedHat LinuxGrub Loader - FAQ and QuickReference
Zainal Ariffin Hi For Solaris zones, ihave an issue to login... on SolarisTroubleshooting (Magic of Solaris 10)- Root Password Recovery...
Ramdev I suspect there might beissues with the step "Modify... on RHEL6.3 - LDAP Series - Part 1 :Implementation...
Ramdev Hi Arun, Sorry, didn't getyour question completely. Can you... onLinux - Understand Device Mapperand DM-Multipath
Ramdev Suresh, Sure, i will have thisseries continue with more... on A toolthat changes the way of systemadministration -...
Ramdev Hi mathukuttysimon, I haveupdated the instruction in the post onRedhat Linux LVM - FAQ & QuickReference
Ataur Rahman when I am trying toadd olcRootPW following by instruction... on RHEL 6.3 - LDAP Series - Part 1 :Implementation...
FMK Well put and very helpful. Willrecommend. on Redhat EnterpriseLinux : Yum Quick Reference
duraiarun hi Ram, how to maintainsame device tree in two... on Linux -Understand Device Mapper and DM-Multipath
suresh kurapati Hi Ram,I'm using thepuppet in my organisation unix/linuxenvironment..we... on A tool thatchanges the way of systemadministration -...
[email protected] ----------------- # resize2fs /dev/VG00/LV00 xxxxMwhere xxxxM is amount of... on RedhatLinux LVM - FAQ & Quick Reference
Ganesh That's really an amazing infoyou shared. It will be... on SAN(Storage area Networking) for SystemAdministrators
Sukumar Enuguri Small momentswith the family and friends are the best... on Daddy, I have no friends and youalso not playing...
Quick Reference
Social Engineering Skills for
Unix Administrators
Automation and Scripting for
Unix Administrators
Unix & Linux Performance
Monitoring & Tuning Articles
Real Time Unix & Linux
Troubleshooting Articles
Unix Administration Best
Practices
Copyright 2013 unixadminschool.com. All Rights Reserved.
Follow
Follow unixadminschool.com
Get every new post delivered to your Inbox
Join other followers
Enter email address
Subscribe