Re: [Ocfs2-users] Fwd: OCFS drives not syncing

2011-10-05 Thread Sunil Mushran
On 10/05/2011 08:46 AM, Bradlee Landis wrote:
> Sorry Sunil, my email replied to you instead of the list.
>
> On Wed, Oct 5, 2011 at 10:09 AM, Sunil Mushran  
> wrote:
>> 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.
>>
> So I've been confused about this the whole time I guess. So how is the
> OCFS drive shared? Is it done through OCFS, or does it require NFS?
>
> How do I access the filesystem from the other node?

The drives need to be physically shared. As in, all nodes need
to be able to concurrently read and write directly to the disk.

Two popular solutions are fiber channel and iscsi.

A fiber channel solution could be EMC disk array + FC switch +
hbas on all nodes hooked up to the switch.

An iscsi solution could be a iscsi target running on one server
with the disks. The nodes would use an iscsi initiator to access
the target. The devices will show up as regular devices (/dev/sdX)
on all nodes.

The cheapest solution would be to use drbd.

___
Ocfs2-users mailing list
Ocfs2-users@oss.oracle.com
http://oss.oracle.com/mailman/listinfo/ocfs2-users


[Ocfs2-users] Fwd: OCFS drives not syncing

2011-10-05 Thread Bradlee Landis
Sorry Sunil, my email replied to you instead of the list.

On Wed, Oct 5, 2011 at 10:09 AM, Sunil Mushran  wrote:
> 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.
>

So I've been confused about this the whole time I guess. So how is the
OCFS drive shared? Is it done through OCFS, or does it require NFS?

How do I access the filesystem from the other node?

--
Thanks,
Brad Landis



-- 
Thanks,
Brad Landis

___
Ocfs2-users mailing list
Ocfs2-users@oss.oracle.com
http://oss.oracle.com/mailman/listinfo/ocfs2-users


Re: [Ocfs2-users] OCFS drives not syncing

2011-10-05 Thread Sunil Mushran
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 = 
>  ip_address = 198.18.0.25
>  number = 0
>  name = vm1
>  cluster = vmcluster
>
> node:
>  ip_port = 
>  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=
>
> 
>
>


___
Ocfs2-users mailing list
Ocfs2-users@oss.oracle.com
http://oss.oracle.com/mailman/listinfo/ocfs2-users


[Ocfs2-users] OCFS drives not syncing

2011-10-05 Thread Bradlee Landis
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 = 
ip_address = 198.18.0.25
number = 0
name = vm1
cluster = vmcluster

node:
ip_port = 
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=




-- 
Thanks,
Brad Landis

___
Ocfs2-users mailing list
Ocfs2-users@oss.oracle.com
http://oss.oracle.com/mailman/listinfo/ocfs2-users