Re: archived WALL files question - Mailing list pgsql-admin
From | Vitaly Burshteyn |
---|---|
Subject | Re: archived WALL files question |
Date | |
Msg-id | 0F69574F9901D4459C6B75C9FF64FBC403E6781D@mxfl01.hollywoodmedia.corp Whole thread Raw |
In response to | archived WALL files question (Renato Oliveira <renato.oliveira@grant.co.uk>) |
Responses |
Re: archived WALL files question
|
List | pgsql-admin |
We manage the WAL files via skytools WALMGR
As far as log files we run a backup every 3 house and keep 12 housers worth on the server, everything else is sent to amazon S3 via s3sync
From: pgsql-admin-owner@postgresql.org <pgsql-admin-owner@postgresql.org>
To: Renato Oliveira <renato.oliveira@grant.co.uk>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Sent: Thu Apr 15 11:56:44 2010
Subject: Re: [ADMIN] archived WALL files question
Dear all,
I was reading again the documentation... “The archive command should generally de designed to refuse to overwrite any pre-existing archive file.”
This means it will keep writing logs to the folder specified forever, and without an intervention, the media will run out of space.
What do you guys do with regards to this situation, for example:
How to you clean up the old archived logs?
For example:
you archive your log files from your main Postgres server to a folder /mnt/pitr for example
You set your standby to pick the logs from /mnt/pitr, then it archives each log as it comes.
/mnt/pitr will fill up very quickly and run out of space if we don’t have a process to DELETE/ARCHIEVE older logs.
I guess the process which picks up the logs for the standby server, needs to take care of the logs, by deleting the older ones or by archiving them permanently?
How do you guys deal with this problem?
Thank you very much in advance
Best regards
Renato
Grant Instruments (Cambridge) Ltd
Company registered in England, registration number 658133
Registered office address:
29 Station Road,
Shepreth,
CAMBS SG8 6GB
UK
P Please consider the environment before printing this email
CONFIDENTIALITY: The information in this e-mail and any attachments is confidential. It is intended only for the named recipients(s). If you are not the named recipient please notify the sender immediately and do not disclose the contents to another person or take copies.VIRUSES: The contents of this e-mail or attachment(s) may contain viruses which could damage your own computer system. Whilst Grant Instruments (Cambridge) Ltd has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage which you sustain as a result of software viruses. You should therefore carry out your own virus checks before opening the attachment(s).OpenXML: For information about the OpenXML file format in use within Grant Instruments please visit our website
pgsql-admin by date: