Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 8E81163336F for ; Thu, 5 Aug 2010 15:46:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 83946-04 for ; Thu, 5 Aug 2010 18:46:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id E6793632E80 for ; Thu, 5 Aug 2010 15:46:57 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id o75IkrLf057511 for ; Thu, 5 Aug 2010 18:46:53 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id o75Ikrl0057510; Thu, 5 Aug 2010 18:46:53 GMT (envelope-from www) Date: Thu, 5 Aug 2010 18:46:53 GMT Message-Id: <201008051846.o75Ikrl0057510@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5603: pg_tblspc and pg_twoface directories get deleted when starting up service From: "Nacho Mezzadra" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201008/150 X-Sequence-Number: 27733 The following bug has been logged online: Bug reference: 5603 Logged by: Nacho Mezzadra Email address: nachomezzadra@gmail.com PostgreSQL version: 8.3.11 Operating system: Red Hat Enterprise 5.3 Description: pg_tblspc and pg_twoface directories get deleted when starting up service Details: This issue happened not very frequently, but it happened to me 3 times, in 3 different Red Hat servers. The thing is that when stopping the Postgresql service with the "/sbin/service postgresql-8.3 stop" command, and after that starting it with the "/sbin/service postgresql-8.3 start" command (haven't tried with the restart one though), a few times both pg_tblspc and pg_twoface directories (inside data directory) get somehow deleted and hence the start service command fails. Looking in the log files I find the following error: 2010-07-19 16:54:55 ISTFATAL: could not open directory "pg_tblspc": No such file or directory So I manually create the "pg_tblspc" directory, and then try to start again the service unsuccessfully, getting this time a similar error, but saying that pg_twoface directory doesn't exist. After creating the pg_twoface directory, service can be successfully started. Please note that all these always happened running the service command as root. All 3 linux boxes are running over a VMWare host.