Re: [GENERAL] Pg_xlog increase due to postgres crash (disk full)

2013-01-23 Thread Cliff de Carteret
I had not run these commands on the master as I was only doing sql updates ~1mil of them

Re: [GENERAL] Pg_xlog increase due to postgres crash (disk full)

2013-01-22 Thread Kevin Grittner
Cliff de Carteret wrote: > I have now deleted the copy on the remote wal_archive folder and the > archiving is now functioning and sending the logs from the local to the > remote folder. The remote database does not startup and the following is in > the log: > > LOG: database system was shut down

Re: [GENERAL] Pg_xlog increase due to postgres crash (disk full)

2013-01-22 Thread Cliff de Carteret
On 22 January 2013 16:43, Kevin Grittner wrote: > [Please keep the list copied, and put your reply in-line instead > of at the top.] > > Cliff de Carteret wrote: > > On 22 January 2013 16:07, Kevin Grittner wrote: > > > >> Cliff de Carteret wrote: > >> > >>> The current setup has been working su

Re: [GENERAL] Pg_xlog increase due to postgres crash (disk full)

2013-01-22 Thread Kevin Grittner
[Please keep the list copied, and put your reply in-line instead of at the top.] Cliff de Carteret wrote: > On 22 January 2013 16:07, Kevin Grittner wrote: > >> Cliff de Carteret wrote: >> >>> The current setup has been working successfully for several years >>> until the recent database crash >

Re: [GENERAL] Pg_xlog increase due to postgres crash (disk full)

2013-01-22 Thread Cliff de Carteret
The local wal_archive directory is a directory named "wal_archive" which is at the same file system level as the data directory. The time stamp states that it has not been used for several years so it looks to be redundant. To get the database running again I moved an old postgres installation to

Re: [GENERAL] Pg_xlog increase due to postgres crash (disk full)

2013-01-22 Thread Adrian Klaver
On 01/22/2013 07:57 AM, Cliff de Carteret wrote: There are no files in the pg_xlog directory from before the database crash except one file which ends in .backup, there are 759 files. In the pg_xlog/archive_status folder there are 755 files. The local ../wal_archive folder has no files in it at a

Re: [GENERAL] Pg_xlog increase due to postgres crash (disk full)

2013-01-22 Thread Kevin Grittner
Cliff de Carteret wrote: > The current setup has been working successfully for several years > until the recent database crash What file does the server log say it is trying to archive? What error are you getting? Does that filename already exist on the archive (or some intermediate location used

Re: [GENERAL] Pg_xlog increase due to postgres crash (disk full)

2013-01-22 Thread Cliff de Carteret
There are no files in the pg_xlog directory from before the database crash except one file which ends in .backup, there are 759 files. In the pg_xlog/archive_status folder there are 755 files. The local ../wal_archive folder has no files in it at all whereas the remote wal_archive folder has 147 fi

Re: [GENERAL] Pg_xlog increase due to postgres crash (disk full)

2013-01-22 Thread Adrian Klaver
On 01/22/2013 06:59 AM, Cliff de Carteret wrote: Hello, thanks for your response. The xlogs that are filling up are in the original data directory and the wal_keep_segments is commented out on my master and slave postgresql.conf It is expected that there may a certain increase in WAL files. I

Re: [GENERAL] Pg_xlog increase due to postgres crash (disk full)

2013-01-22 Thread Cliff de Carteret
Hello, thanks for your response. The xlogs that are filling up are in the original data directory and the wal_keep_segments is commented out on my master and slave postgresql.conf Cliff On 22 January 2013 14:48, Adrian Klaver wrote: > On 01/22/2013 03:12 AM, Cliff de Carteret wrote: > >> My d

Re: [GENERAL] Pg_xlog increase due to postgres crash (disk full)

2013-01-22 Thread Adrian Klaver
On 01/22/2013 03:12 AM, Cliff de Carteret wrote: My database crashed a couple of days ago during an upgrade several seconds after committing a large transaction to the database. Eventually we found out that this was due to the disk being full as the transaction had created several gigs of data. A

[GENERAL] Pg_xlog increase due to postgres crash (disk full)

2013-01-22 Thread Cliff de Carteret
My database crashed a couple of days ago during an upgrade several seconds after committing a large transaction to the database. Eventually we found out that this was due to the disk being full as the transaction had created several gigs of data. A day or so later the disk is full again and Postgre