Re: pgbackrest when data/base is symlinked to another volume

Поиск
Список
Период
Сортировка
От David Steele
Тема Re: pgbackrest when data/base is symlinked to another volume
Дата
Msg-id 83d9fd2e-49f2-7100-33b0-ff381a2c996b@pgmasters.net
обсуждение исходный текст
Ответ на Re: pgbackrest when data/base is symlinked to another volume  (Ron <ronljohnsonjr@gmail.com>)
Ответы Volume partitioning (was Re: pgbackrest when data/base is symlinkedto another volume)
Список pgsql-general
On 9/7/18 8:47 PM, Ron wrote:
> On 09/07/2018 05:22 PM, David Steele wrote:
>>
>> 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?

All the user data goes in base so there's really no need to separate it 
out of data.  Typically pg_wal and tablespaces are relocated onto 
different devices for performance (or to get more space).  If the 
partitions are on the same device then there's no performance benefit, 
just admin hassle.

-- 
-David
david@pgmasters.net


В списке pgsql-general по дате отправления:

Предыдущее
От: Ron
Дата:
Сообщение: Re: pgbackrest when data/base is symlinked to another volume
Следующее
От: Ron
Дата:
Сообщение: Volume partitioning (was Re: pgbackrest when data/base is symlinkedto another volume)