LINUX-HA OPERATIONS

Finally use the thing,

crm configure show

crm status
#crm_mon

crm cluster status
crm cluster run hostname
crm cluster run "echo lala"

disable STONITH (for now),

crm configure property stonith-enabled=false #later

Understand class, provider, type,

crm help
crm ra classes
crm ra list lsb
crm ra list ocf
crm ra list service
crm ra list stonith

Define a floating IP,

crm ra meta IPaddr2
crm configure primitive failover-ip ocf:heartbeat:IPaddr2 params ip=x.x.x.x  cidr_netmask="24" op monitor interval=10s

and check,

crm configure show
crm status

stop, delete and clean-up the resource,

crm resource list
res=failover-ip

#crm configure property maintenance-mode=true
crm node maintenance nodeX

crm resource status $res
crm resource stop $res
crm configure delete $res
crm resource cleanup $res

#crm configure property maintenance-mode=false
crm node ready nodeX

check,

crm configure show
crm status
crm resource list
unset res

OVERVIEW

eventually get an overview with ClusterIt,

dsh -e -g dark uname -n
dsh -e -g dark "ls -l /var/log/packages/ | wc -l"
#dsh -e -g dark drbdadm status
dsh -e -g dark /usr/sbin/drbd-overview

MOVE/MIGRATE RES

see DRBD + LINUX-HA/ISCSI –> OPERATIONS

SHOOTING TROUBLES

see DRBD + LINUX-HA/ISCSI –> SHOOTING TROUBLES

START FROM SCRATCH

all nodes

/etc/rc.d/init.d/pacemaker stop
rm -rf /var/lib/pacemaker/cib/*
/etc/rc.d/init.d/pacemaker start

SHOOTING TROUBLES

RESOURCES

MORE (pcs)


Last update: 2018-12-10 | home | html | css