pcs常用命令
来源:互联网 发布:js 定义对象和方法 编辑:程序博客网 时间:2024/06/05 20:17
安装ha组件:yum install pcs fence-agents-all创建集群pcs cluster setup --start --name my_cluster z1.example.com z2.example.com启动集群服务pcs cluster enable --all查看集群状态pcs cluster status创建stonith设备pcs stonith create myapc fence_apc_snmp params ipaddr="zapc.example.com" pcmk_host_map="z1.example.com:1;z2.example.com:2" pcmk_host_check= "static-list" pcmk_host_list="z1.example.com,z2.example.com" login="apc" passwd="apc" pcs stonith show myapc创建资源pcs resource create my_lvm LVM volgrpname=my_vg exclusive=true --group apachegrouppcs resource showpcs resource enablepcs resource create my_fs Filesystem device="/dev/my_vg/my_lv" directory="/var/www" fstype="ext4" --group apachegrouppcs resource create VirtualIP IPaddr2 ip=198.51.100.3 cidr_netmask=24 --group apachegrouppcs resource create Website apache configfile="/etc/httpd/conf/httpd.conf" statusurl="http://127.0.0.1/server-status" --group apachegrouppcs resource create VirtualIP ocf:heartbeat:IPaddr2 ip=192.16 8.0.120 cidr_netmask=24 opmonitorinterval= 30s
查看集群状态:
pcs status
倒换节点:pcs cluster standby z1.example.compcs cluster unstandby z1.example.com
查看帮助pcs resource -h
导出和备份配置文件pcs cluster cib testfilepcs config backuppcs config restorepcs cluster setup --name new_cluster nodeA nodeB --token 10000 --join 100pcs cluster stoppcs cluster enablepcs cluster disablepcs cluster node add nodepcs cluster node remove nodepcs cluster standby nodepcs cluster unstandby nodepcs stonith listpcs stonith describepcs stonith show --fullpcs stonith create myapc-west-13 fence_apc pcmk_host_list="west-13" ipaddr="west-apc" login="apc" passwd="apc" port="15"
fence对应节点:pcs stonith fence nodepcs resource delete VirtualIPpcs resource describe LVMpcs resource show --fullpcs resource enable resource_idpcs resource disable resource_id
设置资源先后关系pcs constraint VirtualIP then dummy_resource kind=Optional
进入维护模式:pcs resource unmanage resource1
解除维护模式
pcs resource manage resource1
0 0
- pcs常用命令
- PCS命令
- baidu pcs api
- 百度PCS 测试案例
- Upgrading & Fixing PCs For Dummies
- 百度 PCS API的使用方法
- 百度pcs关闭服务怎么办?
- 【集群】corosync+pacemaker+iscsi+pcs
- Google software allows remote access to PCs
- List of partition identifiers for PCs
- Make Projects: Small Form Factor PCs
- VPCS for Dynamips 9 PCs support
- Block Communications between Wireless PCs (Privacy Separator)
- Block Communications between Wireless PCs (Privacy Separator)
- PCS/MES/ERP各层内容
- 百度pcs操作实例c语言版
- 百度云盘PCS API使用
- 百度PCS快速获取access_token的方法
- iOS 开发之EXC_BAD_ACCESS异常分析
- Ruby—关于Button跳转
- OpenMP多线程编程技术
- MATLAB优化工具箱使用
- HDU-求大数的阶乘
- pcs常用命令
- 杨氏数组查找
- POJ 2533 Longest Ordered Subsequence
- HDOJ 1005 Number Sequence
- Cocos2dx3.2编写常用UI组件(四)发光的标题BlinkTitile
- [WC 2015复习](四)数学
- 自动刷新程序
- Review-动态树(Bzoj2049)
- Eigen 3.2.4 change log