Re: Update section on NFS

Joe Conway <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.documentation
Message-ID <[email protected]>
On 4/23/19 6:10 AM, Peter Eisentraut wrote:
> Attached is a patch that rewrites the section on NFS.  The old section
> was ancient and didn't seem very helpful.
> 
> AFAIK, the only strict requirement for using NFS with PostgreSQL is the
> hard mount.  Anything else we should mention?
> 
> I also reorganized the sectioning so that information about other file
> systems can be added more easily.

>     <para>
> -    Many installations create their database clusters on network file
> -    systems.  Sometimes this is done via <acronym>NFS</acronym>, or by using a
> -    Network Attached Storage (<acronym>NAS</acronym>) device that uses
> -    <acronym>NFS</acronym> internally.  <productname>PostgreSQL</productname> does nothing
> -    special for <acronym>NFS</acronym> file systems, meaning it assumes
> -    <acronym>NFS</acronym> behaves exactly like locally-connected drives.
> -    If the client or server <acronym>NFS</acronym> implementation does not
> -    provide standard file system semantics, this can
> -    cause reliability problems (see <ulink
> -    url="https://www.time-travellers.org/shane/papers/NFS_considered_harmful.html"></ulink>).
> -    Specifically, delayed (asynchronous) writes to the <acronym>NFS</acronym>
> -    server can cause data corruption problems.  If possible, mount the
> -    <acronym>NFS</acronym> file system synchronously (without caching) to avoid
> -    this hazard.  Also, soft-mounting the <acronym>NFS</acronym> file system is
> -    not recommended.

<snip>

> +    <para>
> +     It is possible to use an NFS file system for storing the
> +     <productname>PostgreSQL</productname> data directory.  The only
> +     requirement is that the file system is mounted using the
> +     <literal>hard</literal> option.  With the <literal>hard</literal> option,
> +     processes can <quote>hang</quote> indefinitely if there are network
> +     problems, so this setup will require a careful monitoring setup.  (The
> +     <literal>soft</literal> option will interrupt system calls in case of
> +     network problems, but the <productname>PostgreSQL</productname> will not
> +     repeat system calls interrupted in this way, so any such interruption
> +     will result in an I/O error being reported.)
> +     <productname>PostgreSQL</productname> does nothing special for
> +     <acronym>NFS</acronym> file systems, meaning it assumes
> +     <acronym>NFS</acronym> behaves exactly like locally-connected drives.
> +    </para>


Looks like you dropped the advice WRT the asynchronous mount option.
Isn't that is still relevant?


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/BZMACgkQN/L3QzX3
2GWPPA/+I4qbTbX9G+dvxhvfRBuqykT7SngDNk0/cOFDvXc6L/AA9dKxv3f/eybM
1LUEsCNkK/nYyRlpgNCDtYSyP7YbjSFZYNOGsf0g9aIemICr7DSWMSpSNtwDs5Hx
N5bwkA/OYJT+hU2tjammZ4CH0zt0lHJrPrLffO6BTwW8CvV4DY+2+GLdz1+/J621
gKFBTigRLonbH/DdxzE0bJ1gdMOs6RIViL3w7NVLm0Nr1NYgavPQzCEX74rf+i+H
iy1t/c5SyOj8UYvWdCbuDrVl8DNn22b2mwYkKiQZbcMMr+jP7hUQ0gLLiXWlLi/I
/j2R+z0L5Nl2yg7UEjcT/fJtgil9Wv5eDggQUKTw++6diAqGZwr5qsDdkncg/t3R
u5GDt0VC57ajQrz0p1PbY0I4C60QRNiffeRUKn53AKGiYvZL0mLD06iBfEFVm/bV
pghQUZDlSzBZePSX68PtE3eGdXZKJq7a43w9b3GXwp/LhHbWfrLn+QiUXdPfcvDy
VIGSOzbHuzMppx4NfsopJ6uWGOq3oWpUF2e30AoxP1slZQoAJW3pbG6s2RTFbVvL
RPa7wbSxxWbaKXJ0P8PcgJuAumJvQaQY9AvYF7o+hEVrjZH2Ham+bLQC/2ldF3b/
OnnxuqXC5RNiSy+eUpR/6Z7XJPgSrUgs10dGl3mvYj597G1Avwg=
=JLBF
-----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.