Mon Jun 25 10:38:43 PDT 2007
- Previous message: [Slony1-general] Can't drop/recreate slave node
- Next message: [Slony1-general] Can't drop/recreate slave node
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 6/25/07, Craig James <craig_james at emolecules.com> wrote: > I'm having trouble dropping and re-creating a node. I'm trying to develop some scripts that will handle a failover situation and the subsequent cleanup. When dropping a node, here's what I'm doing: > > slonik <<_EOF_ > cluster name = global_cluster; > node 1 admin conninfo = 'dbname=global host=host1 user=postgres'; > node 2 admin conninfo = 'dbname=global host=host2 user=postgres'; > uninstall node (id = 2); > _EOF_ > > ... drop the slave database > ... recreate the slave database schema Are you waiting for this event to propagate? Because it looks like you're just running this second script immediately. > slonik <<_EOF_ > cluster name = global_cluster; > node 1 admin conninfo = 'dbname=global host=host1 user=postgres'; > node 2 admin conninfo = 'dbname=global host=host2 user=postgres'; > store node (id=2, comment = '$SLAVE_NAME'); > store path (server = 1, client = 2, conninfo='dbname=global host=$MASTER_NAME user=postgres'); > store path (server = 2, client = 1, conninfo='dbname=global host=$SLAVE_NAME user=postgres'); > subscribe set ( id = 1, provider = 1, receiver = 2, forward = no); > _EOF_ > > When I do this, I get the following error message: > > <stdin>:4: PGRES_FATAL_ERROR select "_global_cluster".storeNode(2, 'subversion', 'f'); select "_global_cluster".enableNode(2); - ERROR: Slony-I: node 2 is already active >
- Previous message: [Slony1-general] Can't drop/recreate slave node
- Next message: [Slony1-general] Can't drop/recreate slave node
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-general mailing list