Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

Basic Veritas Cluster Commands

Leer en espanol
Basic Veritas Cluster Commands

Table of contents

Start view ===

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 -all
Save settings
Bash
[root@vcs01 ]#   haconf -dump -makero
Create new user:
Bash
[root@vcs01 ]#   hauser -add user

Start a group

Bash
[root@vcs01 ]#   hagrp -online <GRUPO> -sys <NODO SERVIDOR>
[root@vcs01 ]#   hagrp -online <GRUPO> -any

Stop a Group

Bash
[root@vcs01 ]#   hagrp -offline <GRUPO> -sys <NODO SERVIDOR>
[root@vcs01 ]#   hagrp -offline <GRUPO> -any

Balance cluster resource

Bash
[root@vcs01 ]#   hagrp -switch <GRUPO> -to <NODO SERVIDOR>
[root@vcs01 ]#   hagrp -switch <GRUPO> -any

Service 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 -summary

Check LLT Status 

Bash
l[root@vcs01 ]#  ltconfig

[root@vcs01 ]#  lltconfig -a list

[root@vcs01 ]#  lltstat

[root@vcs01 ]#  vlltstat -nvv

Check GAB status

Bash
[root@vcs01 ]#  gabconfig -a
Start LLT
Bash
[root@vcs01 ]#  lltconfig -c

Stop LLT

Bash
[root@vcs01 ]#  lltconfig -U
Start GAB
Bash
[root@vcs01 ]#  gabconfig -c -n <seed_number>
Stop GAB
Bash
[root@vcs01 ]#  gabconfig -U

Freeze 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