Re: Update section on NFS

Joe Conway <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.documentation
Message-ID <[email protected]>
On 4/23/19 9:47 AM, Peter Eisentraut wrote:
> On 2019-04-23 14:31, Joe Conway wrote:
>> Looks like you dropped the advice WRT the asynchronous mount option.
>> Isn't that is still relevant?
> 
> I don't think that advice was correct.  An async mounted NFS file system
> will flush data on fsync, which is what one wants.
> 

I don't think so. Not sure if you have an account at Red Hat, but this
ticket covers it:

https://access.redhat.com/solutions/48199

Here is the relevant part of the solution as written by Red Hat:

"Finally, note that, for writes over NFS, a subsequent commit request
from the NFS client at file close time, or at
fsync() time, will force the server to write any previously unwritten
data/metadata to the disk, and the server will not reply to the client
until this has been completed, as long as sync behavior is followed. If
async is used, the commit is essentially a no-op, since the server once
again lies to the client, telling the client that the data has been sent
to stable storage. This again exposes the client and server to data
corruption, since cached data may be discarded on the client due to its
belief that the server now has the data maintained in stable storage."

Joe

-- 
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEg14x9eymXoJyHrH+N/L3QzX32GUFAly/HfAACgkQN/L3QzX3
2GXrvQ//YP/mEyHrqFHZgdSEmUy0XSXon7l1c7ES/YoilKk/nKlcyGcihQUNiFNB
ZzDFSoWl8sDTDyKCcHOqaKWTvmeJxinNz8plH94urExcVmjxLKVKyui85MuYgOkt
FNltLwZlIMu/jpaU1jFITyROHLzGgaCiVw7NtLdPQeeGM0x21T/BFxq6G/651v0y
dRMZAUM5IiOoTLD6PM8oOb3FSoxrFDX+4xsC785b+iDNX5kTuuw+VkDK0nQ6eej1
8hdZYPUuKsjVT1PFkfMNsyLp1IMB+rnFOcq4Kj2elTQwM3Pkmi/DmfUx+fK9LhZ4
IpHUWU7SF/ytaJD3edDKCYtRl8QRtBciTABohvcLnwC1n7PGy0EGlZKR2PPhZlCb
p0oC/165J6oUmsZgQGe1B2QvC3jVHGieouGQspz7WLxZn6yW1uoBAcHKaMZRlNax
NdgqZLYVGqOKAqfiQFe16k4/EiOGx7vuC0+k/MAv7lH83mLc5bH2/3QaMSC8TJik
uMEvOazovyN/qYc9qc0C/MT+KmHxizpZdvc4gZMKF9qLJ3I7n1QnGsgZX/Jqa+Y6
FDNVFnCOzvZEELii7gxcoiXj9RSQFLplLPqShZwo3REx+JHIORXusedP72qji/Am
yblDTawqKV7Yn4rj3DNhJ8TBQYtU9DYrid2Bfc6QvkrJqPjKqXE=
=OpyG
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.