Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VS8ze-0008UP-Lo for pgsql-admin@arkaria.postgresql.org; Fri, 04 Oct 2013 17:16:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VS8ze-0005ft-4K for pgsql-admin@arkaria.postgresql.org; Fri, 04 Oct 2013 17:16:46 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VS8zc-0005fm-Ua for pgsql-admin@postgresql.org; Fri, 04 Oct 2013 17:16:45 +0000 Received: from mail.pasteleros.org.ar ([200.49.144.54]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VS8zS-0006QI-EV for pgsql-admin@postgresql.org; Fri, 04 Oct 2013 17:16:44 +0000 Received: from mail.pasteleros.org.ar (unknown [127.0.0.1]) by mail.pasteleros.org.ar (Postfix) with ESMTP id 815AA229BA for ; Fri, 4 Oct 2013 14:16:15 -0300 (ART) X-Virus-Scanned: amavisd-new at pasteleros.org.ar Received: from mail.pasteleros.org.ar ([127.0.0.1]) by mail.pasteleros.org.ar (mail.pasteleros.org.ar [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DVyPRC33Uxi9 for ; Fri, 4 Oct 2013 14:16:11 -0300 (ART) Received: from [192.169.100.54] (unknown [192.169.100.54]) by mail.pasteleros.org.ar (Postfix) with ESMTP id 1699C2297A for ; Fri, 4 Oct 2013 14:16:11 -0300 (ART) Message-ID: <524EF7EA.5010905@pasteleros.org.ar> Date: Fri, 04 Oct 2013 14:16:26 -0300 From: Alejandro Brust Reply-To: alejandrob@pasteleros.org.ar User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130503 Thunderbird/17.0.5 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: ERROR: could not open file "base/125542/12631" Corruption? References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------040907010003020705080206" X-Pg-Spam-Score: 0.1 (/) 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 This is a multi-part message in MIME format. --------------040907010003020705080206 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit El 04/10/2013 14:10, Mike Broers escribió: > Strange, this is happening in a totally different environment now too. > The only thing these two environments share is a SAN, but I wouldnt > think something going on at the SAN level would make files disappear. > Any suggestions are greatly appreciated. > > > On Fri, Oct 4, 2013 at 9:40 AM, Mike Broers > wrote: > > Hello, our postgresql 9.2.4 qa database (thankfully its just qa) > seems to be hosed. > > Starting at around 3:39am last night I started seeing errors about > missing files and now I cannot run a pgdump or a vacuum without it > complaining about files that it cannot find with errors like this: > ERROR: could not open file "base/125542/12631". When I check the > filesystem the files are indeed not there. The 1am regular vacuum > completed and its log is clean. The postgres log is clean before > these errors occurred. > > Since this is qa we do not perform backups, and the solution if we > cannot repair the problem will be to create a fresh qa server but > I am intrigued about how to determine the source of the problem > and the extent of the problem. > > Is there a way to force vacuum to continue on errors or an > alternate way to help determine all the missing files? > > It might be totally unrelated, but yesterday morning on this qa > server I stopped postgres, and created a symlink to pg_xlog so > that it was writing to a different volume, and restarted. This > was working fine all day so its possibly a red herring but I > thought I should mention it. > > Any advice is appreciated, thanks! > > > Hello, U should try to put the data directory in a local disk (SAN may be falling). I don't like SAN volumes for databases. --------------040907010003020705080206 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
El 04/10/2013 14:10, Mike Broers escribió:
Strange, this is happening in a totally different environment now too.  The only thing these two environments share is a SAN, but I wouldnt think something going on at the SAN level would make files disappear.  Any suggestions are greatly appreciated.


On Fri, Oct 4, 2013 at 9:40 AM, Mike Broers <mbroers@gmail.com> wrote:
Hello, our postgresql 9.2.4 qa database (thankfully its just qa) seems to be hosed.  

Starting at around 3:39am last night I started seeing errors about missing files and now I cannot run a pgdump or a vacuum without it complaining about files that it cannot find with errors like this: ERROR: could not open file "base/125542/12631". When I check the filesystem the files are indeed not there.  The 1am regular vacuum completed and its log is clean.  The postgres log is clean before these errors occurred.

Since this is qa we do not perform backups, and the solution if we cannot repair the problem will be to create a fresh qa server but I am intrigued about how to determine the source of the problem and the extent of the problem.  

Is there a way to force vacuum to continue on errors or an alternate way to help determine all the missing files?  

It might be totally unrelated, but yesterday morning on this qa server I stopped postgres, and created a symlink to pg_xlog so that it was writing to a different volume, and restarted.  This was working fine all day so its possibly a red herring but I thought I should mention it.

Any advice is appreciated, thanks!  



Hello, U should try to put the data directory in a local disk (SAN may be falling). I don't like SAN volumes for databases.


--------------040907010003020705080206--