CENTOS 7のPACEMAKER仮想IPの問題

CENTOS 7のPACEMAKER仮想IPの問題

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

おすすめ記事