Re: LVM snapshots
От | Tom Lane |
---|---|
Тема | Re: LVM snapshots |
Дата | |
Msg-id | 6139.1047913167@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: LVM snapshots ("Matt Clark" <matt@ymogen.net>) |
Ответы |
Re: LVM snapshots
Re: LVM snapshots |
Список | pgsql-admin |
"Matt Clark" <matt@ymogen.net> writes: > 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. Ah, I see: so while the freeze is on, writes to the frozen volume cost about 3x normal (1 write -> 1 read + 2 writes), but establishing and discontinuing the freeze cost nothing. And if you have a crash the volume is still in the proper state. Good. > 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. No, you only have to drop the freeze; the original volume is not broken. I would wonder though about the datastructure that LVM uses to remember which blocks of the frozen volume have been copied (and where) on the snapshot area. I assume this table lives in kernel memory --- what happens if it gets large? regards, tom lane
В списке pgsql-admin по дате отправления: