- 论坛徽章:
- 0
|
跑在节点1上,samba能正常访问,此时虚拟ip能ping通;poweroff节点1,clustat查看双机切换到节点2上面,此时不能访问samba资源,提示“检查名字拼写时是否正常”(此问题可能是由于双机切换smb服务虽然随着虚拟ip飘移呢过正常启动,但未能将主机加入域中导致)。
同时在节点2看到如下报错:
Nov 1 16:20:04 mnas1 smbd[17438]: kerberos_kinit_password MNAS$@BAIST.AC.CN failed: Client not found in Kerberos database (使用kinit验证能通过,不知道为何报这样的错误)
Nov 1 16:20:04 m1 smbd[17438]: [2012/11/01 16:20:04, 0] printing/nt_printing.c:nt_printing_init(659)
Nov 1 16:20:04 m1 smbd[17438]: nt_printing_init: error checking published printers: WERR_ACCESS_DENIED
Nov 1 16:20:04 m1 smbd[17438]: [2012/11/01 16:20:04, 0] lib/util_sock.c pen_socket_in(822)
Nov 1 16:20:04 m1 smbd[17438]: bind failed on port 445 socket_addr = 192.168.0.4.
Nov 1 16:20:04 m1 smbd[17438]: Error = Address already in use
我的hosts配置
192.168.0.2 m1 (bond0)
192.168.0.3 m2
192.168.0.4 vm(虚拟ip)
cluster.conf配置:
<?xml version="1.0"?>
<cluster config_version="5" name="smb_cluster">
<fence_daemon post_fail_delay="0" post_join_delay="3"/>
<clusternodes>
<clusternode name="192.168.0.2 " nodeid="1" votes="1">
<fence>
<method name="1">
<device name="smb" nodename="192.168.0.2 "/>
</method>
</fence>
</clusternode>
<clusternode name="192.168.0.3" nodeid="2" votes="1">
<fence>
<method name="1">
<device name="smb" nodename="192.168.0.3"/>
</method>
</fence>
</clusternode>
</clusternodes>
<cman expected_votes="1" two_node="1"/>
<fencedevices>
<fencedevice agent="fence_manual" name="smb"/>
</fencedevices>
<rm>
<failoverdomains>
<failoverdomain name="smb_ha" ordered="0" restricted="1">
<failoverdomainnode name="192.168.0.2" priority="1"/>
<failoverdomainnode name="192.168.0.3" priority="1"/>
</failoverdomain>
</failoverdomains>
<resources>
<ip address="192.168.0.4/24" monitor_link="1"/>
<smb name="smb" workgroup="TEST"/>
</resources>
<service autostart="1" domain="smb_ha" name="smb_services">
<ip ref="192.168.0.4/24">
<smb ref="smb"/> (samba服务依附于虚拟ip服务,在smb其中脚本中添加加入、退出域语句,)
</ip>
</service>
</rm>
</cluster>
小弟在这里先谢谢各位大神了,急求解啊!!!! |
|