Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UNpne-0007e8-74 for pgsql-admin@arkaria.postgresql.org; Thu, 04 Apr 2013 19:26:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UNpnd-0006eJ-1Q for pgsql-admin@arkaria.postgresql.org; Thu, 04 Apr 2013 19:26:17 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UNpnM-0006QU-Es for pgsql-admin@postgresql.org; Thu, 04 Apr 2013 19:26:00 +0000 Received: from ks304978.kimsufi.com ([94.23.215.225] helo=celestia.especific.be) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UNpnF-0005bZ-Px for pgsql-admin@postgresql.org; Thu, 04 Apr 2013 19:25:59 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by celestia.especific.be (Postfix) with ESMTP id E24654A01AE for ; Thu, 4 Apr 2013 21:25:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at celestia.especific.be Received: from celestia.especific.be ([127.0.0.1]) by localhost (celestia.especific.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ejtEGza6vkTG for ; Thu, 4 Apr 2013 21:25:51 +0200 (CEST) Received: from GrannySmith.local (ip-188-118-20-209.reverse.destiny.be [188.118.20.209]) (Authenticated sender: ppo@especific.be) by celestia.especific.be (Postfix) with ESMTPSA id 529FF4A0058 for ; Thu, 4 Apr 2013 21:25:51 +0200 (CEST) Message-ID: <515DD3BF.4060506@especific.be> Date: Thu, 04 Apr 2013 21:25:51 +0200 From: Pascal Polleunus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Server 9.1 doesn't restart and no output/log - data files seem corrupted Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Hi, The server was running correctly. I didn't changed the configuration. I did an apt-get upgrade and it didn't restarted. The problem is maybe not related to the upgrade but appeared during the restart. I did the same upgrade on another (very similar) server and didn't have any problem. The configuration files and files permissions are the same. The PostgreSQL packages that were upgraded: postgresql-9.1:amd64 (9.1.8-1, 9.1.9-0wheezy1) postgresql-client-9.1:amd64 (9.1.8-1, 9.1.9-0wheezy1) libpq-dev:amd64 (9.1.8-1, 9.1.9-0wheezy1) libpq5:amd64 (9.1.8-1, 9.1.9-0wheezy1) The commands I tried to start the server: # service postgresql start [FAIL] Starting PostgreSQL 9.1 database server: main[....] The PostgreSQL server failed to start. Please check the log output. ... failed! failed! # pg_ctlcluster 9.1 main start The PostgreSQL server failed to start. Please check the log output. There's nothing in the log files. I checked their permissions. I renamed the files but they were not created again. I created a new cluster and it started. So I guess there's some corruption in the data files. I replaced the data files with an old copy from 12 hours before but the server won't start. I tried to use pg_resetxlog: # su postgres -c '/usr/lib/postgresql/9.1/bin/pg_resetxlog /var/lib/postgresql/9.1/main' The database server was not shut down cleanly. Resetting the transaction log might cause data to be lost. If you want to proceed anyway, use -f to force reset. Then: # su postgres -c '/usr/lib/postgresql/9.1/bin/pg_resetxlog -f /var/lib/postgresql/9.1/main' Transaction log reset But it still won't start. What can I do? Thanks in advance. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin