You can subscribe to this list here.
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
(6) |
Sep
|
Oct
(19) |
Nov
(1) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2011 |
Jan
(12) |
Feb
(1) |
Mar
(4) |
Apr
(4) |
May
(32) |
Jun
(12) |
Jul
(11) |
Aug
(1) |
Sep
(6) |
Oct
(3) |
Nov
|
Dec
(10) |
2012 |
Jan
(11) |
Feb
(1) |
Mar
(3) |
Apr
(25) |
May
(53) |
Jun
(38) |
Jul
(103) |
Aug
(54) |
Sep
(31) |
Oct
(66) |
Nov
(77) |
Dec
(20) |
2013 |
Jan
(91) |
Feb
(86) |
Mar
(103) |
Apr
(107) |
May
(25) |
Jun
(37) |
Jul
(17) |
Aug
(59) |
Sep
(38) |
Oct
(78) |
Nov
(29) |
Dec
(15) |
2014 |
Jan
(23) |
Feb
(82) |
Mar
(118) |
Apr
(101) |
May
(103) |
Jun
(45) |
Jul
(6) |
Aug
(10) |
Sep
|
Oct
(32) |
Nov
|
Dec
(9) |
2015 |
Jan
(3) |
Feb
(5) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
(9) |
Aug
(4) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2016 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Juned K. <jkh...@gm...> - 2014-03-11 07:42:10
|
Hi Masataka, For testing i am tried to get this work added manual query for CREATE NODE. Now its look like this: postgres=# \q PGXC Psql -dpostgres -h node5 -p 20004 Selected coord3. postgres=# select * from pgxc_node; node_name | node_type | node_port | node_host | nodeis_primary | nodeis_preferred | node_id -----------+-----------+-----------+-----------+----------------+------------------+------------- coord3 | C | 5432 | localhost | f | f | 1638403545 coord1 | C | 20004 | node3 | f | f | 1885696643 coord2 | C | 20005 | node4 | f | f | -1197102633 datanode1 | D | 20008 | node3 | f | f | 888802358 datanode2 | D | 20009 | node4 | f | f | -905831925 datanode3 | D | 20008 | node5 | f | f | -1894792127 (6 rows) Here coord3 runs on *5432* which should *20004*., it creates problem i think isn't it ? if yes then how alter this entry ? i am getting *Failed to get pooled connections* koichi=# execute direct on (datanode3) 'select * from t1'; ERROR: Failed to get pooled connections Regards Juned Khan On Tue, Mar 11, 2014 at 12:44 PM, Juned Khan <jkh...@gm...> wrote: > Hi Masataka > > Thanks for the information. > I don't see explanation for pgxc_ctl (pgxc_ctl add or init) commands in > below link, > > http://sourceforge.net/apps/mediawiki/postgres-xc/index.php?title=PGOpen2013_Postgres_Open_2013 > > Although i found a section "Add/Remove component dynamically" in that pdf > but very less information is there. > > I tried to find available options using pgxc_ctl --help but no success. > > option: > -c or --configuration conf_file: Specify configruration file. > -v or --verbose: Specify verbose output. > -V or --version: Print version and exit. > -l or --logdir log_directory: specifies what directory to write logs. > -L or --logfile log_file: Specifies log file. > --home home_direcotry: Specifies pgxc_ctl work director. > -i or --infile input_file: Specifies inptut file. > -o or --outfile output_file: Specifies output file. > -h or --help: Prints this message and exits. > For more deatils, refer to pgxc_ctl reference manual included in > postgres-xc reference manual. > > Please guide me, i am following that demo.txt file which is used in pgxc > demo. > > > On Tue, Mar 11, 2014 at 12:07 AM, Koichi Suzuki <koi...@gm...>wrote: > >> No, as much as pgxc_ctl.conf is consistent with current configuration, >> it's okay. >> >> Thanks. >> --- >> Koichi Suzuki >> >> >> 2014-03-10 14:25 GMT+00:00 Masataka Saito <pg...@gm...>: >> > pgxc_ctl knows new gtm-proxy because he edit pgxc_ctl.conf manually >> > and of course it has entry for gtm-proxy. Do you mean pgxc_ctl has >> > another file to memory about gtm-proxy? >> > >> > On 10 March 2014 23:00, Koichi Suzuki <koi...@gm...> wrote: >> >> It's not a good idea to have gym-proxy not known to pgxc_ctl. You >> >> should configure gym-proxy using pgxc_ctl. >> >> --- >> >> Koichi Suzuki >> >> >> >> >> >> 2014-03-10 10:37 GMT+00:00 Juned Khan <jkh...@gm...>: >> >>> Hi Masataka, >> >>> >> >>> yeah i have manually edited pgxc_ct.conf file and just added one more >> >>> gtm_poxy, coordinator and datanode. then >> >>> >> >>> deploy node5 >> >>> >> >>> init gtm_proxy gtm_pxy3 >> >>> init coordinator master coord3 >> >>> init datanode master datanode3 >> >>> >> >>> start gtm_proxy gtm_pxy3 >> >>> start coordinator master coord3 >> >>> start datanode master datanode3 >> >>> >> >>> then >> >>> >> >>> add datanode master datanode3 node5 20008 >> >>> /home/postgres/pgxc/nodes/dn_master >> >>> >> >>> isn't it the correct way to add new datanode ? >> >>> >> >>> On my real server i have to add number of new nodes later on, >> >>> so i don't want to get stuck at that time. >> >>> >> >>> Please suggest. >> >>> >> >>> Regards >> >>> >> >>> Juned Khan >> >>> >> >>> >> >>> >> >>> On Mon, Mar 10, 2014 at 3:50 PM, Masataka Saito <pg...@gm...> >> wrote: >> >>>> >> >>>> I wonder you manually edited your pgxc_ctl.conf and issued "pgxc_ctl >> >>>> init", right? >> >>>> >> >>>> I think you're recommended to use "pgxc_ctl add" for that purpose. >> >>>> "pgxc_ctl add" appends your pgxc_ctl.conf and setup component's >> >>>> configuration files and coordinators' settings. >> >>>> >> >>>> If you want to do it in your way, you must issue "CREATE NODE" SQL >> >>>> commands at your all coordinators after you start coordinators and >> >>>> datanodes. Please notice I'm not sure it is all you have to do. >> >>>> >> >>>> Regards. >> >>>> >> >>>> On 10 March 2014 18:26, Juned Khan <jkh...@gm...> wrote: >> >>>> > Hi Sir, >> >>>> > >> >>>> > As here we are adding datanode3, should i try to add gtm_procy3 and >> >>>> > coordinator3 same way? >> >>>> > >> >>>> > If i am trying to add it without starting, then it complains >> >>>> >> >> >>>> >> Some of the coordinator masters are not running. Cannot add new >> one. >> >>>> > >> >>>> > >> >>>> > and if i try to add it after initialization and start then it >> complains >> >>>> >> >> >>>> >> Node name datanode3 duplicate. >> >>>> > >> >>>> > >> >>>> > So in this case i think it being added when its initialized but >> the only >> >>>> > problem is data distribution >> >>>> > >> >>>> > when i am executing query directly on datanode3 it giving me >> >>>> > >> >>>> >> koichi=# execute direct on (datanode3) 'select * from t1'; >> >>>> >> ERROR: PGXC Node datanode3: object not defined >> >>>> > >> >>>> > >> >>>> > Is there any other alternative to solve this problem. >> >>>> > >> >>>> > Please advice >> >>>> > >> >>>> > Regards >> >>>> > Juned Khan >> >>>> > >> >>>> > >> >>>> > >> >>>> > >> >>>> > >> >>>> > On Sun, Mar 9, 2014 at 3:17 PM, Juned Khan <jkh...@gm...> >> wrote: >> >>>> >> >> >>>> >> Hi Koichi, >> >>>> >> >> >>>> >> I found datanode3 on node5 server. seems it been added there >> >>>> >> >> >>>> >> PGXC Psql -dpostgres -h node5 -p 20008 >> >>>> >> Selected coord2. >> >>>> >> psql (PGXC 1.1, based on PG 9.2.4) >> >>>> >> Type "help" for help. >> >>>> >> >> >>>> >> postgres=# select * from pgxc_node; >> >>>> >> node_name | node_type | node_port | node_host | nodeis_primary | >> >>>> >> nodeis_preferred | node_id >> >>>> >> >> >>>> >> >> >>>> >> >> -----------+-----------+-----------+-----------+----------------+------------------+------------- >> >>>> >> datanode3 | C | 5432 | localhost | f | >> f >> >>>> >> | -1894792127 >> >>>> >> (1 row) >> >>>> >> >> >>>> >> >> >>>> >> But not able to drop it: >> >>>> >> postgres=# drop node datanode3; >> >>>> >> ERROR: PGXC Node datanode3: cannot drop local node >> >>>> >> >> >>>> >> >> >>>> >> pgxc status : >> >>>> >>> >> >>>> >>> PGXC monitor all >> >>>> >>> Running: gtm master >> >>>> >>> Running: gtm slave >> >>>> >>> Running: gtm proxy gtm_pxy1 >> >>>> >>> Running: gtm proxy gtm_pxy2 >> >>>> >>> Running: gtm proxy gtm_pxy3 >> >>>> >>> Running: coordinator master coord1 >> >>>> >>> Running: coordinator master coord2 >> >>>> >>> Running: coordinator master coord3 >> >>>> >>> Running: datanode master datanode1 >> >>>> >>> Running: datanode master datanode2 >> >>>> >>> Running: datanode master datanode3 >> >>>> >> >> >>>> >> >> >>>> >> >> >>>> >> all components are running properly. >> >>>> >> please suggest. >> >>>> >> >> >>>> >> >> >>>> >> >> >>>> >> On Sun, Mar 9, 2014 at 2:52 PM, Koichi Suzuki < >> koi...@gm...> >> >>>> >> wrote: >> >>>> >>> >> >>>> >>> Something seems went wrong in the first step you added. It >> says that >> >>>> >>> some coordinator master was not running when you added >> datanode3. It >> >>>> >>> was half done. >> >>>> >>> >> >>>> >>> To recover this, please try the following. >> >>>> >>> >> >>>> >>> 1) Visit each coordinator and issue "select * from pgxc_ndoe". >> If >> >>>> >>> you find "datanode3", issue "drop node datanode3" in each >> coordinator. >> >>>> >>> >> >>>> >>> 2) Make sure that all the coordinators are running. >> >>>> >>> >> >>>> >>> 3) Again, try "add datanode master" command from pgxc_ctl. >> >>>> >>> >> >>>> >>> Please note that you should have all the coordinator running >> properly >> >>>> >>> when you add datanodes or coordinators. >> >>>> >>> >> >>>> >>> Regards; >> >>>> >>> --- >> >>>> >>> Koichi Suzuki >> >>>> >>> >> >>>> >>> >> >>>> >>> 2014-03-09 7:14 GMT+00:00 Juned Khan <jkh...@gm...>: >> >>>> >>> > Hi All, >> >>>> >>> > >> >>>> >>> > I have pgxc running with 1 master 1 slave , 2 GTM Proxy, 2 >> Datanode >> >>>> >>> > and >> >>>> >>> > 2 >> >>>> >>> > Coordinator. >> >>>> >>> > >> >>>> >>> > Now i want to add third component with GTM proxy, datanode and >> >>>> >>> > cordinator >> >>>> >>> > I have configure third server and deployed binaries (deploy >> node5) >> >>>> >>> > >> >>>> >>> > then i have initialized each >> >>>> >>> > >> >>>> >>> > But when i tried to add third datanode i got below error >> >>>> >>> > ERROR: Some of the coordinator masters are not running. Cannot >> add >> >>>> >>> > new >> >>>> >>> > one. >> >>>> >>> > >> >>>> >>> > so i started each component >> >>>> >>> > >> >>>> >>> > start gtm_proxy gtm_pxy3 >> >>>> >>> > start coordinator master coord3 >> >>>> >>> > start datanode master datanode3 >> >>>> >>> > >> >>>> >>> > Now everything is running but i getting below error while >> executing >> >>>> >>> > a >> >>>> >>> > query. >> >>>> >>> > >> >>>> >>> >> koichi=# execute direct on (datanode3) 'select * from t1'; >> >>>> >>> >> ERROR: PGXC Node datanode3: object not defined >> >>>> >>> > >> >>>> >>> > >> >>>> >>> > and now if i am trying to add datanode while everything is >> running , >> >>>> >>> > its >> >>>> >>> > throws below error: >> >>>> >>> > >> >>>> >>> >> PGXC add datanode master datanode3 node5 20008 >> >>>> >>> >> /home/postgres/pgxc/nodes/dn_master >> >>>> >>> >> ERROR: Node name datanode3 duplicate. >> >>>> >>> > >> >>>> >>> > >> >>>> >>> > Is that flow is correct or i am missing something >> >>>> >>> > what steps i should do to make it working ? >> >>>> >>> > >> >>>> >>> > >> >>>> >>> > -- >> >>>> >>> > Thanks, >> >>>> >>> > Juned Khan >> >>>> >>> > iNextrix Technologies Pvt Ltd. >> >>>> >>> > www.inextrix.com >> >>>> >>> > >> >>>> >>> > >> >>>> >>> > >> >>>> >>> > >> ------------------------------------------------------------------------------ >> >>>> >>> > Subversion Kills Productivity. Get off Subversion & Make the >> Move to >> >>>> >>> > Perforce. >> >>>> >>> > With Perforce, you get hassle-free workflows. Merge that >> actually >> >>>> >>> > works. >> >>>> >>> > Faster operations. Version large binaries. Built-in WAN >> >>>> >>> > optimization >> >>>> >>> > and >> >>>> >>> > the >> >>>> >>> > freedom to use Git, Perforce or both. Make the move to >> Perforce. >> >>>> >>> > >> >>>> >>> > >> >>>> >>> > >> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk >> >>>> >>> > _______________________________________________ >> >>>> >>> > Postgres-xc-general mailing list >> >>>> >>> > Pos...@li... >> >>>> >>> > >> https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >> >>>> >>> > >> >>>> >> >> >>>> >> >> >>>> >> >> >>>> >> >> >>>> >> -- >> >>>> >> Thanks, >> >>>> >> Juned Khan >> >>>> >> iNextrix Technologies Pvt Ltd. >> >>>> >> www.inextrix.com >> >>>> > >> >>>> > >> >>>> > >> >>>> > >> >>>> > -- >> >>>> > Thanks, >> >>>> > Juned Khan >> >>>> > iNextrix Technologies Pvt Ltd. >> >>>> > www.inextrix.com >> >>>> > >> >>>> > >> >>>> > >> ------------------------------------------------------------------------------ >> >>>> > Learn Graph Databases - Download FREE O'Reilly Book >> >>>> > "Graph Databases" is the definitive new guide to graph databases >> and >> >>>> > their >> >>>> > applications. Written by three acclaimed leaders in the field, >> >>>> > this first edition is now available. Download your free book today! >> >>>> > http://p.sf.net/sfu/13534_NeoTech >> >>>> > _______________________________________________ >> >>>> > Postgres-xc-general mailing list >> >>>> > Pos...@li... >> >>>> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >> >>>> > >> >>> >> >>> >> >>> >> >>> >> >>> -- >> >>> Thanks, >> >>> Juned Khan >> >>> iNextrix Technologies Pvt Ltd. >> >>> www.inextrix.com >> > > > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com > -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |
From: Juned K. <jkh...@gm...> - 2014-03-11 07:14:20
|
Hi Masataka Thanks for the information. I don't see explanation for pgxc_ctl (pgxc_ctl add or init) commands in below link, http://sourceforge.net/apps/mediawiki/postgres-xc/index.php?title=PGOpen2013_Postgres_Open_2013 Although i found a section "Add/Remove component dynamically" in that pdf but very less information is there. I tried to find available options using pgxc_ctl --help but no success. option: -c or --configuration conf_file: Specify configruration file. -v or --verbose: Specify verbose output. -V or --version: Print version and exit. -l or --logdir log_directory: specifies what directory to write logs. -L or --logfile log_file: Specifies log file. --home home_direcotry: Specifies pgxc_ctl work director. -i or --infile input_file: Specifies inptut file. -o or --outfile output_file: Specifies output file. -h or --help: Prints this message and exits. For more deatils, refer to pgxc_ctl reference manual included in postgres-xc reference manual. Please guide me, i am following that demo.txt file which is used in pgxc demo. On Tue, Mar 11, 2014 at 12:07 AM, Koichi Suzuki <koi...@gm...>wrote: > No, as much as pgxc_ctl.conf is consistent with current configuration, > it's okay. > > Thanks. > --- > Koichi Suzuki > > > 2014-03-10 14:25 GMT+00:00 Masataka Saito <pg...@gm...>: > > pgxc_ctl knows new gtm-proxy because he edit pgxc_ctl.conf manually > > and of course it has entry for gtm-proxy. Do you mean pgxc_ctl has > > another file to memory about gtm-proxy? > > > > On 10 March 2014 23:00, Koichi Suzuki <koi...@gm...> wrote: > >> It's not a good idea to have gym-proxy not known to pgxc_ctl. You > >> should configure gym-proxy using pgxc_ctl. > >> --- > >> Koichi Suzuki > >> > >> > >> 2014-03-10 10:37 GMT+00:00 Juned Khan <jkh...@gm...>: > >>> Hi Masataka, > >>> > >>> yeah i have manually edited pgxc_ct.conf file and just added one more > >>> gtm_poxy, coordinator and datanode. then > >>> > >>> deploy node5 > >>> > >>> init gtm_proxy gtm_pxy3 > >>> init coordinator master coord3 > >>> init datanode master datanode3 > >>> > >>> start gtm_proxy gtm_pxy3 > >>> start coordinator master coord3 > >>> start datanode master datanode3 > >>> > >>> then > >>> > >>> add datanode master datanode3 node5 20008 > >>> /home/postgres/pgxc/nodes/dn_master > >>> > >>> isn't it the correct way to add new datanode ? > >>> > >>> On my real server i have to add number of new nodes later on, > >>> so i don't want to get stuck at that time. > >>> > >>> Please suggest. > >>> > >>> Regards > >>> > >>> Juned Khan > >>> > >>> > >>> > >>> On Mon, Mar 10, 2014 at 3:50 PM, Masataka Saito <pg...@gm...> > wrote: > >>>> > >>>> I wonder you manually edited your pgxc_ctl.conf and issued "pgxc_ctl > >>>> init", right? > >>>> > >>>> I think you're recommended to use "pgxc_ctl add" for that purpose. > >>>> "pgxc_ctl add" appends your pgxc_ctl.conf and setup component's > >>>> configuration files and coordinators' settings. > >>>> > >>>> If you want to do it in your way, you must issue "CREATE NODE" SQL > >>>> commands at your all coordinators after you start coordinators and > >>>> datanodes. Please notice I'm not sure it is all you have to do. > >>>> > >>>> Regards. > >>>> > >>>> On 10 March 2014 18:26, Juned Khan <jkh...@gm...> wrote: > >>>> > Hi Sir, > >>>> > > >>>> > As here we are adding datanode3, should i try to add gtm_procy3 and > >>>> > coordinator3 same way? > >>>> > > >>>> > If i am trying to add it without starting, then it complains > >>>> >> > >>>> >> Some of the coordinator masters are not running. Cannot add new > one. > >>>> > > >>>> > > >>>> > and if i try to add it after initialization and start then it > complains > >>>> >> > >>>> >> Node name datanode3 duplicate. > >>>> > > >>>> > > >>>> > So in this case i think it being added when its initialized but the > only > >>>> > problem is data distribution > >>>> > > >>>> > when i am executing query directly on datanode3 it giving me > >>>> > > >>>> >> koichi=# execute direct on (datanode3) 'select * from t1'; > >>>> >> ERROR: PGXC Node datanode3: object not defined > >>>> > > >>>> > > >>>> > Is there any other alternative to solve this problem. > >>>> > > >>>> > Please advice > >>>> > > >>>> > Regards > >>>> > Juned Khan > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > On Sun, Mar 9, 2014 at 3:17 PM, Juned Khan <jkh...@gm...> > wrote: > >>>> >> > >>>> >> Hi Koichi, > >>>> >> > >>>> >> I found datanode3 on node5 server. seems it been added there > >>>> >> > >>>> >> PGXC Psql -dpostgres -h node5 -p 20008 > >>>> >> Selected coord2. > >>>> >> psql (PGXC 1.1, based on PG 9.2.4) > >>>> >> Type "help" for help. > >>>> >> > >>>> >> postgres=# select * from pgxc_node; > >>>> >> node_name | node_type | node_port | node_host | nodeis_primary | > >>>> >> nodeis_preferred | node_id > >>>> >> > >>>> >> > >>>> >> > -----------+-----------+-----------+-----------+----------------+------------------+------------- > >>>> >> datanode3 | C | 5432 | localhost | f | f > >>>> >> | -1894792127 > >>>> >> (1 row) > >>>> >> > >>>> >> > >>>> >> But not able to drop it: > >>>> >> postgres=# drop node datanode3; > >>>> >> ERROR: PGXC Node datanode3: cannot drop local node > >>>> >> > >>>> >> > >>>> >> pgxc status : > >>>> >>> > >>>> >>> PGXC monitor all > >>>> >>> Running: gtm master > >>>> >>> Running: gtm slave > >>>> >>> Running: gtm proxy gtm_pxy1 > >>>> >>> Running: gtm proxy gtm_pxy2 > >>>> >>> Running: gtm proxy gtm_pxy3 > >>>> >>> Running: coordinator master coord1 > >>>> >>> Running: coordinator master coord2 > >>>> >>> Running: coordinator master coord3 > >>>> >>> Running: datanode master datanode1 > >>>> >>> Running: datanode master datanode2 > >>>> >>> Running: datanode master datanode3 > >>>> >> > >>>> >> > >>>> >> > >>>> >> all components are running properly. > >>>> >> please suggest. > >>>> >> > >>>> >> > >>>> >> > >>>> >> On Sun, Mar 9, 2014 at 2:52 PM, Koichi Suzuki < > koi...@gm...> > >>>> >> wrote: > >>>> >>> > >>>> >>> Something seems went wrong in the first step you added. It says > that > >>>> >>> some coordinator master was not running when you added datanode3. > It > >>>> >>> was half done. > >>>> >>> > >>>> >>> To recover this, please try the following. > >>>> >>> > >>>> >>> 1) Visit each coordinator and issue "select * from pgxc_ndoe". > If > >>>> >>> you find "datanode3", issue "drop node datanode3" in each > coordinator. > >>>> >>> > >>>> >>> 2) Make sure that all the coordinators are running. > >>>> >>> > >>>> >>> 3) Again, try "add datanode master" command from pgxc_ctl. > >>>> >>> > >>>> >>> Please note that you should have all the coordinator running > properly > >>>> >>> when you add datanodes or coordinators. > >>>> >>> > >>>> >>> Regards; > >>>> >>> --- > >>>> >>> Koichi Suzuki > >>>> >>> > >>>> >>> > >>>> >>> 2014-03-09 7:14 GMT+00:00 Juned Khan <jkh...@gm...>: > >>>> >>> > Hi All, > >>>> >>> > > >>>> >>> > I have pgxc running with 1 master 1 slave , 2 GTM Proxy, 2 > Datanode > >>>> >>> > and > >>>> >>> > 2 > >>>> >>> > Coordinator. > >>>> >>> > > >>>> >>> > Now i want to add third component with GTM proxy, datanode and > >>>> >>> > cordinator > >>>> >>> > I have configure third server and deployed binaries (deploy > node5) > >>>> >>> > > >>>> >>> > then i have initialized each > >>>> >>> > > >>>> >>> > But when i tried to add third datanode i got below error > >>>> >>> > ERROR: Some of the coordinator masters are not running. Cannot > add > >>>> >>> > new > >>>> >>> > one. > >>>> >>> > > >>>> >>> > so i started each component > >>>> >>> > > >>>> >>> > start gtm_proxy gtm_pxy3 > >>>> >>> > start coordinator master coord3 > >>>> >>> > start datanode master datanode3 > >>>> >>> > > >>>> >>> > Now everything is running but i getting below error while > executing > >>>> >>> > a > >>>> >>> > query. > >>>> >>> > > >>>> >>> >> koichi=# execute direct on (datanode3) 'select * from t1'; > >>>> >>> >> ERROR: PGXC Node datanode3: object not defined > >>>> >>> > > >>>> >>> > > >>>> >>> > and now if i am trying to add datanode while everything is > running , > >>>> >>> > its > >>>> >>> > throws below error: > >>>> >>> > > >>>> >>> >> PGXC add datanode master datanode3 node5 20008 > >>>> >>> >> /home/postgres/pgxc/nodes/dn_master > >>>> >>> >> ERROR: Node name datanode3 duplicate. > >>>> >>> > > >>>> >>> > > >>>> >>> > Is that flow is correct or i am missing something > >>>> >>> > what steps i should do to make it working ? > >>>> >>> > > >>>> >>> > > >>>> >>> > -- > >>>> >>> > Thanks, > >>>> >>> > Juned Khan > >>>> >>> > iNextrix Technologies Pvt Ltd. > >>>> >>> > www.inextrix.com > >>>> >>> > > >>>> >>> > > >>>> >>> > > >>>> >>> > > ------------------------------------------------------------------------------ > >>>> >>> > Subversion Kills Productivity. Get off Subversion & Make the > Move to > >>>> >>> > Perforce. > >>>> >>> > With Perforce, you get hassle-free workflows. Merge that > actually > >>>> >>> > works. > >>>> >>> > Faster operations. Version large binaries. Built-in WAN > >>>> >>> > optimization > >>>> >>> > and > >>>> >>> > the > >>>> >>> > freedom to use Git, Perforce or both. Make the move to Perforce. > >>>> >>> > > >>>> >>> > > >>>> >>> > > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > >>>> >>> > _______________________________________________ > >>>> >>> > Postgres-xc-general mailing list > >>>> >>> > Pos...@li... > >>>> >>> > > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > >>>> >>> > > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> -- > >>>> >> Thanks, > >>>> >> Juned Khan > >>>> >> iNextrix Technologies Pvt Ltd. > >>>> >> www.inextrix.com > >>>> > > >>>> > > >>>> > > >>>> > > >>>> > -- > >>>> > Thanks, > >>>> > Juned Khan > >>>> > iNextrix Technologies Pvt Ltd. > >>>> > www.inextrix.com > >>>> > > >>>> > > >>>> > > ------------------------------------------------------------------------------ > >>>> > Learn Graph Databases - Download FREE O'Reilly Book > >>>> > "Graph Databases" is the definitive new guide to graph databases and > >>>> > their > >>>> > applications. Written by three acclaimed leaders in the field, > >>>> > this first edition is now available. Download your free book today! > >>>> > http://p.sf.net/sfu/13534_NeoTech > >>>> > _______________________________________________ > >>>> > Postgres-xc-general mailing list > >>>> > Pos...@li... > >>>> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > >>>> > > >>> > >>> > >>> > >>> > >>> -- > >>> Thanks, > >>> Juned Khan > >>> iNextrix Technologies Pvt Ltd. > >>> www.inextrix.com > -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |
From: Koichi S. <koi...@gm...> - 2014-03-10 18:37:13
|
No, as much as pgxc_ctl.conf is consistent with current configuration, it's okay. Thanks. --- Koichi Suzuki 2014-03-10 14:25 GMT+00:00 Masataka Saito <pg...@gm...>: > pgxc_ctl knows new gtm-proxy because he edit pgxc_ctl.conf manually > and of course it has entry for gtm-proxy. Do you mean pgxc_ctl has > another file to memory about gtm-proxy? > > On 10 March 2014 23:00, Koichi Suzuki <koi...@gm...> wrote: >> It's not a good idea to have gym-proxy not known to pgxc_ctl. You >> should configure gym-proxy using pgxc_ctl. >> --- >> Koichi Suzuki >> >> >> 2014-03-10 10:37 GMT+00:00 Juned Khan <jkh...@gm...>: >>> Hi Masataka, >>> >>> yeah i have manually edited pgxc_ct.conf file and just added one more >>> gtm_poxy, coordinator and datanode. then >>> >>> deploy node5 >>> >>> init gtm_proxy gtm_pxy3 >>> init coordinator master coord3 >>> init datanode master datanode3 >>> >>> start gtm_proxy gtm_pxy3 >>> start coordinator master coord3 >>> start datanode master datanode3 >>> >>> then >>> >>> add datanode master datanode3 node5 20008 >>> /home/postgres/pgxc/nodes/dn_master >>> >>> isn't it the correct way to add new datanode ? >>> >>> On my real server i have to add number of new nodes later on, >>> so i don't want to get stuck at that time. >>> >>> Please suggest. >>> >>> Regards >>> >>> Juned Khan >>> >>> >>> >>> On Mon, Mar 10, 2014 at 3:50 PM, Masataka Saito <pg...@gm...> wrote: >>>> >>>> I wonder you manually edited your pgxc_ctl.conf and issued "pgxc_ctl >>>> init", right? >>>> >>>> I think you're recommended to use "pgxc_ctl add" for that purpose. >>>> "pgxc_ctl add" appends your pgxc_ctl.conf and setup component's >>>> configuration files and coordinators' settings. >>>> >>>> If you want to do it in your way, you must issue "CREATE NODE" SQL >>>> commands at your all coordinators after you start coordinators and >>>> datanodes. Please notice I'm not sure it is all you have to do. >>>> >>>> Regards. >>>> >>>> On 10 March 2014 18:26, Juned Khan <jkh...@gm...> wrote: >>>> > Hi Sir, >>>> > >>>> > As here we are adding datanode3, should i try to add gtm_procy3 and >>>> > coordinator3 same way? >>>> > >>>> > If i am trying to add it without starting, then it complains >>>> >> >>>> >> Some of the coordinator masters are not running. Cannot add new one. >>>> > >>>> > >>>> > and if i try to add it after initialization and start then it complains >>>> >> >>>> >> Node name datanode3 duplicate. >>>> > >>>> > >>>> > So in this case i think it being added when its initialized but the only >>>> > problem is data distribution >>>> > >>>> > when i am executing query directly on datanode3 it giving me >>>> > >>>> >> koichi=# execute direct on (datanode3) 'select * from t1'; >>>> >> ERROR: PGXC Node datanode3: object not defined >>>> > >>>> > >>>> > Is there any other alternative to solve this problem. >>>> > >>>> > Please advice >>>> > >>>> > Regards >>>> > Juned Khan >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > On Sun, Mar 9, 2014 at 3:17 PM, Juned Khan <jkh...@gm...> wrote: >>>> >> >>>> >> Hi Koichi, >>>> >> >>>> >> I found datanode3 on node5 server. seems it been added there >>>> >> >>>> >> PGXC Psql -dpostgres -h node5 -p 20008 >>>> >> Selected coord2. >>>> >> psql (PGXC 1.1, based on PG 9.2.4) >>>> >> Type "help" for help. >>>> >> >>>> >> postgres=# select * from pgxc_node; >>>> >> node_name | node_type | node_port | node_host | nodeis_primary | >>>> >> nodeis_preferred | node_id >>>> >> >>>> >> >>>> >> -----------+-----------+-----------+-----------+----------------+------------------+------------- >>>> >> datanode3 | C | 5432 | localhost | f | f >>>> >> | -1894792127 >>>> >> (1 row) >>>> >> >>>> >> >>>> >> But not able to drop it: >>>> >> postgres=# drop node datanode3; >>>> >> ERROR: PGXC Node datanode3: cannot drop local node >>>> >> >>>> >> >>>> >> pgxc status : >>>> >>> >>>> >>> PGXC monitor all >>>> >>> Running: gtm master >>>> >>> Running: gtm slave >>>> >>> Running: gtm proxy gtm_pxy1 >>>> >>> Running: gtm proxy gtm_pxy2 >>>> >>> Running: gtm proxy gtm_pxy3 >>>> >>> Running: coordinator master coord1 >>>> >>> Running: coordinator master coord2 >>>> >>> Running: coordinator master coord3 >>>> >>> Running: datanode master datanode1 >>>> >>> Running: datanode master datanode2 >>>> >>> Running: datanode master datanode3 >>>> >> >>>> >> >>>> >> >>>> >> all components are running properly. >>>> >> please suggest. >>>> >> >>>> >> >>>> >> >>>> >> On Sun, Mar 9, 2014 at 2:52 PM, Koichi Suzuki <koi...@gm...> >>>> >> wrote: >>>> >>> >>>> >>> Something seems went wrong in the first step you added. It says that >>>> >>> some coordinator master was not running when you added datanode3. It >>>> >>> was half done. >>>> >>> >>>> >>> To recover this, please try the following. >>>> >>> >>>> >>> 1) Visit each coordinator and issue "select * from pgxc_ndoe". If >>>> >>> you find "datanode3", issue "drop node datanode3" in each coordinator. >>>> >>> >>>> >>> 2) Make sure that all the coordinators are running. >>>> >>> >>>> >>> 3) Again, try "add datanode master" command from pgxc_ctl. >>>> >>> >>>> >>> Please note that you should have all the coordinator running properly >>>> >>> when you add datanodes or coordinators. >>>> >>> >>>> >>> Regards; >>>> >>> --- >>>> >>> Koichi Suzuki >>>> >>> >>>> >>> >>>> >>> 2014-03-09 7:14 GMT+00:00 Juned Khan <jkh...@gm...>: >>>> >>> > Hi All, >>>> >>> > >>>> >>> > I have pgxc running with 1 master 1 slave , 2 GTM Proxy, 2 Datanode >>>> >>> > and >>>> >>> > 2 >>>> >>> > Coordinator. >>>> >>> > >>>> >>> > Now i want to add third component with GTM proxy, datanode and >>>> >>> > cordinator >>>> >>> > I have configure third server and deployed binaries (deploy node5) >>>> >>> > >>>> >>> > then i have initialized each >>>> >>> > >>>> >>> > But when i tried to add third datanode i got below error >>>> >>> > ERROR: Some of the coordinator masters are not running. Cannot add >>>> >>> > new >>>> >>> > one. >>>> >>> > >>>> >>> > so i started each component >>>> >>> > >>>> >>> > start gtm_proxy gtm_pxy3 >>>> >>> > start coordinator master coord3 >>>> >>> > start datanode master datanode3 >>>> >>> > >>>> >>> > Now everything is running but i getting below error while executing >>>> >>> > a >>>> >>> > query. >>>> >>> > >>>> >>> >> koichi=# execute direct on (datanode3) 'select * from t1'; >>>> >>> >> ERROR: PGXC Node datanode3: object not defined >>>> >>> > >>>> >>> > >>>> >>> > and now if i am trying to add datanode while everything is running , >>>> >>> > its >>>> >>> > throws below error: >>>> >>> > >>>> >>> >> PGXC add datanode master datanode3 node5 20008 >>>> >>> >> /home/postgres/pgxc/nodes/dn_master >>>> >>> >> ERROR: Node name datanode3 duplicate. >>>> >>> > >>>> >>> > >>>> >>> > Is that flow is correct or i am missing something >>>> >>> > what steps i should do to make it working ? >>>> >>> > >>>> >>> > >>>> >>> > -- >>>> >>> > Thanks, >>>> >>> > Juned Khan >>>> >>> > iNextrix Technologies Pvt Ltd. >>>> >>> > www.inextrix.com >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > ------------------------------------------------------------------------------ >>>> >>> > Subversion Kills Productivity. Get off Subversion & Make the Move to >>>> >>> > Perforce. >>>> >>> > With Perforce, you get hassle-free workflows. Merge that actually >>>> >>> > works. >>>> >>> > Faster operations. Version large binaries. Built-in WAN >>>> >>> > optimization >>>> >>> > and >>>> >>> > the >>>> >>> > freedom to use Git, Perforce or both. Make the move to Perforce. >>>> >>> > >>>> >>> > >>>> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk >>>> >>> > _______________________________________________ >>>> >>> > Postgres-xc-general mailing list >>>> >>> > Pos...@li... >>>> >>> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >>>> >>> > >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> -- >>>> >> Thanks, >>>> >> Juned Khan >>>> >> iNextrix Technologies Pvt Ltd. >>>> >> www.inextrix.com >>>> > >>>> > >>>> > >>>> > >>>> > -- >>>> > Thanks, >>>> > Juned Khan >>>> > iNextrix Technologies Pvt Ltd. >>>> > www.inextrix.com >>>> > >>>> > >>>> > ------------------------------------------------------------------------------ >>>> > Learn Graph Databases - Download FREE O'Reilly Book >>>> > "Graph Databases" is the definitive new guide to graph databases and >>>> > their >>>> > applications. Written by three acclaimed leaders in the field, >>>> > this first edition is now available. Download your free book today! >>>> > http://p.sf.net/sfu/13534_NeoTech >>>> > _______________________________________________ >>>> > Postgres-xc-general mailing list >>>> > Pos...@li... >>>> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >>>> > >>> >>> >>> >>> >>> -- >>> Thanks, >>> Juned Khan >>> iNextrix Technologies Pvt Ltd. >>> www.inextrix.com |
From: Masataka S. <pg...@gm...> - 2014-03-10 14:25:36
|
pgxc_ctl knows new gtm-proxy because he edit pgxc_ctl.conf manually and of course it has entry for gtm-proxy. Do you mean pgxc_ctl has another file to memory about gtm-proxy? On 10 March 2014 23:00, Koichi Suzuki <koi...@gm...> wrote: > It's not a good idea to have gym-proxy not known to pgxc_ctl. You > should configure gym-proxy using pgxc_ctl. > --- > Koichi Suzuki > > > 2014-03-10 10:37 GMT+00:00 Juned Khan <jkh...@gm...>: >> Hi Masataka, >> >> yeah i have manually edited pgxc_ct.conf file and just added one more >> gtm_poxy, coordinator and datanode. then >> >> deploy node5 >> >> init gtm_proxy gtm_pxy3 >> init coordinator master coord3 >> init datanode master datanode3 >> >> start gtm_proxy gtm_pxy3 >> start coordinator master coord3 >> start datanode master datanode3 >> >> then >> >> add datanode master datanode3 node5 20008 >> /home/postgres/pgxc/nodes/dn_master >> >> isn't it the correct way to add new datanode ? >> >> On my real server i have to add number of new nodes later on, >> so i don't want to get stuck at that time. >> >> Please suggest. >> >> Regards >> >> Juned Khan >> >> >> >> On Mon, Mar 10, 2014 at 3:50 PM, Masataka Saito <pg...@gm...> wrote: >>> >>> I wonder you manually edited your pgxc_ctl.conf and issued "pgxc_ctl >>> init", right? >>> >>> I think you're recommended to use "pgxc_ctl add" for that purpose. >>> "pgxc_ctl add" appends your pgxc_ctl.conf and setup component's >>> configuration files and coordinators' settings. >>> >>> If you want to do it in your way, you must issue "CREATE NODE" SQL >>> commands at your all coordinators after you start coordinators and >>> datanodes. Please notice I'm not sure it is all you have to do. >>> >>> Regards. >>> >>> On 10 March 2014 18:26, Juned Khan <jkh...@gm...> wrote: >>> > Hi Sir, >>> > >>> > As here we are adding datanode3, should i try to add gtm_procy3 and >>> > coordinator3 same way? >>> > >>> > If i am trying to add it without starting, then it complains >>> >> >>> >> Some of the coordinator masters are not running. Cannot add new one. >>> > >>> > >>> > and if i try to add it after initialization and start then it complains >>> >> >>> >> Node name datanode3 duplicate. >>> > >>> > >>> > So in this case i think it being added when its initialized but the only >>> > problem is data distribution >>> > >>> > when i am executing query directly on datanode3 it giving me >>> > >>> >> koichi=# execute direct on (datanode3) 'select * from t1'; >>> >> ERROR: PGXC Node datanode3: object not defined >>> > >>> > >>> > Is there any other alternative to solve this problem. >>> > >>> > Please advice >>> > >>> > Regards >>> > Juned Khan >>> > >>> > >>> > >>> > >>> > >>> > On Sun, Mar 9, 2014 at 3:17 PM, Juned Khan <jkh...@gm...> wrote: >>> >> >>> >> Hi Koichi, >>> >> >>> >> I found datanode3 on node5 server. seems it been added there >>> >> >>> >> PGXC Psql -dpostgres -h node5 -p 20008 >>> >> Selected coord2. >>> >> psql (PGXC 1.1, based on PG 9.2.4) >>> >> Type "help" for help. >>> >> >>> >> postgres=# select * from pgxc_node; >>> >> node_name | node_type | node_port | node_host | nodeis_primary | >>> >> nodeis_preferred | node_id >>> >> >>> >> >>> >> -----------+-----------+-----------+-----------+----------------+------------------+------------- >>> >> datanode3 | C | 5432 | localhost | f | f >>> >> | -1894792127 >>> >> (1 row) >>> >> >>> >> >>> >> But not able to drop it: >>> >> postgres=# drop node datanode3; >>> >> ERROR: PGXC Node datanode3: cannot drop local node >>> >> >>> >> >>> >> pgxc status : >>> >>> >>> >>> PGXC monitor all >>> >>> Running: gtm master >>> >>> Running: gtm slave >>> >>> Running: gtm proxy gtm_pxy1 >>> >>> Running: gtm proxy gtm_pxy2 >>> >>> Running: gtm proxy gtm_pxy3 >>> >>> Running: coordinator master coord1 >>> >>> Running: coordinator master coord2 >>> >>> Running: coordinator master coord3 >>> >>> Running: datanode master datanode1 >>> >>> Running: datanode master datanode2 >>> >>> Running: datanode master datanode3 >>> >> >>> >> >>> >> >>> >> all components are running properly. >>> >> please suggest. >>> >> >>> >> >>> >> >>> >> On Sun, Mar 9, 2014 at 2:52 PM, Koichi Suzuki <koi...@gm...> >>> >> wrote: >>> >>> >>> >>> Something seems went wrong in the first step you added. It says that >>> >>> some coordinator master was not running when you added datanode3. It >>> >>> was half done. >>> >>> >>> >>> To recover this, please try the following. >>> >>> >>> >>> 1) Visit each coordinator and issue "select * from pgxc_ndoe". If >>> >>> you find "datanode3", issue "drop node datanode3" in each coordinator. >>> >>> >>> >>> 2) Make sure that all the coordinators are running. >>> >>> >>> >>> 3) Again, try "add datanode master" command from pgxc_ctl. >>> >>> >>> >>> Please note that you should have all the coordinator running properly >>> >>> when you add datanodes or coordinators. >>> >>> >>> >>> Regards; >>> >>> --- >>> >>> Koichi Suzuki >>> >>> >>> >>> >>> >>> 2014-03-09 7:14 GMT+00:00 Juned Khan <jkh...@gm...>: >>> >>> > Hi All, >>> >>> > >>> >>> > I have pgxc running with 1 master 1 slave , 2 GTM Proxy, 2 Datanode >>> >>> > and >>> >>> > 2 >>> >>> > Coordinator. >>> >>> > >>> >>> > Now i want to add third component with GTM proxy, datanode and >>> >>> > cordinator >>> >>> > I have configure third server and deployed binaries (deploy node5) >>> >>> > >>> >>> > then i have initialized each >>> >>> > >>> >>> > But when i tried to add third datanode i got below error >>> >>> > ERROR: Some of the coordinator masters are not running. Cannot add >>> >>> > new >>> >>> > one. >>> >>> > >>> >>> > so i started each component >>> >>> > >>> >>> > start gtm_proxy gtm_pxy3 >>> >>> > start coordinator master coord3 >>> >>> > start datanode master datanode3 >>> >>> > >>> >>> > Now everything is running but i getting below error while executing >>> >>> > a >>> >>> > query. >>> >>> > >>> >>> >> koichi=# execute direct on (datanode3) 'select * from t1'; >>> >>> >> ERROR: PGXC Node datanode3: object not defined >>> >>> > >>> >>> > >>> >>> > and now if i am trying to add datanode while everything is running , >>> >>> > its >>> >>> > throws below error: >>> >>> > >>> >>> >> PGXC add datanode master datanode3 node5 20008 >>> >>> >> /home/postgres/pgxc/nodes/dn_master >>> >>> >> ERROR: Node name datanode3 duplicate. >>> >>> > >>> >>> > >>> >>> > Is that flow is correct or i am missing something >>> >>> > what steps i should do to make it working ? >>> >>> > >>> >>> > >>> >>> > -- >>> >>> > Thanks, >>> >>> > Juned Khan >>> >>> > iNextrix Technologies Pvt Ltd. >>> >>> > www.inextrix.com >>> >>> > >>> >>> > >>> >>> > >>> >>> > ------------------------------------------------------------------------------ >>> >>> > Subversion Kills Productivity. Get off Subversion & Make the Move to >>> >>> > Perforce. >>> >>> > With Perforce, you get hassle-free workflows. Merge that actually >>> >>> > works. >>> >>> > Faster operations. Version large binaries. Built-in WAN >>> >>> > optimization >>> >>> > and >>> >>> > the >>> >>> > freedom to use Git, Perforce or both. Make the move to Perforce. >>> >>> > >>> >>> > >>> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk >>> >>> > _______________________________________________ >>> >>> > Postgres-xc-general mailing list >>> >>> > Pos...@li... >>> >>> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >>> >>> > >>> >> >>> >> >>> >> >>> >> >>> >> -- >>> >> Thanks, >>> >> Juned Khan >>> >> iNextrix Technologies Pvt Ltd. >>> >> www.inextrix.com >>> > >>> > >>> > >>> > >>> > -- >>> > Thanks, >>> > Juned Khan >>> > iNextrix Technologies Pvt Ltd. >>> > www.inextrix.com >>> > >>> > >>> > ------------------------------------------------------------------------------ >>> > Learn Graph Databases - Download FREE O'Reilly Book >>> > "Graph Databases" is the definitive new guide to graph databases and >>> > their >>> > applications. Written by three acclaimed leaders in the field, >>> > this first edition is now available. Download your free book today! >>> > http://p.sf.net/sfu/13534_NeoTech >>> > _______________________________________________ >>> > Postgres-xc-general mailing list >>> > Pos...@li... >>> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >>> > >> >> >> >> >> -- >> Thanks, >> Juned Khan >> iNextrix Technologies Pvt Ltd. >> www.inextrix.com |
From: Koichi S. <koi...@gm...> - 2014-03-10 14:01:09
|
It's not a good idea to have gym-proxy not known to pgxc_ctl. You should configure gym-proxy using pgxc_ctl. --- Koichi Suzuki 2014-03-10 10:37 GMT+00:00 Juned Khan <jkh...@gm...>: > Hi Masataka, > > yeah i have manually edited pgxc_ct.conf file and just added one more > gtm_poxy, coordinator and datanode. then > > deploy node5 > > init gtm_proxy gtm_pxy3 > init coordinator master coord3 > init datanode master datanode3 > > start gtm_proxy gtm_pxy3 > start coordinator master coord3 > start datanode master datanode3 > > then > > add datanode master datanode3 node5 20008 > /home/postgres/pgxc/nodes/dn_master > > isn't it the correct way to add new datanode ? > > On my real server i have to add number of new nodes later on, > so i don't want to get stuck at that time. > > Please suggest. > > Regards > > Juned Khan > > > > On Mon, Mar 10, 2014 at 3:50 PM, Masataka Saito <pg...@gm...> wrote: >> >> I wonder you manually edited your pgxc_ctl.conf and issued "pgxc_ctl >> init", right? >> >> I think you're recommended to use "pgxc_ctl add" for that purpose. >> "pgxc_ctl add" appends your pgxc_ctl.conf and setup component's >> configuration files and coordinators' settings. >> >> If you want to do it in your way, you must issue "CREATE NODE" SQL >> commands at your all coordinators after you start coordinators and >> datanodes. Please notice I'm not sure it is all you have to do. >> >> Regards. >> >> On 10 March 2014 18:26, Juned Khan <jkh...@gm...> wrote: >> > Hi Sir, >> > >> > As here we are adding datanode3, should i try to add gtm_procy3 and >> > coordinator3 same way? >> > >> > If i am trying to add it without starting, then it complains >> >> >> >> Some of the coordinator masters are not running. Cannot add new one. >> > >> > >> > and if i try to add it after initialization and start then it complains >> >> >> >> Node name datanode3 duplicate. >> > >> > >> > So in this case i think it being added when its initialized but the only >> > problem is data distribution >> > >> > when i am executing query directly on datanode3 it giving me >> > >> >> koichi=# execute direct on (datanode3) 'select * from t1'; >> >> ERROR: PGXC Node datanode3: object not defined >> > >> > >> > Is there any other alternative to solve this problem. >> > >> > Please advice >> > >> > Regards >> > Juned Khan >> > >> > >> > >> > >> > >> > On Sun, Mar 9, 2014 at 3:17 PM, Juned Khan <jkh...@gm...> wrote: >> >> >> >> Hi Koichi, >> >> >> >> I found datanode3 on node5 server. seems it been added there >> >> >> >> PGXC Psql -dpostgres -h node5 -p 20008 >> >> Selected coord2. >> >> psql (PGXC 1.1, based on PG 9.2.4) >> >> Type "help" for help. >> >> >> >> postgres=# select * from pgxc_node; >> >> node_name | node_type | node_port | node_host | nodeis_primary | >> >> nodeis_preferred | node_id >> >> >> >> >> >> -----------+-----------+-----------+-----------+----------------+------------------+------------- >> >> datanode3 | C | 5432 | localhost | f | f >> >> | -1894792127 >> >> (1 row) >> >> >> >> >> >> But not able to drop it: >> >> postgres=# drop node datanode3; >> >> ERROR: PGXC Node datanode3: cannot drop local node >> >> >> >> >> >> pgxc status : >> >>> >> >>> PGXC monitor all >> >>> Running: gtm master >> >>> Running: gtm slave >> >>> Running: gtm proxy gtm_pxy1 >> >>> Running: gtm proxy gtm_pxy2 >> >>> Running: gtm proxy gtm_pxy3 >> >>> Running: coordinator master coord1 >> >>> Running: coordinator master coord2 >> >>> Running: coordinator master coord3 >> >>> Running: datanode master datanode1 >> >>> Running: datanode master datanode2 >> >>> Running: datanode master datanode3 >> >> >> >> >> >> >> >> all components are running properly. >> >> please suggest. >> >> >> >> >> >> >> >> On Sun, Mar 9, 2014 at 2:52 PM, Koichi Suzuki <koi...@gm...> >> >> wrote: >> >>> >> >>> Something seems went wrong in the first step you added. It says that >> >>> some coordinator master was not running when you added datanode3. It >> >>> was half done. >> >>> >> >>> To recover this, please try the following. >> >>> >> >>> 1) Visit each coordinator and issue "select * from pgxc_ndoe". If >> >>> you find "datanode3", issue "drop node datanode3" in each coordinator. >> >>> >> >>> 2) Make sure that all the coordinators are running. >> >>> >> >>> 3) Again, try "add datanode master" command from pgxc_ctl. >> >>> >> >>> Please note that you should have all the coordinator running properly >> >>> when you add datanodes or coordinators. >> >>> >> >>> Regards; >> >>> --- >> >>> Koichi Suzuki >> >>> >> >>> >> >>> 2014-03-09 7:14 GMT+00:00 Juned Khan <jkh...@gm...>: >> >>> > Hi All, >> >>> > >> >>> > I have pgxc running with 1 master 1 slave , 2 GTM Proxy, 2 Datanode >> >>> > and >> >>> > 2 >> >>> > Coordinator. >> >>> > >> >>> > Now i want to add third component with GTM proxy, datanode and >> >>> > cordinator >> >>> > I have configure third server and deployed binaries (deploy node5) >> >>> > >> >>> > then i have initialized each >> >>> > >> >>> > But when i tried to add third datanode i got below error >> >>> > ERROR: Some of the coordinator masters are not running. Cannot add >> >>> > new >> >>> > one. >> >>> > >> >>> > so i started each component >> >>> > >> >>> > start gtm_proxy gtm_pxy3 >> >>> > start coordinator master coord3 >> >>> > start datanode master datanode3 >> >>> > >> >>> > Now everything is running but i getting below error while executing >> >>> > a >> >>> > query. >> >>> > >> >>> >> koichi=# execute direct on (datanode3) 'select * from t1'; >> >>> >> ERROR: PGXC Node datanode3: object not defined >> >>> > >> >>> > >> >>> > and now if i am trying to add datanode while everything is running , >> >>> > its >> >>> > throws below error: >> >>> > >> >>> >> PGXC add datanode master datanode3 node5 20008 >> >>> >> /home/postgres/pgxc/nodes/dn_master >> >>> >> ERROR: Node name datanode3 duplicate. >> >>> > >> >>> > >> >>> > Is that flow is correct or i am missing something >> >>> > what steps i should do to make it working ? >> >>> > >> >>> > >> >>> > -- >> >>> > Thanks, >> >>> > Juned Khan >> >>> > iNextrix Technologies Pvt Ltd. >> >>> > www.inextrix.com >> >>> > >> >>> > >> >>> > >> >>> > ------------------------------------------------------------------------------ >> >>> > Subversion Kills Productivity. Get off Subversion & Make the Move to >> >>> > Perforce. >> >>> > With Perforce, you get hassle-free workflows. Merge that actually >> >>> > works. >> >>> > Faster operations. Version large binaries. Built-in WAN >> >>> > optimization >> >>> > and >> >>> > the >> >>> > freedom to use Git, Perforce or both. Make the move to Perforce. >> >>> > >> >>> > >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk >> >>> > _______________________________________________ >> >>> > Postgres-xc-general mailing list >> >>> > Pos...@li... >> >>> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >> >>> > >> >> >> >> >> >> >> >> >> >> -- >> >> Thanks, >> >> Juned Khan >> >> iNextrix Technologies Pvt Ltd. >> >> www.inextrix.com >> > >> > >> > >> > >> > -- >> > Thanks, >> > Juned Khan >> > iNextrix Technologies Pvt Ltd. >> > www.inextrix.com >> > >> > >> > ------------------------------------------------------------------------------ >> > Learn Graph Databases - Download FREE O'Reilly Book >> > "Graph Databases" is the definitive new guide to graph databases and >> > their >> > applications. Written by three acclaimed leaders in the field, >> > this first edition is now available. Download your free book today! >> > http://p.sf.net/sfu/13534_NeoTech >> > _______________________________________________ >> > Postgres-xc-general mailing list >> > Pos...@li... >> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >> > > > > > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com |
From: Masataka S. <pg...@gm...> - 2014-03-10 12:50:16
|
When you use "pgxc_ctl add", you should not edit pgxc_ctl.conf and issue "pgxc_ctl init". This presentation and demonstration materials may help you. * http://sourceforge.net/apps/mediawiki/postgres-xc/index.php?title=PGOpen2013_Postgres_Open_2013 On the other hand if you want to edit pgxc_ctl.conf by yourself, it may be deprecated, you need to issue "CREATE NODE" at each existing coordinators for new coordinator and datanode and also need to issue "CREATE NODE" at coordinator3 for every existing nodes after "pgxc_ctl init". * http://postgres-xc.sourceforge.net/docs/1_1/sql-createnode.html Regards. On 10 March 2014 19:37, Juned Khan <jkh...@gm...> wrote: > Hi Masataka, > > yeah i have manually edited pgxc_ct.conf file and just added one more > gtm_poxy, coordinator and datanode. then > > deploy node5 > > init gtm_proxy gtm_pxy3 > init coordinator master coord3 > init datanode master datanode3 > > start gtm_proxy gtm_pxy3 > start coordinator master coord3 > start datanode master datanode3 > > then > > add datanode master datanode3 node5 20008 > /home/postgres/pgxc/nodes/dn_master > > isn't it the correct way to add new datanode ? > > On my real server i have to add number of new nodes later on, > so i don't want to get stuck at that time. > > Please suggest. > > Regards > > Juned Khan > > > > On Mon, Mar 10, 2014 at 3:50 PM, Masataka Saito <pg...@gm...> wrote: >> >> I wonder you manually edited your pgxc_ctl.conf and issued "pgxc_ctl >> init", right? >> >> I think you're recommended to use "pgxc_ctl add" for that purpose. >> "pgxc_ctl add" appends your pgxc_ctl.conf and setup component's >> configuration files and coordinators' settings. >> >> If you want to do it in your way, you must issue "CREATE NODE" SQL >> commands at your all coordinators after you start coordinators and >> datanodes. Please notice I'm not sure it is all you have to do. >> >> Regards. >> >> On 10 March 2014 18:26, Juned Khan <jkh...@gm...> wrote: >> > Hi Sir, >> > >> > As here we are adding datanode3, should i try to add gtm_procy3 and >> > coordinator3 same way? >> > >> > If i am trying to add it without starting, then it complains >> >> >> >> Some of the coordinator masters are not running. Cannot add new one. >> > >> > >> > and if i try to add it after initialization and start then it complains >> >> >> >> Node name datanode3 duplicate. >> > >> > >> > So in this case i think it being added when its initialized but the only >> > problem is data distribution >> > >> > when i am executing query directly on datanode3 it giving me >> > >> >> koichi=# execute direct on (datanode3) 'select * from t1'; >> >> ERROR: PGXC Node datanode3: object not defined >> > >> > >> > Is there any other alternative to solve this problem. >> > >> > Please advice >> > >> > Regards >> > Juned Khan >> > >> > >> > >> > >> > >> > On Sun, Mar 9, 2014 at 3:17 PM, Juned Khan <jkh...@gm...> wrote: >> >> >> >> Hi Koichi, >> >> >> >> I found datanode3 on node5 server. seems it been added there >> >> >> >> PGXC Psql -dpostgres -h node5 -p 20008 >> >> Selected coord2. >> >> psql (PGXC 1.1, based on PG 9.2.4) >> >> Type "help" for help. >> >> >> >> postgres=# select * from pgxc_node; >> >> node_name | node_type | node_port | node_host | nodeis_primary | >> >> nodeis_preferred | node_id >> >> >> >> >> >> -----------+-----------+-----------+-----------+----------------+------------------+------------- >> >> datanode3 | C | 5432 | localhost | f | f >> >> | -1894792127 >> >> (1 row) >> >> >> >> >> >> But not able to drop it: >> >> postgres=# drop node datanode3; >> >> ERROR: PGXC Node datanode3: cannot drop local node >> >> >> >> >> >> pgxc status : >> >>> >> >>> PGXC monitor all >> >>> Running: gtm master >> >>> Running: gtm slave >> >>> Running: gtm proxy gtm_pxy1 >> >>> Running: gtm proxy gtm_pxy2 >> >>> Running: gtm proxy gtm_pxy3 >> >>> Running: coordinator master coord1 >> >>> Running: coordinator master coord2 >> >>> Running: coordinator master coord3 >> >>> Running: datanode master datanode1 >> >>> Running: datanode master datanode2 >> >>> Running: datanode master datanode3 >> >> >> >> >> >> >> >> all components are running properly. >> >> please suggest. >> >> >> >> >> >> >> >> On Sun, Mar 9, 2014 at 2:52 PM, Koichi Suzuki <koi...@gm...> >> >> wrote: >> >>> >> >>> Something seems went wrong in the first step you added. It says that >> >>> some coordinator master was not running when you added datanode3. It >> >>> was half done. >> >>> >> >>> To recover this, please try the following. >> >>> >> >>> 1) Visit each coordinator and issue "select * from pgxc_ndoe". If >> >>> you find "datanode3", issue "drop node datanode3" in each coordinator. >> >>> >> >>> 2) Make sure that all the coordinators are running. >> >>> >> >>> 3) Again, try "add datanode master" command from pgxc_ctl. >> >>> >> >>> Please note that you should have all the coordinator running properly >> >>> when you add datanodes or coordinators. >> >>> >> >>> Regards; >> >>> --- >> >>> Koichi Suzuki >> >>> >> >>> >> >>> 2014-03-09 7:14 GMT+00:00 Juned Khan <jkh...@gm...>: >> >>> > Hi All, >> >>> > >> >>> > I have pgxc running with 1 master 1 slave , 2 GTM Proxy, 2 Datanode >> >>> > and >> >>> > 2 >> >>> > Coordinator. >> >>> > >> >>> > Now i want to add third component with GTM proxy, datanode and >> >>> > cordinator >> >>> > I have configure third server and deployed binaries (deploy node5) >> >>> > >> >>> > then i have initialized each >> >>> > >> >>> > But when i tried to add third datanode i got below error >> >>> > ERROR: Some of the coordinator masters are not running. Cannot add >> >>> > new >> >>> > one. >> >>> > >> >>> > so i started each component >> >>> > >> >>> > start gtm_proxy gtm_pxy3 >> >>> > start coordinator master coord3 >> >>> > start datanode master datanode3 >> >>> > >> >>> > Now everything is running but i getting below error while executing >> >>> > a >> >>> > query. >> >>> > >> >>> >> koichi=# execute direct on (datanode3) 'select * from t1'; >> >>> >> ERROR: PGXC Node datanode3: object not defined >> >>> > >> >>> > >> >>> > and now if i am trying to add datanode while everything is running , >> >>> > its >> >>> > throws below error: >> >>> > >> >>> >> PGXC add datanode master datanode3 node5 20008 >> >>> >> /home/postgres/pgxc/nodes/dn_master >> >>> >> ERROR: Node name datanode3 duplicate. >> >>> > >> >>> > >> >>> > Is that flow is correct or i am missing something >> >>> > what steps i should do to make it working ? >> >>> > >> >>> > >> >>> > -- >> >>> > Thanks, >> >>> > Juned Khan >> >>> > iNextrix Technologies Pvt Ltd. >> >>> > www.inextrix.com >> >>> > >> >>> > >> >>> > >> >>> > ------------------------------------------------------------------------------ >> >>> > Subversion Kills Productivity. Get off Subversion & Make the Move to >> >>> > Perforce. >> >>> > With Perforce, you get hassle-free workflows. Merge that actually >> >>> > works. >> >>> > Faster operations. Version large binaries. Built-in WAN >> >>> > optimization >> >>> > and >> >>> > the >> >>> > freedom to use Git, Perforce or both. Make the move to Perforce. >> >>> > >> >>> > >> >>> > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk >> >>> > _______________________________________________ >> >>> > Postgres-xc-general mailing list >> >>> > Pos...@li... >> >>> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >> >>> > >> >> >> >> >> >> >> >> >> >> -- >> >> Thanks, >> >> Juned Khan >> >> iNextrix Technologies Pvt Ltd. >> >> www.inextrix.com >> > >> > >> > >> > >> > -- >> > Thanks, >> > Juned Khan >> > iNextrix Technologies Pvt Ltd. >> > www.inextrix.com >> > >> > >> > ------------------------------------------------------------------------------ >> > Learn Graph Databases - Download FREE O'Reilly Book >> > "Graph Databases" is the definitive new guide to graph databases and >> > their >> > applications. Written by three acclaimed leaders in the field, >> > this first edition is now available. Download your free book today! >> > http://p.sf.net/sfu/13534_NeoTech >> > _______________________________________________ >> > Postgres-xc-general mailing list >> > Pos...@li... >> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >> > > > > > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com |
From: Juned K. <jkh...@gm...> - 2014-03-10 10:37:13
|
Hi Masataka, yeah i have manually edited pgxc_ct.conf file and just added one more gtm_poxy, coordinator and datanode. then deploy node5 init gtm_proxy gtm_pxy3 init coordinator master coord3 init datanode master datanode3 start gtm_proxy gtm_pxy3 start coordinator master coord3 start datanode master datanode3 then add datanode master datanode3 node5 20008 /home/postgres/pgxc/nodes/dn_master isn't it the correct way to add new datanode ? On my real server i have to add number of new nodes later on, so i don't want to get stuck at that time. Please suggest. Regards Juned Khan On Mon, Mar 10, 2014 at 3:50 PM, Masataka Saito <pg...@gm...> wrote: > I wonder you manually edited your pgxc_ctl.conf and issued "pgxc_ctl > init", right? > > I think you're recommended to use "pgxc_ctl add" for that purpose. > "pgxc_ctl add" appends your pgxc_ctl.conf and setup component's > configuration files and coordinators' settings. > > If you want to do it in your way, you must issue "CREATE NODE" SQL > commands at your all coordinators after you start coordinators and > datanodes. Please notice I'm not sure it is all you have to do. > > Regards. > > On 10 March 2014 18:26, Juned Khan <jkh...@gm...> wrote: > > Hi Sir, > > > > As here we are adding datanode3, should i try to add gtm_procy3 and > > coordinator3 same way? > > > > If i am trying to add it without starting, then it complains > >> > >> Some of the coordinator masters are not running. Cannot add new one. > > > > > > and if i try to add it after initialization and start then it complains > >> > >> Node name datanode3 duplicate. > > > > > > So in this case i think it being added when its initialized but the only > > problem is data distribution > > > > when i am executing query directly on datanode3 it giving me > > > >> koichi=# execute direct on (datanode3) 'select * from t1'; > >> ERROR: PGXC Node datanode3: object not defined > > > > > > Is there any other alternative to solve this problem. > > > > Please advice > > > > Regards > > Juned Khan > > > > > > > > > > > > On Sun, Mar 9, 2014 at 3:17 PM, Juned Khan <jkh...@gm...> wrote: > >> > >> Hi Koichi, > >> > >> I found datanode3 on node5 server. seems it been added there > >> > >> PGXC Psql -dpostgres -h node5 -p 20008 > >> Selected coord2. > >> psql (PGXC 1.1, based on PG 9.2.4) > >> Type "help" for help. > >> > >> postgres=# select * from pgxc_node; > >> node_name | node_type | node_port | node_host | nodeis_primary | > >> nodeis_preferred | node_id > >> > >> > -----------+-----------+-----------+-----------+----------------+------------------+------------- > >> datanode3 | C | 5432 | localhost | f | f > >> | -1894792127 > >> (1 row) > >> > >> > >> But not able to drop it: > >> postgres=# drop node datanode3; > >> ERROR: PGXC Node datanode3: cannot drop local node > >> > >> > >> pgxc status : > >>> > >>> PGXC monitor all > >>> Running: gtm master > >>> Running: gtm slave > >>> Running: gtm proxy gtm_pxy1 > >>> Running: gtm proxy gtm_pxy2 > >>> Running: gtm proxy gtm_pxy3 > >>> Running: coordinator master coord1 > >>> Running: coordinator master coord2 > >>> Running: coordinator master coord3 > >>> Running: datanode master datanode1 > >>> Running: datanode master datanode2 > >>> Running: datanode master datanode3 > >> > >> > >> > >> all components are running properly. > >> please suggest. > >> > >> > >> > >> On Sun, Mar 9, 2014 at 2:52 PM, Koichi Suzuki <koi...@gm...> > >> wrote: > >>> > >>> Something seems went wrong in the first step you added. It says that > >>> some coordinator master was not running when you added datanode3. It > >>> was half done. > >>> > >>> To recover this, please try the following. > >>> > >>> 1) Visit each coordinator and issue "select * from pgxc_ndoe". If > >>> you find "datanode3", issue "drop node datanode3" in each coordinator. > >>> > >>> 2) Make sure that all the coordinators are running. > >>> > >>> 3) Again, try "add datanode master" command from pgxc_ctl. > >>> > >>> Please note that you should have all the coordinator running properly > >>> when you add datanodes or coordinators. > >>> > >>> Regards; > >>> --- > >>> Koichi Suzuki > >>> > >>> > >>> 2014-03-09 7:14 GMT+00:00 Juned Khan <jkh...@gm...>: > >>> > Hi All, > >>> > > >>> > I have pgxc running with 1 master 1 slave , 2 GTM Proxy, 2 Datanode > and > >>> > 2 > >>> > Coordinator. > >>> > > >>> > Now i want to add third component with GTM proxy, datanode and > >>> > cordinator > >>> > I have configure third server and deployed binaries (deploy node5) > >>> > > >>> > then i have initialized each > >>> > > >>> > But when i tried to add third datanode i got below error > >>> > ERROR: Some of the coordinator masters are not running. Cannot add > new > >>> > one. > >>> > > >>> > so i started each component > >>> > > >>> > start gtm_proxy gtm_pxy3 > >>> > start coordinator master coord3 > >>> > start datanode master datanode3 > >>> > > >>> > Now everything is running but i getting below error while executing a > >>> > query. > >>> > > >>> >> koichi=# execute direct on (datanode3) 'select * from t1'; > >>> >> ERROR: PGXC Node datanode3: object not defined > >>> > > >>> > > >>> > and now if i am trying to add datanode while everything is running , > >>> > its > >>> > throws below error: > >>> > > >>> >> PGXC add datanode master datanode3 node5 20008 > >>> >> /home/postgres/pgxc/nodes/dn_master > >>> >> ERROR: Node name datanode3 duplicate. > >>> > > >>> > > >>> > Is that flow is correct or i am missing something > >>> > what steps i should do to make it working ? > >>> > > >>> > > >>> > -- > >>> > Thanks, > >>> > Juned Khan > >>> > iNextrix Technologies Pvt Ltd. > >>> > www.inextrix.com > >>> > > >>> > > >>> > > ------------------------------------------------------------------------------ > >>> > Subversion Kills Productivity. Get off Subversion & Make the Move to > >>> > Perforce. > >>> > With Perforce, you get hassle-free workflows. Merge that actually > >>> > works. > >>> > Faster operations. Version large binaries. Built-in WAN optimization > >>> > and > >>> > the > >>> > freedom to use Git, Perforce or both. Make the move to Perforce. > >>> > > >>> > > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > >>> > _______________________________________________ > >>> > Postgres-xc-general mailing list > >>> > Pos...@li... > >>> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > >>> > > >> > >> > >> > >> > >> -- > >> Thanks, > >> Juned Khan > >> iNextrix Technologies Pvt Ltd. > >> www.inextrix.com > > > > > > > > > > -- > > Thanks, > > Juned Khan > > iNextrix Technologies Pvt Ltd. > > www.inextrix.com > > > > > ------------------------------------------------------------------------------ > > Learn Graph Databases - Download FREE O'Reilly Book > > "Graph Databases" is the definitive new guide to graph databases and > their > > applications. Written by three acclaimed leaders in the field, > > this first edition is now available. Download your free book today! > > http://p.sf.net/sfu/13534_NeoTech > > _______________________________________________ > > Postgres-xc-general mailing list > > Pos...@li... > > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > > > -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |
From: Masataka S. <pg...@gm...> - 2014-03-10 10:20:37
|
I wonder you manually edited your pgxc_ctl.conf and issued "pgxc_ctl init", right? I think you're recommended to use "pgxc_ctl add" for that purpose. "pgxc_ctl add" appends your pgxc_ctl.conf and setup component's configuration files and coordinators' settings. If you want to do it in your way, you must issue "CREATE NODE" SQL commands at your all coordinators after you start coordinators and datanodes. Please notice I'm not sure it is all you have to do. Regards. On 10 March 2014 18:26, Juned Khan <jkh...@gm...> wrote: > Hi Sir, > > As here we are adding datanode3, should i try to add gtm_procy3 and > coordinator3 same way? > > If i am trying to add it without starting, then it complains >> >> Some of the coordinator masters are not running. Cannot add new one. > > > and if i try to add it after initialization and start then it complains >> >> Node name datanode3 duplicate. > > > So in this case i think it being added when its initialized but the only > problem is data distribution > > when i am executing query directly on datanode3 it giving me > >> koichi=# execute direct on (datanode3) 'select * from t1'; >> ERROR: PGXC Node datanode3: object not defined > > > Is there any other alternative to solve this problem. > > Please advice > > Regards > Juned Khan > > > > > > On Sun, Mar 9, 2014 at 3:17 PM, Juned Khan <jkh...@gm...> wrote: >> >> Hi Koichi, >> >> I found datanode3 on node5 server. seems it been added there >> >> PGXC Psql -dpostgres -h node5 -p 20008 >> Selected coord2. >> psql (PGXC 1.1, based on PG 9.2.4) >> Type "help" for help. >> >> postgres=# select * from pgxc_node; >> node_name | node_type | node_port | node_host | nodeis_primary | >> nodeis_preferred | node_id >> >> -----------+-----------+-----------+-----------+----------------+------------------+------------- >> datanode3 | C | 5432 | localhost | f | f >> | -1894792127 >> (1 row) >> >> >> But not able to drop it: >> postgres=# drop node datanode3; >> ERROR: PGXC Node datanode3: cannot drop local node >> >> >> pgxc status : >>> >>> PGXC monitor all >>> Running: gtm master >>> Running: gtm slave >>> Running: gtm proxy gtm_pxy1 >>> Running: gtm proxy gtm_pxy2 >>> Running: gtm proxy gtm_pxy3 >>> Running: coordinator master coord1 >>> Running: coordinator master coord2 >>> Running: coordinator master coord3 >>> Running: datanode master datanode1 >>> Running: datanode master datanode2 >>> Running: datanode master datanode3 >> >> >> >> all components are running properly. >> please suggest. >> >> >> >> On Sun, Mar 9, 2014 at 2:52 PM, Koichi Suzuki <koi...@gm...> >> wrote: >>> >>> Something seems went wrong in the first step you added. It says that >>> some coordinator master was not running when you added datanode3. It >>> was half done. >>> >>> To recover this, please try the following. >>> >>> 1) Visit each coordinator and issue "select * from pgxc_ndoe". If >>> you find "datanode3", issue "drop node datanode3" in each coordinator. >>> >>> 2) Make sure that all the coordinators are running. >>> >>> 3) Again, try "add datanode master" command from pgxc_ctl. >>> >>> Please note that you should have all the coordinator running properly >>> when you add datanodes or coordinators. >>> >>> Regards; >>> --- >>> Koichi Suzuki >>> >>> >>> 2014-03-09 7:14 GMT+00:00 Juned Khan <jkh...@gm...>: >>> > Hi All, >>> > >>> > I have pgxc running with 1 master 1 slave , 2 GTM Proxy, 2 Datanode and >>> > 2 >>> > Coordinator. >>> > >>> > Now i want to add third component with GTM proxy, datanode and >>> > cordinator >>> > I have configure third server and deployed binaries (deploy node5) >>> > >>> > then i have initialized each >>> > >>> > But when i tried to add third datanode i got below error >>> > ERROR: Some of the coordinator masters are not running. Cannot add new >>> > one. >>> > >>> > so i started each component >>> > >>> > start gtm_proxy gtm_pxy3 >>> > start coordinator master coord3 >>> > start datanode master datanode3 >>> > >>> > Now everything is running but i getting below error while executing a >>> > query. >>> > >>> >> koichi=# execute direct on (datanode3) 'select * from t1'; >>> >> ERROR: PGXC Node datanode3: object not defined >>> > >>> > >>> > and now if i am trying to add datanode while everything is running , >>> > its >>> > throws below error: >>> > >>> >> PGXC add datanode master datanode3 node5 20008 >>> >> /home/postgres/pgxc/nodes/dn_master >>> >> ERROR: Node name datanode3 duplicate. >>> > >>> > >>> > Is that flow is correct or i am missing something >>> > what steps i should do to make it working ? >>> > >>> > >>> > -- >>> > Thanks, >>> > Juned Khan >>> > iNextrix Technologies Pvt Ltd. >>> > www.inextrix.com >>> > >>> > >>> > ------------------------------------------------------------------------------ >>> > Subversion Kills Productivity. Get off Subversion & Make the Move to >>> > Perforce. >>> > With Perforce, you get hassle-free workflows. Merge that actually >>> > works. >>> > Faster operations. Version large binaries. Built-in WAN optimization >>> > and >>> > the >>> > freedom to use Git, Perforce or both. Make the move to Perforce. >>> > >>> > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk >>> > _______________________________________________ >>> > Postgres-xc-general mailing list >>> > Pos...@li... >>> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >>> > >> >> >> >> >> -- >> Thanks, >> Juned Khan >> iNextrix Technologies Pvt Ltd. >> www.inextrix.com > > > > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Postgres-xc-general mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > |
From: Juned K. <jkh...@gm...> - 2014-03-10 09:26:40
|
Hi Sir, As here we are adding datanode3, should i try to add gtm_procy3 and coordinator3 same way? If i am trying to add it without starting, then it complains > *Some of the coordinator masters are not running. Cannot add new one.* > and if i try to add it after initialization and start then it complains > *Node name datanode3 duplicate.* > So in this case i think it being added when its initialized but the only problem is data distribution when i am executing query directly on datanode3 it giving me > > *koichi=# execute direct on (datanode3) 'select * from t1';ERROR: PGXC > Node datanode3: object not defined * Is there any other alternative to solve this problem. Please advice Regards Juned Khan On Sun, Mar 9, 2014 at 3:17 PM, Juned Khan <jkh...@gm...> wrote: > Hi Koichi, > > I found datanode3 on node5 server. seems it been added there > > PGXC Psql -dpostgres -h node5 -p 20008 > Selected coord2. > psql (PGXC 1.1, based on PG 9.2.4) > Type "help" for help. > > postgres=# select * from pgxc_node; > node_name | node_type | node_port | node_host | nodeis_primary | > nodeis_preferred | node_id > > -----------+-----------+-----------+-----------+----------------+------------------+------------- > datanode3 | C | 5432 | localhost | f | > f | -1894792127 > (1 row) > > > *But not able to drop it:* > postgres=# drop node datanode3; > ERROR: PGXC Node datanode3: cannot drop local node > > > *pgxc status :* > >> PGXC monitor all >> Running: gtm master >> Running: gtm slave >> Running: gtm proxy gtm_pxy1 >> Running: gtm proxy gtm_pxy2 >> Running: gtm proxy gtm_pxy3 >> Running: coordinator master coord1 >> Running: coordinator master coord2 >> Running: coordinator master coord3 >> Running: datanode master datanode1 >> Running: datanode master datanode2 >> Running: datanode master datanode3 >> > > > all components are running properly. > please suggest. > > > > On Sun, Mar 9, 2014 at 2:52 PM, Koichi Suzuki <koi...@gm...>wrote: > >> Something seems went wrong in the first step you added. It says that >> some coordinator master was not running when you added datanode3. It >> was half done. >> >> To recover this, please try the following. >> >> 1) Visit each coordinator and issue "select * from pgxc_ndoe". If >> you find "datanode3", issue "drop node datanode3" in each coordinator. >> >> 2) Make sure that all the coordinators are running. >> >> 3) Again, try "add datanode master" command from pgxc_ctl. >> >> Please note that you should have all the coordinator running properly >> when you add datanodes or coordinators. >> >> Regards; >> --- >> Koichi Suzuki >> >> >> 2014-03-09 7:14 GMT+00:00 Juned Khan <jkh...@gm...>: >> > Hi All, >> > >> > I have pgxc running with 1 master 1 slave , 2 GTM Proxy, 2 Datanode and >> 2 >> > Coordinator. >> > >> > Now i want to add third component with GTM proxy, datanode and >> cordinator >> > I have configure third server and deployed binaries (deploy node5) >> > >> > then i have initialized each >> > >> > But when i tried to add third datanode i got below error >> > ERROR: Some of the coordinator masters are not running. Cannot add new >> one. >> > >> > so i started each component >> > >> > start gtm_proxy gtm_pxy3 >> > start coordinator master coord3 >> > start datanode master datanode3 >> > >> > Now everything is running but i getting below error while executing a >> query. >> > >> >> koichi=# execute direct on (datanode3) 'select * from t1'; >> >> ERROR: PGXC Node datanode3: object not defined >> > >> > >> > and now if i am trying to add datanode while everything is running , its >> > throws below error: >> > >> >> PGXC add datanode master datanode3 node5 20008 >> >> /home/postgres/pgxc/nodes/dn_master >> >> ERROR: Node name datanode3 duplicate. >> > >> > >> > Is that flow is correct or i am missing something >> > what steps i should do to make it working ? >> > >> > >> > -- >> > Thanks, >> > Juned Khan >> > iNextrix Technologies Pvt Ltd. >> > www.inextrix.com >> > >> > >> ------------------------------------------------------------------------------ >> > Subversion Kills Productivity. Get off Subversion & Make the Move to >> > Perforce. >> > With Perforce, you get hassle-free workflows. Merge that actually works. >> > Faster operations. Version large binaries. Built-in WAN optimization >> and >> > the >> > freedom to use Git, Perforce or both. Make the move to Perforce. >> > >> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk >> > _______________________________________________ >> > Postgres-xc-general mailing list >> > Pos...@li... >> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >> > >> > > > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com > -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |
From: Koichi S. <koi...@gm...> - 2014-03-09 09:59:40
|
Please take a look at http://postgres-xc.sourceforge.net/docs/1_1/pgxc-ctl.html Also, when you add restored GTM, you should initialize it as a slave, then fail it over. Regards; --- Koichi Suzuki 2014-03-09 9:55 GMT+00:00 Juned Khan <jkh...@gm...>: > Hi Koichi, > > what command i should use to connect restored GTM to the current master GTM > as a slave ? > > it would be great if you provide me the link for all pgxc_ctl commands, so i > can refer it myself. > > Regards > Juned Khan > > > On Sun, Mar 9, 2014 at 2:48 PM, Koichi Suzuki <koi...@gm...> wrote: >> >> You should connect restored GTM to the current master GTM as a slave, >> then fail it over and reconnect GTM proxy to the new one. >> Failed-over GTM has current cluster transaction status and the new >> master has to restore its status from the current master GTM. >> >> Regards; >> --- >> Koichi Suzuki >> >> >> 2014-03-09 4:34 GMT+00:00 Juned Khan <jkh...@gm...>: >> > Hi Koichi, >> > >> > Yeah failover GTM and reconnection to GTM proxies to new GTM just works >> > fine >> > but how to reconnect to master GTM when it comes up ? >> > >> > >> > On Sat, Mar 8, 2014 at 8:24 PM, Koichi Suzuki <koi...@gm...> >> > wrote: >> >> >> >> When you fail-over GTM, you should reconnect gym-proxies to the new >> >> gtm. This could have been done automatically but now you need to do >> >> this annually using reconnect command of pgxc_ctl. When you find gym >> >> proxy is down, you can just restart it. >> >> >> >> Regards; >> >> --- >> >> Koichi Suzuki >> >> >> >> >> >> 2014-03-07 13:55 GMT+00:00 Juned Khan <jkh...@gm...>: >> >> > Hi All, >> >> > >> >> > I have been configured pgxc with four servers. >> >> >> >> >> >> PGXC monitor all >> >> >> Running: gtm master >> >> >> Running: gtm slave >> >> >> Running: gtm proxy gtm_pxy1 >> >> >> Running: gtm proxy gtm_pxy2 >> >> >> Running: coordinator master coord1 >> >> >> Running: coordinator master coord2 >> >> >> Running: datanode master datanode1 >> >> >> Running: datanode master datanode2 >> >> > >> >> > >> >> > I have configured slave for GTM, when i killed master GTM and >> >> > promoted >> >> > slave >> >> > as master >> >> > that's also worked fine. >> >> > >> >> > But i want to know what is exact procedure to bring original master >> >> > to >> >> > back >> >> > using pgxc_ctl >> >> > >> >> > Even i tried with that manul process but still i am not able to bring >> >> > it >> >> > back. i think i messed up >> >> > because now gtm proxies are fails to start >> >> > >> >> >> PGXC monitor all >> >> >> Running: gtm master >> >> >> Running: gtm proxy gtm_pxy1 >> >> >> Running: gtm proxy gtm_pxy2 >> >> >> Not running: coordinator master coord1 >> >> >> Not running: coordinator master coord2 >> >> >> Running: datanode master datanode1 >> >> >> Running: datanode master datanode2 >> >> > >> >> > >> >> > And still i don't see GTM slave running >> >> > Can anyone please suggest me how to do this using pgxc_ctl? >> >> > >> >> > >> >> > -- >> >> > Thanks, >> >> > Juned Khan >> >> > iNextrix Technologies Pvt Ltd. >> >> > www.inextrix.com >> >> > >> >> > >> >> > >> >> > ------------------------------------------------------------------------------ >> >> > Subversion Kills Productivity. Get off Subversion & Make the Move to >> >> > Perforce. >> >> > With Perforce, you get hassle-free workflows. Merge that actually >> >> > works. >> >> > Faster operations. Version large binaries. Built-in WAN optimization >> >> > and >> >> > the >> >> > freedom to use Git, Perforce or both. Make the move to Perforce. >> >> > >> >> > >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk >> >> > _______________________________________________ >> >> > Postgres-xc-general mailing list >> >> > Pos...@li... >> >> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >> >> > >> > >> > >> > >> > >> > -- >> > Thanks, >> > Juned Khan >> > iNextrix Technologies Pvt Ltd. >> > www.inextrix.com > > > > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com |
From: Juned K. <jkh...@gm...> - 2014-03-09 09:55:49
|
Hi Koichi, what command i should use to connect restored GTM to the current master GTM as a slave ? it would be great if you provide me the link for all pgxc_ctl commands, so i can refer it myself. Regards Juned Khan On Sun, Mar 9, 2014 at 2:48 PM, Koichi Suzuki <koi...@gm...> wrote: > You should connect restored GTM to the current master GTM as a slave, > then fail it over and reconnect GTM proxy to the new one. > Failed-over GTM has current cluster transaction status and the new > master has to restore its status from the current master GTM. > > Regards; > --- > Koichi Suzuki > > > 2014-03-09 4:34 GMT+00:00 Juned Khan <jkh...@gm...>: > > Hi Koichi, > > > > Yeah failover GTM and reconnection to GTM proxies to new GTM just works > fine > > but how to reconnect to master GTM when it comes up ? > > > > > > On Sat, Mar 8, 2014 at 8:24 PM, Koichi Suzuki <koi...@gm...> > wrote: > >> > >> When you fail-over GTM, you should reconnect gym-proxies to the new > >> gtm. This could have been done automatically but now you need to do > >> this annually using reconnect command of pgxc_ctl. When you find gym > >> proxy is down, you can just restart it. > >> > >> Regards; > >> --- > >> Koichi Suzuki > >> > >> > >> 2014-03-07 13:55 GMT+00:00 Juned Khan <jkh...@gm...>: > >> > Hi All, > >> > > >> > I have been configured pgxc with four servers. > >> >> > >> >> PGXC monitor all > >> >> Running: gtm master > >> >> Running: gtm slave > >> >> Running: gtm proxy gtm_pxy1 > >> >> Running: gtm proxy gtm_pxy2 > >> >> Running: coordinator master coord1 > >> >> Running: coordinator master coord2 > >> >> Running: datanode master datanode1 > >> >> Running: datanode master datanode2 > >> > > >> > > >> > I have configured slave for GTM, when i killed master GTM and promoted > >> > slave > >> > as master > >> > that's also worked fine. > >> > > >> > But i want to know what is exact procedure to bring original master to > >> > back > >> > using pgxc_ctl > >> > > >> > Even i tried with that manul process but still i am not able to bring > it > >> > back. i think i messed up > >> > because now gtm proxies are fails to start > >> > > >> >> PGXC monitor all > >> >> Running: gtm master > >> >> Running: gtm proxy gtm_pxy1 > >> >> Running: gtm proxy gtm_pxy2 > >> >> Not running: coordinator master coord1 > >> >> Not running: coordinator master coord2 > >> >> Running: datanode master datanode1 > >> >> Running: datanode master datanode2 > >> > > >> > > >> > And still i don't see GTM slave running > >> > Can anyone please suggest me how to do this using pgxc_ctl? > >> > > >> > > >> > -- > >> > Thanks, > >> > Juned Khan > >> > iNextrix Technologies Pvt Ltd. > >> > www.inextrix.com > >> > > >> > > >> > > ------------------------------------------------------------------------------ > >> > Subversion Kills Productivity. Get off Subversion & Make the Move to > >> > Perforce. > >> > With Perforce, you get hassle-free workflows. Merge that actually > works. > >> > Faster operations. Version large binaries. Built-in WAN optimization > >> > and > >> > the > >> > freedom to use Git, Perforce or both. Make the move to Perforce. > >> > > >> > > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > >> > _______________________________________________ > >> > Postgres-xc-general mailing list > >> > Pos...@li... > >> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > >> > > > > > > > > > > > -- > > Thanks, > > Juned Khan > > iNextrix Technologies Pvt Ltd. > > www.inextrix.com > -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |
From: Juned K. <jkh...@gm...> - 2014-03-09 09:47:37
|
Hi Koichi, I found datanode3 on node5 server. seems it been added there PGXC Psql -dpostgres -h node5 -p 20008 Selected coord2. psql (PGXC 1.1, based on PG 9.2.4) Type "help" for help. postgres=# select * from pgxc_node; node_name | node_type | node_port | node_host | nodeis_primary | nodeis_preferred | node_id -----------+-----------+-----------+-----------+----------------+------------------+------------- datanode3 | C | 5432 | localhost | f | f | -1894792127 (1 row) *But not able to drop it:* postgres=# drop node datanode3; ERROR: PGXC Node datanode3: cannot drop local node *pgxc status :* > PGXC monitor all > Running: gtm master > Running: gtm slave > Running: gtm proxy gtm_pxy1 > Running: gtm proxy gtm_pxy2 > Running: gtm proxy gtm_pxy3 > Running: coordinator master coord1 > Running: coordinator master coord2 > Running: coordinator master coord3 > Running: datanode master datanode1 > Running: datanode master datanode2 > Running: datanode master datanode3 > all components are running properly. please suggest. On Sun, Mar 9, 2014 at 2:52 PM, Koichi Suzuki <koi...@gm...> wrote: > Something seems went wrong in the first step you added. It says that > some coordinator master was not running when you added datanode3. It > was half done. > > To recover this, please try the following. > > 1) Visit each coordinator and issue "select * from pgxc_ndoe". If > you find "datanode3", issue "drop node datanode3" in each coordinator. > > 2) Make sure that all the coordinators are running. > > 3) Again, try "add datanode master" command from pgxc_ctl. > > Please note that you should have all the coordinator running properly > when you add datanodes or coordinators. > > Regards; > --- > Koichi Suzuki > > > 2014-03-09 7:14 GMT+00:00 Juned Khan <jkh...@gm...>: > > Hi All, > > > > I have pgxc running with 1 master 1 slave , 2 GTM Proxy, 2 Datanode and 2 > > Coordinator. > > > > Now i want to add third component with GTM proxy, datanode and cordinator > > I have configure third server and deployed binaries (deploy node5) > > > > then i have initialized each > > > > But when i tried to add third datanode i got below error > > ERROR: Some of the coordinator masters are not running. Cannot add new > one. > > > > so i started each component > > > > start gtm_proxy gtm_pxy3 > > start coordinator master coord3 > > start datanode master datanode3 > > > > Now everything is running but i getting below error while executing a > query. > > > >> koichi=# execute direct on (datanode3) 'select * from t1'; > >> ERROR: PGXC Node datanode3: object not defined > > > > > > and now if i am trying to add datanode while everything is running , its > > throws below error: > > > >> PGXC add datanode master datanode3 node5 20008 > >> /home/postgres/pgxc/nodes/dn_master > >> ERROR: Node name datanode3 duplicate. > > > > > > Is that flow is correct or i am missing something > > what steps i should do to make it working ? > > > > > > -- > > Thanks, > > Juned Khan > > iNextrix Technologies Pvt Ltd. > > www.inextrix.com > > > > > ------------------------------------------------------------------------------ > > Subversion Kills Productivity. Get off Subversion & Make the Move to > > Perforce. > > With Perforce, you get hassle-free workflows. Merge that actually works. > > Faster operations. Version large binaries. Built-in WAN optimization and > > the > > freedom to use Git, Perforce or both. Make the move to Perforce. > > > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > > _______________________________________________ > > Postgres-xc-general mailing list > > Pos...@li... > > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > > > -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |
From: Koichi S. <koi...@gm...> - 2014-03-09 09:22:47
|
Something seems went wrong in the first step you added. It says that some coordinator master was not running when you added datanode3. It was half done. To recover this, please try the following. 1) Visit each coordinator and issue "select * from pgxc_ndoe". If you find "datanode3", issue "drop node datanode3" in each coordinator. 2) Make sure that all the coordinators are running. 3) Again, try "add datanode master" command from pgxc_ctl. Please note that you should have all the coordinator running properly when you add datanodes or coordinators. Regards; --- Koichi Suzuki 2014-03-09 7:14 GMT+00:00 Juned Khan <jkh...@gm...>: > Hi All, > > I have pgxc running with 1 master 1 slave , 2 GTM Proxy, 2 Datanode and 2 > Coordinator. > > Now i want to add third component with GTM proxy, datanode and cordinator > I have configure third server and deployed binaries (deploy node5) > > then i have initialized each > > But when i tried to add third datanode i got below error > ERROR: Some of the coordinator masters are not running. Cannot add new one. > > so i started each component > > start gtm_proxy gtm_pxy3 > start coordinator master coord3 > start datanode master datanode3 > > Now everything is running but i getting below error while executing a query. > >> koichi=# execute direct on (datanode3) 'select * from t1'; >> ERROR: PGXC Node datanode3: object not defined > > > and now if i am trying to add datanode while everything is running , its > throws below error: > >> PGXC add datanode master datanode3 node5 20008 >> /home/postgres/pgxc/nodes/dn_master >> ERROR: Node name datanode3 duplicate. > > > Is that flow is correct or i am missing something > what steps i should do to make it working ? > > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com > > ------------------------------------------------------------------------------ > Subversion Kills Productivity. Get off Subversion & Make the Move to > Perforce. > With Perforce, you get hassle-free workflows. Merge that actually works. > Faster operations. Version large binaries. Built-in WAN optimization and > the > freedom to use Git, Perforce or both. Make the move to Perforce. > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > _______________________________________________ > Postgres-xc-general mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > |
From: Koichi S. <koi...@gm...> - 2014-03-09 09:18:18
|
You should connect restored GTM to the current master GTM as a slave, then fail it over and reconnect GTM proxy to the new one. Failed-over GTM has current cluster transaction status and the new master has to restore its status from the current master GTM. Regards; --- Koichi Suzuki 2014-03-09 4:34 GMT+00:00 Juned Khan <jkh...@gm...>: > Hi Koichi, > > Yeah failover GTM and reconnection to GTM proxies to new GTM just works fine > but how to reconnect to master GTM when it comes up ? > > > On Sat, Mar 8, 2014 at 8:24 PM, Koichi Suzuki <koi...@gm...> wrote: >> >> When you fail-over GTM, you should reconnect gym-proxies to the new >> gtm. This could have been done automatically but now you need to do >> this annually using reconnect command of pgxc_ctl. When you find gym >> proxy is down, you can just restart it. >> >> Regards; >> --- >> Koichi Suzuki >> >> >> 2014-03-07 13:55 GMT+00:00 Juned Khan <jkh...@gm...>: >> > Hi All, >> > >> > I have been configured pgxc with four servers. >> >> >> >> PGXC monitor all >> >> Running: gtm master >> >> Running: gtm slave >> >> Running: gtm proxy gtm_pxy1 >> >> Running: gtm proxy gtm_pxy2 >> >> Running: coordinator master coord1 >> >> Running: coordinator master coord2 >> >> Running: datanode master datanode1 >> >> Running: datanode master datanode2 >> > >> > >> > I have configured slave for GTM, when i killed master GTM and promoted >> > slave >> > as master >> > that's also worked fine. >> > >> > But i want to know what is exact procedure to bring original master to >> > back >> > using pgxc_ctl >> > >> > Even i tried with that manul process but still i am not able to bring it >> > back. i think i messed up >> > because now gtm proxies are fails to start >> > >> >> PGXC monitor all >> >> Running: gtm master >> >> Running: gtm proxy gtm_pxy1 >> >> Running: gtm proxy gtm_pxy2 >> >> Not running: coordinator master coord1 >> >> Not running: coordinator master coord2 >> >> Running: datanode master datanode1 >> >> Running: datanode master datanode2 >> > >> > >> > And still i don't see GTM slave running >> > Can anyone please suggest me how to do this using pgxc_ctl? >> > >> > >> > -- >> > Thanks, >> > Juned Khan >> > iNextrix Technologies Pvt Ltd. >> > www.inextrix.com >> > >> > >> > ------------------------------------------------------------------------------ >> > Subversion Kills Productivity. Get off Subversion & Make the Move to >> > Perforce. >> > With Perforce, you get hassle-free workflows. Merge that actually works. >> > Faster operations. Version large binaries. Built-in WAN optimization >> > and >> > the >> > freedom to use Git, Perforce or both. Make the move to Perforce. >> > >> > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk >> > _______________________________________________ >> > Postgres-xc-general mailing list >> > Pos...@li... >> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >> > > > > > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com |
From: Juned K. <jkh...@gm...> - 2014-03-09 07:14:42
|
Hi All, I have pgxc running with 1 master 1 slave , 2 GTM Proxy, 2 Datanode and 2 Coordinator. Now i want to add third component with GTM proxy, datanode and cordinator I have configure third server and deployed binaries (deploy node5) then i have initialized each But when i tried to add third datanode i got below error ERROR: Some of the coordinator masters are not running. Cannot add new one. so i started each component start gtm_proxy gtm_pxy3 start coordinator master coord3 start datanode master datanode3 Now everything is running but i getting below error while executing a query. *koichi=# execute direct on (datanode3) 'select * from t1';* > *ERROR: PGXC Node datanode3: object not defined* > and now if i am trying to add datanode while everything is running , its throws below error: *PGXC add datanode master datanode3 node5 20008 > /home/postgres/pgxc/nodes/dn_master* > *ERROR: Node name datanode3 duplicate*. > Is that flow is correct or i am missing something what steps i should do to make it working ? -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |
From: Juned K. <jkh...@gm...> - 2014-03-09 04:34:16
|
Hi Koichi, Yeah failover GTM and reconnection to GTM proxies to new GTM just works fine but how to reconnect to master GTM when it comes up ? On Sat, Mar 8, 2014 at 8:24 PM, Koichi Suzuki <koi...@gm...> wrote: > When you fail-over GTM, you should reconnect gym-proxies to the new > gtm. This could have been done automatically but now you need to do > this annually using reconnect command of pgxc_ctl. When you find gym > proxy is down, you can just restart it. > > Regards; > --- > Koichi Suzuki > > > 2014-03-07 13:55 GMT+00:00 Juned Khan <jkh...@gm...>: > > Hi All, > > > > I have been configured pgxc with four servers. > >> > >> PGXC monitor all > >> Running: gtm master > >> Running: gtm slave > >> Running: gtm proxy gtm_pxy1 > >> Running: gtm proxy gtm_pxy2 > >> Running: coordinator master coord1 > >> Running: coordinator master coord2 > >> Running: datanode master datanode1 > >> Running: datanode master datanode2 > > > > > > I have configured slave for GTM, when i killed master GTM and promoted > slave > > as master > > that's also worked fine. > > > > But i want to know what is exact procedure to bring original master to > back > > using pgxc_ctl > > > > Even i tried with that manul process but still i am not able to bring it > > back. i think i messed up > > because now gtm proxies are fails to start > > > >> PGXC monitor all > >> Running: gtm master > >> Running: gtm proxy gtm_pxy1 > >> Running: gtm proxy gtm_pxy2 > >> Not running: coordinator master coord1 > >> Not running: coordinator master coord2 > >> Running: datanode master datanode1 > >> Running: datanode master datanode2 > > > > > > And still i don't see GTM slave running > > Can anyone please suggest me how to do this using pgxc_ctl? > > > > > > -- > > Thanks, > > Juned Khan > > iNextrix Technologies Pvt Ltd. > > www.inextrix.com > > > > > ------------------------------------------------------------------------------ > > Subversion Kills Productivity. Get off Subversion & Make the Move to > > Perforce. > > With Perforce, you get hassle-free workflows. Merge that actually works. > > Faster operations. Version large binaries. Built-in WAN optimization and > > the > > freedom to use Git, Perforce or both. Make the move to Perforce. > > > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > > _______________________________________________ > > Postgres-xc-general mailing list > > Pos...@li... > > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > > > -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |
From: Koichi S. <koi...@gm...> - 2014-03-08 14:54:51
|
When you fail-over GTM, you should reconnect gym-proxies to the new gtm. This could have been done automatically but now you need to do this annually using reconnect command of pgxc_ctl. When you find gym proxy is down, you can just restart it. Regards; --- Koichi Suzuki 2014-03-07 13:55 GMT+00:00 Juned Khan <jkh...@gm...>: > Hi All, > > I have been configured pgxc with four servers. >> >> PGXC monitor all >> Running: gtm master >> Running: gtm slave >> Running: gtm proxy gtm_pxy1 >> Running: gtm proxy gtm_pxy2 >> Running: coordinator master coord1 >> Running: coordinator master coord2 >> Running: datanode master datanode1 >> Running: datanode master datanode2 > > > I have configured slave for GTM, when i killed master GTM and promoted slave > as master > that's also worked fine. > > But i want to know what is exact procedure to bring original master to back > using pgxc_ctl > > Even i tried with that manul process but still i am not able to bring it > back. i think i messed up > because now gtm proxies are fails to start > >> PGXC monitor all >> Running: gtm master >> Running: gtm proxy gtm_pxy1 >> Running: gtm proxy gtm_pxy2 >> Not running: coordinator master coord1 >> Not running: coordinator master coord2 >> Running: datanode master datanode1 >> Running: datanode master datanode2 > > > And still i don't see GTM slave running > Can anyone please suggest me how to do this using pgxc_ctl? > > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com > > ------------------------------------------------------------------------------ > Subversion Kills Productivity. Get off Subversion & Make the Move to > Perforce. > With Perforce, you get hassle-free workflows. Merge that actually works. > Faster operations. Version large binaries. Built-in WAN optimization and > the > freedom to use Git, Perforce or both. Make the move to Perforce. > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > _______________________________________________ > Postgres-xc-general mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > |
From: Juned K. <jkh...@gm...> - 2014-03-07 13:56:02
|
Hi All, I have been configured pgxc with four servers. > PGXC monitor all > Running: gtm master > Running: gtm slave > Running: gtm proxy gtm_pxy1 > Running: gtm proxy gtm_pxy2 > Running: coordinator master coord1 > Running: coordinator master coord2 > Running: datanode master datanode1 > Running: datanode master datanode2 > I have configured slave for GTM, when i killed master GTM and promoted slave as master that's also worked fine. But i want to know what is exact procedure to bring original master to back using *pgxc_ctl* Even i tried with that manul process but still i am not able to bring it back. i think i messed up because now gtm proxies are fails to start PGXC monitor all > Running: gtm master > Running: gtm proxy gtm_pxy1 > Running: gtm proxy gtm_pxy2 > Not running: coordinator master coord1 > Not running: coordinator master coord2 > Running: datanode master datanode1 > Running: datanode master datanode2 > And still i don't see GTM slave running Can anyone please suggest me how to do this using pgxc_ctl? -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |
From: Josh B. <jo...@ag...> - 2014-03-07 02:14:47
|
All: PostgresXC Meeting ------------------ The PostgresXC Developer's Meeting will take place from 9:30am to 1pm on Tuesday, May 20th at pgCon. This meeting is for all contributors and beta-testers of PostgresXC to discuss the current state of development and plans for its future. The agenda will be set by the participants using the PostgresXC Meeting Wiki Page https://wiki.postgresql.org/wiki/Pgcon2014PostgresXCmeeting For those attending both meetings who RSVP to both, box lunches will be provided. PostgresXC Pizza Demo --------------------- The evening of Tuesday, May 20th, we will follow up our meetings with a demo of PostgresXC's current capabilities over pizza. All pgCon attendees are invited to join us. Location and exact time TBD; check the pgCon schedule for updates. All of the above is sponsored by NTT Open Source. -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com |
From: Juned K. <jkh...@gm...> - 2014-03-06 07:59:23
|
Hi Mastaka, You hint worked for me. default setting was fine for my environment but i set static IP there and its worked like coordPgHbaEntries=(192.168.1.72/32 192.168.1.73/32 ) datanodePgHbaEntries=(192.168.1.72/32 192.168.1.73/32) thank you very much. On Thu, Mar 6, 2014 at 1:01 PM, Masataka Saito <pg...@gm...> wrote: > On 6 March 2014 16:13, Juned Khan <jkh...@gm...> wrote: > > Hi Koichi, > > > > create database command is not working infact Createdb is worked > > but in that case error is somewhat changed (Failed to get pooled > connections > > ) > > > >> PGXC Createdb koichi; > >> Selected coord1. > >> > >> createdb: database creation failed: ERROR: Failed to get pooled > >> connections > >> PGXC > > > > Did you customize coordPgHbaEntries and datanodePgHbaEntries > parameters in pgxc_ctl.conf (or your configuration file) to suite your > environment? The coordinator need to be privileged to access to other > nodes (coordinators and datanodes) without authorization. > > Unfortunately default pgxc_ctl.conf is just a sample and it is not > work well without customize. So you need to glance over the > configuration to ensure that the parameters are suitable for you. > > Regards. > > > > > still i need to do reinstall or this error is not related to > configuration ? > > > > If yes then i will reinstall it quickly on all servers. > > > > > > > > > > On Thu, Mar 6, 2014 at 12:29 PM, Koichi Suzuki <koi...@gm...> > > wrote: > >> > >> Please check the following steps: > >> > >> 1) cd to your postgres-xc source directory (at the top) > >> 2) ./configure --prefix=/usr/local/pgsql/include/server/pgxc > >> --enable-debug # this is a good practice to enable this. > >> 3) make > >> 4) make install > >> 5) make sure your pgxc binary went to the directory specified in > --prefix > >> option > >> 6) pgxc_ctl --configure (your configuration file) > >> 7) deploy all # invoke within pgxc_ctl You should give write privilege > >> 8) Meke sure that all the binaries are installed in all the target > >> servers. which commandname will show you what binary really runs as > >> commandname command > >> 9) init all # invoke within pgxc_ctl > >> 10) Createdb dbname #invoke within pgxc_ctl, be sure to capitalize the > >> first letter. > >> > >> Please make sure that you've given appropriate privilege to xc > >> installation directory and each database installation directory, > >> specified by gtmMasterDir, cordMasterDirs and DatanodeMasterDirs in > >> each target server respectively. > >> > >> Regards; > >> --- > >> Koichi Suzuki > >> > >> > >> 2014-03-06 14:44 GMT+09:00 鈴木 幸市 <ko...@in...>: > >> > You should not use createdb from postgrereSQL. What is your > >> > installation > >> > target of PGXC? > >> > > >> > You can also login to the database using psql and issue create > database > >> > command. > >> > > >> > Regards; > >> > --- > >> > Koichi Suzuki > >> > > >> > 2014/03/06 14:30、Juned Khan <jkh...@gm...> のメール: > >> > > >> > Hi Koichi, > >> > > >> > Specified port and host but now getting below error: > >> > > >> >> PGXC createdb koichi -h node2 -p 20004 > >> >> createdb: database creation failed: ERROR: Failed to get pooled > >> >> connections > >> >> PGXC > >> > > >> > > >> > And which createdb command i should use which will select coordinator > >> > automatically. > >> > > >> >> [root@localhost ~]# find / -name createdb > >> >> /usr/src/postgres-xc/src/bin/scripts/createdb > >> >> /usr/local/pgsql/bin/createdb > >> >> /usr/local/bin/createdb > >> > > >> > > >> > Please suggest. > >> > > >> > > >> > > >> > > >> > On Thu, Mar 6, 2014 at 10:50 AM, 鈴木 幸市 <ko...@in...> > wrote: > >> >> > >> >> Is your coordinator running locally? You may have to specify -h > >> >> option > >> >> to tell where to go. > >> >> > >> >> Or, you can issue Createdb command, which is embedded pgxc_ctl > command. > >> >> Createdb will chose one of the available coordinators and go there. > >> >> > >> >> Regards; > >> >> --- > >> >> Koichi Suzuki > >> >> > >> >> 2014/03/06 14:16、Juned Khan <jkh...@gm...> のメール: > >> >> > >> >> Hi Lin , > >> >> > >> >> Still its not working, same issue > >> >> > >> >>> PGXC createdb astpp -p 20004 > >> >>> createdb: could not connect to database template1: could not connect > >> >>> to > >> >>> server: No such file or directory > >> >>> Is the server running locally and accepting > >> >>> connections on Unix domain socket "/tmp/.s.PGSQL.20004"? > >> >>> PGXC > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> On Wed, Mar 5, 2014 at 9:01 PM, Lin Wang <lin...@gm...> > wrote: > >> >>> > >> >>> I think you need point out one port of the coordinators when you > >> >>> create a > >> >>> database, for example as below: > >> >>> > >> >>> [wln@localhost pgxc]$ /home/wln/pgxc/install_1_1/bin/createdb db1 > >> >>> createdb: could not connect to database template1: could not connect > >> >>> to > >> >>> server: no that file or folder > >> >>> Is the server running locally and accepting > >> >>> connections on Unix domain socket "/tmp/.s.PGSQL.5432"? > >> >>> > >> >>> [wln@localhost pgxc]$ /home/wln/pgxc/install_1_1/bin/createdb db1 > -p > >> >>> 5300 > >> >>> [wln@localhost pgxc]$ /home/wln/pgxc/install_1_1/bin/psql -d > postgres > >> >>> -p > >> >>> 5300 -c "\l" > >> >>> List of databases > >> >>> Name | Owner | Encoding | Collate | Ctype | Access > >> >>> privileges > >> >>> > >> >>> > >> >>> > -----------+-------+----------+-------------+-------------+------------------- > >> >>> db1 | wln | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | > >> >>> postgres | wln | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | > >> >>> template0 | wln | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | =c/wln > >> >>> + > >> >>> | | | | | > >> >>> wln=CTc/wln > >> >>> template1 | wln | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | =c/wln > >> >>> + > >> >>> | | | | | > >> >>> wln=CTc/wln > >> >>> (4 rows) > >> >>> > >> >>> > >> >>> Good Luck > >> >>> --------- > >> >>> waln > >> >>> > >> >>> > >> >>> 2014-03-05 22:11 GMT+08:00 Juned Khan <jkh...@gm...>: > >> >>>> > >> >>>> Hi All, > >> >>>> > >> >>>> Since last few days i am trying to setup postgre-xc with 3 local > >> >>>> systems. > >> >>>> I have done with basic setup, but having issue with database > >> >>>> creation. > >> >>>> > >> >>>> Below is the output of monitor all > >> >>>> > >> >>>>> PGXC monitor all > >> >>>>> Running: gtm master > >> >>>>> Running: coordinator master coord1 > >> >>>>> Running: coordinator master coord2 > >> >>>>> Running: datanode master datanode1 > >> >>>>> Running: datanode master datanode2 > >> >>>> > >> >>>> > >> >>>> But when i am trying to create database its giving me below error. > >> >>>> > >> >>>>> PGXC createdb astpp; > >> >>>>> createdb: could not connect to database template1: could not > connect > >> >>>>> to > >> >>>>> server: No such file or directory > >> >>>>> Is the server running locally and accepting > >> >>>>> connections on Unix domain socket "/tmp/.s.PGSQL.5432"? > >> >>>>> PGXC > >> >>>> > >> >>>> > >> >>>> I am just one step away to done with my postgre-xc setup. > >> >>>> Please suggest me, how to get it fixed . > >> >>>> > >> >>>> > >> >>>> > >> >>>> -- > >> >>>> Thanks, > >> >>>> Juned Khan > >> >>>> iNextrix Technologies Pvt Ltd. > >> >>>> www.inextrix.com > >> >>>> > >> >>>> > >> >>>> > >> >>>> > ------------------------------------------------------------------------------ > >> >>>> Subversion Kills Productivity. Get off Subversion & Make the Move > to > >> >>>> Perforce. > >> >>>> With Perforce, you get hassle-free workflows. Merge that actually > >> >>>> works. > >> >>>> Faster operations. Version large binaries. Built-in WAN > optimization > >> >>>> and the > >> >>>> freedom to use Git, Perforce or both. Make the move to Perforce. > >> >>>> > >> >>>> > >> >>>> > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > >> >>>> _______________________________________________ > >> >>>> Postgres-xc-general mailing list > >> >>>> Pos...@li... > >> >>>> https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > >> >>>> > >> >>> > >> >> > >> >> > >> >> > >> >> -- > >> >> Thanks, > >> >> Juned Khan > >> >> iNextrix Technologies Pvt Ltd. > >> >> www.inextrix.com > >> >> > >> >> > >> >> > ------------------------------------------------------------------------------ > >> >> Subversion Kills Productivity. Get off Subversion & Make the Move to > >> >> Perforce. > >> >> With Perforce, you get hassle-free workflows. Merge that actually > >> >> works. > >> >> Faster operations. Version large binaries. Built-in WAN optimization > >> >> and > >> >> the > >> >> freedom to use Git, Perforce or both. Make the move to Perforce. > >> >> > >> >> > >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk_______________________________________________ > >> >> Postgres-xc-general mailing list > >> >> Pos...@li... > >> >> https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > >> >> > >> >> > >> > > >> > > >> > > >> > -- > >> > Thanks, > >> > Juned Khan > >> > iNextrix Technologies Pvt Ltd. > >> > www.inextrix.com > >> > > >> > > >> > > >> > > >> > > ------------------------------------------------------------------------------ > >> > Subversion Kills Productivity. Get off Subversion & Make the Move to > >> > Perforce. > >> > With Perforce, you get hassle-free workflows. Merge that actually > works. > >> > Faster operations. Version large binaries. Built-in WAN optimization > >> > and > >> > the > >> > freedom to use Git, Perforce or both. Make the move to Perforce. > >> > > >> > > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > >> > _______________________________________________ > >> > Postgres-xc-general mailing list > >> > Pos...@li... > >> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > >> > > > > > > > > > > > -- > > Thanks, > > Juned Khan > > iNextrix Technologies Pvt Ltd. > > www.inextrix.com > > > > > ------------------------------------------------------------------------------ > > Subversion Kills Productivity. Get off Subversion & Make the Move to > > Perforce. > > With Perforce, you get hassle-free workflows. Merge that actually works. > > Faster operations. Version large binaries. Built-in WAN optimization and > > the > > freedom to use Git, Perforce or both. Make the move to Perforce. > > > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > > _______________________________________________ > > Postgres-xc-general mailing list > > Pos...@li... > > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > > > -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |
From: Masataka S. <pg...@gm...> - 2014-03-06 07:31:51
|
On 6 March 2014 16:13, Juned Khan <jkh...@gm...> wrote: > Hi Koichi, > > create database command is not working infact Createdb is worked > but in that case error is somewhat changed (Failed to get pooled connections > ) > >> PGXC Createdb koichi; >> Selected coord1. >> >> createdb: database creation failed: ERROR: Failed to get pooled >> connections >> PGXC > Did you customize coordPgHbaEntries and datanodePgHbaEntries parameters in pgxc_ctl.conf (or your configuration file) to suite your environment? The coordinator need to be privileged to access to other nodes (coordinators and datanodes) without authorization. Unfortunately default pgxc_ctl.conf is just a sample and it is not work well without customize. So you need to glance over the configuration to ensure that the parameters are suitable for you. Regards. > > still i need to do reinstall or this error is not related to configuration ? > > If yes then i will reinstall it quickly on all servers. > > > > > On Thu, Mar 6, 2014 at 12:29 PM, Koichi Suzuki <koi...@gm...> > wrote: >> >> Please check the following steps: >> >> 1) cd to your postgres-xc source directory (at the top) >> 2) ./configure --prefix=/usr/local/pgsql/include/server/pgxc >> --enable-debug # this is a good practice to enable this. >> 3) make >> 4) make install >> 5) make sure your pgxc binary went to the directory specified in --prefix >> option >> 6) pgxc_ctl --configure (your configuration file) >> 7) deploy all # invoke within pgxc_ctl You should give write privilege >> 8) Meke sure that all the binaries are installed in all the target >> servers. which commandname will show you what binary really runs as >> commandname command >> 9) init all # invoke within pgxc_ctl >> 10) Createdb dbname #invoke within pgxc_ctl, be sure to capitalize the >> first letter. >> >> Please make sure that you've given appropriate privilege to xc >> installation directory and each database installation directory, >> specified by gtmMasterDir, cordMasterDirs and DatanodeMasterDirs in >> each target server respectively. >> >> Regards; >> --- >> Koichi Suzuki >> >> >> 2014-03-06 14:44 GMT+09:00 鈴木 幸市 <ko...@in...>: >> > You should not use createdb from postgrereSQL. What is your >> > installation >> > target of PGXC? >> > >> > You can also login to the database using psql and issue create database >> > command. >> > >> > Regards; >> > --- >> > Koichi Suzuki >> > >> > 2014/03/06 14:30、Juned Khan <jkh...@gm...> のメール: >> > >> > Hi Koichi, >> > >> > Specified port and host but now getting below error: >> > >> >> PGXC createdb koichi -h node2 -p 20004 >> >> createdb: database creation failed: ERROR: Failed to get pooled >> >> connections >> >> PGXC >> > >> > >> > And which createdb command i should use which will select coordinator >> > automatically. >> > >> >> [root@localhost ~]# find / -name createdb >> >> /usr/src/postgres-xc/src/bin/scripts/createdb >> >> /usr/local/pgsql/bin/createdb >> >> /usr/local/bin/createdb >> > >> > >> > Please suggest. >> > >> > >> > >> > >> > On Thu, Mar 6, 2014 at 10:50 AM, 鈴木 幸市 <ko...@in...> wrote: >> >> >> >> Is your coordinator running locally? You may have to specify -h >> >> option >> >> to tell where to go. >> >> >> >> Or, you can issue Createdb command, which is embedded pgxc_ctl command. >> >> Createdb will chose one of the available coordinators and go there. >> >> >> >> Regards; >> >> --- >> >> Koichi Suzuki >> >> >> >> 2014/03/06 14:16、Juned Khan <jkh...@gm...> のメール: >> >> >> >> Hi Lin , >> >> >> >> Still its not working, same issue >> >> >> >>> PGXC createdb astpp -p 20004 >> >>> createdb: could not connect to database template1: could not connect >> >>> to >> >>> server: No such file or directory >> >>> Is the server running locally and accepting >> >>> connections on Unix domain socket "/tmp/.s.PGSQL.20004"? >> >>> PGXC >> >> >> >> >> >> >> >> >> >> >> >> On Wed, Mar 5, 2014 at 9:01 PM, Lin Wang <lin...@gm...> wrote: >> >>> >> >>> I think you need point out one port of the coordinators when you >> >>> create a >> >>> database, for example as below: >> >>> >> >>> [wln@localhost pgxc]$ /home/wln/pgxc/install_1_1/bin/createdb db1 >> >>> createdb: could not connect to database template1: could not connect >> >>> to >> >>> server: no that file or folder >> >>> Is the server running locally and accepting >> >>> connections on Unix domain socket "/tmp/.s.PGSQL.5432"? >> >>> >> >>> [wln@localhost pgxc]$ /home/wln/pgxc/install_1_1/bin/createdb db1 -p >> >>> 5300 >> >>> [wln@localhost pgxc]$ /home/wln/pgxc/install_1_1/bin/psql -d postgres >> >>> -p >> >>> 5300 -c "\l" >> >>> List of databases >> >>> Name | Owner | Encoding | Collate | Ctype | Access >> >>> privileges >> >>> >> >>> >> >>> -----------+-------+----------+-------------+-------------+------------------- >> >>> db1 | wln | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | >> >>> postgres | wln | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | >> >>> template0 | wln | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | =c/wln >> >>> + >> >>> | | | | | >> >>> wln=CTc/wln >> >>> template1 | wln | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | =c/wln >> >>> + >> >>> | | | | | >> >>> wln=CTc/wln >> >>> (4 rows) >> >>> >> >>> >> >>> Good Luck >> >>> --------- >> >>> waln >> >>> >> >>> >> >>> 2014-03-05 22:11 GMT+08:00 Juned Khan <jkh...@gm...>: >> >>>> >> >>>> Hi All, >> >>>> >> >>>> Since last few days i am trying to setup postgre-xc with 3 local >> >>>> systems. >> >>>> I have done with basic setup, but having issue with database >> >>>> creation. >> >>>> >> >>>> Below is the output of monitor all >> >>>> >> >>>>> PGXC monitor all >> >>>>> Running: gtm master >> >>>>> Running: coordinator master coord1 >> >>>>> Running: coordinator master coord2 >> >>>>> Running: datanode master datanode1 >> >>>>> Running: datanode master datanode2 >> >>>> >> >>>> >> >>>> But when i am trying to create database its giving me below error. >> >>>> >> >>>>> PGXC createdb astpp; >> >>>>> createdb: could not connect to database template1: could not connect >> >>>>> to >> >>>>> server: No such file or directory >> >>>>> Is the server running locally and accepting >> >>>>> connections on Unix domain socket "/tmp/.s.PGSQL.5432"? >> >>>>> PGXC >> >>>> >> >>>> >> >>>> I am just one step away to done with my postgre-xc setup. >> >>>> Please suggest me, how to get it fixed . >> >>>> >> >>>> >> >>>> >> >>>> -- >> >>>> Thanks, >> >>>> Juned Khan >> >>>> iNextrix Technologies Pvt Ltd. >> >>>> www.inextrix.com >> >>>> >> >>>> >> >>>> >> >>>> ------------------------------------------------------------------------------ >> >>>> Subversion Kills Productivity. Get off Subversion & Make the Move to >> >>>> Perforce. >> >>>> With Perforce, you get hassle-free workflows. Merge that actually >> >>>> works. >> >>>> Faster operations. Version large binaries. Built-in WAN optimization >> >>>> and the >> >>>> freedom to use Git, Perforce or both. Make the move to Perforce. >> >>>> >> >>>> >> >>>> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk >> >>>> _______________________________________________ >> >>>> Postgres-xc-general mailing list >> >>>> Pos...@li... >> >>>> https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >> >>>> >> >>> >> >> >> >> >> >> >> >> -- >> >> Thanks, >> >> Juned Khan >> >> iNextrix Technologies Pvt Ltd. >> >> www.inextrix.com >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Subversion Kills Productivity. Get off Subversion & Make the Move to >> >> Perforce. >> >> With Perforce, you get hassle-free workflows. Merge that actually >> >> works. >> >> Faster operations. Version large binaries. Built-in WAN optimization >> >> and >> >> the >> >> freedom to use Git, Perforce or both. Make the move to Perforce. >> >> >> >> >> >> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk_______________________________________________ >> >> Postgres-xc-general mailing list >> >> Pos...@li... >> >> https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >> >> >> >> >> > >> > >> > >> > -- >> > Thanks, >> > Juned Khan >> > iNextrix Technologies Pvt Ltd. >> > www.inextrix.com >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > Subversion Kills Productivity. Get off Subversion & Make the Move to >> > Perforce. >> > With Perforce, you get hassle-free workflows. Merge that actually works. >> > Faster operations. Version large binaries. Built-in WAN optimization >> > and >> > the >> > freedom to use Git, Perforce or both. Make the move to Perforce. >> > >> > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk >> > _______________________________________________ >> > Postgres-xc-general mailing list >> > Pos...@li... >> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >> > > > > > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com > > ------------------------------------------------------------------------------ > Subversion Kills Productivity. Get off Subversion & Make the Move to > Perforce. > With Perforce, you get hassle-free workflows. Merge that actually works. > Faster operations. Version large binaries. Built-in WAN optimization and > the > freedom to use Git, Perforce or both. Make the move to Perforce. > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > _______________________________________________ > Postgres-xc-general mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > |
From: Juned K. <jkh...@gm...> - 2014-03-06 07:13:59
|
Hi Koichi, create database command is not working infact Createdb is worked but in that case error is somewhat changed (Failed to get pooled connections ) PGXC Createdb koichi; > Selected coord1. > createdb: database creation failed: ERROR: Failed to get pooled > connections > PGXC > still i need to do reinstall or this error is not related to configuration ? If yes then i will reinstall it quickly on all servers. On Thu, Mar 6, 2014 at 12:29 PM, Koichi Suzuki <koi...@gm...>wrote: > Please check the following steps: > > 1) cd to your postgres-xc source directory (at the top) > 2) ./configure --prefix=/usr/local/pgsql/include/server/pgxc > --enable-debug # this is a good practice to enable this. > 3) make > 4) make install > 5) make sure your pgxc binary went to the directory specified in --prefix > option > 6) pgxc_ctl --configure (your configuration file) > 7) deploy all # invoke within pgxc_ctl You should give write privilege > 8) Meke sure that all the binaries are installed in all the target > servers. which commandname will show you what binary really runs as > commandname command > 9) init all # invoke within pgxc_ctl > 10) Createdb dbname #invoke within pgxc_ctl, be sure to capitalize the > first letter. > > Please make sure that you've given appropriate privilege to xc > installation directory and each database installation directory, > specified by gtmMasterDir, cordMasterDirs and DatanodeMasterDirs in > each target server respectively. > > Regards; > --- > Koichi Suzuki > > > 2014-03-06 14:44 GMT+09:00 鈴木 幸市 <ko...@in...>: > > You should not use createdb from postgrereSQL. What is your > installation > > target of PGXC? > > > > You can also login to the database using psql and issue create database > > command. > > > > Regards; > > --- > > Koichi Suzuki > > > > 2014/03/06 14:30、Juned Khan <jkh...@gm...> のメール: > > > > Hi Koichi, > > > > Specified port and host but now getting below error: > > > >> PGXC createdb koichi -h node2 -p 20004 > >> createdb: database creation failed: ERROR: Failed to get pooled > >> connections > >> PGXC > > > > > > And which createdb command i should use which will select coordinator > > automatically. > > > >> [root@localhost ~]# find / -name createdb > >> /usr/src/postgres-xc/src/bin/scripts/createdb > >> /usr/local/pgsql/bin/createdb > >> /usr/local/bin/createdb > > > > > > Please suggest. > > > > > > > > > > On Thu, Mar 6, 2014 at 10:50 AM, 鈴木 幸市 <ko...@in...> wrote: > >> > >> Is your coordinator running locally? You may have to specify -h option > >> to tell where to go. > >> > >> Or, you can issue Createdb command, which is embedded pgxc_ctl command. > >> Createdb will chose one of the available coordinators and go there. > >> > >> Regards; > >> --- > >> Koichi Suzuki > >> > >> 2014/03/06 14:16、Juned Khan <jkh...@gm...> のメール: > >> > >> Hi Lin , > >> > >> Still its not working, same issue > >> > >>> PGXC createdb astpp -p 20004 > >>> createdb: could not connect to database template1: could not connect to > >>> server: No such file or directory > >>> Is the server running locally and accepting > >>> connections on Unix domain socket "/tmp/.s.PGSQL.20004"? > >>> PGXC > >> > >> > >> > >> > >> > >> On Wed, Mar 5, 2014 at 9:01 PM, Lin Wang <lin...@gm...> wrote: > >>> > >>> I think you need point out one port of the coordinators when you > create a > >>> database, for example as below: > >>> > >>> [wln@localhost pgxc]$ /home/wln/pgxc/install_1_1/bin/createdb db1 > >>> createdb: could not connect to database template1: could not connect to > >>> server: no that file or folder > >>> Is the server running locally and accepting > >>> connections on Unix domain socket "/tmp/.s.PGSQL.5432"? > >>> > >>> [wln@localhost pgxc]$ /home/wln/pgxc/install_1_1/bin/createdb db1 -p > 5300 > >>> [wln@localhost pgxc]$ /home/wln/pgxc/install_1_1/bin/psql -d postgres > -p > >>> 5300 -c "\l" > >>> List of databases > >>> Name | Owner | Encoding | Collate | Ctype | Access > >>> privileges > >>> > >>> > -----------+-------+----------+-------------+-------------+------------------- > >>> db1 | wln | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | > >>> postgres | wln | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | > >>> template0 | wln | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | =c/wln > >>> + > >>> | | | | | wln=CTc/wln > >>> template1 | wln | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | =c/wln > >>> + > >>> | | | | | wln=CTc/wln > >>> (4 rows) > >>> > >>> > >>> Good Luck > >>> --------- > >>> waln > >>> > >>> > >>> 2014-03-05 22:11 GMT+08:00 Juned Khan <jkh...@gm...>: > >>>> > >>>> Hi All, > >>>> > >>>> Since last few days i am trying to setup postgre-xc with 3 local > >>>> systems. > >>>> I have done with basic setup, but having issue with database creation. > >>>> > >>>> Below is the output of monitor all > >>>> > >>>>> PGXC monitor all > >>>>> Running: gtm master > >>>>> Running: coordinator master coord1 > >>>>> Running: coordinator master coord2 > >>>>> Running: datanode master datanode1 > >>>>> Running: datanode master datanode2 > >>>> > >>>> > >>>> But when i am trying to create database its giving me below error. > >>>> > >>>>> PGXC createdb astpp; > >>>>> createdb: could not connect to database template1: could not connect > to > >>>>> server: No such file or directory > >>>>> Is the server running locally and accepting > >>>>> connections on Unix domain socket "/tmp/.s.PGSQL.5432"? > >>>>> PGXC > >>>> > >>>> > >>>> I am just one step away to done with my postgre-xc setup. > >>>> Please suggest me, how to get it fixed . > >>>> > >>>> > >>>> > >>>> -- > >>>> Thanks, > >>>> Juned Khan > >>>> iNextrix Technologies Pvt Ltd. > >>>> www.inextrix.com > >>>> > >>>> > >>>> > ------------------------------------------------------------------------------ > >>>> Subversion Kills Productivity. Get off Subversion & Make the Move to > >>>> Perforce. > >>>> With Perforce, you get hassle-free workflows. Merge that actually > works. > >>>> Faster operations. Version large binaries. Built-in WAN optimization > >>>> and the > >>>> freedom to use Git, Perforce or both. Make the move to Perforce. > >>>> > >>>> > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > >>>> _______________________________________________ > >>>> Postgres-xc-general mailing list > >>>> Pos...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > >>>> > >>> > >> > >> > >> > >> -- > >> Thanks, > >> Juned Khan > >> iNextrix Technologies Pvt Ltd. > >> www.inextrix.com > >> > >> > ------------------------------------------------------------------------------ > >> Subversion Kills Productivity. Get off Subversion & Make the Move to > >> Perforce. > >> With Perforce, you get hassle-free workflows. Merge that actually works. > >> Faster operations. Version large binaries. Built-in WAN optimization > and > >> the > >> freedom to use Git, Perforce or both. Make the move to Perforce. > >> > >> > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk_______________________________________________ > >> Postgres-xc-general mailing list > >> Pos...@li... > >> https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > >> > >> > > > > > > > > -- > > Thanks, > > Juned Khan > > iNextrix Technologies Pvt Ltd. > > www.inextrix.com > > > > > > > > > ------------------------------------------------------------------------------ > > Subversion Kills Productivity. Get off Subversion & Make the Move to > > Perforce. > > With Perforce, you get hassle-free workflows. Merge that actually works. > > Faster operations. Version large binaries. Built-in WAN optimization and > > the > > freedom to use Git, Perforce or both. Make the move to Perforce. > > > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > > _______________________________________________ > > Postgres-xc-general mailing list > > Pos...@li... > > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > > > -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com |
From: 鈴木 幸市 <ko...@in...> - 2014-03-06 07:02:56
|
Please take a look at the note I’ve just submitted and let me know what’s going on. It is essential to specify ―prefix option to ./configure to get all the installation material to go to proper place. Also you need to setup your .profile or similar settings to configure your PATH and LD_LIBRARY_PATH to get pgxc binaries and libraries first, not postgreSQL ones. Regards; --- Koichi Suzuki 2014/03/06 15:07、Juned Khan <jkh...@gm...<mailto:jkh...@gm...>> のメール: Hi Koichi, I have installed pgxc by configure, make and make install but the difference is i haven't specified the prefix. then i have created postgres user and given permission to this user. set key-based authentication for this servers. then configured the script according to my need and followed the commands which you have shown in that demo. did i miss something ? Please suggest. On Thu, Mar 6, 2014 at 11:26 AM, Koichi Suzuki <koi...@gm...<mailto:koi...@gm...>> wrote: It seems that you need to follow the following steps. 1) You build and install pgxc binary by configure, make and make install command. 2) pgxc_ctl will take installation binary from the installation target specified in pgxc_ctl configuration file. 3) pgxc_ctl need write privilege to this target directory at all the servers. 4) You need to setup proper PATH and LD_LIBRARY_PATH at all the servers in advance (pgxc_ctl will not take care of them). You need to specify the same value of If you don't specify --prefix=/usr/local/pgsql/include/server/pgxc option at configure. After the build is done, run "make install". All the material will go to specified directory. If you did all these, could you please let me know the steps you've done since you get Postgres-XC material? Regards; --- Koichi Suzuki 2014-03-04 20:25 GMT+09:00 Juned Khan <jkh...@gm...<mailto:jkh...@gm...>>: > Hi Koichi, > > No there are not other process which uses this socket. > and this file is not exists even"/tmp/.s.PGSQL.5432" > > I think there is some problem with stating this components > Please see below log for the output of "start all" and "monitor all" > commands. > > PGXC start all > Start GTM master > waiting for server to shut down... done > server stopped > server starting > Starting coordinator master. > Starting coordinator master coord1 > ERROR: target coordinator master coord1 is already running now. Skip > initilialization. > Starting coordinator master coord2 > LOG: could not bind IPv4 socket: Address already in use > HINT: Is another postmaster already running on port 20005? If not, wait a > few seconds and retry. > LOG: could not bind IPv6 socket: Address already in use > HINT: Is another postmaster already running on port 20005? If not, wait a > few seconds and retry. > WARNING: could not create listen socket for "*" > FATAL: could not create any TCP/IP sockets > Done. > Starting all the datanode masters. > Starting datanode master datanode1. > Starting datanode master datanode2. > LOG: could not bind IPv4 socket: Address already in use > HINT: Is another postmaster already running on port 20008? If not, wait a > few seconds and retry. > LOG: could not bind IPv6 socket: Address already in use > HINT: Is another postmaster already running on port 20008? If not, wait a > few seconds and retry. > WARNING: could not create listen socket for "*" > FATAL: could not create any TCP/IP sockets > LOG: could not bind IPv4 socket: Address already in use > HINT: Is another postmaster already running on port 20009? If not, wait a > few seconds and retry. > LOG: could not bind IPv6 socket: Address already in use > HINT: Is another postmaster already running on port 20009? If not, wait a > few seconds and retry. > WARNING: could not create listen socket for "*" > FATAL: could not create any TCP/IP sockets > Done. > PGXC > PGXC monitor all > Running: gtm master > Running: coordinator master coord1 > Not running: coordinator master coord2 > Not running: datanode master datanode1 > Not running: datanode master datanode2 > PGXC > > Please suggest what could be the issue, i am using three machines > And i have confirmed the script, i have used different ports for each > components. > > Attached configuration script as well. > > > > On Tue, Mar 4, 2014 at 3:53 PM, Koichi Suzuki <koi...@gm...<mailto:koi...@gm...>> wrote: >> >> Are there any other process which are using the socket? Probably >> another postgreSQL or postgres-xc instance? >> >> If not, it seems that unix domain socket is left. If you're sure >> that no such process is alive, you can just remove this file to fix >> the issue. >> >> If you're running both coordinator and datanode or more than one of >> them at the same server, you must assign different port number to them >> to avoid resource conflict. >> >> Regards; >> --- >> Koichi Suzuki >> >> >> 2014-03-03 23:01 GMT+09:00 Juned Khan <jkh...@gm...<mailto:jkh...@gm...>>: >> > Hi Koichi, >> > >> > I fixed all that configuration issue. >> > Executed deploy all command and installation went well. >> > Lots of password prompt was there but that will be fixed >> > if i set key-based authentication. >> > >> > But problem with creating database its giving below error. >> > >> > PGXC createdb koichi; >> > createdb: could not connect to database template1: could not connect to >> > server: No such file or directory >> > Is the server running locally and accepting >> > connections on Unix domain socket "/tmp/.s.PGSQL.5432"? >> > >> > verified the /home/postgres/pgxc/nodes/coord/pg_hba.conf file below line >> > was >> > there >> > host all postgres 192.168.1.0/24<http://192.168.1.0/24> trust, so i think it should work ? >> > >> > My another question is where do i get the documentation where all the >> > parameters >> > (coordNames,coordMasterDirs etc) is explained, which is used in that >> > configuration script ? >> > >> > And is it necessary to install postgreSQL with pgxc or pgxc only is fine >> > ? >> > >> > Please suggest. >> > >> > >> > >> > On Mon, Mar 3, 2014 at 4:03 PM, Koichi Suzuki <koi...@gm...<mailto:koi...@gm...>> >> > wrote: >> >> >> >> The error message says that the number of array element is incorrect >> >> in your configuration file. coordNames and coordMasterServers must >> >> have the same number of array member, and vise versa. >> >> >> >> Regards; >> >> --- >> >> Koichi Suzuki >> >> >> >> >> >> 2014-03-03 19:13 GMT+09:00 Juned Khan <jkh...@gm...<mailto:jkh...@gm...>>: >> >> > Hi Koichi, >> >> > >> >> > I have set that conf file and getting below in console. >> >> > >> >> > [postgres@localhost pgxc_ctl]$ pgxc_ctl >> >> > Installing pgxc_ctl_bash script as >> >> > /home/postgres/pgxc_ctl/pgxc_ctl_bash. >> >> > ERROR: File "/home/postgres/pgxc_ctl/pgxc_ctl.conf" not found or not >> >> > a >> >> > regular file. No such file or directory >> >> > Installing pgxc_ctl_bash script as >> >> > /home/postgres/pgxc_ctl/pgxc_ctl_bash. >> >> > Reading configuration using /home/postgres/pgxc_ctl/pgxc_ctl_bash >> >> > --home >> >> > /home/postgres/pgxc_ctl --configuration >> >> > /home/postgres/pgxc_ctl/pgxc_ctl.conf >> >> > Finished to read configuration. >> >> > PGXC_CTL START *************** >> >> > >> >> > Current directory: /home/postgres/pgxc_ctl >> >> > PGXC pgxc_ctl --configuration /home/postgres/pgxc_ctl/pgxc_ctl.ctl >> >> > Installing pgxc_ctl_bash script as >> >> > /home/postgres/pgxc_ctl/pgxc_ctl_bash. >> >> > Installing pgxc_ctl_bash script as >> >> > /home/postgres/pgxc_ctl/pgxc_ctl_bash. >> >> > Reading configuration using /home/postgres/pgxc_ctl/pgxc_ctl_bash >> >> > --home >> >> > /home/postgres/pgxc_ctl --configuration >> >> > /home/postgres/pgxc_ctl/pgxc_ctl.ctl >> >> > Finished to read configuration. >> >> > ERROR: Number of elements in coordinator master definitions are >> >> > different >> >> > coordNames and coordMasterServers. Check your configuration >> >> > ERROR: Number of elements in coordinator master definitions are >> >> > different >> >> > coordNames and coordMasterDirs. Check your configuration >> >> > ERROR: Number of elements in coordinator master definitions are >> >> > different >> >> > coordNames and coordMaxWALSenders. Check your configuration >> >> > ERROR: Number of elements in datanode master definitions are >> >> > different >> >> > datanodeNames and datanodeMasterServers. Check your configuration >> >> > ERROR: Number of elements in datanode master definitions are >> >> > different >> >> > datanodeNames and datanodeMasterDirs. Check your configuration >> >> > ERROR: Number of elements in datanode master definitions are >> >> > different >> >> > datanodeNames and datanodeMaxWALSenders. Check your configuration >> >> > ERROR: Found fundamental configuration error. >> >> > ******** PGXC_CTL START *************** >> >> > >> >> > please suggest >> >> > >> >> > >> >> > >> >> > On Mon, Mar 3, 2014 at 2:11 PM, 鈴木 幸市 <ko...@in...<mailto:ko...@in...>> >> >> > wrote: >> >> >> >> >> >> Yes and pgxc user must have write privilege to this directory on all >> >> >> the >> >> >> servers you are installing. >> >> >> >> >> >> Are you running pgxc_ctl as pgxc user? It need this and you should >> >> >> place >> >> >> your configuration file (default pgxc_ctl.conf) at $HOME/pgxc_ctl... >> >> >> >> >> >> Does it work? >> >> >> --- >> >> >> Koichi Suzuki >> >> >> >> >> >> 2014/03/03 16:27、Juned Khan <jkh...@gm...<mailto:jkh...@gm...>> のメール: >> >> >> >> >> >> Hi Koichi, >> >> >> >> >> >> I didn't provide any path for configure script. >> >> >> And now i am using postgres user to deploy that configuration file.. >> >> >> But its seems that its not reading that file, having same errors. >> >> >> >> >> >> my postgre-xc setup is under /usr/local/pgsql can i set this as >> >> >> install >> >> >> directory ? >> >> >> >> >> >> But the problem is, its not reading my modified configuration file.. >> >> >> >> >> >> Please advice. >> >> >> >> >> >> >> >> >> >> >> >> On Mon, Mar 3, 2014 at 6:37 AM, 鈴木 幸市 <ko...@in...<mailto:ko...@in...>> >> >> >> wrote: >> >> >>> >> >> >>> You should specify each name such as node06 the host name you use >> >> >>> to >> >> >>> connect to the server. >> >> >>> >> >> >>> Also, the directory /root/pgxc, as specified pgxcInstallDir looks >> >> >>> wrong. >> >> >>> From the value, I’m afraid you’re trying to run pgxc_ctl as root. >> >> >>> Please >> >> >>> avoid this. You should assign different linux user name as the >> >> >>> owner >> >> >>> of >> >> >>> postgres-xc cluster. From the configuration file, the owner and >> >> >>> the >> >> >>> user >> >> >>> of postgres-xc cluster is postgres. So you should run pgxc_ctl as >> >> >>> the user >> >> >>> postgres. >> >> >>> >> >> >>> Please make sure to assign pgxcInstallDir the same as your make >> >> >>> install >> >> >>> target of postgres-xc build. This is exactly --prefix you should >> >> >>> give to >> >> >>> configure. It will reduce the confusion if you don’t give any >> >> >>> more >> >> >>> target >> >> >>> directory in configure script. >> >> >>> >> >> >>> Regards; >> >> >>> --- >> >> >>> Koichi Suzuki >> >> >>> >> >> >>> 2014/02/28 23:12、Juned Khan <jkh...@gm...<mailto:jkh...@gm...>> のメール: >> >> >>> >> >> >>> Hi All, >> >> >>> >> >> >>> I just took my first step to configure postgre-xc using pgxc_ctl. >> >> >>> I have follow some steps and prepared configuration file according >> >> >>> to >> >> >>> my >> >> >>> need. >> >> >>> >> >> >>> But when i am trying to deploy this configuration getting erros : >> >> >>> >> >> >>> PGXC deploy all >> >> >>> Deploying Postgres-XC materials to all the target servers. >> >> >>> Prepare tarball to deploy ... >> >> >>> tar: /root/pgxc: Cannot chdir: No such file or directory >> >> >>> tar: Error is not recoverable: exiting now >> >> >>> Deploying to the server node13. >> >> >>> Deploying to the server node12. >> >> >>> Deploying to the server node06. >> >> >>> Deploying to the server node07. >> >> >>> Deploying to the server node08. >> >> >>> Deploying to the server node09. >> >> >>> ssh: Could not resolve hostname node06: Name or service not known >> >> >>> ssh: Could not resolve hostname node07: Name or service not known >> >> >>> ssh: Could not resolve hostname node12: Name or service not known >> >> >>> ssh: Could not resolve hostname node13: Name or service not known >> >> >>> ssh: Could not resolve hostname node06: Name or service not known >> >> >>> ssh: Could not resolve hostname node08: Name or service not known >> >> >>> ssh: Could not resolve hostname node09: Name or service not known >> >> >>> ssh: Could not resolve hostname node07: Name or service not known >> >> >>> ssh: Could not resolve hostname node12: Name or service not known >> >> >>> ssh: Could not resolve hostname node13: Name or service not known >> >> >>> ssh: Could not resolve hostname node09: Name or service not known >> >> >>> ssh: Could not resolve hostname node08: Name or service not known >> >> >>> ssh: Could not resolve hostname node06: Name or service not known >> >> >>> ssh: Could not resolve hostname node12: Name or service not known >> >> >>> ssh: Could not resolve hostname node07: Name or service not known >> >> >>> ssh: Could not resolve hostname node13: Name or service not known >> >> >>> ssh: Could not resolve hostname node06: Name or service not known >> >> >>> ssh: Could not resolve hostname node08: Name or service not known >> >> >>> ssh: Could not resolve hostname node09: Name or service not known >> >> >>> ssh: Could not resolve hostname node07: Name or service not known >> >> >>> ssh: Could not resolve hostname node13: Name or service not known >> >> >>> ssh: Could not resolve hostname node12: Name or service not known >> >> >>> ssh: Could not resolve hostname node13: Name or service not known >> >> >>> lost connection >> >> >>> ssh: Could not resolve hostname node08: Name or service not known >> >> >>> ssh: Could not resolve hostname node09: Name or service not known >> >> >>> ssh: Could not resolve hostname node12: Name or service not known >> >> >>> lost connection >> >> >>> ssh: Could not resolve hostname node06: Name or service not known >> >> >>> lost connection >> >> >>> ssh: Could not resolve hostname node07: Name or service not known >> >> >>> lost connection >> >> >>> ssh: Could not resolve hostname node08: Name or service not known >> >> >>> lost connection >> >> >>> ssh: Could not resolve hostname node09: Name or service not known >> >> >>> lost connection >> >> >>> ssh: Could not resolve hostname node13: Name or service not known >> >> >>> ssh: Could not resolve hostname node12: Name or service not known >> >> >>> ssh: Could not resolve hostname node06: Name or service not known >> >> >>> ssh: Could not resolve hostname node07: Name or service not known >> >> >>> ssh: Could not resolve hostname node08: Name or service not known >> >> >>> ssh: Could not resolve hostname node09: Name or service not known >> >> >>> Deployment done. >> >> >>> >> >> >>> >> >> >>> Thing which is confusing me is, even if i have removed some nodes >> >> >>> from >> >> >>> this file >> >> >>> but still its trying to read it don't know where. >> >> >>> >> >> >>> Still i am trying to find out the issue, but if anyone give some >> >> >>> suggestion or idea >> >> >>> it will be appreciable. >> >> >>> >> >> >>> I have attached my configuration file. >> >> >>> >> >> >>> >> >> >>> >> >> >>> -- >> >> >>> Thanks, >> >> >>> Juned Khan >> >> >>> iNextrix Technologies Pvt Ltd. >> >> >>> www.inextrix.com<http://www.inextrix.com/> >> >> >>> >> >> >>> >> >> >>> >> >> >>> <pgxc_ctl_demo.ctl>------------------------------------------------------------------------------ >> >> >>> Flow-based real-time traffic analytics software. Cisco certified >> >> >>> tool. >> >> >>> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow >> >> >>> Analyzer >> >> >>> Customize your own dashboards, set traffic alerts and generate >> >> >>> reports. >> >> >>> Network behavioral analysis & security monitoring. All-in-one tool. >> >> >>> >> >> >>> >> >> >>> >> >> >>> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk_______________________________________________ >> >> >>> Postgres-xc-general mailing list >> >> >>> Pos...@li...<mailto:Pos...@li...> >> >> >>> https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >> >> >>> >> >> >>> >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> >> Thanks, >> >> >> Juned Khan >> >> >> iNextrix Technologies Pvt Ltd. >> >> >> www.inextrix.com<http://www.inextrix.com/> >> >> >> >> >> >> >> >> > >> >> > >> >> > >> >> > -- >> >> > Thanks, >> >> > Juned Khan >> >> > iNextrix Technologies Pvt Ltd. >> >> > www.inextrix.com<http://www.inextrix.com/> >> >> > >> >> > >> >> > >> >> > ------------------------------------------------------------------------------ >> >> > Subversion Kills Productivity. Get off Subversion & Make the Move to >> >> > Perforce. >> >> > With Perforce, you get hassle-free workflows. Merge that actually >> >> > works. >> >> > Faster operations. Version large binaries. Built-in WAN optimization >> >> > and >> >> > the >> >> > freedom to use Git, Perforce or both. Make the move to Perforce. >> >> > >> >> > >> >> > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk >> >> > _______________________________________________ >> >> > Postgres-xc-general mailing list >> >> > Pos...@li...<mailto:Pos...@li...> >> >> > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >> >> > >> > >> > >> > >> > >> > -- >> > Thanks, >> > Juned Khan >> > iNextrix Technologies Pvt Ltd. >> > www.inextrix.com<http://www.inextrix.com/> > > > > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com<http://www.inextrix.com/> -- Thanks, Juned Khan iNextrix Technologies Pvt Ltd. www.inextrix.com<http://www.inextrix.com/> |
From: Koichi S. <koi...@gm...> - 2014-03-06 06:59:54
|
Please check the following steps: 1) cd to your postgres-xc source directory (at the top) 2) ./configure --prefix=/usr/local/pgsql/include/server/pgxc --enable-debug # this is a good practice to enable this. 3) make 4) make install 5) make sure your pgxc binary went to the directory specified in --prefix option 6) pgxc_ctl --configure (your configuration file) 7) deploy all # invoke within pgxc_ctl You should give write privilege 8) Meke sure that all the binaries are installed in all the target servers. which commandname will show you what binary really runs as commandname command 9) init all # invoke within pgxc_ctl 10) Createdb dbname #invoke within pgxc_ctl, be sure to capitalize the first letter. Please make sure that you've given appropriate privilege to xc installation directory and each database installation directory, specified by gtmMasterDir, cordMasterDirs and DatanodeMasterDirs in each target server respectively. Regards; --- Koichi Suzuki 2014-03-06 14:44 GMT+09:00 鈴木 幸市 <ko...@in...>: > You should not use createdb from postgrereSQL. What is your installation > target of PGXC? > > You can also login to the database using psql and issue create database > command. > > Regards; > --- > Koichi Suzuki > > 2014/03/06 14:30、Juned Khan <jkh...@gm...> のメール: > > Hi Koichi, > > Specified port and host but now getting below error: > >> PGXC createdb koichi -h node2 -p 20004 >> createdb: database creation failed: ERROR: Failed to get pooled >> connections >> PGXC > > > And which createdb command i should use which will select coordinator > automatically. > >> [root@localhost ~]# find / -name createdb >> /usr/src/postgres-xc/src/bin/scripts/createdb >> /usr/local/pgsql/bin/createdb >> /usr/local/bin/createdb > > > Please suggest. > > > > > On Thu, Mar 6, 2014 at 10:50 AM, 鈴木 幸市 <ko...@in...> wrote: >> >> Is your coordinator running locally? You may have to specify -h option >> to tell where to go. >> >> Or, you can issue Createdb command, which is embedded pgxc_ctl command. >> Createdb will chose one of the available coordinators and go there. >> >> Regards; >> --- >> Koichi Suzuki >> >> 2014/03/06 14:16、Juned Khan <jkh...@gm...> のメール: >> >> Hi Lin , >> >> Still its not working, same issue >> >>> PGXC createdb astpp -p 20004 >>> createdb: could not connect to database template1: could not connect to >>> server: No such file or directory >>> Is the server running locally and accepting >>> connections on Unix domain socket "/tmp/.s.PGSQL.20004"? >>> PGXC >> >> >> >> >> >> On Wed, Mar 5, 2014 at 9:01 PM, Lin Wang <lin...@gm...> wrote: >>> >>> I think you need point out one port of the coordinators when you create a >>> database, for example as below: >>> >>> [wln@localhost pgxc]$ /home/wln/pgxc/install_1_1/bin/createdb db1 >>> createdb: could not connect to database template1: could not connect to >>> server: no that file or folder >>> Is the server running locally and accepting >>> connections on Unix domain socket "/tmp/.s.PGSQL.5432"? >>> >>> [wln@localhost pgxc]$ /home/wln/pgxc/install_1_1/bin/createdb db1 -p 5300 >>> [wln@localhost pgxc]$ /home/wln/pgxc/install_1_1/bin/psql -d postgres -p >>> 5300 -c "\l" >>> List of databases >>> Name | Owner | Encoding | Collate | Ctype | Access >>> privileges >>> >>> -----------+-------+----------+-------------+-------------+------------------- >>> db1 | wln | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | >>> postgres | wln | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | >>> template0 | wln | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | =c/wln >>> + >>> | | | | | wln=CTc/wln >>> template1 | wln | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | =c/wln >>> + >>> | | | | | wln=CTc/wln >>> (4 rows) >>> >>> >>> Good Luck >>> --------- >>> waln >>> >>> >>> 2014-03-05 22:11 GMT+08:00 Juned Khan <jkh...@gm...>: >>>> >>>> Hi All, >>>> >>>> Since last few days i am trying to setup postgre-xc with 3 local >>>> systems. >>>> I have done with basic setup, but having issue with database creation. >>>> >>>> Below is the output of monitor all >>>> >>>>> PGXC monitor all >>>>> Running: gtm master >>>>> Running: coordinator master coord1 >>>>> Running: coordinator master coord2 >>>>> Running: datanode master datanode1 >>>>> Running: datanode master datanode2 >>>> >>>> >>>> But when i am trying to create database its giving me below error. >>>> >>>>> PGXC createdb astpp; >>>>> createdb: could not connect to database template1: could not connect to >>>>> server: No such file or directory >>>>> Is the server running locally and accepting >>>>> connections on Unix domain socket "/tmp/.s.PGSQL.5432"? >>>>> PGXC >>>> >>>> >>>> I am just one step away to done with my postgre-xc setup. >>>> Please suggest me, how to get it fixed . >>>> >>>> >>>> >>>> -- >>>> Thanks, >>>> Juned Khan >>>> iNextrix Technologies Pvt Ltd. >>>> www.inextrix.com >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Subversion Kills Productivity. Get off Subversion & Make the Move to >>>> Perforce. >>>> With Perforce, you get hassle-free workflows. Merge that actually works. >>>> Faster operations. Version large binaries. Built-in WAN optimization >>>> and the >>>> freedom to use Git, Perforce or both. Make the move to Perforce. >>>> >>>> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Postgres-xc-general mailing list >>>> Pos...@li... >>>> https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >>>> >>> >> >> >> >> -- >> Thanks, >> Juned Khan >> iNextrix Technologies Pvt Ltd. >> www.inextrix.com >> >> ------------------------------------------------------------------------------ >> Subversion Kills Productivity. Get off Subversion & Make the Move to >> Perforce. >> With Perforce, you get hassle-free workflows. Merge that actually works. >> Faster operations. Version large binaries. Built-in WAN optimization and >> the >> freedom to use Git, Perforce or both. Make the move to Perforce. >> >> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk_______________________________________________ >> Postgres-xc-general mailing list >> Pos...@li... >> https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >> >> > > > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com > > > > ------------------------------------------------------------------------------ > Subversion Kills Productivity. Get off Subversion & Make the Move to > Perforce. > With Perforce, you get hassle-free workflows. Merge that actually works. > Faster operations. Version large binaries. Built-in WAN optimization and > the > freedom to use Git, Perforce or both. Make the move to Perforce. > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > _______________________________________________ > Postgres-xc-general mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > |
From: Koichi S. <koi...@gm...> - 2014-03-06 06:52:07
|
Please specify "create database", not "createdb". createdb is a shortcut command so you will get an error message. Regards; --- Koichi Suzuki 2014-03-06 14:55 GMT+09:00 Juned Khan <jkh...@gm...>: > Hi Koichi, > > My install directory is /home/postgres/ > >> [postgres@localhost ~]$ pgxc_ctl --configuration >> /home/postgres/pgxc_ctl/pgxc_ctl.ctl >> Installing pgxc_ctl_bash script as /home/postgres/pgxc_ctl/pgxc_ctl_bash. >> Installing pgxc_ctl_bash script as /home/postgres/pgxc_ctl/pgxc_ctl_bash. >> Reading configuration using /home/postgres/pgxc_ctl/pgxc_ctl_bash --home >> /home/postgres/pgxc_ctl --configuration /home/postgres/pgxc_ctl/pgxc_ctl.ctl > > > However i am able to connect using psql > >> PGXC psql -p 20004 -h node2 >> psql (PGXC 1.1, based on PG 9.2.4) >> Type "help" for help. >> >> postgres=# createdb koichi > > > but database is not being created. >> >> PGXC psql -p 20004 -h node2 -d koichi >> psql: FATAL: database "koichi" does not exist > > > what could be the problem ? > > > > On Thu, Mar 6, 2014 at 11:14 AM, 鈴木 幸市 <ko...@in...> wrote: >> >> You should not use createdb from postgrereSQL. What is your installation >> target of PGXC? >> >> You can also login to the database using psql and issue create database >> command. >> >> Regards; >> --- >> Koichi Suzuki >> >> 2014/03/06 14:30、Juned Khan <jkh...@gm...> のメール: >> >> Hi Koichi, >> >> Specified port and host but now getting below error: >> >>> PGXC createdb koichi -h node2 -p 20004 >>> createdb: database creation failed: ERROR: Failed to get pooled >>> connections >>> PGXC >> >> >> And which createdb command i should use which will select coordinator >> automatically. >> >>> [root@localhost ~]# find / -name createdb >>> /usr/src/postgres-xc/src/bin/scripts/createdb >>> /usr/local/pgsql/bin/createdb >>> /usr/local/bin/createdb >> >> >> Please suggest. >> >> >> >> >> On Thu, Mar 6, 2014 at 10:50 AM, 鈴木 幸市 <ko...@in...> wrote: >>> >>> Is your coordinator running locally? You may have to specify -h option >>> to tell where to go. >>> >>> Or, you can issue Createdb command, which is embedded pgxc_ctl command. >>> Createdb will chose one of the available coordinators and go there. >>> >>> Regards; >>> --- >>> Koichi Suzuki >>> >>> 2014/03/06 14:16、Juned Khan <jkh...@gm...> のメール: >>> >>> Hi Lin , >>> >>> Still its not working, same issue >>> >>>> PGXC createdb astpp -p 20004 >>>> createdb: could not connect to database template1: could not connect to >>>> server: No such file or directory >>>> Is the server running locally and accepting >>>> connections on Unix domain socket "/tmp/.s.PGSQL.20004"? >>>> PGXC >>> >>> >>> >>> >>> >>> On Wed, Mar 5, 2014 at 9:01 PM, Lin Wang <lin...@gm...> wrote: >>>> >>>> I think you need point out one port of the coordinators when you create >>>> a database, for example as below: >>>> >>>> [wln@localhost pgxc]$ /home/wln/pgxc/install_1_1/bin/createdb db1 >>>> createdb: could not connect to database template1: could not connect to >>>> server: no that file or folder >>>> Is the server running locally and accepting >>>> connections on Unix domain socket "/tmp/.s.PGSQL.5432"? >>>> >>>> [wln@localhost pgxc]$ /home/wln/pgxc/install_1_1/bin/createdb db1 -p >>>> 5300 >>>> [wln@localhost pgxc]$ /home/wln/pgxc/install_1_1/bin/psql -d postgres -p >>>> 5300 -c "\l" >>>> List of databases >>>> Name | Owner | Encoding | Collate | Ctype | Access >>>> privileges >>>> >>>> -----------+-------+----------+-------------+-------------+------------------- >>>> db1 | wln | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | >>>> postgres | wln | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | >>>> template0 | wln | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | =c/wln >>>> + >>>> | | | | | wln=CTc/wln >>>> template1 | wln | UTF8 | zh_CN.UTF-8 | zh_CN.UTF-8 | =c/wln >>>> + >>>> | | | | | wln=CTc/wln >>>> (4 rows) >>>> >>>> >>>> Good Luck >>>> --------- >>>> waln >>>> >>>> >>>> 2014-03-05 22:11 GMT+08:00 Juned Khan <jkh...@gm...>: >>>>> >>>>> Hi All, >>>>> >>>>> Since last few days i am trying to setup postgre-xc with 3 local >>>>> systems. >>>>> I have done with basic setup, but having issue with database creation. >>>>> >>>>> Below is the output of monitor all >>>>> >>>>>> PGXC monitor all >>>>>> Running: gtm master >>>>>> Running: coordinator master coord1 >>>>>> Running: coordinator master coord2 >>>>>> Running: datanode master datanode1 >>>>>> Running: datanode master datanode2 >>>>> >>>>> >>>>> But when i am trying to create database its giving me below error. >>>>> >>>>>> PGXC createdb astpp; >>>>>> createdb: could not connect to database template1: could not connect >>>>>> to server: No such file or directory >>>>>> Is the server running locally and accepting >>>>>> connections on Unix domain socket "/tmp/.s.PGSQL.5432"? >>>>>> PGXC >>>>> >>>>> >>>>> I am just one step away to done with my postgre-xc setup. >>>>> Please suggest me, how to get it fixed . >>>>> >>>>> >>>>> >>>>> -- >>>>> Thanks, >>>>> Juned Khan >>>>> iNextrix Technologies Pvt Ltd. >>>>> www.inextrix.com >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Subversion Kills Productivity. Get off Subversion & Make the Move to >>>>> Perforce. >>>>> With Perforce, you get hassle-free workflows. Merge that actually >>>>> works. >>>>> Faster operations. Version large binaries. Built-in WAN optimization >>>>> and the >>>>> freedom to use Git, Perforce or both. Make the move to Perforce. >>>>> >>>>> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk >>>>> _______________________________________________ >>>>> Postgres-xc-general mailing list >>>>> Pos...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >>>>> >>>> >>> >>> >>> >>> -- >>> Thanks, >>> Juned Khan >>> iNextrix Technologies Pvt Ltd. >>> www.inextrix.com >>> >>> ------------------------------------------------------------------------------ >>> Subversion Kills Productivity. Get off Subversion & Make the Move to >>> Perforce. >>> With Perforce, you get hassle-free workflows. Merge that actually works. >>> Faster operations. Version large binaries. Built-in WAN optimization and >>> the >>> freedom to use Git, Perforce or both. Make the move to Perforce. >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk_______________________________________________ >>> Postgres-xc-general mailing list >>> Pos...@li... >>> https://lists.sourceforge.net/lists/listinfo/postgres-xc-general >>> >>> >> >> >> >> -- >> Thanks, >> Juned Khan >> iNextrix Technologies Pvt Ltd. >> www.inextrix.com >> >> > > > > -- > Thanks, > Juned Khan > iNextrix Technologies Pvt Ltd. > www.inextrix.com > > ------------------------------------------------------------------------------ > Subversion Kills Productivity. Get off Subversion & Make the Move to > Perforce. > With Perforce, you get hassle-free workflows. Merge that actually works. > Faster operations. Version large binaries. Built-in WAN optimization and > the > freedom to use Git, Perforce or both. Make the move to Perforce. > http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk > _______________________________________________ > Postgres-xc-general mailing list > Pos...@li... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > |