Solved

Veritas - Add new node to a cluster online

Posted on 2013-12-05
2
1,779 Views
Last Modified: 2013-12-10
Hi,

I have a 4-node Veritas cluster running on Solaris 10 OS and I would like to add a one node to this cluster.

I can do this without stopping the whole cluster right?

So basically it would be something like this:

1- Where can I fnd the list of packages required by VCS for SOlairs 10? - Its not in the installation manual....

2- After the packages installation, add the license to the new node.

# cd /opt/VRTS/bin
# ./vxlicinst -k XXXX-XXXX-XXXX-XXXX-XXXX-XXX

3- Create and update on each node this file /etc/llthosts with the new node name.

4- Create the /etc/llttab in the new node:

> cat /etc/llttab
set-node De6
set-cluster 10000
link nxge2 /dev/nxge:2 - ether - -
link nxge6 /dev/nxge:6 - ether - -

How do I know these links?

5- After set the files run:

# /sbin/lltconfig -c

6- Config the /sbin/gabconfig and run the -c opiton afterwards;

7- Then just add the new node to the cluster and start it in it..

===


Am I missing anything?

Tks,
Joao
0
Comment
Question by:joaotelles
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
Pepe2323 earned 500 total points
ID: 39707776
Prerequisites

Solairs OS installed.
SFHA ( Storage Foundation High availability) installed
All nodes need to have the same SFHA version
At least one interface available to be used by LLT.
Network interfaces for heartbeat need to be on the same VLAN.
Shared Storage need to be discovered on the new node.
If Solaris zones are being used, the new node must import the zone configuration.

Configure LLT
Create /etc/llthosts on the new node and update it on the nodes of the clusters.
For Example, the is my actually nodes list vcs1, vcs2 and vcs3 will be the new node

[root@vcs1:etc]> cat /etc/llthosts
0 vcs1
1 vcs2

My New configuration shall be like this:
[root@vcs1:etc]> cat /etc/llthosts
0 vcs1
1 vcs2
2 vcs3
Create the file /etc/llttab
llttab must be created on the new node, on this file the hearth beat interfaces are being defined

[root@vcs3:etc]> vi /etc/llttab
set-node vcs3
set-cluster 6666 --- > Cluster ID must be the same on all cluster nodes.
link e1000g1 /dev/e1000g:1 - ether - -
On the new system, run the command:
[root@vcs3:etc]> /sbin/lltconfig –c

Configure GAB
Create file /etc/gabtab on the new system

[root@vcs3:etc]> vi /etc/gabtab
/sbin/gabconfig -c –nN
Where "N" is the number of cluster nodes.

On the existing nodes the gabtab needs to be update to the new nodes members

[root@vcs1:etc]> vi /etc/gabtab
/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.

Note: The following command allows gab to be started no matter the nodes are alive
bash-3.00# /sbin/gabconfig -c -x

On the new node, run the command, to configure GAB:
[root@vcs3:etc]> /sbin/gabconfig -c
To verify GAB
On the new node, run the command:
[root@vcs3:etc]> /sbin/gabconfig -a

The output should indicate that Port a membership shows all nodes including the new node.

[root@vcs3:etc]> /sbin/gabconfig -a
GAB Port Memberships
===============================================================
Port a gen   1f8004 membership 012
Port a gen   1f8004   jeopardy ;12

Run the same commands on the existing cluster nodes ( vcs1 and vcs2) to verify the Port “a” you will see the new node.
[root@vcs1:tmp]> /sbin/gabconfig -a
GAB Port Memberships
===============================================================
Port a gen   1f8004 membership 012

Run lltstat –nvv to check the heartbeat interfaces shows as
UP for all nodes (including new node)
[root@vcs3:etc]> /opt/VRTS/bin/lltstat -nvv
LLT node information:
    Node                 State    Link  Status  Address
     0 vcs1              OPEN
                                  e1000g1   UP         00:0C:29:0E:DB:97
     1 vcs2              OPEN
                                  e1000g1   UP         00:0C:29:A9:D1:4F
   * 2 vcs3              OPEN
                                  e1000g1   UP         00:0C:29:CB:21:C7


On one of the existing nodes in the cluster, add the new node to the existing cluster.
1.- Make VCS read/write, be aware that all change won´t be save on main.cf until run -dump –makero
[root@vcs1:tmp]> haconf –makerw

2.-Add the new system to the cluster:
[root@vcs1:tmp]> hasys -add vcs3

3.- Stop VCS on the new node:
[root@vcs1:tmp]> hastop -sys vcs3

4.- Copy the main.cf file from an existing node to your new node:
[root@vcs1:tmp]> scp -C /etc/VRTSvcs/conf/config/main.cf root@vcs3:/etc/VRTSvcs/conf/config/
5.- Copy VCS UUID  
[root@vcs1:tmp]> /opt/VRTSvcs/bin/uuidconfig.pl -clus -copy -from_sys vcs1 -to_sys vcs3

6.-Start VCS on the new node:
[root@vcs3:etc]> hastart

7.- Save Changes on main.cf
[root@vcs1:tmp]> haconf -dump -makero

Note: At this point  new node has been added to the cluster but no the groups

[root@vcs1:tmp]> hastatus -sum

-- SYSTEM STATE
-- System               State                Frozen

A  vcs1                 RUNNING              0
A  vcs2                 RUNNING              0
A  vcs3                 RUNNING              0

-- GROUP STATE
-- Group           System               Probed     AutoDisabled    State        

B  test            vcs1                 Y          N               OFFLINE      
B  test            vcs2                 Y          N               ONLINE

Adding Group to the new node
1.- Make VCS read/write
[root@vcs1:tmp]> haconf –makerw

2.- Add Group to the new node (vcs3)
[root@vcs1:tmp]>  hagrp -modify test SystemList -add vcs3 2
Note: the last number is the propriety that the group will have on the new node.

3.- Save Changes on Main.cf
[root@vcs1:tmp]> haconf -dump -makero
[root@vcs1:tmp]> hastatus -sum
-- SYSTEM STATE
-- System               State                Frozen

A  vcs1                 RUNNING              0
A  vcs2                 RUNNING              0
A  vcs3                 RUNNING              0

-- GROUP STATE
-- Group           System               Probed     AutoDisabled    State        

B  test            vcs1                 Y          N               OFFLINE      
B  test            vcs2                 Y          N               ONLINE      
B  test            vcs3                 Y          N               OFFLIN

I did this how to to my compy i hope this helps
0
 

Author Closing Comment

by:joaotelles
ID: 39708278
Tks.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question