Re: backup postgresql with snapshot AWS

From: Rui DeSousa <rui(dot)desousa(at)icloud(dot)com>
To: Karl Denninger <karl(at)denninger(dot)net>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: backup postgresql with snapshot AWS
Date: 2018-01-19 19:39:20
Message-ID: 5F7F898C-23FD-4543-8623-BF9FFDE648B7@icloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


>
> IMHO the more you intertwine things you cannot be certain of because they operate outside of your particular VM's space with a process that relies on them the more you are risking finding out that your assumptions are wrong the hard way. You *shouldn't* get bit by this in a well-designed cloud or cluster system but that's not an acceptable word to describe the expected results when it's important.

One needs to understand their technology stack. You need to know where your data is after a sync() call… is it cached in the controller, some other application layer, or safely on disk? You also need to understand the relationship between luns, volume managers, and filesystems and where your atomic operation are in your setup.

i.e. If the filesystem spans multiple EBS volumes then you can’t use EBS snapshots otherwise you end up with a corrupted filesystem/database; however, if you use one filesystem per EBS volume then EBS snapshots work fine. Amazon’s own RDS service uses EBS snapshots for backups.

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Umair Shahid 2018-01-20 04:54:01 Re: POSTGRESQL 10 Media download with CHECKSUM VALUE
Previous Message Karl Denninger 2018-01-19 18:48:39 Re: backup postgresql with snapshot AWS