You are on page 1of 3

yum install pcs fence-agents-rht

firewall-cmd --permanent --add-service=high-availability


firewall-cmd --reload

systemctl enable --now pcsd

passwd hacluster

pcs cluster auth nodea nodeb nodec

pcs cluster setup --start --name mycluster nodea nodeb nodec

pcs cluster enable --all

pcs stonith create fence_nodea fence_rht port="nodea.example.com"


pcmk_host_list="nodea.example.com" ipaddr="classroom.example.com"
pcs stonith create fence_nodeb fence_rht port="nodeb.example.com"
pcmk_host_list="nodeb.example.com" ipaddr="classrom.example.com
pcs stonith create fence_nodec fence_rht port="nodec.example.com"
pcmk_host_list="nodec.example.com" ipaddr="classrom.example.com"

pcs stonith show

yum instlal pcs fence-agents-rht


firewall-cmd --permanent --add-service=high-availability
firewall-cme --reload

systemctl enable --now pcsd

passwd hacluster

pcs cluster auth noded

pcs cluster node add noded

pcs cluster enable


pcs cluster start
pcs status

pcs stonith create fence_noded

corosync-quorumtool

--auto_tie_braker
--last_man_standing

pcs cluster standby nodea


pcs cluster stop node3
pcs cluster disable node3

auto_tie_braker: 1
wait_for_all: 1

pcs cluster stop --all


vim /etc/corosync/corosync.conf
pcs cluster sync
pcs cluster start --all

yum install pcs fence-agents-rht


firewall-cmd --permanent --add-service=high-availability
firewall-cmd --reload

systemctl enable --now pcsd

passwd hacluster

pcs cluster auth -u hacluster -p redhat noded


pcs cluster add noded.

pcs stonith create fence_node_c fence-rht port="nodec.exmaple.com"


pcmk_host_list="nodec.example.com" ipaddr="classromm.exampe.com"
pcs cluster start
pcs cluster enable

pcs stonith create fence_noded fence_rht port="noded.example.com"


pcmk_host_list="noded.example.com" ipaddr="classrom.example.com"
pcs stonith show

corosync-quorumtool

pcs stonith describe fence_apc


pcs stonith create myfece fence_rht port="myvm" pmck_host_list="pippo.es"

pcs stonith show nodec


pcs stonith update

fence_rht -h
pcs stonith create myfence fence_classroom pcmk_host_check="static-list"
ipaddr="classroom.example.com" pcmk_host_list="nodea.example.com nodeb.example.com
nodec.example.com"
pcs stonith fence noded

yum install -y httpd


setsebool -P httpd_use_nfs 1

pcs resource create firstwebip IPaddr2 ip=172.25.x.80 cidr_netmask=24


--group=firstweb
pcs resoruce create firstwebfs Filesystem device=work:/strahe directory=var/www
fstype=nfs options=ro --group=firstweb
pcs resource create firstwebserver apache --group=firstweb

firewall-cmd --permanent --add-service=httpd


firewall-cmd --reload

yum install -y httpd


setseboo -P httpd_use_nfs 1
firewall-cmd --permanent --add-service=httpd
firewall-cmd --reload

pcs resoruce create surprisefs Filesystem device=1.1.1:/pippo directory=/var/www


fstype=nfs options=ro --group surprise
pcs resource create surpriseip IPaddr2 ip=1.1.1.1 cidr_netmask=24 --group=surprise
pcs resource create surpriseserver apache --group surprise
yum install -y vsftp
firewall-cmd --permanent --add-service=ftp
firewall-cmd --reload
setsebool -P ftpd_use_nfs 1

You might also like