Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1if4IG-0004Oq-SZ for pgsql-general@arkaria.postgresql.org; Wed, 11 Dec 2019 15:52:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1if4IF-0004hJ-Jg for pgsql-general@arkaria.postgresql.org; Wed, 11 Dec 2019 15:52:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1if4IF-0004hA-4y for pgsql-general@lists.postgresql.org; Wed, 11 Dec 2019 15:52:51 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1if4IC-0004du-JH for pgsql-general@lists.postgresql.org; Wed, 11 Dec 2019 15:52:49 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 6C86E5F7A7; Wed, 11 Dec 2019 10:52:47 -0500 (EST) Date: Wed, 11 Dec 2019 10:52:47 -0500 From: Stephen Frost To: "Zwettler Markus (OIZ)" Cc: "pgsql-general@lists.postgresql.org" Subject: Re: AW: AW: secure deletion of archived logs Message-ID: <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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lmpIh81++odpP3SD" Content-Disposition: inline In-Reply-To: <32d4fef30e57469c813a5428c2704de9@zuerich.ch> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --lmpIh81++odpP3SD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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? > >=20 > > No, that just makes sure that namespace operations are executed synchro= nously, > > that doesn't provide any guarantee that the data has actually been writ= ten out and > > sync'd. >=20 > What else? "rsync" on XFS mounted wsync + execute "sync" afterwards? I don't really agree with it, but pitrery uses 'dd' with 'conv=3Dfsync'. 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 --lmpIh81++odpP3SD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJd8RDPAAoJEO1sijiDR2RVWCUP/1PYqWVtsJwq9npvC+VY7hgC KdsA/AU7BY9Zdu+y9cUD4Wm/qrlo3x4JJIrOl6/gDfFGY+40PtbZHMjHI+c6vMj9 OwrXI6PDtva3PYvHMHN0hfwvb9RFQmjZ3YU9+JHiJCRRuv2gdwmkc8Xg7G+UIezq 7mwjVNmitj7IDxINA/n/2atMTpkt5zSb4przu3Xbpcc4OrqLmYBlb+K22UzOYO7M sWMPM6OCkrlbKE1S29QvkxMLPvtJTQfUMs8mhE/ZeUbZePlpcrpXH8KgHHEJXJsR pOBUCo43ds7i5y0KVnIxk2WRDJi8BHIdgskLstNB4+/n4gBbMfQMVqgcMLgerL3g WbJx0l+z/b0B+bcmpm2ovVxu+ArxWissKik4Y+tVtdpEtcvkrfnZSM4o2H6QyMlt RZfLHyxpb6lolbcyqRlGgyf60GgEEVru1nUvevO3uiffOxGPsi9Udf/yN24T6Sbi Eo8hHi14gkvBcU+aZioe2QBV/CbPAlPzAl2aHpNTEWmm9CEvThlgB7oTOKYt9ASH QlBKAuKOqV6cm57YuNDqV/gaZ4qlXdU7KbvMAUWt2xNKlieYmxHydb/biJQv6Ni3 BuBiObBazdNh8PGfs/KeCbgjC2ivW0Kolp2gzf41oSPJMCwGQyahHRcjrHZ9NjsI CeHcrCo+ngmFOL+Fbd9j =R5pm -----END PGP SIGNATURE----- --lmpIh81++odpP3SD--