From: | Ben Chobot <bench(at)silentmedia(dot)com> |
---|---|
To: | Yang Zhang <yanghatespam(at)gmail(dot)com> |
Cc: | Jov <amutu(at)amutu(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Basic question on recovery and disk snapshotting |
Date: | 2013-04-30 17:38:01 |
Message-ID: | F065BDA0-9D07-4E14-8D34-06BD66FA8122@silentmedia.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Apr 27, 2013, at 10:40 AM, Yang Zhang wrote:
> My question really boils down to: if we're interested in using COW
> snapshotting (a common feature of modern filesystems and hosting
> environments), would we necessarily need to ensure the data and
> pg_xlog are on the same snapshotted volume? If not, how should we be
> taking the snapshots - should we be using pg_start_backup() and then
> taking the snapshot of one before the other? (What order?) What if
> we have tablespaces, do we take snapshots of those, followed by the
> cluster directory, followed by pg_xlog?
We do this, using xfs to take advantage of being able to freeze the filesystem. (Because we're also using software raid.) The process looks like:
1. pg_start_backup()
2. xfs_freeze both the data and xlog filesystems.
3. snapshot all volumes.
4. unfreeze
5. stop backup
From | Date | Subject | |
---|---|---|---|
Next Message | Merlin Moncure | 2013-04-30 19:46:10 | Re: zLinux Load Testing Experience |
Previous Message | Jeff Janes | 2013-04-30 17:26:12 | Re: zLinux Load Testing Experience |