Inicio Linux & Systems Networks & Infrastructure Cybersecurity Cloud & DevOps SIEM & Monitoring DFIR & Threat Intel Development & Other Todas las categorias Herramientas

Comandos básicos Veritas Cluster

Comandos básicos Veritas Cluster

Tabla de contenidos

Estos son los comandos básicos para controlar un VCS (Veritas Cluster Server) desde línea de comandos. Ver el estado del Cluster,  arrancar/parar/reiniciar/mover recursos y servicios, etc.

Iniciar veritas Cluster:

bash
[root@vcs01 ]#   hastart
[root@vcs01 ]#   hasys -force <NODO SERVIDOR>
Parar Veritas Cluster
bash
[root@vcs01 ]#   hastop -local
[root@vcs01 ]#   hastop -sys <NODO SERVIDOR>
[root@vcs01 ]#   hastop -all
Guardar la configuración
bash
[root@vcs01 ]#   haconf -dump -makero
Crear nuevo usaurio:
bash
[root@vcs01 ]#   hauser -add user

Iniciar un grupo

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

Parar un  Grupo

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

Balancear recurso del cluster

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

Flush del servicio

bash
[root@vcs01 ]#   hagrp -flush group -sys <NODO SERVIDOR>

Iniciar un recurso

bash
[root@vcs01 ]# hares -online <RECURSO> -sys <NODO SERVIDOR>

Parar un recurso

bash
[root@vcs01 ]# hares -offline <RECURSO> -sys <NODO SEREVIDOR>

Comprobar el estado del cluster (Sistema, recurso, grupos, agentes)

bash
[root@vcs01 ]#  hastatus -summary

Comprobar el estado de LLT 

bash
l[root@vcs01 ]#  ltconfig

[root@vcs01 ]#  lltconfig -a list

[root@vcs01 ]#  lltstat

[root@vcs01 ]#  vlltstat -nvv

Comprobar el estado de GAB

bash
[root@vcs01 ]#  gabconfig -a
Iniciar LLT
bash
[root@vcs01 ]#  lltconfig -c

Parar LLT

bash
[root@vcs01 ]#  lltconfig -U
Iniciar GAB
bash
[root@vcs01 ]#  gabconfig -c -n <seed_number>
Parar GAB
bash
[root@vcs01 ]#  gabconfig -U

Congelar un grupo

bash
[root@vcs01 ]#  hagrp -freeze <GRUPO>

Descongelar un grupo

bash
[root@vcs01 ]#  hagrp -unfreeze <GRUPO>
Congelar un sistema
bash
[root@vcs01 ]#  hasys -freeze  <NODO SERVIDOR>

Descongelar un sistema

bash
[root@vcs01 ]#  hasys -unfreeze <NODO SERVIDOR>
Mas información: http://unixadminguide.blogspot.com.es/2014/01/veritas-cluster-cheat-sheet.html
un saludo
:wq!