Re: help for this situation

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "GMAIL *EXTERN*" <federico(dot)serale(at)gmail(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: help for this situation
Date: 2012-10-17 08:02:05
Message-ID: D960CB61B694CF459DCFB4B0128514C20890254E@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

GMAIL wrote:
> i describe the situation:
> i have two pc with postgressql server:
> - a main pc, with ip 192.168.5.1 turned on
> - a "backup" pc, with ip 192.168.5.1 turned off
>
> i want that the main pc saves the database in local hard drive and on
a
> nas real-time. when the main pc has a failure, i turn on, manually,
the
> secondary pc, that reads the database from the nas
>
> how i can do that?

What do you want to guard against? Hardware outage?
Software bugs?

I don't think that the scenario you describe is possible.

There are other, maybe better ways:

1) Have the database on NAS and use storage mirroring.
NAS in that case means NFS (hard mount!), *not CIFS*.
That will help against hardware outage, but not against
filesystem or database corruption.

2) Use a standby database with streaming replication.
That will also help with filesystem and database
corruption.

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2012-10-17 08:16:31 Re: 9.1/9.2 SERIALIZABLE: expected serialization failure between INSERT and SELECT not encountered
Previous Message Albe Laurenz 2012-10-17 07:52:22 Re: Replication - doubts