Re: [Pacemaker] DRBD and fencing

2010-03-12 Thread Matthew Palmer
On Thu, Mar 11, 2010 at 05:26:19PM +0800, Martin Aspeli wrote: > Matthew Palmer wrote: >> On Thu, Mar 11, 2010 at 03:34:50PM +0800, Martin Aspeli wrote: >>> I was wondering, though, if fencing at the DRBD level would get around >>> the possible problem with a full power outage taking the fencing de

Re: [Pacemaker] DRBD and fencing

2010-03-11 Thread Dejan Muhamedagic
On Thu, Mar 11, 2010 at 06:58:30AM +1100, Matthew Palmer wrote: > On Wed, Mar 10, 2010 at 11:10:31PM +0800, Martin Aspeli wrote: > > Dejan Muhamedagic wrote: > >> ocfs2 introduces an extra level of complexity. You don't want > >> that unless really necessary. > > > > How would that complexity manif

Re: [Pacemaker] DRBD and fencing

2010-03-11 Thread Lars Ellenberg
On Thu, Mar 11, 2010 at 03:34:50PM +0800, Martin Aspeli wrote: > I was wondering, though, if fencing at the DRBD level would get > around the possible problem with a full power outage taking the > fencing device down. > > In my poor understanding of things, it'd work like this: > > - Pacemaker r

Re: [Pacemaker] DRBD and fencing

2010-03-11 Thread Martin Aspeli
Matthew Palmer wrote: On Thu, Mar 11, 2010 at 03:34:50PM +0800, Martin Aspeli wrote: I was wondering, though, if fencing at the DRBD level would get around the possible problem with a full power outage taking the fencing device down. In my poor understanding of things, it'd work like this: -

Re: [Pacemaker] DRBD and fencing

2010-03-11 Thread Matthew Palmer
On Thu, Mar 11, 2010 at 03:34:50PM +0800, Martin Aspeli wrote: > I was wondering, though, if fencing at the DRBD level would get around > the possible problem with a full power outage taking the fencing device > down. > > In my poor understanding of things, it'd work like this: > > - Pacemaker

Re: [Pacemaker] DRBD and fencing

2010-03-10 Thread Martin Aspeli
Serge Dubrouski wrote: On Wed, Mar 10, 2010 at 6:59 PM, Martin Aspeli wrote: Serge Dubrouski wrote: On Wed, Mar 10, 2010 at 5:30 PM, Martin Aspeli wrote: Martin Aspeli wrote: Hi folks, Let's say have a two-node cluster with DRBD and OCFS2, with a database server that's supposed to be acti

Re: [Pacemaker] DRBD and fencing

2010-03-10 Thread Matthew Palmer
On Wed, Mar 10, 2010 at 11:10:31PM +0800, Martin Aspeli wrote: > Dejan Muhamedagic wrote: >> ocfs2 introduces an extra level of complexity. You don't want >> that unless really necessary. > > How would that complexity manifest? Have you noticed the number of extra daemons and kernel bits that have

Re: [Pacemaker] DRBD and fencing

2010-03-10 Thread Matthew Palmer
[Up-front disclaimer: I'm not a fan of cluster filesystems, having had large chunks of my little remaining sanity shredded by GFS. So what I say is likely tinged with lingering loathing, although I do *try* to stay factual] On Wed, Mar 10, 2010 at 09:01:01PM +0800, Martin Aspeli wrote: > Matthew

Re: [Pacemaker] DRBD and fencing

2010-03-10 Thread Matthew Palmer
On Thu, Mar 11, 2010 at 08:30:29AM +0800, Martin Aspeli wrote: > Martin Aspeli wrote: >> Hi folks, >> >> Let's say have a two-node cluster with DRBD and OCFS2, with a database >> server that's supposed to be active on one node at a time, using the >> OCFS2 partition for its data store. >> >> If we

Re: [Pacemaker] DRBD and fencing

2010-03-10 Thread Matthew Palmer
On Wed, Mar 10, 2010 at 11:26:41AM -, darren.mans...@opengi.co.uk wrote: > > On Wed, Mar 10, 2010 at 02:32:05PM +0800, Martin Aspeli wrote: > > Florian Haas wrote: > >> On 03/09/2010 06:07 AM, Martin Aspeli wrote: > >>> Hi folks, > >>> > >>> Let's say have a two-node cluster with DRBD and OCFS

Re: [Pacemaker] DRBD and fencing

2010-03-10 Thread Serge Dubrouski
On Wed, Mar 10, 2010 at 6:59 PM, Martin Aspeli wrote: > Serge Dubrouski wrote: >> >> On Wed, Mar 10, 2010 at 5:30 PM, Martin Aspeli >>  wrote: >>> >>> Martin Aspeli wrote: Hi folks, Let's say have a two-node cluster with DRBD and OCFS2, with a database server that's suppos

Re: [Pacemaker] DRBD and fencing

2010-03-10 Thread Martin Aspeli
Serge Dubrouski wrote: On Wed, Mar 10, 2010 at 5:30 PM, Martin Aspeli wrote: Martin Aspeli wrote: Hi folks, Let's say have a two-node cluster with DRBD and OCFS2, with a database server that's supposed to be active on one node at a time, using the OCFS2 partition for its data store. If we de

Re: [Pacemaker] DRBD and fencing

2010-03-10 Thread Serge Dubrouski
On Wed, Mar 10, 2010 at 5:30 PM, Martin Aspeli wrote: > Martin Aspeli wrote: >> >> Hi folks, >> >> Let's say have a two-node cluster with DRBD and OCFS2, with a database >> server that's supposed to be active on one node at a time, using the >> OCFS2 partition for its data store. >> >> If we detec

Re: [Pacemaker] DRBD and fencing

2010-03-10 Thread Martin Aspeli
Martin Aspeli wrote: Hi folks, Let's say have a two-node cluster with DRBD and OCFS2, with a database server that's supposed to be active on one node at a time, using the OCFS2 partition for its data store. If we detect a failure on the active node and fail the database over to the other node,

Re: [Pacemaker] DRBD and fencing

2010-03-10 Thread Martin Aspeli
Dejan Muhamedagic wrote: Hi, On Wed, Mar 10, 2010 at 11:10:31PM +0800, Martin Aspeli wrote: Dejan Muhamedagic wrote: Hi, On Wed, Mar 10, 2010 at 09:02:48PM +0800, Martin Aspeli wrote: Lars Ellenberg wrote: Or, if this is as infrequent as you say it is, have those blobs in a regular file sy

Re: [Pacemaker] DRBD and fencing

2010-03-10 Thread Dejan Muhamedagic
Hi, On Wed, Mar 10, 2010 at 11:10:31PM +0800, Martin Aspeli wrote: > Dejan Muhamedagic wrote: > >Hi, > > > >On Wed, Mar 10, 2010 at 09:02:48PM +0800, Martin Aspeli wrote: > >>Lars Ellenberg wrote: > >> > >>>Or, if this is as infrequent as you say it is, have those blobs in a > >>>regular file syst

Re: [Pacemaker] DRBD and fencing

2010-03-10 Thread Martin Aspeli
Dejan Muhamedagic wrote: Hi, On Wed, Mar 10, 2010 at 09:02:48PM +0800, Martin Aspeli wrote: Lars Ellenberg wrote: Or, if this is as infrequent as you say it is, have those blobs in a regular file system on a regular partition or LV, and replace every "echo> blob" with "echo> blob&& csyn

Re: [Pacemaker] DRBD and fencing

2010-03-10 Thread Dejan Muhamedagic
Hi, On Wed, Mar 10, 2010 at 09:02:48PM +0800, Martin Aspeli wrote: > Lars Ellenberg wrote: > > >Or, if this is as infrequent as you say it is, have those blobs in a > >regular file system on a regular partition or LV, and replace every > >"echo> blob" with "echo> blob&& csync2 -x blob" (you ge

Re: [Pacemaker] DRBD and fencing

2010-03-10 Thread Martin Aspeli
darren.mans...@opengi.co.uk wrote: Please forgive my ignorance, I seem to have missed the specifics about using OCFS2 on DRBD dual-primary but what are the main issues? How can you use PgSQL on dual-primary without OCFS2? For the record, we are *not* using dual primary in our setup. We'll have

Re: [Pacemaker] DRBD and fencing

2010-03-10 Thread Martin Aspeli
Lars Ellenberg wrote: Or, if this is as infrequent as you say it is, have those blobs in a regular file system on a regular partition or LV, and replace every "echo> blob" with "echo> blob&& csync2 -x blob" (you get the idea). Unfortunately, that'd mean modifying software I don't really hav

Re: [Pacemaker] DRBD and fencing

2010-03-10 Thread Martin Aspeli
Matthew Palmer wrote: On Wed, Mar 10, 2010 at 02:32:05PM +0800, Martin Aspeli wrote: Florian Haas wrote: On 03/09/2010 06:07 AM, Martin Aspeli wrote: Hi folks, Let's say have a two-node cluster with DRBD and OCFS2, with a database server that's supposed to be active on one node at a time, usi

Re: [Pacemaker] DRBD and fencing

2010-03-10 Thread Darren.Mansell
On Wed, Mar 10, 2010 at 02:32:05PM +0800, Martin Aspeli wrote: > Florian Haas wrote: >> On 03/09/2010 06:07 AM, Martin Aspeli wrote: >>> Hi folks, >>> >>> Let's say have a two-node cluster with DRBD and OCFS2, with a database >>> server that's supposed to be active on one node at a time, using the

Re: [Pacemaker] DRBD and fencing

2010-03-10 Thread Lars Ellenberg
On Wed, Mar 10, 2010 at 07:13:28PM +1100, Matthew Palmer wrote: > On Wed, Mar 10, 2010 at 02:32:05PM +0800, Martin Aspeli wrote: > > Florian Haas wrote: > >> On 03/09/2010 06:07 AM, Martin Aspeli wrote: > >>> Hi folks, > >>> > >>> Let's say have a two-node cluster with DRBD and OCFS2, with a databa

Re: [Pacemaker] DRBD and fencing

2010-03-10 Thread Matthew Palmer
On Wed, Mar 10, 2010 at 02:32:05PM +0800, Martin Aspeli wrote: > Florian Haas wrote: >> On 03/09/2010 06:07 AM, Martin Aspeli wrote: >>> Hi folks, >>> >>> Let's say have a two-node cluster with DRBD and OCFS2, with a database >>> server that's supposed to be active on one node at a time, using the

Re: [Pacemaker] DRBD and fencing

2010-03-09 Thread Martin Aspeli
Florian Haas wrote: On 03/09/2010 06:07 AM, Martin Aspeli wrote: Hi folks, Let's say have a two-node cluster with DRBD and OCFS2, with a database server that's supposed to be active on one node at a time, using the OCFS2 partition for its data store. *cringe* Which database is this? Postgres

Re: [Pacemaker] DRBD and fencing

2010-03-09 Thread Florian Haas
On 03/09/2010 06:07 AM, Martin Aspeli wrote: > Hi folks, > > Let's say have a two-node cluster with DRBD and OCFS2, with a database > server that's supposed to be active on one node at a time, using the > OCFS2 partition for its data store. *cringe* Which database is this? Florian signature.a

[Pacemaker] DRBD and fencing

2010-03-09 Thread Martin Aspeli
Hi folks, Let's say have a two-node cluster with DRBD and OCFS2, with a database server that's supposed to be active on one node at a time, using the OCFS2 partition for its data store. If we detect a failure on the active node and fail the database over to the other node, we need to fence o