Voici quelques notes sur le montage NFS

Info diverses

Montage en lecture

PC Client

163.9.32.21:/baie-san/san-web/stockage_web /stockage_web nfs ro,nobootwait 0 0
  • rw : read and write
  • nobootwait : permet de ne pas bloquer le serveur au démarrage si le montage ne se fait pas

Serveur

Dans le /etc/exports

/baie-san/san-web/stockage_web 163.9.32.11(ro,sync,no_subtree_check)

Montage en écriture

PC Client

163.9.32.21:/baie-san/san-web/stockage_web /stockage_web nfs rw,nobootwait 0 0
  • rw : read and write
  • nobootwait : permet de ne pas bloquer le serveur au démarrage si le montage ne se fait pas

Serveur

/baie-san/partie-web/163.9.32.27(rw,sync,all_squash,anonuid=65534,anongid=65534,no_subtree_check)

http://hawkcreation.com/ubuntu-creer-montages-nfs/

[:fr]Voici une petite note sur les partages NFS

Voir le tuto : https://www.howtoforge.com/tutorial/install-nfs-server-and-client-on-debian/

A ne pas oublier

Ne pas oublier le « nobootwait »

Attention ne marche pas quand le montage est sur var ou usr

       The  mountall(8)  program  that  mounts  filesystem  during  boot  also
       recognises additional options that the ordinary mount(8) tool does not.
       These  are:  ``bootwait''  which  can  be applied to remote filesystems
       mounted outside of /usr or /var, without which  mountall(8)  would  not
       hold up the boot for these; ``nobootwait'' which can be applied to non-
       remote filesystems to explicitly instruct mountall(8) not  to  hold  up
       the boot for them; ``optional'' which causes the entry to be ignored if
       the filesystem type is not known  at  boot  time;  and  ``showthrough''
       which  permits  a mountpoint to be mounted before its parent mountpoint
       (this latter should be used carefully, as it can cause boot hangs).

[:en]Voici une petite note sur les partages NFS

A ne pas oublier

Ne pas oublier le « nobootwait »

Attention ne marche pas quand le montage est sur var ou usr

       The  mountall(8)  program  that  mounts  filesystem  during  boot  also
       recognises additional options that the ordinary mount(8) tool does not.
       These  are:  ``bootwait''  which  can  be applied to remote filesystems
       mounted outside of /usr or /var, without which  mountall(8)  would  not
       hold up the boot for these; ``nobootwait'' which can be applied to non-
       remote filesystems to explicitly instruct mountall(8) not  to  hold  up
       the boot for them; ``optional'' which causes the entry to be ignored if
       the filesystem type is not known  at  boot  time;  and  ``showthrough''
       which  permits  a mountpoint to be mounted before its parent mountpoint
       (this latter should be used carefully, as it can cause boot hangs).

[:]