You are on page 1of 5

High Availability: Veritas Cluster - Commands

Term/Cmd/Pkg Description Command / File

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-= -=-=-=-=-=-=-=VRTSvcs VERITAS Cluster Server VRTSvcswz VERITAS Cluster Server Wizard VRTScsga VERITAS Cluster Server Graphical Administrator VRTSgab VERITAS Group Membership and Atomic Broadcast VRTSllt VERITAS Low Latency Transport VRTSvcsor VERITAS Cluster Server Oracle Enterprise Extension VRTSvcssy VERITAS Cluster Server Sybase Enterprise Extension VRTSperl VERITAS Perl for VRTSvcs Cluster Name of your HA environment Nodes Physical systems that make up the cluster Service group Abstract container of related resources Resource Cluster components (i.e. NICs, IPs, disk groups, volumes, mounts, processes, etc...) Attributes Parameter values that define the resources Dependencies Links between resources or service groups Cluster Mgr Cluster Mgr dependencies Cluster Mgr commands Cluster Mgr LLT network connx. GAB disk comm. Cluster Monitor : Log in, add clusters, change preferences Cluster Explorer: Monitor systems, service grps, resources, attributes & Log Desk : Monitor log messages received from engine, view GUI

Command Center : Build VCS commands and send to engine Low Latency transport provides fast kernel-kernel comm. & monitors Grp membership & Atomic Broadcast maintains a synch. state & monitors

Config files VCS etc directory Config files VCS configuration directories $VCSCONF=/etc/VRTSvcs/conf/config Binary files VCS opt directory Binary files VCS binary path Log files VCS log path Config files VCS configuration file LLT tab file LLT configuration file LLT hosts file LLT host name database GAB file Grp membership & Atomic Broadcast file quick-start VCS Quick-start wizard $VCS_HOME/wizards/config/quick_start quick-NFS VCS Quick-NFS wizard $VCS_HOME/wizards/services/quick_nfs llt Verify LLT llt Get interface MAC Address Page 1/5

$VCSETC=/etc/VRTSvcs

$VCSOPT=/opt/VRTSvcs $VCSBIN=/opt/VRTSvcs/bin $VCSLOG=/var/VRTSvcs/log /etc/VRTSvcs/conf/config/main.cf /etc/llttab /etc/llthosts /etc/gabtab # # # /sbin/llstat -n # /opt/VRTSllt/getmac

(c) 2010 Luke Francis <dotcom360@gmail.com> URL: http://unixarticles.com/content/7/6/en/veritas-cluster-_-commands.html

High Availability: Veritas Cluster - Commands


device_name llt Check network connectivity device_name gab Verify GAB /sbin/gabconfig -l hasys List systems in cluster hasys Detailed info on each cluster node -display (sysname) hasys Increase system count in gabtab startup (sysname) hasys Delete a system (sysname) hastart Start VCS cluster hastart Force start a stale VCS cluster -force -stale hastop Stop VCS on all systems hastop Stop VCS had, keep srvc-groups running -force hastop Stop VCS, migrate srvc-groups to sysname (sysname) -evacuate hastatus Provide continual status of service grps hastatus Verify status of service groups -summary hacf Check for syntax errors in main.cf /etc/VRTSvcs/conf/config/main.cf hacf Generate dependency tree in main.cf -generate /etc/VRTSvcs/conf/config/main.cf # /opt/VRTSllt/dlpiping -s|-c -v # /sbin/gabconfig -a ; # /opt/VRTSvcs/bin/hasys -list # /opt/VRTSvcs/bin/hasys # /opt/VRTSvcs/bin/hasys -add # /opt/VRTSvcs/bin/hasys -delete # /opt/VRTSvcs/bin/hastart # /opt/VRTSvcs/bin/hastart # /opt/VRTSvcs/bin/hastop -all # /opt/VRTSvcs/bin/hastop -local # /opt/VRTSvcs/bin/hastop -sys # /opt/VRTSvcs/bin/hastatus # /opt/VRTSvcs/bin/hastatus # /opt/VRTSvcs/bin/hacf -verify # /opt/VRTSvcs/bin/hacf

hares List all resources # /opt/VRTSvcs/bin/hares -list hares List a resource&#39;s dependencies # /opt/VRTSvcs/bin/hares -dep (resource_name) hares Get detailed info on a resource # /opt/VRTSvcs/bin/hares -display (resource) hares Add a resource # /opt/VRTSvcs/bin/hares -add (resource_name (resource_type (service_group) hares Modify attributes of the new resource # /opt/VRTSvcs/bin/hares -modify (resource_name (attribute_name (value) hares Delete a resource # /opt/VRTSvcs/bin/hares -delete (resource_name) hares Online a resource # /opt/VRTSvcs/bin/hares -online (resource_name) -sys (system_name) hares Offline a resource # /opt/VRTSvcs/bin/hares -offline (resource_name) -sys (system_name) hares Monitor resource on a system # /opt/VRTSvcs/bin/hares -probe (resource_name) -sys (system_name) hares Clear a faulted resource # /opt/VRTSvcs/bin/hares -clear (resource_name) [-sys system_name] hares Make a resource&#39;s attribute value local # /opt/VRTSvcs/bin/hares -local (resource_name) (attribute_name) value) Page 2/5
(c) 2010 Luke Francis <dotcom360@gmail.com> URL: http://unixarticles.com/content/7/6/en/veritas-cluster-_-commands.html

High Availability: Veritas Cluster - Commands


hares Make a resource&#39;s attribute value global # /opt/VRTSvcs/bin/hares -global (resource_name) (attribute_name) value) hares Specify a dependency between 2 resources # /opt/VRTSvcs/bin/hares -link (parent_res) (child_res) hares Remove dependency between 2 resources # /opt/VRTSvcs/bin/hares -unlink (parent_res) (child_res) hares Modify a Share res. by adding options # /opt/VRTSvcs/bin/hares Share_cicgt-as4-p_apps Options "%-o rw,root=dcsa-cln1" hagrp List all service groups hagrp List a service group&#39;s resources -resources [service_group] hagrp List a service group&#39;s dependencies -dep [service_group] hagrp Detailed info about a service group -display [service_group] hagrp Start service group, bring res. online (service_group) -sys (system_name) hagrp Stop service group, bring res. offline -offline (service_group) -sys (system_name) hagrp Switch service group between nodes (service_group) -to (system_name) hagrp Freeze svcgroup, (disable onl. & offl.) (service_group) [-persistent] hagrp Thaw a svcgroup, (enable onl. & offl.) -unfreeze (service_group) [-persistent] hagrp Enable a service group (service_group) [-sys system_name] hagrp Disable a service group -disable (service_group) [-sys system_name] hagrp Enable all resources in a service group -enableresources (service_group) hagrp Disable all resources in a service group -disableresources (service_group) hagrp Specify dependenciy between 2 svc groups (parent_group) (child_group) (relationship) hagrp Remove dependenciy between 2 svc groups (parent_group) (child_group) hagrp Auto-Enable a servicegroup marked -autoenable (service_group) [-sys system_name] disabled due to prob with system_name. hatype List resource types hatype Detailed info on a resource type -display (resource_type) hatype List all resources of a part. type -resources (resource_type) hatype Add a resource type Page 3/5
(c) 2010 Luke Francis <dotcom360@gmail.com> URL: http://unixarticles.com/content/7/6/en/veritas-cluster-_-commands.html

# /opt/VRTSvcs/bin/hagrp -list # /opt/VRTSvcs/bin/hagrp # /opt/VRTSvcs/bin/hagrp # /opt/VRTSvcs/bin/hagrp # /opt/VRTSvcs/bin/hagrp -online # /opt/VRTSvcs/bin/hagrp

# /opt/VRTSvcs/bin/hagrp -switch # /opt/VRTSvcs/bin/hagrp -freeze # /opt/VRTSvcs/bin/hagrp # /opt/VRTSvcs/bin/hagrp -enable # /opt/VRTSvcs/bin/hagrp # /opt/VRTSvcs/bin/hagrp # /opt/VRTSvcs/bin/hagrp # /opt/VRTSvcs/bin/hagrp -link # /opt/VRTSvcs/bin/hagrp -unlink # /opt/VRTSvcs/bin/hagrp

# /opt/VRTSvcs/bin/hatype -list # /opt/VRTSvcs/bin/hatype # /opt/VRTSvcs/bin/hatype # /opt/VRTSvcs/bin/hatype -add

High Availability: Veritas Cluster - Commands


(resource_type) hatype Set static attribute values # /opt/VRTSvcs/bin/hatype -modify ... hatype Delete a resource type # /opt/VRTSvcs/bin/hatype -delete (resource_type) haattr Add Attribute to a Type definition # /opt/VRTSvcs/bin/haattr -add (resource_type) (attribute_name) (attribute_type -integer, -string, -vector) haattr Delete a Entry in a Type definition # /opt/VRTSvcs/bin/haattr -delete (resource_type) (attribute_name) haconf Set VCS configuration file to r/w mode # /opt/VRTSvcs/bin/haconf -makerw haconf Set VCS configuration file to read mode # /opt/VRTSvcs/bin/haconf -dump -makero hauser Add a user with r/w access to VCS # /opt/VRTSvcs/bin/hauser -add (user_name) hauser Add a user with read access only to VCS # /opt/VRTSvcs/bin/hauser -add VCSGuest hauser Update a user # /opt/VRTSvcs/bin/hauser -update (user_name) hauser Delete a user # /opt/VRTSvcs/bin/hauser -delete (user_name) hauser Display all users # /opt/VRTSvcs/bin/hauser -display haagent Start agents manually # haagent -start (agent_name) -sys (system_name) haagent Stop agents manually # haagent -stop (agent_name) -sys (system_name) hagui Start Cluster Manager # /opt/VRTSvcs/bin/hagui hagui Start Cluster Manager in debug mode # /opt/VRTSvcs/bin/hagui -D Product Terminology comparisons Sun SC 2.2Veritas VCS 1.1 -----------------------------------------------------cluster name cluster name admin workstation physical node A local system physical node B remote system physical node IP address maintenance IP address logical host service group logical host IP address service group IP address resources disk group disk group private heartbeats communication channels GAB disk (disk heartbeat) Quorum disk Admin filesystem scinstall Quick-Start wizard split-brain network partition

Page 4/5
(c) 2010 Luke Francis <dotcom360@gmail.com> URL: http://unixarticles.com/content/7/6/en/veritas-cluster-_-commands.html

High Availability: Veritas Cluster - Commands


configuration files: /etc/llthosts /etc/llttab /etc/gabtab /etc/VRTSvcs/conf/config/main.cf /etc/VRTSvcs/conf/config/sysname

Unique solution ID: #1005 AuthorLuke Francis Last update: 2009-08-15 19:06

Page 5/5
(c) 2010 Luke Francis <dotcom360@gmail.com> URL: http://unixarticles.com/content/7/6/en/veritas-cluster-_-commands.html

You might also like