These are the basic commands to control a VCS (Veritas Cluster Server) from command line. View Cluster status, start/stop/restart/move resources and services, etc.
Start veritas Cluster:
Bash
[root@vcs01 ]# hastart
[root@vcs01 ]# hasys -force <NODO SERVIDOR>Stop Veritas Cluster
Bash
[root@vcs01 ]# hastop -local
[root@vcs01 ]# hastop -sys <NODO SERVIDOR>
[root@vcs01 ]# hastop -allSave settings
Bash
[root@vcs01 ]# haconf -dump -makeroCreate new user:
Bash
[root@vcs01 ]# hauser -add userStart a group
Bash
[root@vcs01 ]# hagrp -online <GRUPO> -sys <NODO SERVIDOR>
[root@vcs01 ]# hagrp -online <GRUPO> -anyStop a Group
Bash
[root@vcs01 ]# hagrp -offline <GRUPO> -sys <NODO SERVIDOR>
[root@vcs01 ]# hagrp -offline <GRUPO> -anyBalance cluster resource
Bash
[root@vcs01 ]# hagrp -switch <GRUPO> -to <NODO SERVIDOR>
[root@vcs01 ]# hagrp -switch <GRUPO> -anyService Flush
Bash
[root@vcs01 ]# hagrp -flush group -sys <NODO SERVIDOR>Start a resource
Bash
[root@vcs01 ]# hares -online <RECURSO> -sys <NODO SERVIDOR>Stop a resource
Bash
[root@vcs01 ]# hares -offline <RECURSO> -sys <NODO SEREVIDOR>Check cluster status (System, resource, groups, agents)
Bash
[root@vcs01 ]# hastatus -summaryCheck LLT Status
Bash
l[root@vcs01 ]# ltconfig
[root@vcs01 ]# lltconfig -a list
[root@vcs01 ]# lltstat
[root@vcs01 ]# vlltstat -nvvCheck GAB status
Bash
[root@vcs01 ]# gabconfig -aStart LLT
Bash
[root@vcs01 ]# lltconfig -cStop LLT
Bash
[root@vcs01 ]# lltconfig -UStart GAB
Bash
[root@vcs01 ]# gabconfig -c -n <seed_number>Stop GAB
Bash
[root@vcs01 ]# gabconfig -UFreeze a group
Bash
[root@vcs01 ]# hagrp -freeze <GRUPO>Unfreeze a group
Bash
[root@vcs01 ]# hagrp -unfreeze <GRUPO>Freeze a system
Bash
[root@vcs01 ]# hasys -freeze <NODO SERVIDOR>Unfreeze a system
Bash
[root@vcs01 ]# hasys -unfreeze <NODO SERVIDOR>More information: http://unixadminguide.blogspot.com.es/2014/01/veritas-cluster-cheat-sheet.html
all the best
:wq!
Comments