Você está na página 1de 7

1: Ans:

How do check the status of VERITAS Cluster Server aka VCS? hastatus sum /e

2: Which is the main config file for VCS and where it is located? Ans: main.cf is
the main configuration file for VCS and it is located in tc/VRTSvcs/conf/config. 3:
Ans: 9: Ans: 10: Ans: 11: Ans: 12: Ans: 13: Ans: 14: Ans: 15: Ans: Which command
you will use to check the syntax of the main.cf? hacf -verify
/etc/VRTSvcs/conf/config How to switchover the service group in VCS? # hagrp switch
-to How to online the service groups in VCS? # hagrp online -sys How to set the VCS
configuration Read-Only? # haconf dump -makero How to set the VCS configuration
Read-Write? # haconf -makerw How to display the list of all snapshots? # hasnap
display list How to add a user with cluster administrator/Operator access? # hauser
add <user> -priv Administrator/Operator

How to add a user with group administrator/Operator access? # hauser add <user>
-priv Administrator/Operator group <service group>

Querying Service Groups, & Resources 16: Ans: 17: Ans: 18: Ans: 19: Ans: 20: Ans:
21: Ans: 22: Ans: 23: Ans: How to display the status of a service group on a
system? # hagrp state <service group> -sys <system> How to display the resources
for a specific service group? # hagrp resources <service group> How to display the
service group dependencies? # hagrp dep <service group> How to display information
about a service group on a system? # hagrp display <service group> -sys <system
name> How to display resource dependencies? # hares dep <resource name> How to
display information about a resource? # hares display <resource name> How to
display resources of a service group? # hares display group <service group> How to
display resources of a resource type? # hares display type <resource type>
24: Ans: 25: Ans: 26: Ans: 27: Ans: 28: Ans:

How to display attributes of a system? # hares display sys <system name> How to
display all resources type? # hatype list How to list the systems in the cluster? #
hasys list How to display information about a particular system? # hasys list
<system name> How to display information about the cluster? # haclus display

29: How to display the status of all service groups including resources in c
luster? Ans: # hastatus 30: How to display the status of cluster faults, including
faulted service g roups, systems, links and agents? Ans: # hastatus summary
Administering Service Group 31: Ans: 32: Ans: How to add a service group in a
cluster? # hagrp add <service group> How to delete a service group from a cluster?
# hagrp delete <service group>

33: How to modify a service group attribute such as SystemList, AutoStartLis t,


parallel etc? Ans: (A) How to populate the SystemList attribute of service group
groupX wit h SystemA and B. # hagrp modfy groupX SystemList add SystemA 1 SystemB 2
(B) How to populate the AutoStartList attribute of service group groupX with Sys
temA and B. # hagrp modify groupX AutoStartList add SystemA SystemB (C) How to
define the service group as a parallel? # hagrp modify <service group> Parallel 1
How to bring a service group online? # hagrp online <service group> -sys <system
name> How to take a service group offline? # hagrp offline <service group> -sys
<system name> How to take a service group offline if all resources are probed? #
hagrp offline <service group> -ifprobed sys <system name> How to switch a service
group from one system to another system? # hagrp switch <service group> -to <system
name> How to freeze a service group? # hagrp freeze <service group> -persistent

34: Ans: 35: Ans: 36: Ans: 37: Ans: 38: Ans:
39: Ans: 40: Ans: 41: Ans: 42: Ans: 43: Ans: 44: Ans: 45: Ans: 46: Ans:

How to unfreeze a frozen service group? # hagrp unfreeze <service group>


-persistent How to disable a service group? # hagrp disable <service group> -sys
<system name> How to enable a service group? # hagrp enable < service group> -sys
<system name> How to enable all resources in a service group? # hagrp
enableresources <service group> How to disable all resources in a service group? #
hagrp disableresources <service group> How to clear faulted, non-persistent
resources in a service group? # hagrp clear <service group> -sys <system name> How
to clear resources in ADMIN_WAIT state in a service group? # hagrp clearadminwait
<service group> -sys <system name> How to flush a service group? # hagrp flush
<service group> -sys <system name>

47: How to link a service group with another? Ans: # hagrp link <parent service
group> <child service group> <gd_category> < gd_location> <gd_type> gd_category
gd_location gd_type = 48: Ans: = Category of group dependency (online/offline) =
The scope of dependency (local/global/remote) type of group dependency
(soft/firm/hard)

How to unlink a service group with another? # hagrp unlink <parent service group>
<child service group>

Adding and removing cluster node Q-1 How to add a node in an existing cluster? Ans:
Adding a node into an existing cluster is a multi steps process. 1: Set up the
hardware Before adding a node to an existing cluster, node must be physically
connected w ith the cluster. 1: Connect the VCS private Ethernet controllers 2:
Connect the node to the shared storage 2: Install the VCS software in the node
Install the VCS software and install the license.

3: Configure LLT and GAB Create the LLT & GAB configuration files
(/etc/llthosts, /etc/llttab and /etc/ga btab) in the new node and update the files
on the existing node. 4: Add the node to an existing cluster We have to perform
below given tasks in any of the existing node of a cluster 1: Make to cluster
configuration R/W # haconf makerw
2: 3:

Add the new node to the cluster # hasys add <new node name>

Copy main.cf file from an existing node to new node # scp


/etc/VRTSvcs/conf/config/main.cf new_node:/ /etc/VRTSvcs/conf/config/main.cf 4: 5:
5: Start vcs on the new node # hastart Now make the configuration again read only.
# haconf dump makero Start VCS and verify the cluster 1: Start VCS on the new node
# hastart

2: Run the GAB configuration command on each node to verify that port a and port h
include the new node in the membership. # /sbin/gabconfig -a Q-2 How to remove a
node from an existing cluster? Ans: Removing a node from a cluster includes many
steps, which are given belo w: 1: rig 2: 3: 4: Check the status of the nodes and
the service groups # hastatus summary Switch service group which is online on the
node leaving the cluster # hagrp switch <service group> to <node name> Delete the
node from the VCS configuration 1: Make the cluster configuration R/W # haconf
makerw 2: 3: ute. # hagrp 4: 5: modify <group> SystemList delete <node> Delete the
node from the cluster # hasys delete <node> Now again make the cluster
configuration Read Only. # haconf dump makero Stop the cluster on leaving node #
hastop sys <node> Delete the leaving node from the service group s SystemList
attrib Backup the configuration file # cp /etc/VRTSvcs/conf/config/main.cf
/etc/VRTSvcs/conf/config/main.cf.o

5: Modify the LLT and GAB configuration files to reflect changes Modify
/etc/llthosts, /etc/llttab and /etc/gabtab files on the remining node on the
cluster. 6: Remove VCS configuration on the node leaving the cluster 1: Unconfigure
and unload LLT and GAB
# /sbin/gabconfig U # /sbin/lltconfig U 2: Unload the LLT and GAB modules #
modunload i <gab_module> # modunload I <llt_module>

3: Rename the startup files to prevent LLT, GAB and VCS from starting up in future.
# mv /etc/rc2.d/S70llt /etc/rc2.d/s70llt # mv /etc/rc2.d/S92gab /etc/rc2.d/s92gab #
mv /etc/rc3.d/S99vcs /etc/rc3.d/s99vcs 4: Remove VCS package from the node

Some General Questions Q-1 Ans: How to shutdown a node in VCS cluster? Shutting
down a VCS node is multi step process.

1) Make the cluster configuration Read/Write # haconf makerw 2) Either Switchover


or failover all the service group which are online on shutt ing down node to
remaining node # hagrp switch <service group> -to <node name> 3) Freeze all the
service group which are online in the cluster. # hagrp freeze <service group>
-persistent 4) Stop the cluster on the node that is going to be down. # hastop
local force 5) Rename the VCS startup script # cd /etc/rc3.d # mv S99vcs s99vcs 6)
Now reboot the box. Once the system will come up after reboot, Follow the below
given instructions. 1) Start the VCS on this node # hastart force 2) Make the
service group online if they were made offline before the system dow n. # hagrp
online <service group> -sys <node name> 3) Unfreeze all the service groups which
are frozen. # hagrp -unfreeze <service group> -persistent 4) Now make the cluster
configuration Read-Only # haconf -dump makero 5) Now again move back the VCS
startup script # cd /etc/rc3.d # mv s99vcs S99vcs Q-2 Ans: How do check the status
of VERITAS Cluster Server? hastatus sum
Q-3 Which is the main config file for VCS and where it is located? Ans: main.cf is
the main configuration file for VCS and it is located in /etc/VRTSvcs/conf/config.
Q-4 Ans: Q-5 Ans: Which command you will use to check the syntax of the main.cf?
hacf -verify /etc/VRTSvcs/conf/config How will you check the status of individual
resource of VCS cluster? hares state <resource>

Q-6 What is the service group in VCS? Ans: Service group is made up of resources
and their links which you normally requires to maintain the HA of application. Q-7
What is the use of halink command?

5:12:29 AM: Praveen Kumar Dagar/Corporate/GeneralElectric: come here

Você também pode gostar