Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edwLy-0006X1-IT for pgsql-admin@arkaria.postgresql.org; Tue, 23 Jan 2018 11:03:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edwLw-0008K2-Ry for pgsql-admin@arkaria.postgresql.org; Tue, 23 Jan 2018 11:02:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1edwLw-0008Jt-Gv for pgsql-admin@lists.postgresql.org; Tue, 23 Jan 2018 11:02:56 +0000 Received: from smtp-17-i5.italiaonline.it ([213.209.9.17] helo=libero.it) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1edwLt-0005ps-IM for pgsql-admin@lists.postgresql.org; Tue, 23 Jan 2018 11:02:55 +0000 Received: from oxapps-11-066.iol.local ([10.101.8.76]) by smtp-17.iol.local with SMTP id dwLreGQJsfr6udwLrevZUT; Tue, 23 Jan 2018 12:02:51 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virgilio.it; s=s2017; t=1516705371; bh=fTgv+lSKdBpE5OX2I62kIlIwnrPdQi170ut2b5CYSB8=; h=Date:From:To:Cc:In-Reply-To:References:Subject; b=GteQrKxWUWwshki7J95YGcXwo+qf+/c196ACwxEirm9n+vlhryerKDPL/P7GroEs9 IdYcZXP6bCJB3fg1lPNBYwEOXZ2ebTU2ghuf7RFo0MhUyCepiazJm/PqKzYSR7J26I xiEiH7jWcIwF6ctoqkGsgY8PKzZ0zBNXT6bu6xh5DZybKQV2d7D0FeLIE/TycWb2wB /VtMfTGE1NuH+JIEPtqiCDJy7j4R1Rj8bn7KHSJY/csS3rL2i2XJoCP071vPjj2q5g Z50JX/R4HpiBRddBZqRlqHLcLUngbmg9A23S+0Xr8nwKXE1jnLXnGz6uSEBiDPzelX SOfUAD2RdHI+Q== X-CNFS-Analysis: v=2.2 cv=Cu/PSjwD c=1 sm=1 tr=0 a=CrCu4K2nsbqlrRK353JvNw==:117 a=CRnLN_xSDSAA:10 a=IkcTkHD0fZMA:10 a=v3ZZPjhaAAAA:8 a=0AqEk48qMp2YkQtbqbwA:9 a=QEXdDO2ut3YA:10 Date: Tue, 23 Jan 2018 12:02:51 +0100 (CET) From: flumbador@virgilio.it To: Rui DeSousa Cc: pgsql-admin@lists.postgresql.org Message-ID: <725266372.1794661.1516705371389@mail.virgilio.it> In-Reply-To: <5F7F898C-23FD-4543-8623-BF9FFDE648B7@icloud.com> References: <166191299.1443519.1516368751643@mail.virgilio.it> <58e57feb-1a0a-bb44-55a6-5c94d294de9e@pgmasters.net> <2ce36d42-c90a-ed10-173d-7b8445c1cec9@denninger.net> <863cffbe-0c4b-bcda-189d-3026bc949c95@denninger.net> <5F7F898C-23FD-4543-8623-BF9FFDE648B7@icloud.com> Subject: Re: backup postgresql with snapshot AWS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.3-Rev40 X-Originating-IP: 46.235.159.14 X-Originating-Client: open-xchange-appsuite x-libjamsun: 3s5rxsNRI4uNegDGL6e01jypEaYz5C4Z x-libjamv: LDy3ziK0OGI= X-CMAE-Envelope: MS4wfIdcW482yQzqjPErYNlq7GaGUydNkDkIOS290MNylDDWAkaIHuIEg5xeSeYuRUNXzNaKpr1qrHUPDaC7rvD0bBJWNlqKpQL8UeN6LcYzY+VUmbUvPvqO jB3Twf7xI8fV5uCkNIbM97gOf1C6zdslKbUcjxC/eY86EbqS/BFKKlGJ8ZvfOHOk/7fPCEGxVzEtdF9IulaURdW6vA7CK7ojDTUugQpTYzVKBpuBtDIWSAMw List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi =20 I confirm that we have only one EBS volume, but Postgresql spans multiple f= ilesystem on that EBS volume. Filesystems are: /pgsql/pdbabe/data =3D> PGDATA /pgsql/pdbabe/tsdata =3D> Tablespace Data /pgsql/pdbabe/tsindex =3D> Tablespace Index /pgsql/pdbabe/tstemp =3D> Tablespace temporary /pgsql/pdbabe/xlog =3D> pg_xlog=20 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 ha scr= itto: >=20 >=20 >=20 > >=20 > > IMHO the more you intertwine things you cannot be certain of because th= ey 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 wro= ng 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 expecte= d results when it's important. >=20 > One needs to understand their technology stack. You need to know where yo= ur data is after a sync() call=E2=80=A6 is it cached in the controller, som= e other application layer, or safely on disk? You also need to understand t= he relationship between luns, volume managers, and filesystems and where yo= ur atomic operation are in your setup. =20 >=20 > i.e. If the filesystem spans multiple EBS volumes then you can=E2=80=99t = 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=E2=80=99s own RDS service uses EBS snapshots for backups.