Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
I have experimented with ocfs2 over drbd in primary/primary. I don't understand what you mean about iSCSI - I didn't need that in my setup. I had /dev/sda5 on both servers set up for DRDB with internal meta disk. Got DRBD working over 2 bonded Gbit ethernets with direct cable connection (though found that the bonding didn't improve synch speed at all - presumably as there is only one TCP connection). Then setup up OCFS2 on each server, mkfs.ocfs2 /dev/drbd0, mounted on both machines, and it all worked. Rsync'ed across a couple hundred GB to one server and there it was, like magic, on the other. However, I found OCFS2 to be very fragile in this setup. If I disconnected the ethernet, or downed the interface, or killed one of the servers without carefully unmounting and stopping OCFS2 first, the other server would fence and panic. Mind you, it was very polite about it and apologised profusely every time, but nevertheless is was not the sort of behaviour we could tolerate. I suspect this is more to do with OCFS2 than DRBD primary-primary mode. Apart from it being very easy to end up in a split brain situation, DRBD worked as advertised. We are now in the process of trying GFS to see if it behaves any better. -- Jon On Fri, 2007-02-09 at 22:39 -0800, Brandon Lamb wrote: > Has anyone actually setup an ocfs2 cluster using primary/primary? > > What I am running into, and not just ocfs2 but in regards to > primary/primary is that it doesnt work. > > I was under the assumption that I could have server1 and server each > with a /dev/sda2 being setup as /dev/drbd0 on both machines. > > Then using iSCSI target software export /dev/drbd0 > > Now I have cluster1 and cluster2 machines connecting to server1 and > server2 respectively. > > I thought I could make an ocfs2 FS on cluster1 and then mount it on > both machines. > > Is this not possible? Using primary/secondary and having both cluster1 > and cluster2 connect via iscsi to ONLY server1 works fine, data gets > replicated to server2.I can then switch server2 to primary and conenct > cluster1 and cluster2 to it and there is my data. > > But now if one node is connected to one server, if i create a file on > node1 it doesnt show up on node2. > > What could be going on here? > > Oh and server1 and server2 are conected via a flip cable using a > 192.168.0.10 and 192.168.0.20. the nodes connected on a second > interface. > > The iscsi stuff all seems to work, but its just that primary/primary > doesnt seem to work like I think it should. > > Thanks for any information > > Brandon > _______________________________________________ > drbd-user mailing list > drbd-user at lists.linbit.com > http://lists.linbit.com/mailman/listinfo/drbd-user