Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 4AF67143B1AD for ; Tue, 20 Mar 2012 17:34:00 -0300 (ADT) Received: from mx2.d2.com ([66.251.81.121]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SA5kf-0003Yt-GJ for pgsql-admin@postgresql.org; Tue, 20 Mar 2012 20:33:58 +0000 Received: from mxb.d2.com ([10.85.4.6]) by mx2.d2.com (8.13.8/8.13.8) with ESMTP id q2KLTvU2017687 for ; Tue, 20 Mar 2012 14:30:11 -0700 X-ASG-Debug-ID: 1332275594-01d10a409599ded0001-ysJW5H Received: from mail01.d2.com ([172.16.66.171]) by mxb.d2.com with ESMTP id 7QG6DWjMXpBAiitT for ; Tue, 20 Mar 2012 13:33:14 -0700 (PDT) X-Barracuda-Envelope-From: aalvarez@d2.com Received: from exbew2k3-02.d2.com (exbew2k3-02 [10.78.2.16]) by mail01.d2.com (8.13.8/8.13.8/Debian-3) with ESMTP id q2KKXETS008180 for ; Tue, 20 Mar 2012 13:33:14 -0700 Received: from [10.126.2.222] ([10.126.2.222] RDNS failed) by exbew2k3-02.d2.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 20 Mar 2012 13:33:14 -0700 Message-ID: <4F68E989.7080101@d2.com> Date: Tue, 20 Mar 2012 13:33:13 -0700 From: amador alvarez User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.27) Gecko/20120216 Lightning/1.0b2 Thunderbird/3.1.19 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: clustering with shared storage References: <1332273497.2427.17.camel@lenovo01-laptop03.gunduz.org> X-ASG-Orig-Subj: Re: [ADMIN] clustering with shared storage In-Reply-To: <1332273497.2427.17.camel@lenovo01-laptop03.gunduz.org> Content-Type: text/plain; charset=UTF-8; format=flowed X-OriginalArrivalTime: 20 Mar 2012 20:33:14.0214 (UTC) FILETIME=[AC9AC860:01CD06D8] X-Barracuda-Connect: UNKNOWN[172.16.66.171] X-Barracuda-Start-Time: 1332275594 X-Barracuda-URL: http://10.85.4.6:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at d2.com X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.91788 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Status: NO, score=-2.6 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, RATWARE_GECKO_BUILD autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on mx2.d2.com Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx2.d2.com id q2KLTvU2017687 X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/102 X-Sequence-Number: 39290 Hi there, I wonder why are you considering this solution, as if something wrong=20 comes within the data (logical corruption, user error) it will be spread=20 on both locations, Would not be better a delayed standby database. I am curious because I am setting this up right now and do not get all=20 the advantages of the shared disk solution, Thanks in advance, AA On 03/20/2012 12:58 PM, Devrim G=C3=9CND=C3=9CZ wrote: > Hi, > > On Tue, 2012-03-20 at 15:26 -0400, Gary Webster wrote: > >> The best I've found is here: >> http://wiki.postgresql.org/images/5/58/06.5_-_Devrim_Gunduz_-_PostgreS= QLClusteringWithRedHatClusterSuite--LT.pdf >> but, it doesn't go into setup details. > http://www.gunduz.org/download.php?dlid=3D190 > > has a newer version (still not that detailed, but much better) > >> I have a few questions/issues, but figure I will attack it piecemeal, = in >> chronological order. >> >> RHCS is handling the fencing. >> I have installed postgres on the local drive of the primary, with pgda= ta on >> the shared drive. >> I am generally using the EnterpriseDB install package for v9.1.3 . >> >> So, first, just how to install postgres on the secondary? > Just install the binaries -- don't initdb, and then use the shared disk > as the $PGDATA. RHCS will mount the shared filesystem to only one > server, and that one will use the $PGDATa. > >> 1) If I leave it as secondary (non-active), it can't see the shared d= rive. >> Is this correct/OK ? > It *can* see, but it does not see (or it should not see) and it *cannot= * > use. > >> If so, it will create its own pgdata locally, which is later ignored? >> >> or >> >> 2) Do I make it primary, then point its pgdata to the already existin= g >> data during install ?!? > See above. > > Regards,