DRBD 8.x系とOCFS2の組み合わせ覚書
どの順序で起動、停止すればよいか調査中…
rc3.dの下
手動の場合、起動
手動の場合、停止
cluster.conf作成後、実施する
# service o2cb configure
Configuring the O2CB driver.
This will configure the on-boot properties of the O2CB driver.
The following questions will determine whether the driver is loaded on
boot. The current values will be shown in brackets ('[]'). Hitting
<ENTER> without typing an answer will keep that current value. Ctrl-C
will abort.
Load O2CB driver on boot (y/n) [n]: y
Cluster stack backing O2CB [o2cb]:
Cluster to start on boot (Enter "none" to clear) [ocfs2]:
Specify heartbeat dead threshold (>=7) [31]:
Specify network idle timeout in ms (>=5000) [30000]:
Specify network keepalive delay in ms (>=1000) [2000]:
Specify network reconnect delay in ms (>=2000) [2000]:
Writing O2CB configuration: OK
Cluster ocfs2 already online
/etc/sysconfig/o2cbが作成され、基本設定情報が追記される
ここにo2cbサービス起動時の設定がある
ocfs2のheartbeatはディスクに対するものらしい?(まだ未確認)
スプリットブレイン状態について考察する必要あり
net {
allow-two-primaries;
after-sb-0pri discard-younger-primary;
after-sb-1pri consensus;
}
drbdサービス起動後Connectionが戻るとSecondary/Secondaryとなる
drbddiskを両サーバー上で実行してPrimary状態にする必要がある
# /etc/ha.d/resource.d/drbddisk r0 start # /etc/ha.d/resource.d/drbddisk r0 status running (Primary)