Guia Rápida vcs

De jagfloriano.com
Ir a la navegaciónIr a la búsqueda

Veritas Cluster Server (VCS) Cheat Sheet

Estado general del cluster

hastatus -sum

Service Groups

hagrp -list hagrp -state hagrp -display APP_SG

Recursos

hares -list hares -state hares -display hares -display vip01

Failover manual

hagrp -switch APP_SG -to node2 hagrp -online APP_SG -sys node2 hagrp -offline APP_SG -sys node1

Freeze / Mantenimiento

hagrp -freeze APP_SG hagrp -unfreeze APP_SG hagrp -freeze APP_SG -persistent

Nodos

hasys -list hasys -state hasys -display

LLT

lltstat -nvv lltstat -nv

GAB

gabconfig -a

Puertos habituales: a = GAB b = I/O fencing h = HAD v = VxVM f = CFS

HAD

ps -ef | grep had hastart hastop hastop -all

Logs

tail -f /var/VRTSvcs/log/engine_A.log grep -i error /var/VRTSvcs/log/engine_A.log grep FAULT /var/VRTSvcs/log/engine_A.log

Configuración

cat /etc/VRTSvcs/conf/config/main.cf hacf -verify /etc/VRTSvcs/conf/config haconf -makerw haconf -dump -makero

Storage Foundation

Disk Groups

vxdg list vxdg import PROD_DG vxdg deport PROD_DG

Discos

vxdisk list vxdisk list emc0_123

Volúmenes

vxprint -ht vxprint -vth

VxFS

mount -t vxfs /dev/vx/dsk/PROD_DG/vol01 /oracle df -hT

DMP

vxdmpadm getsubpaths vxdmpadm getsubpaths dmpnodename=emc0_123

Comandos de emergencia (3 AM)

hastatus -sum hares -state hagrp -state lltstat -nvv gabconfig -a tail -200 /var/VRTSvcs/log/engine_A.log vxdg list vxprint -ht vxdisk list