From manav@glue.umd.edu Sun Feb 3 13:55:19 2002 Received: from po4.glue.umd.edu (po4.glue.umd.edu [128.8.10.124]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g13DtJl84918 for ; Sun, 3 Feb 2002 08:55:19 -0500 (EST) (envelope-from manav@glue.umd.edu) Received: from cp335088a (bay3-25.dial.umd.edu [128.8.23.217]) by po4.glue.umd.edu (8.10.1/8.10.1) with ESMTP id g13DtL002052 for ; Sun, 3 Feb 2002 08:55:22 -0500 (EST) From: "manav" To: Subject: Filesystem Backup Date: Sun, 3 Feb 2002 08:54:45 -0500 Message-ID: <002401c1acba$5745c7d0$d418fea9@cp335088a> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0025_01C1AC90.6E6FBFD0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200202/17 X-Sequence-Number: 3179 This is a multi-part message in MIME format. ------=_NextPart_000_0025_01C1AC90.6E6FBFD0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Hello All, I am in a fix and need help. I am reinstalling postgresql server on my linux workstation and\ I did a filesystem backup of ../pgsql/data/*, but when I deleted the data directory and reconstructed it from my backup (without the reinstall, just to check if things would work) I started seeing errors (I mv' the data directory twice...) The first error was "postmaster.opt.default not found in ../pgsql/data/postmaster.opt.default' and when I created an empty file it said '../pgsql/data/base/template1/pg_class not found'. Am I missing something? are there any other steps to a filesystem backup? -sonny ------=_NextPart_000_0025_01C1AC90.6E6FBFD0 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

Hello All,

 

I am in a fix and need help. I am reinstalling postgresql server on my linux workstation and\ I did a filesystem backup of ../pgsql/d= ata/*, but when I deleted the data directory and reconstructed it from my backup (without the reinstall, just to check if things would work) I started seeing errors (I mv' the data directory twice...)

The first error was "postmaster.opt.default not fou= nd in ../pgsql/data/postmaster.opt.default' and when I created an empty file it s= aid '../pgsql/data/base/template1/pg_class not found'.

 

Am I missing something? are there any other steps to a f= ilesystem backup?

 

-sonny

------=_NextPart_000_0025_01C1AC90.6E6FBFD0-- From david@netventures.com.au Sun Feb 3 22:49:17 2002 Received: from dealer.netventures.com.au (dnet137107-1.gw.connect.com.au [210.8.15.221] (may be forged)) by postgresql.org (8.11.3/8.11.4) with ESMTP id g13MnEl54377 for ; Sun, 3 Feb 2002 17:49:17 -0500 (EST) (envelope-from david@netventures.com.au) Received: from ciderbox.in.netventures.com.au (net137107-2.gw.connect.com.au [210.9.198.119]) by dealer.netventures.com.au (Postfix) with ESMTP id 1BE4F1A64D7; Mon, 4 Feb 2002 09:49:15 +1100 (EST) Date: Mon, 4 Feb 2002 09:49:30 +1100 Subject: Re: Filesystem Backup Content-Type: multipart/alternative; boundary=Apple-Mail-1-109631891 Mime-Version: 1.0 (Apple Message framework v480) Cc: "manav" To: pgsql-admin@postgresql.org From: David Stanaway In-Reply-To: <002401c1acba$5745c7d0$d418fea9@cp335088a> Message-Id: <489106B7-18F8-11D6-BF5C-0003930FDAB2@netventures.com.au> X-Mailer: Apple Mail (2.480) X-Archive-Number: 200202/18 X-Sequence-Number: 3180 --Apple-Mail-1-109631891 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; format=flowed On Monday, February 4, 2002, at 12:54 AM, manav wrote: > Hello All, > > =A0 > > I am in a fix and need help. I am reinstalling postgresql server on my=20 > linux workstation and\ I did a filesystem backup of ../pgsql/data/*,=20 > but when I deleted the data directory and reconstructed it from my=20 > backup (without the reinstall, just to check if things would work) I=20 > started seeing errors (I mv' the data directory twice...) > > The first error was "postmaster.opt.default not found in=20 > ../pgsql/data/postmaster.opt.default' and when I created an empty file=20 > it said '../pgsql/data/base/template1/pg_class not found'. > What version of PostgreSQL do you have installed? Is it the same version=20 as the data directory that you backed up? I had the problem once when I was experimenting with a different=20 filesystem that I messed up the ownership/perms of the data directory. Is it owned by the user that postmaster runs as? (pgsql or postgres=20 depending on distribution) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D David Stanaway Personal: david@stanaway.net Work: david@netventures.com.au --Apple-Mail-1-109631891 Content-Transfer-Encoding: quoted-printable Content-Type: text/enriched; charset=ISO-8859-1 On Monday, February 4, 2002, at 12:54 AM, manav wrote: ArialHello All, Arial=A0 ArialI am in a fix and need help. I am reinstalling postgresql server on my linux workstation and\ I did a filesystem backup of ../pgsql/data/*, but when I deleted the data directory and reconstructed it from my backup (without the reinstall, just to check if things would work) I started seeing errors (I mv' the data directory twice...) ArialThe first error was "postmaster.opt.default not found in ../pgsql/data/postmaster.opt.default' and when I created an empty file it said '../pgsql/data/base/template1/pg_class not found'. What version of PostgreSQL do you have installed? Is it the same version as the data directory that you backed up? I had the problem once when I was experimenting with a different filesystem that I messed up the ownership/perms of the data directory. Is it owned by the user that postmaster runs as? (pgsql or postgres depending on distribution) Helvetica=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D David Stanaway Personal: david@stanaway.net=20 Work: david@netventures.com.au --Apple-Mail-1-109631891-- From nwalker@eldocomp.com Mon Feb 4 16:23:21 2002 Received: from ecint.ecinet.com (smtp.eldocomp.com [205.159.99.3]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g14GNKl56949 for ; Mon, 4 Feb 2002 11:23:21 -0500 (EST) (envelope-from nwalker@eldocomp.com) Received: from nwalke (nwalker.ecinet.com [192.168.22.250]) by ecint.ecinet.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 12Q38D79; Mon, 4 Feb 2002 09:28:06 -0700 Message-Id: <4.2.2.20020204092555.00abeac0@ecint.ecinet.com> X-Sender: nwalke@ecint.ecinet.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.2 Date: Mon, 04 Feb 2002 09:28:47 -0700 To: "manav" , From: Naomi Walker Subject: Re: Filesystem Backup In-Reply-To: <002401c1acba$5745c7d0$d418fea9@cp335088a> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====================_405291708==_.ALT" X-Archive-Number: 200202/22 X-Sequence-Number: 3184 --=====================_405291708==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed If I understand correctly, the only time a pure file system restore would work to put back your data was if the instance was down when the file systems were backed up. Otherwise, pg_dump of a database, or pg_dumpall of the whole instance would be necessary. If you were doing this for some other reason, this might not pertain. What started this adventure? At 08:54 AM 2/3/02 -0500, manav wrote: >Hello All, > > > >I am in a fix and need help. I am reinstalling postgresql server on my >linux workstation and\ I did a filesystem backup of ../pgsql/data/*, but >when I deleted the data directory and reconstructed it from my backup >(without the reinstall, just to check if things would work) I started >seeing errors (I mv' the data directory twice...) > >The first error was "postmaster.opt.default not found in >../pgsql/data/postmaster.opt.default' and when I created an empty file it >said '../pgsql/data/base/template1/pg_class not found'. > > > >Am I missing something? are there any other steps to a filesystem backup? > > > >-sonny -- Naomi Walker Chief Information Officer Eldorado Computing, Inc. 602-604-3100 ext 242 --=====================_405291708==_.ALT Content-Type: text/html; charset="us-ascii"
If I understand correctly, the only time a pure file system restore would work to put back your data was if the instance was down when the file systems were backed up.  Otherwise, pg_dump of a database, or pg_dumpall of the whole instance would be necessary. 

If you were doing this for some other reason, this might not pertain.  What started this adventure?

At 08:54 AM 2/3/02 -0500, manav wrote:

Hello All,

 

I am in a fix and need help. I am reinstalling postgresql server on my linux workstation and\ I did a filesystem backup of ../pgsql/data/*, but when I deleted the data directory and reconstructed it from my backup (without the reinstall, just to check if things would work) I started seeing errors (I mv' the data directory twice...)

The first error was "postmaster.opt.default not found in ../pgsql/data/postmaster.opt.default' and when I created an empty file it said '../pgsql/data/base/template1/pg_class not found'.

 

Am I missing something? are there any other steps to a filesystem backup?

 

-sonny

--
Naomi Walker
Chief Information Officer
Eldorado Computing, Inc.
602-604-3100  ext 242 --=====================_405291708==_.ALT-- From manav@glue.umd.edu Tue Feb 5 00:29:58 2002 Received: from po3.glue.umd.edu (po3.glue.umd.edu [128.8.10.123]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g150Twl81270 for ; Mon, 4 Feb 2002 19:29:58 -0500 (EST) (envelope-from manav@glue.umd.edu) Received: from cp335088a (bay7-39.dial.umd.edu [128.8.23.167]) by po3.glue.umd.edu (8.10.1/8.10.1) with ESMTP id g150TtA11997 for ; Mon, 4 Feb 2002 19:30:00 -0500 (EST) From: "manav" To: Subject: Re: Filesystem Backup Date: Mon, 4 Feb 2002 19:28:44 -0500 Message-ID: <000501c1addc$14a14c10$1101a8c0@cp335088a> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Archive-Number: 200202/23 X-Sequence-Number: 3185 Well the pg_dump(all) utils give a version mismatch, I guess my DB is 7.1.3 and the utils are some other version (how do I check the versions correctly?) dunno how that happened. How can I upgrade the utils and leave the DB engine untouched? It's a redhat linux box so rpms would be preferrd. Thanks for the response, and yes I made sure the server went down before I did the fs backup. sonny "Naomi Walker" wrote in message news:<4.2.2.20020204092555.00abeac0@ecint.ecinet.com>... > --=====================_405291708==_.ALT > Content-Type: text/plain; charset="us-ascii"; format=flowed > > > If I understand correctly, the only time a pure file system restore > would > work to put back your data was if the instance was down when the file > systems were backed up. Otherwise, pg_dump of a database, or pg_dumpall of > the whole instance would be necessary. > > If you were doing this for some other reason, this might not pertain. > What > started this adventure? > > At 08:54 AM 2/3/02 -0500, manav wrote: > > >Hello All, > > > > > > > >I am in a fix and need help. I am reinstalling postgresql server on > >my > >linux workstation and\ I did a filesystem backup of ../pgsql/data/*, but > >when I deleted the data directory and reconstructed it from my backup > >(without the reinstall, just to check if things would work) I started > >seeing errors (I mv' the data directory twice...) > > > >The first error was "postmaster.opt.default not found in > >../pgsql/data/postmaster.opt.default' and when I created an empty file it > >said '../pgsql/data/base/template1/pg_class not found'. > > > > > > > >Am I missing something? are there any other steps to a filesystem > >backup? > > > > > > > >-sonny > > -- > Naomi Walker > Chief Information Officer > Eldorado Computing, Inc. > 602-604-3100 ext 242 > --=====================_405291708==_.ALT > Content-Type: text/html; charset="us-ascii" > > >
> If I understand correctly, the only time a pure file system restore > would work to put back your data was if the instance was down when the > file systems were backed up.  Otherwise, pg_dump of a database, > or pg_dumpall of the whole instance would be necessary. 
>
If you were doing this for some other reason, this might not > pertain.  What started this adventure?
>
> At 08:54 AM 2/3/02 -0500, manav wrote:
>
>
Hello All,
>

>  
>
> I am in a fix and need help. I am reinstalling postgresql server on my > linux workstation and\ I did a filesystem backup of ../pgsql/data/*, but > when I deleted the data directory and reconstructed it from my backup > (without the reinstall, just to check if things would work) I started > seeing errors (I mv' the data directory twice...)
>
> The first error was "postmaster.opt.default not found in > ../pgsql/data/postmaster.opt.default' and when I created an empty file it > said '../pgsql/data/base/template1/pg_class not found'.
>
>  
>
> Am I missing something? are there any other steps to a filesystem > backup?
>
>  
>
> -sonny

>
--
>
Naomi Walker
>
Chief Information Officer
>
Eldorado Computing, Inc.
> 602-604-3100  ext 242 > > > --=====================_405291708==_.ALT-- >