Comments on: A small Slony-I tutorial https://grey-panther.net/2008/10/a-small-slony-i-tutorial.html Just another WordPress site Thu, 07 Jan 2010 13:28:09 +0000 hourly 1 https://wordpress.org/?v=6.7.1 By: Anonymous https://grey-panther.net/2008/10/a-small-slony-i-tutorial.html#comment-201 Thu, 07 Jan 2010 13:28:09 +0000 https://grey-panther.net/?p=617#comment-201 Many thanks for the easily digested information, very helpful.

]]>
By: Gurjeet Singh https://grey-panther.net/2008/10/a-small-slony-i-tutorial.html#comment-412 Thu, 23 Apr 2009 15:05:34 +0000 https://grey-panther.net/?p=617#comment-412 In EnterpriseDB (now called Postgres Plus Advanced Server) the slon daemon is named edb-replication.

]]>
By: Cd-MaN https://grey-panther.net/2008/10/a-small-slony-i-tutorial.html#comment-536 Sat, 17 Jan 2009 08:41:43 +0000 https://grey-panther.net/?p=617#comment-536 Unfortunately I’m not familiar with EnterpriseDB. The only thing I know is that they bundle a lot of open source tools and offer support for it (I believe they also sponsor some development on PG which is very nice of them).

I would suggest trying to find the slon command on your machine using a command along the lines of:

find / -name slon

(this means: search from the root for a file named slon)

Good luck.

]]>
By: Fernando in Colorado https://grey-panther.net/2008/10/a-small-slony-i-tutorial.html#comment-537 Sat, 17 Jan 2009 08:21:44 +0000 https://grey-panther.net/?p=617#comment-537 Hi, good info. Thanks! One thing…I can’t find the slon daemon anywhere to start it. I have EnterpriseDB 8.3. Anyone know where the daemon is or what it’s called in EnterpriseDB?

]]>
By: Fernando in Colorado https://grey-panther.net/2008/10/a-small-slony-i-tutorial.html#comment-538 Sat, 17 Jan 2009 08:18:34 +0000 https://grey-panther.net/?p=617#comment-538 Good info…One issue: the slon daemon isn’t on my path…I can’t find it to start the daemons.
I am running EnterpiseDB, 8.3

]]>
By: Cd-MaN https://grey-panther.net/2008/10/a-small-slony-i-tutorial.html#comment-626 Wed, 12 Nov 2008 05:50:25 +0000 https://grey-panther.net/?p=617#comment-626 I must preface this with the fact that I’m by no means a Slony expert, I just used it a little (also, I don’t work on the project any more, so currently there isn’t a big chance that I will get more knowledge). This said, here is what I found:

– You definitely do not need to drop/recreate the master database (or any database for that matter) to remove Slony. I always used used PgAdmin to do it (BTW, you can also use PgAdmin remotely, even if the particular box doesn’t have X for example – that’s how I used it). Looking through the documentation I found the DROP NODE command. I suppose that you would use it like this: create a shellscript with the contents shown below and run it (supposing that first_host is your master):

#!/bin/bash
slonik <<_EOF_
cluster name = slon_cluster_a;
node 1 admin conninfo = ''dbname=dbname host=first_host user=u password=p'';
node 2 admin conninfo = ''dbname=dbname host=second_host user=u password=p'';
drop node (id = 1);

Again, I never actually done this, so you should really try this in a test environment!

– Regarding starting the replication from scratch because the table structure changed: by regenerating the slonik script I mean re-running the SELECT I've shown, saving the result in a file (possibly the same file you used the first time, since that is of no use anymore) and running it. By restarting the slon daemon I just mean that you start the slon daemon on the slave again (you supposedly stopped it when you dropped the replications).

– Regarding failover: again, I never done it. I have been told that the config I generate needs to be augmented to provide two-way paths for this to work. I recommend that you try to look at the Slony documentation or ask on the Slony-I irc channel (#slony on irc.freenode.net). The later I found to be very helpful. Once I was helped by none other than the creator or Slony!

]]>
By: Anonymous https://grey-panther.net/2008/10/a-small-slony-i-tutorial.html#comment-627 Tue, 11 Nov 2008 19:21:39 +0000 https://grey-panther.net/?p=617#comment-627 Addition to my previous post: 1) I do not have graphical environment, so no PGAdmin; 2) promoting slave to master is interesting, could you elaborate more?
Thank you

]]>
By: Anonymous https://grey-panther.net/2008/10/a-small-slony-i-tutorial.html#comment-628 Tue, 11 Nov 2008 19:09:53 +0000 https://grey-panther.net/?p=617#comment-628 Hi, thank you for the useful info! However, it is not clear what to do on the slave computer (I did not get what “Now regenerate and re-run the slonik script and start the slon daemon” meant).
Also what should be done remove all slon configuration and start over? Should I just remove master database and recreate it from backup?
Thank you again!

]]>