Re: backup postgresql with snapshot AWS

From: flumbador(at)virgilio(dot)it
To: Rui DeSousa <rui(dot)desousa(at)icloud(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: backup postgresql with snapshot AWS
Date: 2018-01-23 11:02:51
Message-ID: 725266372.1794661.1516705371389@mail.virgilio.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi
I confirm that we have only one EBS volume, but Postgresql spans multiple filesystem on that EBS volume.
Filesystems are:

/pgsql/pdbabe/data => PGDATA
/pgsql/pdbabe/tsdata => Tablespace Data
/pgsql/pdbabe/tsindex => Tablespace Index
/pgsql/pdbabe/tstemp => Tablespace temporary
/pgsql/pdbabe/xlog => pg_xlog

But all on the same EBS Volume.
Does snapshot work fine in this scenario?

Thanks & Regards
Gabriele

> Il 19 gennaio 2018 alle 20.39 Rui DeSousa <rui(dot)desousa(at)icloud(dot)com> ha scritto:
>
>
>
> >
> > 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 Achilleas Mantzios 2018-01-23 11:08:19 Re: backup postgresql with snapshot AWS
Previous Message Phil Frost 2018-01-22 13:35:48 Re: Migration of postgresql 9.6 from amazon EC2 to Amazon Aurora