Escolar Documentos
Profissional Documentos
Cultura Documentos
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>
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:
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>
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.
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?