Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cách thêm VIP cùng hoạt động trên các máy chủ #2

Open
hoangdh opened this issue Apr 25, 2018 · 0 comments
Open

Cách thêm VIP cùng hoạt động trên các máy chủ #2

hoangdh opened this issue Apr 25, 2018 · 0 comments

Comments

@hoangdh
Copy link
Owner

hoangdh commented Apr 25, 2018

Tạo tài nguyên VIP mới

pcs resource create vip2 ocf:heartbeat:IPaddr2 ip="X.X.X.X" cidr_netmask="24" nic="ethX" op monitor interval="30s"

Thêm tùy chọn nic="ethX": Chỉ định NIC lắng nghe

Tạo clone tài nguyên

pcs resource master vip2-clone vip2 master-max=1 master-node-max=1 clone-max=2 clone-node-max=1 notify=true

Bonus: Thay đổi địa chỉ VIP

pcs resource update vip2 IPAddr ip=192.168.2.200 cidr_netmask=24 op monitor interval=30s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant