[Ocfs2-users] OCFS drives not syncing

Sunil Mushran sunil.mushran at oracle.com
Wed Oct 5 08:09:18 PDT 2011


ocfs2 is a shared disk cluster file system. It requires a shared disk.

However, if you are only going to use 2 nodes, you could use drbd,
a replicating block device. To ocfs2, it appears as a shared disk.
Google drbd and ocfs2 for more.

On 10/05/2011 07:15 AM, Bradlee Landis wrote:
> I have asked a question at
> http://serverfault.com/questions/318526/ocfs-configuration , but I
> thought this might be a better place to ask.
>
> I installed Oracle Linux 3.0 on my machine, and I created two ocfs2
> partitions, /cluster1 and /cluster2. I just created it with default
> options, so maybe that's where I went wrong. I configured
> /etc/ocfs2/cluster.conf and generated /etc/sysconfig/o2cb. It looks to
> be fine, but it's not actually syncing the filesystems.
>
> What am I doing wrong? Do I need to specify certain flags in /etc/fstab?
>
> I put a filesystem name "vmcluster" on sda3 to see if it might help.
> Also, on one server, it's using sda3 and sdb3, and the other is sda2
> and sdb2. They also may be different sizes, so if that would be
> causing my problem, let me know.
>
> Here is my configuration below.
>
> == /etc/mtab ==
> /dev/sda3 /cluster1 ocfs2 rw,_netdev,heartbeat=local 0 0
> /dev/sdb3 /cluster2 ocfs2 rw,heartbeat=none 0 0
>
> == /etc/ocfs2/cluster.conf ==
>
> cluster:
>          node_count = 2
>          name = vmcluster
>
> node:
>          ip_port = 7777
>          ip_address = 198.18.0.25
>          number = 0
>          name = vm1
>          cluster = vmcluster
>
> node:
>          ip_port = 7777
>          ip_address = 198.18.0.26
>          number = 1
>          name = vm2
>          cluster = vmcluster
>
> == /etc/sysconfig/o2cb (Generated) ==
>
> O2CB_ENABLED=true
> O2CB_STACK=o2cb
> O2CB_BOOTCLUSTER=vmcluster
> O2CB_HEARTBEAT_THRESHOLD=
> O2CB_IDLE_TIMEOUT_MS=
> O2CB_KEEPALIVE_DELAY_MS=
> O2CB_RECONNECT_DELAY_MS=
>
> ============
>
>




More information about the Ocfs2-users mailing list