RHCS5.2 浮動IP和伺服器IP必須在同一網段?
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
兩台伺服器IP分別是192.168.10.20和21,浮動IP為192.168.2.39。
報錯如下:
Jul 11 14:27:51 localhost clurgmgrd: <notice> Starting stopped service service:httpservice
Jul 11 14:27:51 localhost clurgmgrd: <notice> start on ip "192.168.2.39" returned 1 (generic error)
Jul 11 14:27:51 localhost clurgmgrd: <warning> #68: Failed to start service:httpservice; return value: 1
Jul 11 14:27:51 localhost clurgmgrd: <notice> Stopping service service:httpservice
Jul 11 14:27:51 localhost clurgmgrd: <notice> Service service:httpservice is recovering
Jul 11 14:27:51 localhost clurgmgrd: <warning> #71: Relocating failed service service:httpservice
Jul 11 14:27:52 localhost clurgmgrd: <notice> Service service:httpservice is stopped
《解決方案》
在不在都沒有問題。。
《解決方案》
把浮動IP改成192.168.10.19,一切正常沒有報錯。
但不同網段老是報錯,cluster.conf配置如下:
<?xml version="1.0" ?>
<cluster alias="new_cluster" config_version="5" name="new_cluster">
<fence_daemon post_fail_delay="0" post_join_delay="3"/>
<clusternodes>
<clusternode name="rhel5-1" nodeid="1" votes="1">
<fence/>
</clusternode>
<clusternode name="rhel5-2" nodeid="2" votes="1">
<fence/>
</clusternode>
</clusternodes>
<cman expected_votes="1" two_node="1"/>
<fencedevices/>
<rm>
<failoverdomains/>
<resources>
<ip address="192.168.2.39" monitor_link="1"/>
<script file="/etc/init.d/httpd" name="httpd_script"/>
</resources>
<service autostart="1" name="httpservice" recovery="relocate">
<ip ref="192.168.2.39"/>
<script ref="httpd_script"/>
</service>
</rm>
</cluster>
《解決方案》
那要詳細了解你的結構和配置的方法過程了。