You are on page 1of 7

Announcements Unix & Linux Beginners Unix & Linux Intermediate Unix & Linux Experts Storage

VCS : Adding new node to the existing cluster


By Ramdev Install the VCS software m anually on serv er check the packages and install the license key . 1. ./Inst allvcs -inst allonly 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 /et c/llt host s on the new node. You m ust also update it on each of the current nodes in the cluster. For exam ple, suppose y ou are adding east to a cluster consisting of north and south: - If the file on one of the existing nodes resem bles: file /et c/llt host s 0 north 1 south - Update the file for all nodes, including the new one, resem bling: file /etc/llthosts 0 north 1 south 2 east 2 . Creat e t he file /et c/llt t ab on the new node, m aking 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 exam ple describes a sy stem where node east is the new node on cluster num ber 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 com m and: # /sbin/llt config -c To configure GAB 1. Creat e t he file /et c/gabt ab on t he new sy st em . - If the /et c/gabt ab file on the existing nodes resem bles: # /sbin/gabconfig c Then the file on the new node should be the sam e, although it is recom m ended to use the -c-nN option, where N is the num ber of cluster nodes. - If the /et c/gabt ab file on the existing nodes resem bles: # /sbin/gabconfig -c -n2

Then, the file on all nodes, including the new node, should change to reflect the change in the num ber of cluster nodes. For exam ple, the new file on each node should resem ble: # /sbin/gabconfig -c -n3 The -n flag indicates to VCS the num ber of nodes required to be ready to form a cluster before VCS starts. 2. On t he new node, run t he command, t o configure GAB: # /sbin/gabconfig -c To verify GAB 1. On t he new node, run t he command: # /sbin/gabconfig -a The output should indicate that Port a m em bership shows all nodes including the new node. The output should resem ble: GAB Port Mem berships ==================================== Port a gen a3 6 4 0003 m em bership 01 2 2. Run t he same command on t he ot her nodes (nort h and sout h) t o verify t hat t he Port a membership includes t he new node: # /sbin/gabconfig -a GAB Port Mem berships ==================================== Port a gen a3 6 4 0003 m em bership 01 2 Port h gen fd57 0002 m em bership 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 t he new node t o t he exist ing clust er ; 1. Ent er t he command: # haconf -makerw 2. Add t he new sy st em t o t he clust er: # hasy s -add east 3. St op VCS on t he new node: # hast op -sy s east 4. Copy t he main.cf file from an exist ing node t o y our new node: # rcp /et c/VRTSvcs/conf/config/main.cf east :/et c/VRTSvcs/conf/config/ 5. St art VCS on t he new node: # hast art 6. If necessary , modify any new sy st em at t ribut es. 7 . Ent er t he command:

# haconf -dump -makero

St art ing VCS and verify ing t he clust er 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:

# hast art 2 . Run the GAB configuration com m and on each node to v erify that Port a and Port h include the new node in the m em bership: # /sbin/gabconfig -a GAB Port Mem berships =================================== Port a gen a3 6 4 0003 m em bership 01 2 Port h gen fd57 0002 m em bership 01 2

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.

Discussion is Better way to Learn more about this article, Just share to your friends Like this:

Like

Share

Share

Email

Like
Be the first to like this.

Comment On Blog

Comment On G+

Comment on Facebook

6 Responses to VCS : Addi ng new node to the exi sti ng cl uster

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 lu ster a n d Rep la ce Fa u lty N o d e Adding and Removing Cluster Nodes Adding and remov Reply

Wha t i s i n your mi nd, a bout thi s post ? L ea ve a Repl y

Search & Hit Enter


Get our E-Learning information for Working Linux & Unix Professionals

Name: Email:

Submit

unixadminschool.com

unixadminschool.com - Quiz Center


Like 3,006 people like unixadminschool.com - Quiz Center.

Facebook social plugin

Recent Comments
Ramdev Your feedback is always welcome. I have corrected it. on Experience LINUX LVM (Logical Volume Manager) with real time examples Mahesh Vijapure Hi Ram, Pls check out below two places where you... on Experience LINUX LVM (Logical Volume Manager) with real time examples Mahesh Vijapure Cool.. Welcome.. You doing great Job Sir.. :) on Redhat Enterprise Linux - Network Bonding Quick Reference (... Ramdev Kapil, I will get back you on this. on Linux Samba Server integration with Windows Active Directory Part... Ramdev Thanks Mahesh, corrected it. on Redhat Enterprise Linux Network Bonding - Quick Reference (... Mahesh Vijapure [root@cent62 ~]# cat /etc/sysconfig/network-scripts/ifcfgeth1 DEVICE=eth0 Please modify the device name... on Redhat Enterprise Linux - Network Bonding - Quick Reference (... Kapil I was able to connect my machine to AD; authenticate... on Linux Samba Server integration with Windows Active Directory Part... venkat please tell where to search for left part Yogesh.. on Deployment and understanding of LDOMS (Logical Domains) lokesh really superb..... this post helps lot in real time..... on RedHat Linux Grub Loader - FAQ and Quick Reference Zainal Ariffin Hi For Solaris zones, i have an issue to login... on Solaris Troubleshooting (Magic of Solaris 10) - Root Password Recovery... Ramdev I suspect there might be issues with the step "Modify... on RHEL 6.3 - LDAP Series - Part 1 : Implementation... Ramdev Hi Arun, Sorry, didn't get your question completely. Can you... on Linux - Understand Device Mapper and DM-Multipath Ramdev Suresh, Sure, i will have this series continue with more... on A tool that changes the way of system administration -... Ramdev Hi mathukuttysimon, I have updated the instruction in the post on Redhat Linux LVM - FAQ & Quick Reference Ataur Rahman when I am trying to add olcRootPW following by instruction... on RHEL 6.3 - LDAP Series - Part 1 : Implementation... FMK Well put and very helpful. Will recommend. on Redhat Enterprise Linux : Yum Quick Reference

duraiarun hi Ram, how to maintain same device tree in two... on Linux Understand Device Mapper and DMMultipath suresh kurapati Hi Ram,I'm using the puppet in my organisation unix/linux environment..we... on A tool that changes the way of system administration -... mathukuttysimon@gmail.com ---------------- # resize2fs /dev/VG00/LV00 xxxxM where xxxxM is amount of... on Redhat Linux LVM - FAQ & Quick Reference Ganesh That's really an amazing info you shared. It will be... on SAN (Storage area Networking) for System Administrators Sukumar Enuguri Small moments with the family and friends are the best... on Daddy, I have no friends and you also 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

You might also like