Re: LVM snapshots

From: "Matt Clark" <matt(at)ymogen(dot)net>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Ragnar KjÃzrstad <postgres(at)ragnark(dot)vestdata(dot)no>, "Peter Eisentraut" <peter_e(at)gmx(dot)net>, "Murthy Kambhampaty" <murthy(dot)kambhampaty(at)goeci(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: LVM snapshots
Date: 2003-03-17 14:41:16
Message-ID: OAEAKHEHCMLBLIDGAFELEEDJDBAA.matt@ymogen.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Many apologies, I got things completely the wrong way round I think! My fault entirely.

The snapshot volume holds the *original* data from the frozen volume, using copy-on-write, so neither taking nor releasing the
snapshot involve any copying of data.

If you run out of room on the snapshot volume because you've written too much data to the frozen volume then you are buggered, pure
and simple.

> -----Original Message-----
> From: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
> Sent: 17 March 2003 14:32
> To: Matt Clark
> Cc: Ragnar KjÃzrstad; Peter Eisentraut; Murthy Kambhampaty;
> pgsql-admin(at)postgresql(dot)org
> Subject: Re: [ADMIN] LVM snapshots
>
>
> "Matt Clark" <matt(at)ymogen(dot)net> writes:
> > So when you take a snapshot there is no data to be copied, and when
> > you release a snapshot some data needs to be written back.
>
> Does the write-back preserve the original write ordering? In general,
> what happens if there's a system crash in this state? What of errors
> encountered during write-back, eg out of disk space (or is disk space
> accounting still done in terms of the original volume)?
>
> regards, tom lane
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Robert Treat 2003-03-17 14:45:20 Re: DB archiving
Previous Message Tom Lane 2003-03-17 14:32:19 Re: LVM snapshots