Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C8704475FB5 for ; Wed, 23 Oct 2002 23:10:39 -0400 (EDT) Received: from mail-relay.trade-india.com (mail-relay.trade-india.com [203.196.129.235]) by postgresql.org (Postfix) with SMTP id 76CB8475EE2 for ; Wed, 23 Oct 2002 23:10:36 -0400 (EDT) Received: (qmail 23808 invoked from network); 24 Oct 2002 02:57:36 -0000 Received: from news1.trade-india.com (HELO www.trade-india.com) (130.94.20.27) by infocom-236-129-del.trade-india.com with SMTP; 24 Oct 2002 02:57:36 -0000 Received: (qmail 29523 invoked by uid 99); 24 Oct 2002 03:10:32 -0000 Received: from 203.145.130.142 (SquirrelMail authenticated user mallah) by mail.trade-india.com with HTTP; Thu, 24 Oct 2002 08:40:32 +0530 (IST) Message-ID: <1097.203.145.130.142.1035429032.squirrel@mail.trade-india.com> Date: Thu, 24 Oct 2002 08:40:32 +0530 (IST) Subject: Re: Recover data from crashed HD From: To: In-Reply-To: <1035410035.795.6.camel@p-nisse> References: <1035331439.1332.14.camel@p-nisse> <1149.203.145.130.142.1035397419.squirrel@mail.trade-india.com> <1035410035.795.6.camel@p-nisse> X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Cc: X-Mailer: SquirrelMail (version 1.2.6) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/224 X-Sequence-Number: 6082 CONGRATS!! if your DB size is small consider pg_dumpall ing every nite and store it in a different machine :-) Regds MALLAH. > SOLVED!! > > I tried a tip of a earlier post > - I wiped the new disk clean of all postgres packages. > - I moved the old postgres lib dir to /var/lib/postgresql > - did a apt-get install postgresql which installed postgres and all packages needed. > > During the installation process a message appeared the package has detected a data dir. > Then it said that postmaster was running at pid 337, but there was no such process. I stopped > the installation and removed the postmaster.pid file, and contiued the installation. > Now it works great, I can access all old data. > > Thank you very much for the help > > /nisse > > ons 2002-10-23 klockan 20.23 skrev mallah@trade-india.com: >> >> > >> > >> > Hello! >> > >> > One of my harddrives crashed two day ago. Only the /lib och /usr directories was on one of >> > my other hd's. >> >> Do you mean /lib which contained the $PGDATA is still accessable. please try to locate the >> folder named "data" that contains folder like base, pg_xlog , global , pg_clog etc. >> >> In case such a folder is available to you , you can start the postmaster daemon by specifying >> the PGDATA folder (-D) option. >> >> please let us know if such folder is there , we can help you recoverver you data. >> >> Regds >> MAllah. >> >> >> >> >> > The old hd can no longer be detected by the bios. I have reinstalled everything now. The >> > data directory in the old /lib contains what I would guess is postgresqls table data. Can I >> > recover the data? >> > I have tried to overwrite the new installation with the old files, but the old database is >> > not there. >> > >> > I am a newbie in SQL-land, does anyone know how to revcover the data? >> > >> > /nisse >> > >> > >> > >> > >> > >> > ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill >> > -9' the postmaster >> >> >> >> ----------------------------------------- >> Get your free web based email at trade-india.com. >> "India's Leading B2B eMarketplace.!" >> http://www.trade-india.com/ >> >> ----------------------------------------- Get your free web based email at trade-india.com. "India's Leading B2B eMarketplace.!" http://www.trade-india.com/