Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 2C5F0B5DBD0 for ; Wed, 7 Sep 2011 14:22:43 -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 36578-10 for ; Wed, 7 Sep 2011 17:22:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from obelix.askesis.nl (laudanum.demon.nl [82.161.125.16]) by mail.postgresql.org (Postfix) with ESMTP id 74035B5DBE0 for ; Wed, 7 Sep 2011 14:22:36 -0300 (ADT) Received: from [172.31.1.3] ([172.31.1.3]) by obelix.askesis.nl with Microsoft SMTPSVC(5.0.2195.6713); Wed, 7 Sep 2011 19:22:35 +0200 Subject: Re: Is it possible to import raw data directories in a cluster (Debian)? From: Joost Kraaijeveld To: Kevin Grittner Cc: pgsql-admin@postgresql.org Date: Wed, 07 Sep 2011 19:22:35 +0200 In-Reply-To: <4E6742870200002500040E45@gw.wicourts.gov> References: <1315379614.4054.6.camel@panoramix.Askesis.nl> <4E6742870200002500040E45@gw.wicourts.gov> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.0.2- Content-Transfer-Encoding: 7bit Message-ID: <1315416155.3289.6.camel@asterix.Askesis.nl> Mime-Version: 1.0 X-OriginalArrivalTime: 07 Sep 2011 17:22:35.0338 (UTC) FILETIME=[BBF392A0:01CC6D82] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/31 X-Sequence-Number: 38268 On Wed, 2011-09-07 at 10:08 -0500, Kevin Grittner wrote: > In any event, if the files are recovered to their original > locations, the database should start. I think that he lost the postgres database in the proces, which seems to hold the information for every database in the cluster. > > Of course he has no useful backups, > > That should never be an "of course" I should have marked the cynical mode a bit more clear ;-) > What upgrade? See the cynical remark above. > I thought you said that pg_dropcluster was what was > run? When you say the directories are "untouched" does that mean > that no files have been deleted from them? Apart from the postgres and template* databases... > Import? From what? From the earlier parts of your post it sounded > like you need someone who knows the OS and its utilities to see if > they can recover deleted files. If you can recover them to the > directories from which they were deleted, I would expect the > database cluster to start right up. Mmmmm. Than he has a problem. XFS does not support undelete. Thanks for the answer. -- Met vriendelijke groeten, Joost Kraaijeveld Askesis B.V. Molukkenstraat 14 6524NB Nijmegen tel: 024-3888063 / 06-51855277 fax: 024-3608416 web: www.askesis.nl