摘要: #环境准备 #设置主机名解析yum -y install pcs pacemaker corosync fence-agents-allsystemctl start pcsd.servicesystemctl enable pcsd.serviceuseradd haclusterpasswd h 阅读全文
posted @ 2019-05-24 16:16 suminem 阅读(411) 评论(0) 推荐(0) 编辑
摘要: Pacemaker是红帽7上的集群管理器,用于替代6上RHCS 配置ISCSI 服务端 targetcli 设置属性 demo_mode_write_protect=0 #不写保护 删除配置 客户端挂载共享硬盘 yum -y install lvm2-cluster iscsi* iscsiadm 阅读全文
posted @ 2019-05-23 17:25 suminem 阅读(256) 评论(0) 推荐(0) 编辑
摘要: #设置一个空的私钥 ssh-keygen -f /root/.ssh/id_rsa -N "" #id_rsa.pub变成authorized_keys mv /root/.ssh/{id_rsa.pub,authorized_keys} #将.ssh目录整个拷贝到其他主机 scp -r /root 阅读全文
posted @ 2019-05-23 16:58 suminem 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 7层调度(基于服务,如url) 配置 /etc/haproxy/haproxy.cfg global //关于进程的全局参数 log 127.0.0.1 local2 chroot /var/lib/haproxy pidfile /var/run/haproxy.pid maxconn 4000 阅读全文
posted @ 2019-05-23 13:54 suminem 阅读(308) 评论(0) 推荐(0) 编辑
摘要: LVS_Director + KeepAlived KeepAlived功能 1、实现调度器的HA 2、对RealServer做健康检查 3、动态维护IPVS路由表 http://www.keepalived.org 抓包目标:tcpdump -i eth0 -nn vrrp -w keep.tcp 阅读全文
posted @ 2019-05-22 13:55 suminem 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 问题描述: Oracle数据库由于重启之后无法正常启动,tab$被清空(ORA-600 16703故障解析—tab$表被清空),导致数据库启动异常 ORA-600 16703报错 一、检测方法: 如下SQL语句查询各位所负责的数据库,确认没有记录表示未中病毒! SELECT 'DROP TRIGGE 阅读全文
posted @ 2019-05-14 17:18 suminem 阅读(1777) 评论(0) 推荐(0) 编辑
摘要: 一、qcow2格式 查看镜像文件实际占用空间 ls -alh t.qcow2 加容量(只能加不能减) qemu-img resize t.qcow2 +1G 查看qcow2信息 qemu-img info t.qcow2 二、raw格式 加容量 qemu-img resize t.raw -- +1 阅读全文
posted @ 2019-05-13 14:25 suminem 阅读(727) 评论(0) 推荐(0) 编辑
摘要: LVS-四层调度(基于IP:PORT) 1、轮询算法:Round Robin - RR 后端RS性能一致,请求开销差别小 2、加权轮询:Weighted Round Robin - WRR 后端RS性能有差异,请求开销差异小 3、最少链接:Least Connections - LC 后端RS性能差 阅读全文
posted @ 2019-04-25 11:43 suminem 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 目标服务器:10.11.6.11 源服务器:10.11.6.12 准备条件: 1、关闭selinux; 2、开启防火墙tcp 873端口(或关闭防火墙) 3、安装rsync yum -y install xinetd rsync gcc CentOS7 需要编写/etc/xinetd.d/rsync 阅读全文
posted @ 2019-03-27 17:50 suminem 阅读(456) 评论(0) 推荐(0) 编辑
摘要: roles/node_exporter/tasks/main.yml - name: copy package copy: src=node_exporter-0.17.0.linux-amd64.tar.gz dest=/usr/local/node_exporter-0.17.0.linux-a 阅读全文
posted @ 2019-03-01 17:38 suminem 阅读(668) 评论(0) 推荐(0) 编辑