我有一些使用OCFS2卷的OpenSuSE 11.2服务器。 我注意到,当OCFS2集群实际挂载时,o2cb无法弄清楚。 例如,当我尝试closureso2cb时,在停止OCSF2之后,o2cb拒绝closures,因为它认为OCFS2仍在运行!
在停止OCFS2之后,我尝试停止o2cb …
hamguy:/dev/disk/by-label # /etc/init.d/o2cb stop Stopping O2CB cluster ocfs2: Failed Unable to stop cluster as heartbeat region still active
所以我检查状态…
hamguy:/dev/disk/by-label # /etc/init.d/o2cb status Driver for "configfs": Loaded Filesystem "configfs": Mounted Stack glue driver: Loaded Stack plugin "o2cb": Loaded Driver for "ocfs2_dlmfs": Loaded Filesystem "ocfs2_dlmfs": Mounted Checking O2CB cluster ocfs2: Online Heartbeat dead threshold = 31 Network idle timeout: 30000 Network keepalive delay: 2000 Network reconnect delay: 2000 Checking O2CB heartbeat: Active
并仔细检查OCFS2 …
hamguy:/dev/disk/by-label # /etc/init.d/ocfs2 status Configured OCFS2 mountpoints: /u/conf /u/logs /u/backup /u/client /u/data /u/mdata
OCFS2明显下降,而o2cb则明确否定。
OCFS2和o2cb的版本是…
kendall@hamguy:~> rpm -qa |grep ocfs2 ocfs2console-1.4.1-25.6.x86_64 ocfs2-tools-o2cb-1.4.1-25.6.x86_64 ocfs2-tools-1.4.1-25.6.x86_64 kendall@hamguy:~> rpm -qa |grep o2cb ocfs2-tools-o2cb-1.4.1-25.6.x86_64
是什么原因造成的,有没有办法解决这个问题? 如果我尝试重新启动机器,它将永远坐在那里,直到您的物理电源循环。 这显然是一个问题。
任何洞察力表示赞赏,谢谢。
肯德尔
umount -l /dev/device /etc/init.d/o2cb offline ocfs2
请确保在执行/etc/init.d/o2cb status时检查O2CB心跳:是非活动/etc/init.d/o2cb status
如果没有更改为INACTIVE,则从/etc/fstab删除所有条目并重新引导。
重新启动后检查状态,如果它是INACTIVE然后卸载并重新启用节点使用:
/etc/init.d/o2cb unload /etc/init.d/o2cb enable
POINT是所有节点都必须处于INACTIVE状态才能将它们全部连接到相同的心跳
它为我工作