Proxmox에서 CentOS 7 컨테이너를 사용하고 있는데 가상 IP에 문제가 있습니다.
를 사용하여 가상 IP를 생성했는데 pcs resource create cluster_vip ocf:heartbeat:IPaddr2 ip=10.2.12.30 cidr_netmask=23 op monitor interval=20s
이제 다음 오류가 발생합니다.
Full list of resources:
cluster_vip (ocf::heartbeat:IPaddr2): Stopped
Resource Group: grp_zabbix_httpd
zabbix_server (systemd:zabbix-server): Stopped
httpd (systemd:httpd): Stopped
Failed Actions:
* cluster_vip_monitor_0 on zabbix1 ‘not installed’ (5): call=5, status=complete, exitreason=’Setup problem: couldn’t find command: ip’,
last-rc-change=’Sat Aug 25 17:09:23 2018′, queued=0ms, exec=15ms
이미 최신
yum install iproute
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.netcologne.de
* epel: ftp.nluug.nl
* extras: mirror.wiuwiu.de
* updates: mirror.netcologne.de
Package iproute-4.11.0-14.el7.x86_64 already installed and latest version
Nothing to do
# ip route
default via 10.2.12.1 dev eth0
10.2.12.0/23 dev eth0 proto kernel scope link src 10.2.13.44
169.254.0.0/16 dev eth0 scope link metric 1088
# ip a|grep "inet "
inet 127.0.0.1/8 scope host lo
inet 10.2.13.44/23 brd 10.2.13.255 scope global eth0
inet 10.2.12.30/23 scope global secondary eth0
# netstat -rn
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 10.2.12.1 0.0.0.0 UG 0 0 0 eth0
10.2.12.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
pcs resource cleanup cluster_vip
해결책을 가져오지 않았습니다. 어떡해?
답변1
yum install which
모두 필요http://bugzilla.redhat.com/show_bug.cgi?id=1460457
답변2
읽기 오류는 ip
명령줄 도구가 설치되지 않았음을 나타냅니다. 다음 명령을 실행해 보세요 root
.
yum install iproute