Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 633C41337B68 for ; Wed, 16 Feb 2011 16:45:48 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 88295-04 for ; Wed, 16 Feb 2011 20:45:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id CBAA11337B4E for ; Wed, 16 Feb 2011 16:45:40 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p1GKje507355; Wed, 16 Feb 2011 15:45:40 -0500 (EST) From: Bruce Momjian Message-Id: <201102162045.p1GKje507355@momjian.us> Subject: Re: Postgres on NAS/NFS In-Reply-To: <9424C7B4-672D-4C64-BE6A-699708981C0B@gmail.com> To: Bryan Keller Date: Wed, 16 Feb 2011 15:45:40 -0500 (EST) CC: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201102/153 X-Sequence-Number: 36792 Bryan Keller wrote: > I am considering running a Postgres with the database hosted on a NAS > via NFS. I have read a few things on the Web saying this is not > recommended, as it will be slow and could potentially cause data > corruption. > > My goal is to have the database on a shared filesystem so in case of > server failure, I can start up a standby Postgres server and point it > to the same database. I would rather not use a SAN as I have heard > horror stories about managing them. Also they are extremely expensive. > A DAS would be another option, but I'm not sure if a DAS can be > connected to two servers for server failover purposes. > > Currently I am considering not using a shared filesystem and instead > using replication between the two servers. > > I am wondering what solutions have others used for my active-passive > Postgres failover scenario? Is a NAS still not a recommended approach? > Will a DAS work? Or is replication the best approach? The last section of this documentation page talks about NFS usage: http://www.postgresql.org/docs/9.0/static/creating-cluster.html -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +