Solved

Veritas - Add new node to a cluster online

Posted on 2013-12-05
2
1,741 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
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Title # Comments Views Activity
Linux : can't create transaction lock error 1 76
Write an app 10 70
Unix Script: Loop over all days of a month 17 105
Wrap Oraccle SQL*Plus executable Command 4 94
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

809 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