From: | Peter Nixon <listuser(at)peternixon(dot)net> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Shared disk storage |
Date: | 2005-09-07 06:14:09 |
Message-ID: | dfm0f2$f2p$1@sea.gmane.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Jim C. Nasby wrote:
> On Wed, Sep 07, 2005 at 12:19:19AM -0400, Tom Lane wrote:
>> Having said that, I'm not sure I believe in filesystem locks as doing
>> much to improve security in the case of multiple hosts attached to a SAN
>> filesystem. Does the locking work at all across hosts, and if it does,
>> does the lock get released reasonably promptly if the owning host
>> crashes? This seems like a there's-no-free-lunch situation.
>
> The way I see it, it will work fine for some setups, and not work for
> others. That means it won't help everyone, but it will help some. ISTM
> like it would be pretty easy to do, so why not help those who could make
> use of it?
On SUSE Linux (Tested on 10.0beta but I am fairly sure my servers running
SLES9 are the same) I have:
# ls -l /var/lib/pgsql/data/postmaster.*
-rw------- 1 postgres postgres 41 Sep 7
09:09 /var/lib/pgsql/data/postmaster.opts
-rw------- 1 postgres postgres 45 Sep 7
09:09 /var/lib/pgsql/data/postmaster.pid
Both of these files are updated when Postgres starts, with postmaster.pid
being removed when it stops, but postmaster.opts stays.
If I have a shared disk between 2 machines with Postgres running on them is
this enough to protect my data or not? Has anyone ever done anything like
this?
TIA
--
Peter Nixon
http://www.peternixon.net/
PGP Key: http://www.peternixon.net/public.asc
From | Date | Subject | |
---|---|---|---|
Next Message | Matthew Peter | 2005-09-07 06:40:18 | back references using regex |
Previous Message | Jim C. Nasby | 2005-09-07 05:44:10 | Re: Shared disk storage |