pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Zwettler Markus (OIZ) <Markus.Zwettler@zuerich.ch>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: AW: AW: secure deletion of archived logs
Date: Wed, 11 Dec 2019 10:52:47 -0500
Message-ID: <20191211155247.GX6962@tamriel.snowman.net> (raw)
In-Reply-To: <32d4fef30e57469c813a5428c2704de9@zuerich.ch>
References: <06d9534503de4b14a7f35a1d08dcc4c6@zuerich.ch>
	<20191204133104.GG6962@tamriel.snowman.net>
	<727207b3df3a407983a066c22dc1cd84@zuerich.ch>
	<20191209143045.GM6962@tamriel.snowman.net>
	<32d4fef30e57469c813a5428c2704de9@zuerich.ch>

Greetings,

* Zwettler Markus (OIZ) (Markus.Zwettler@zuerich.ch) wrote:
> > * Zwettler Markus (OIZ) (Markus.Zwettler@zuerich.ch) wrote:
> > > We use "rsync" on XFS with "wsync" mount mode. I think this should do the job?
> > 
> > No, that just makes sure that namespace operations are executed synchronously,
> > that doesn't provide any guarantee that the data has actually been written out and
> > sync'd.
> 
> What else? "rsync" on XFS mounted wsync + execute "sync" afterwards?

I don't really agree with it, but pitrery uses 'dd' with 'conv=fsync'.
As far as I know, there isn't a way to force 'rsync' to run an fsync()
at the end, and executing a 'sync' afterwards, while it should work,
seems likely to cause you a lot more troubles..

In the end, I wouldn't suggest trying to hack up your own scripts to do
any of this- use one of the existing tools.  It's a lot more complicated
than I think you're appreciating.

Thanks,

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (2+ messages)

Message-ID: <20191211155247.GX6962@tamriel.snowman.net>
Permalink:  ../20191211155247.GX6962@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20191211155247.GX6962@tamriel.snowman.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: sfrost@snowman.net, Markus.Zwettler@zuerich.ch
  Subject: Re: secure deletion of archived logs
  In-Reply-To: <20191211155247.GX6962@tamriel.snowman.net>
  References: <06d9534503de4b14a7f35a1d08dcc4c6@zuerich.ch> <20191204133104.GG6962@tamriel.snowman.net> <727207b3df3a407983a066c22dc1cd84@zuerich.ch> <20191209143045.GM6962@tamriel.snowman.net> <32d4fef30e57469c813a5428c2704de9@zuerich.ch> <20191211155247.GX6962@tamriel.snowman.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox