Re: [GENERAL] Restoring a database from a file system snapshot

This is a discussion on Re: [GENERAL] Restoring a database from a file system snapshot within the postgresql forums in Other Databases category; On Wed, Aug 27, 2008 at 6:16 PM, William Garrison wrote: > > I'm still reeling from the thought that there can > somehow be a single transaction log for multiple databases. How is that > even possible? Are the transaction ID numbers shared across databases too? Yes it's possible, and it's how pgsql does it. Yes txid are based on a common count amongst the dbs in a cluster. > I need to educate our IT group about this. They setup the SAN volumes based > on my incorrect assumptions about how PostgreSQL worked. It sounds like, on > Windows, we need ...

Go Back   Database Forum > Other Databases > postgresql

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-28-2008, 04:11 AM
Default Re: [GENERAL] Restoring a database from a file system snapshot

On Wed, Aug 27, 2008 at 6:16 PM, William Garrison wrote:
>
> I'm still reeling from the thought that there can
> somehow be a single transaction log for multiple databases. How is that
> even possible? Are the transaction ID numbers shared across databases too?


Yes it's possible, and it's how pgsql does it. Yes txid are based on
a common count amongst the dbs in a cluster.

> I need to educate our IT group about this. They setup the SAN volumes based
> on my incorrect assumptions about how PostgreSQL worked. It sounds like, on
> Windows, we need to just flat-out reinstall postgres and install it into the
> Z: drive so that the entire data directory is on the SAN volume. Installing
> it to C: and having only parts of the database on the SAN is not good.


Really? I'm not so sure. By having a local mirror set host the Database
pg_xlog type files you can get good performance in bursts even if the
SAN is lagging behind a bit.

> (Thanks to everyone who is replying - this is clearing-up a lot of
> misconceptions for me)
>
> P.S. I guess on Unix, you guys all just setup the data directory to be a
> hard-link to some other location?


Soft link, but yeah that's exactly what I did tonight. We have a
mirror set where the main pg database lives, then stop the Database, copy
out base to another drive, softlink it into the place of the old base
and restart the Database. Now the pg_xlog and such are on the mirror set
and the main data store is on a separate array (Tonight it was a
RAID-5 for a reporting server, last week it was a 12 disk RAID-10 for
the big storage / transactional server)

By putting the pg_xlog, which is written sequentially on the mirror
set, I ensure that it's not competing with my random writes on the big
RAID-10.

--
Sent via pgsql-general mailing list (pgsql-general-at-postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 12:02 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by bbpixel2008 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.