Re: Cannot take base backup of a master database

From: Terry Khatri <terrykhatri531(at)gmail(dot)com>
To: Lukasz Brodziak <lukasz(dot)brodziak(at)gmail(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Cannot take base backup of a master database
Date: 2012-11-05 19:36:22
Message-ID: CANH4f+gNadHA0BhJAP3eWoKjPmfr9J=jZZ_SZPqHg6Y82CkxdA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 5 November 2012 22:05, Lukasz Brodziak <lukasz(dot)brodziak(at)gmail(dot)com> wrote:

> 2012/11/5 Terry Khatri <terrykhatri531(at)gmail(dot)com>:
> > Hi
> >
> > When I tried to take a base backup of the master database I go the
> following
> > message:
> >
> >
> >
> > $ pg_basebackup. -U sns84 -h 192.168.56.10 -D ccslave
> >
> > pg_basebackup: directory "/usr/local/pgsql/master/pg_tblspc" exists but
> is
> > not empty
> >
> >
> >
> >
> > Any I idea how I can fix it - please help
> > Thanks
> > T
> Hi,
>
> To my knowledge of the topic the pg_tblspc directory should be empty
> unless you create a tablespace yourself using CREATE TABLESPACE
> command. The directory then stores the symbolic link to the
> user-created tablespace which points to a location specified in above
> mentioned command. The names of the files inside the folder are
> consistent with namespaces' OIDs. I would assume that the tablespace
> file that is stored in your pg_tblspc folder making it 'present and
> not empty' is the file connected to the tablespace which was the topic
> of this whole discussion. Check the folder to verify my assumption.
> Hope this helps
> Cheers
>

Hi
Thanks for your quick response, new tablespaces were indeed created in that
folder in the master database but why it should now prevent me from taking
a basebackup to setup another slave ?
Thanks
T

>
>
> --
> Łukasz Brodziak
> "Do you bury me when I'm gone
> Do you teach me while I'm here
> Just as soon I belong
> Then it's time I disappear"
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Lukasz Brodziak 2012-11-05 20:54:56 Re: Cannot take base backup of a master database
Previous Message Tom Lane 2012-11-05 15:22:37 Re: Fwd: Errors on pg_dumpall