pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedFile systems backup problem
3+ messages / 2 participants
[nested] [flat]
* File systems backup problem
@ 2002-05-23 10:37 l.malaspina@focal.fr
0 siblings, 1 reply; 3+ messages in thread
From: l.malaspina@focal.fr @ 2002-05-23 10:37 UTC (permalink / raw)
To: pgsql-admin
I'm new to postgresql . I use the version 7.2 on RedHat 7.2
I have made a mistake. I drop a database but not the good database.
And I have a file systems backup.
But what I didn't know until now, is that the postmaster should be stop in
order to make the backup.
So when the backup is made, the postmaster isn't stop.
And now when I want to use the backup in order to restore the database I
drop, this doesn't work.
The files are restored but when I restart the postmaster and want to
connect to the restored database,
the postmaster reply that it doesn't know the database in the system
catalog.
Is there a solution to repair the database ?
In advance, thanks for your reply.
Malaspina Loic
www.focalsystems.fr
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: File systems backup problem
@ 2002-05-23 11:44 Rajesh Kumar Mallah. <mallah@trade-india.com>
parent: l.malaspina@focal.fr
0 siblings, 0 replies; 3+ messages in thread
From: Rajesh Kumar Mallah. @ 2002-05-23 11:44 UTC (permalink / raw)
To: l.malaspina@focal.fr; pgsql-admin
Hi There,
does the postmaster start successfully in you case.
i feel you are not specifying the right $PGDATA folder.
if you installed from RPM it shud be /var/lib/pgsql/data/
in redhat 7.2
i would suggest you start the postmaster in foreground and
observer the messages , if every thing is alright.
you can do it like this.
$ su -
# su - postgres
$ /usr/bin/postmaster -D /var/lib/pgsql/data -d 2 <enter>
observer for messages here........
it might go for recovery and it shud say
"database system is ready".
i would also suggest not connecting or
attemping to connect to it while recovering..
or better make tcpip_socket=false in postgresql.conf
while recovering..
please do not panic, we are here for all the help
;-)
regds
mallah.
On Thursday 23 May 2002 04:07 pm, l.malaspina@focal.fr wrote:
> I'm new to postgresql . I use the version 7.2 on RedHat 7.2
>
> I have made a mistake. I drop a database but not the good database.
> And I have a file systems backup.
> But what I didn't know until now, is that the postmaster should be stop in
> order to make the backup.
> So when the backup is made, the postmaster isn't stop.
> And now when I want to use the backup in order to restore the database I
> drop, this doesn't work.
> The files are restored but when I restart the postmaster and want to
> connect to the restored database,
> the postmaster reply that it doesn't know the database in the system
> catalog.
>
> Is there a solution to repair the database ?
>
> In advance, thanks for your reply.
>
> Malaspina Loic
> www.focalsystems.fr
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
--
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)
Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: File systems backup problem
@ 2002-05-26 10:30 Rajesh Kumar Mallah. <mallah@trade-india.com>
0 siblings, 0 replies; 3+ messages in thread
From: Rajesh Kumar Mallah. @ 2002-05-26 10:30 UTC (permalink / raw)
To: l.malaspina@focal.fr; +Cc: pgsql-admin
Did you problem finally got resolved?
regds
mallah.
On Thursday 23 May 2002 09:13 pm, l.malaspina@focal.fr wrote:
> Sorry for CC,
>
> psql -h 192.168.133.15 -l
> List of available databases :
>
> Name | Owner
> -----------------+----------
> template0 | alf
> template1 | alf
> otherdb | alf
>
> Directory base :
>
> [alf@cpa-linux3 base]$ ll
> total 24
> drwx------ 2 alf alf 4096 mai 23 07:36 1
> drwx------ 2 alf alf 4096 mar 28 15:39 16555
> drwx------ 3 alf alf 8192 mai 22 17:27 31450335
> drwx------ 2 alf alf 4096 mai 22 17:27 45136415
> drwx------ 2 alf alf 4096 mai 23 16:24 46004129
>
> And if i undestand what you say, normally i would have 5 database return by
> the command "psql -l" and i have only 3.
>
>
>
>
>
> "Rajesh Kumar
> Mallah." Pour : l.malaspina@focal.fr
> <mallah@trade- cc : pgsql-admin
> <pgsql-admin@postgresql.org> india.com> Objet : Re: Réf. :
> Re: [ADMIN] File systems backup problem
>
> 23/05/02 17:16
>
>
>
>
>
>
> Hi ,
>
> I would appreciate if you mark a CC to the mailing list also
> in future communications so that others also get to know.
>
> please find my answer inlined.
>
> On Thursday 23 May 2002 08:35 pm, l.malaspina@focal.fr wrote:
> > Database "test" does not exist in the system catalog.)
>
> Can you connect to database template1 ?
>
> what does "psql -l" gives? eg in my case it gives
> psql -h 192.168.0.11 -U tradein -l
> List of databases
> Name | Owner
> -----------------+----------
> access_log | tradein
> rt2 | postgres
> sysstat | tradein
> template0 | postgres
> template1 | postgres
> tradein_clients | tradein
> (6 rows)
>
> are you sure the database "test" existed while the filesystem backup was
> taking place.
> howmany folders are existing inside /var/lib/pgsql/data/base currently?
>
> each folder there corresponds to one database in my case eg it is
> [root@system11 base]# ls -l
> total 48
> drwx------ 2 postgres postgres 4096 Apr 29 01:55 1
> drwx------ 2 postgres postgres 4096 Apr 29 01:55 16555
> drwx------ 3 postgres postgres 28672 May 23 16:11 378968
> drwx------ 2 postgres postgres 4096 Apr 29 02:07 378969
> drwx------ 2 postgres postgres 4096 May 21 16:18 7865515
> drwx------ 2 postgres postgres 4096 May 23 20:36 8990396
> [root@system11 base]#
>
> do such folders exists in your case?
--
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)
Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2002-05-26 10:30 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-05-23 10:37 File systems backup problem l.malaspina@focal.fr
2002-05-23 11:44 ` Rajesh Kumar Mallah. <mallah@trade-india.com>
2002-05-26 10:30 Re: File systems backup problem Rajesh Kumar Mallah. <mallah@trade-india.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox