Unix Clusters Cheat Sheet


VCS

ServiceGuard

HACMP

Red Hat Cluster Suite

SUN Cluster

Corosync - Pacemaker
Cluster status hastatus -sum cmviewcl clstat -a clustat scstat -p crm_mon -1 -V; crm_verify -L -V
Start service hagrp -online serv -sys node cmrunpkg [-n node] serv cldare -M serv:node clusvcadm -e serv scswitch -Z -g serv crm_resource start serv
Stop service hagrp -offline serv -sys node cmhaltpkg [-n node] serv cldare -M serv:stop clusvcadm -d serv scswitch -F -g serv crm_resource --resource serv --set-parameter target-role --meta --parameter-value Stopped
Switch service hagrp -switch serv -to node2 cmhaltpkg [-n node1] serv
cmrunpkg -n node2 serv
cmmodpkg -e serv
cldare -M serv:node clusvcadm -r serv [-m node2] crm_resource --resource serv --move --node node2
Freeze service hagrp -freeze serv cmmodpkg -d service Susp. Appl. Monitoring crm_resource --resource serv --set-parameter is_managed --meta --parameter-value false
Stop cluster hastop -all cmhaltcl clstop -y -N -g service cman stop scshutdown service pacemaker stop
service corosync stop
Show conf. hasys -display
hagrp -display
hares -display
cmviewcl -v cllsgrp
clshowres
scrgadm -p
scconf -p
pcs config
Files /etc/VRTSvcs/conf/config/main.cf /etc/cmcluster/cluster.ascii
/etc/cmcluster/serv/serv.ascii
/usr/es/sbin/cluster/ /etc/cluster/cluster.conf /etc/clusters /etc/corosync/corosync.conf


Title: Unix Clusters Cheat Sheet
Date: 31 October 2003
Version: 1.0.11 31 June 2016
Author: mail@meo.bogliolo.name