From: | "Gnanakumar" <gnanam(at)zoniac(dot)com> |
---|---|
To: | <pgsql-admin(at)postgresql(dot)org> |
Subject: | pg_ctl: server does not shut down |
Date: | 2010-10-25 07:36:30 |
Message-ID: | 002d01cb7417$595f78d0$0c1e6a70$@com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-hackers |
Hi,
My production server is running PostgreSQL v8.2.3 on CentOS release 5.2
(Final).
I've setup PITR in my production server. For some reason, after setting up
PITR, we're not able to manage and maintain it.
PITR SETUP DETAILS
We've 2 drives. Primary drive (pgsql/data/ directory resides) is 400 GB and
secondary drive (WAL archive) is 300 GB. All WAL archives are written to
secondary drive.
Base backup taken on: Aug03, 2009
WAL archive drive become full (100% use) on: Jul01, 2010
Because this WAL archive drive has become full, all WAL archive segments to
be archived are accumulated into pg_xlog/ directory itself. Eventually,
almost 4 months (as of today from Jul01, 2010) of WAL archives are residing
in pg_xlog/ directory.
ISSUE
We then decided to stop PITR in our database. Steps which I followed are:
1. service postgresql stop
2. Detached (unmounted) 300 GB secondary drive (WAL archive)
3. Disabled WAL archiving by commenting (#) 2 postgresql.conf parameters:
"archive_command" and "archive_timeout".
4. service postgresql start
Now, the database has started without any issues. But when I tried to stop
database using 'service postgresql stop' within few minutes after it's been
started, it was not shutting down and responded with the following message
after few minutes:
"Stopping PostgreSQL: pg_ctl: server does not shut down"
I even checked serverlog for whether any errors/issues are reported, but I
don't find any. Also, when I tried to login to my database at this time, it
says:
psql mydb mydbuser
psql: FATAL: the database system is shutting down
but not actually shutting down ever. I'm clueless why it is happening so
and not shutting down ever.
My questions are:
1. What could be the root cause of PostgreSQL server not shutting
down ever?
2. Am I following a different/incorrect way of disabling PITR?
3. Considering this situation, now how do I safely disable PITR in
my database?
Experts advice/idea/suggestion on this are appreciated.
Regards,
Gnanam
From | Date | Subject | |
---|---|---|---|
Next Message | Lukasz Brodziak | 2010-10-25 13:49:08 | Creating role using batch file in windows |
Previous Message | Guillaume Lelarge | 2010-10-23 10:14:25 | Re: Can't remove filter when no rows returned |
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2010-10-25 08:17:10 | Re: Range Types, discrete and/or continuous |
Previous Message | David Fetter | 2010-10-25 06:53:22 | Re: Range Types, discrete and/or continuous |