|
From: Navin C <nav...@gm...> - 2013-01-23 07:13:12
|
I tried starting the GTM again : > [postgres@centos6 data_gtm]$ /usr/local/pgsql/bin/initgtm -Z gtm -D > /usr/local/ > pgsql/data_gtm > The files belonging to this GTM system will be owned by user "postgres". > This user must also own the server process. > > initgtm: directory "/usr/local/pgsql/data_gtm" exists but is not empty > If you want to create a new GTM system, either remove or empty > the directory "/usr/local/pgsql/data_gtm" or run initgtm > with an argument other than "/usr/local/pgsql/data_gtm". > [postgres@centos6 data_gtm]$ This is what the gtm.log file says: 1:140344638105344:2013-01-22 17:33:12.788 EST -LOG: Starting GTM server at > (*:6666) -- control file /usr/local/pgsql/data_gtm/gtm.control > LOCATION: main, main.c:552 > 1:140344638105344:2013-01-22 17:33:12.788 EST -LOG: Restoring last GXID > to 10000 > LOCATION: GTM_RestoreTxnInfo, gtm_txn.c:2598 > 1:140344638105344:2013-01-22 17:33:12.788 EST -LOG: Started to run as > GTM-Active. > LOCATION: main, main.c:624 > 1:140344638105344:2013-01-22 17:34:15.613 EST -LOG: GTM shutting down. > LOCATION: ServerLoop, main.c:785 > 1:140344638105344:2013-01-22 17:34:15.613 EST -LOG: Saving transaction > info - next_gxid: 10000 > LOCATION: GTM_SaveTxnInfo, gtm_txn.c:2614 > Received signal 2 > 1:140344341612288:2013-01-23 16:01:18.754 EST -LOG: Starting GTM server > at (*:6666) -- control file /usr/local/pgsql/data_gtm/gtm.control > LOCATION: main, main.c:552 > 1:140344341612288:2013-01-23 16:01:18.789 EST -LOG: Restoring last GXID > to 10000 > LOCATION: GTM_RestoreTxnInfo, gtm_txn.c:2598 > 1:140344341612288:2013-01-23 16:01:18.789 EST -LOG: Started to run as > GTM-Active. > LOCATION: main, main.c:624 > 1:140344341612288:2013-01-23 16:01:22.035 EST -LOG: GTM shutting down. > LOCATION: ServerLoop, main.c:785 > 1:140344341612288:2013-01-23 16:01:22.035 EST -LOG: Saving transaction > info - next_gxid: 10000 > LOCATION: GTM_SaveTxnInfo, gtm_txn.c:2614 > Received signal 2 ~ Do we need to set a passwordless ssh before installing postgres-xc. This is what I have done till now: 1. Configure, the postgres-xc on all the three servers 2. added superuser postgres and gave permission to user postgres on the /data_xx directories on all the servers 3. Started the postgres-xc instance on every server and components using intidb 4. [postgres@centos6 bin]$ /usr/local/pgsql/bin/postgres -X -p 15432 -D /usr/local/pgsql/data_Datanode1 LOG: database system was shut down at 2013-01-22 18:14:22 EST LOG: autovacuum launcher started LOG: database system is ready to accept connections On Wed, Jan 23, 2013 at 10:10 AM, Ashutosh Bapat < ash...@en...> wrote: > On Wed, Jan 23, 2013 at 9:58 AM, Navin C <nav...@gm...> > wrote: > > Hello All, > > > > First of all, I am really happy to see PostgreSQL come up with a Cluster > > based MPP solution. > > I am excited to use Postgres-xc on my cluster. > > I am facing some issues with the installation of Postgres-xc > > > > I am using Centos 6.3. > > First of all I wanted to know whether we need to setup passwordless ssh > on > > all the servers of the cluster before starting to install Postgres-xc. > > > > I followed the steps in the documentation section Short version of > > installation > > ./configure > > gmake > > su > > gmake install > > adduser postgres > > mkdir /usr/local/pgsql/data_coord1 > > mkdir /usr/local/pgsql/data_Datanode1 > > mkdir /usr/local/pgsql/data_Datanode2 > > mkdir /usr/local/pgsql/data_gtm > > chown postgres /usr/local/pgsql/data_coord1 > > chown postgres /usr/local/pgsql/data_Datanode1 > > chown postgres /usr/local/pgsql/data_Datanode2 > > chown postgres /usr/local/pgsql/data_gtm > > su - postgres > > /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data_coord1 --nodename > > coord1 > > /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data_Datanode1 --nodename > > Datanode1 > > /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data_Datanode2 --nodename > > Datanode2 > > /usr/local/pgsql/bin/initgtm -D /usr/local/pgsql/data_gtm -Z gtm > > /usr/local/pgsql/bin/gtm -D /usr/local/pgsql/data_gtm >logfile 2>&1 & > > /usr/local/pgsql/bin/postgres -X -p 15432 -D > /usr/local/pgsql/data_Datanode1 > >>logfile 2> > > /usr/local/pgsql/bin/postgres -X -p 15433 -D > /usr/local/pgsql/data_Datanode2 > >>logfile 2> > > /usr/local/pgsql/bin/postgres -C -D /usr/local/pgsql/data_coord1 >logfile > > 2>&1 & > > /usr/local/pgsql/bin/psql -c "CREATE NODE Datanode1 WITH (TYPE = > ’Datanode’, > > PORT = 15432)" > > > > When I try the last command as above It says the gtm is not connected, > Xid > > is invalid. > > I also couldn't fine and gtm.pid file in data_gtm folder > > > > It looks like the GTM didn't start. Can you please check in the log > files what was the reason. > > > Can someone please help me with this. I need more detailed steps on each > > Co-ordinator, Datanode and gtm > > I have 3 servers 1 for GTM and 2 for Datanodes and Co-ordinators each. > > > > > ------------------------------------------------------------------------------ > > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > > MVPs and experts. ON SALE this month only -- learn more at: > > http://p.sf.net/sfu/learnnow-d2d > > _______________________________________________ > > Postgres-xc-general mailing list > > Pos...@li... > > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > > > > > > -- > Best Wishes, > Ashutosh Bapat > EntepriseDB Corporation > The Enterprise Postgres Company > |