o2cb開始時にエラーとなる
This document (00006807) is provided subject to the disclaimer at the end of this document.
問題点
SUSE Linux Enterprise Server 10でOCFS2を使用するため、o2cbサービスを開始しようとしましたが、オンラインにならず以下のエラーとなります。
# /etc/init.d/o2cb load Mounting configfs filesystem at /sys/kernel/config: OK Loading module "ocfs2_dlm": OK Loading module "ocfs2_dlmfs": OK Mounting ocfs2_dlmfs filesystem at /dlm: OK Switching to user mode heartbeat : OK # /etc/init.d/o2cb online Switching to user mode heartbeat : OK Starting cluster ocfs2: Failed o2cb_ctl: Unable to load cluster configuration file "/etc/ocfs2/cluster.conf" Stopping cluster ocfs2: Failed o2cb_ctl: Unable to load cluster configuration file "/etc/ocfs2/cluster.conf"
原因は何でしょうか?
解決方法
/etc/ocfs2/cluster.confが、次のようにnode節、cluster節に字下げが無い場合、このようなエラーが発生します。
cluster.confの内容:
node:
ip_port = 7777
ip_address = 192.168.222.3
number = 0
name = ocfs1
cluster = ocfs2
node:
ip_port = 7777
ip_address = 192.168.222.4
number = 1
name = ocfs2
cluster = ocfs2
cluster:
node_count = 2
name = ocfs2
次のようにnode節、cluster節の字下げを行うと正常に起動します。
修正したcluster.confの内容:
node:
ip_port = 7777
ip_address = 192.168.222.3
number = 0
name = ocfs1
cluster = ocfs2
node:
ip_port = 7777
ip_address = 192.168.222.4
number = 1
name = ocfs2
cluster = ocfs2
cluster:
node_count = 2
name = ocfs2
起動例:
# /etc/init.d/o2cb load Mounting configfs filesystem at /sys/kernel/config: OK Loading module "ocfs2_dlm": OK Loading module "ocfs2_dlmfs": OK Mounting ocfs2_dlmfs filesystem at /dlm: OK Switching to user mode heartbeat : OK # /etc/init.d/o2cb online Switching to user mode heartbeat : OK Starting cluster ocfs2: OK
Disclaimer
この情報は、米国Novell, Inc.およびノベル株式会社の内外から発生したものです。本文書の内容または本文書を使用した結果について、いかなる保証、表明または約束も行っていません。また、本文書の商品性、および特定目的への適合性について、いかなる黙示の保証も否認し、排除します。
本文書に記載されている会社名、製品名はそれぞれ各社の商品、商標または登録商標です。
- ドキュメントID: J00006807
- 作成年月日: 26-JUL-2006
- 修正年月日:
- ドキュメントリビジョン: 1
- 分類: SUSE Linux
- 対象NOVELL製品およびバージョン: SUSE Linux Enterprise Server 10
- カテゴリ: