Re: log shipping from 64 bit linux server to a 32 bit linux server

Lists: pgsql-general
From: Tim Uckun <timuckun(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: log shipping from 64 bit linux server to a 32 bit linux server
Date: 2009-03-26 00:58:12
Message-ID: 855e4dcf0903251758s2254a53eib0b83f8bc1bdb4b3@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

According to the documentation it's not possible to log ship from a 64 bit
server to a 32 bit server.

I just want to confirm that this is the case before I waste a whole lot of
time trying to set it up.


From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: timuckun(at)gmail(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: log shipping from 64 bit linux server to a 32 bit linux server
Date: 2009-03-26 01:05:17
Message-ID: 20090326.100517.117472742.t-ishii@sraoss.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

> According to the documentation it's not possible to log ship from a 64 bit
> server to a 32 bit server.

I think the doc is quite correct.
--
Tatsuo Ishii
SRA OSS, Inc. Japan


From: Tim Uckun <timuckun(at)gmail(dot)com>
To: Tatsuo Ishii <ishii(at)postgresql(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: log shipping from 64 bit linux server to a 32 bit linux server
Date: 2009-03-26 01:08:33
Message-ID: 855e4dcf0903251808p52694516ha53126e891fcf0a1@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Thu, Mar 26, 2009 at 2:05 PM, Tatsuo Ishii <ishii(at)postgresql(dot)org> wrote:

> > According to the documentation it's not possible to log ship from a 64
> bit
> > server to a 32 bit server.
>
> I think the doc is quite correct.
>

So what is the best way to accomplish a failover from a 64 bit machine to a
32 bit machine?


From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Tim Uckun <timuckun(at)gmail(dot)com>
Cc: Tatsuo Ishii <ishii(at)postgresql(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: log shipping from 64 bit linux server to a 32 bit linux server
Date: 2009-03-26 01:57:36
Message-ID: dcc563d10903251857n303c59aag83f1512213dc4935@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Wed, Mar 25, 2009 at 7:08 PM, Tim Uckun <timuckun(at)gmail(dot)com> wrote:
>
> On Thu, Mar 26, 2009 at 2:05 PM, Tatsuo Ishii <ishii(at)postgresql(dot)org> wrote:
>>
>> > According to the documentation it's not possible to log ship from a 64
>> > bit
>> > server  to a 32 bit server.
>>
>> I think the doc is quite correct.
>
>
> So what is the best way to accomplish a failover from a 64 bit machine to a
> 32 bit machine?

slony?


From: Tim Uckun <timuckun(at)gmail(dot)com>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: Tatsuo Ishii <ishii(at)postgresql(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: log shipping from 64 bit linux server to a 32 bit linux server
Date: 2009-03-26 02:20:38
Message-ID: 855e4dcf0903251920u2decb06fnc3dd9f9a03ff18ab@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

>
>
>
> slony?
>

That sound more like a question than an answer :)

Can I presume it doesn't care about the architecture of the OS?


From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: scott(dot)marlowe(at)gmail(dot)com
Cc: timuckun(at)gmail(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: log shipping from 64 bit linux server to a 32 bit linux server
Date: 2009-03-26 02:23:41
Message-ID: 20090326.112341.124044469.t-ishii@sraoss.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

> >> > According to the documentation it's not possible to log ship from a 64
> >> > bit
> >> > server  to a 32 bit server.
> >>
> >> I think the doc is quite correct.
> >
> >
> > So what is the best way to accomplish a failover from a 64 bit machine to a
> > 32 bit machine?
>
> slony?

IMO Slony doesn't do failover.
--
Tatsuo Ishii
SRA OSS, Inc. Japan


From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Tatsuo Ishii <ishii(at)postgresql(dot)org>
Cc: timuckun(at)gmail(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: log shipping from 64 bit linux server to a 32 bit linux server
Date: 2009-03-26 02:40:21
Message-ID: dcc563d10903251940gcbec9f3lb2e73e35c004d6c7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Wed, Mar 25, 2009 at 8:23 PM, Tatsuo Ishii <ishii(at)postgresql(dot)org> wrote:
>> >> > According to the documentation it's not possible to log ship from a 64
>> >> > bit
>> >> > server  to a 32 bit server.
>> >>
>> >> I think the doc is quite correct.
>> >
>> >
>> > So what is the best way to accomplish a failover from a 64 bit machine to a
>> > 32 bit machine?
>>
>> slony?
>
> IMO Slony doesn't do failover.

Not all by itself. But then neither does PITR by itself. But I'm sure
you know that. :)


From: Tatsuo Ishii <ishii(at)sraoss(dot)co(dot)jp>
To: scott(dot)marlowe(at)gmail(dot)com
Cc: ishii(at)postgresql(dot)org, timuckun(at)gmail(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: log shipping from 64 bit linux server to a 32 bit linux server
Date: 2009-03-26 02:45:10
Message-ID: 20090326.114510.48694762.t-ishii@sraoss.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

> >> >> > According to the documentation it's not possible to log ship from a 64
> >> >> > bit
> >> >> > server  to a 32 bit server.
> >> >>
> >> >> I think the doc is quite correct.
> >> >
> >> >
> >> > So what is the best way to accomplish a failover from a 64 bit machine to a
> >> > 32 bit machine?
> >>
> >> slony?
> >
> > IMO Slony doesn't do failover.
>
> Not all by itself. But then neither does PITR by itself. But I'm sure
> you know that. :)

I know what you think:-)

Problem is, he asks high availabilty, that means, no SPOF, minimum
down time. For the purpose, I suppose pgpool-HA(actually
heartbeat)+pgpool-II+Slony-I might work, but I'm not sure heartbeat
does work with 32/64bit combo.
--
Tatsuo Ishii
SRA OSS, Inc. Japan


From: Chander Ganesan <chander(at)otg-nc(dot)com>
To: Tatsuo Ishii <ishii(at)sraoss(dot)co(dot)jp>
Cc: scott(dot)marlowe(at)gmail(dot)com, ishii(at)postgresql(dot)org, timuckun(at)gmail(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: log shipping from 64 bit linux server to a 32 bit linux server
Date: 2009-03-26 13:18:38
Message-ID: 49CB80AE.5000506@otg-nc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Tatsuo Ishii wrote:
>>
>
> I know what you think:-)
>
> Problem is, he asks high availabilty, that means, no SPOF, minimum
> down time. For the purpose, I suppose pgpool-HA(actually
> heartbeat)+pgpool-II+Slony-I might work, but I'm not sure heartbeat
> does work with 32/64bit combo.
>
Heartbeat does work with 32/64 bit combo. However, CARP is another
(simpler) option as well.

Additionally, if you were going with that solution, you're likely using
a VIP, so adding the complexity of pgpool isn't really required
either...for better performance you could use pgBouncer (if you really
needed connection pooling).

In any case, your HA solution (Heartbeat/CARP) could definitely trigger
a slony switchover to minimize downtime, but might end up losing some
transactions due to the asynchronous nature of slony.

Though, as others have intimated, the best solution out there is for you
(if you want synchronous HA) is to get another 64 bit system for your
secondary, or even install a 32 bit OS on your 64 bit system, so you
have 2 32 bit systems. In which case you'd probably want to add DRBD in
to the mix for your active WALs..

--
Chander Ganesan
Open Technology Group, Inc.
One Copley Parkway, Suite 210
Morrisville, NC 27560
919-463-0999/877-258-8987
http://www.otg-nc.com


From: Sam Mason <sam(at)samason(dot)me(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: log shipping from 64 bit linux server to a 32 bit linux server
Date: 2009-03-26 15:19:36
Message-ID: 20090326151936.GG12225@frubble.xen.chris-lamb.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Thu, Mar 26, 2009 at 02:08:33PM +1300, Tim Uckun wrote:
> On Thu, Mar 26, 2009 at 2:05 PM, Tatsuo Ishii <ishii(at)postgresql(dot)org> wrote:
> > > According to the documentation it's not possible to log ship from a 64
> > bit
> > > server to a 32 bit server.
> >
> > I think the doc is quite correct.
>
> So what is the best way to accomplish a failover from a 64 bit machine to a
> 32 bit machine?

What about running a 32bit build of PG on the 64bit machine?

--
Sam http://samason.me.uk/


From: Tim Uckun <timuckun(at)gmail(dot)com>
To: Sam Mason <sam(at)samason(dot)me(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: log shipping from 64 bit linux server to a 32 bit linux server
Date: 2009-03-26 21:32:33
Message-ID: 855e4dcf0903261432wc22aef4i5bf88546cab97f2b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

>
> What about running a 32bit build of PG on the 64bit machine?
>

How would one go about doing something like this?


From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Tim Uckun <timuckun(at)gmail(dot)com>
Cc: Sam Mason <sam(at)samason(dot)me(dot)uk>, pgsql-general(at)postgresql(dot)org
Subject: Re: log shipping from 64 bit linux server to a 32 bit linux server
Date: 2009-03-26 22:15:49
Message-ID: dcc563d10903261515r21f039a2qc05b991b6f6142c5@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Thu, Mar 26, 2009 at 3:32 PM, Tim Uckun <timuckun(at)gmail(dot)com> wrote:
>
>
>>
>>
>> What about running a 32bit build of PG on the 64bit machine?
>
>
> How would one go about doing something like this?

Compiling with the proper -march flags I believe. It's been like 5
years since I had to mess with such things, so google it a bit first.


From: Sam Mason <sam(at)samason(dot)me(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: log shipping from 64 bit linux server to a 32 bit linux server
Date: 2009-03-27 14:16:46
Message-ID: 20090327141645.GO12225@frubble.xen.chris-lamb.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Fri, Mar 27, 2009 at 10:32:33AM +1300, Tim Uckun wrote:
> > What about running a 32bit build of PG on the 64bit machine?
>
> How would one go about doing something like this?

Depending on your distribution you should be able to install 32bit
binaries alongside 64bit binaries; for example in Debian you can do:

http://www.unixtutorial.org/2008/03/install-32-bit-deb-packages-on-64-bit/

Alternatives would be to build the code yourself as Scott said, or to
copy the binaries across from your 32bit system. Assuming you did the
latter you'd need to make sure you got all the appropriate libraries as
well which may be a bit of a fiddle---especially to keep up to date.
Then again, if you're building it yourself you'd need all the libraries
anyway so you may as well figure out how to get 32bit packages installed
in your 64bit system anyway.

--
Sam http://samason.me.uk/