pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: pgbackrest when data/base is symlinked to another volume
Date: Fri, 7 Sep 2018 22:47:58 -0500
Message-ID: <f1ce38e9-6afa-5418-72dc-6b0deb4b1a11@gmail.com> (raw)
In-Reply-To: <3db7c0dc-b5e8-fab6-3521-bc60e2c1375b@pgmasters.net>
References: <c793eb2a-4af4-0e3b-b3ee-852708eb6286@gmail.com>
	<3db7c0dc-b5e8-fab6-3521-bc60e2c1375b@pgmasters.net>

On 09/07/2018 05:22 PM, David Steele wrote:
> Hi Ron,
>
> On 9/6/18 11:21 PM, Ron wrote:
>>
>> Will pgbackrest properly backup and restore the cluster if data/base, 
>> data/pg_xlog and data/pg_log are symlinks?
>>
>> PGDATA=/var/lib/pgsql/9.6/data
>> $PGDATA/base -> /Database/9.6/base
>> $PGDATA/pg_log -> /Database/9.6/pg_log
>> $PGDATA/pg_xlog -> /Database/9.6/pg_xlog
>
> Yes, this will work.  Note that restore does not recreate symlinks by 
> default so you'll need to specify --link-all to enable symlink creation.
>
> See 
> https://pgbackrest.org/configuration.html#section-restore/option-link-all 
> for details.
>
> Using symlinks in this way will make management of your clusters more 
> difficult, mostly because systems need more provisioning before restores 
> can be performed.  In general I'd recommend against it unless there are 
> performance considerations.

Now that I'm thinking more about what you wrote... "data" isn't on it's own 
partition.  data/*base* has it's own partition.

What's the recommended method for putting *base**/* on a partition different 
from data/?  Or is that not recommended?


-- 
Angular momentum makes the world go 'round.

view thread (5+ messages)  latest in thread

Message-ID: <f1ce38e9-6afa-5418-72dc-6b0deb4b1a11@gmail.com>
Permalink:  ../f1ce38e9-6afa-5418-72dc-6b0deb4b1a11@gmail.com/
Also on:    postgresql.org/message-id/f1ce38e9-6afa-5418-72dc-6b0deb4b1a11@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: pgbackrest when data/base is symlinked to another volume
  In-Reply-To: <f1ce38e9-6afa-5418-72dc-6b0deb4b1a11@gmail.com>
  References: <c793eb2a-4af4-0e3b-b3ee-852708eb6286@gmail.com> <3db7c0dc-b5e8-fab6-3521-bc60e2c1375b@pgmasters.net> <f1ce38e9-6afa-5418-72dc-6b0deb4b1a11@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox