[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

NFS suite



Pour information, parce que la seule satisfaction là dedans est la
grande souplesse de la Debian (upgrade et downgrade sans pbms) et dans
le cas où quelqu'un a une idée de ce qui se passe.

J'ai eu deux indications.
1) Nicolas Kowalski m'a conseillé (entre autres) de remettre à plat mon
système de fichiers: bonne idée suivie
2) Phillipe Gramoulle (Liste NFS) m'a donné l'indication suivante
> As for being explicitly written in the nfs FreeBSD man pages (but not in
> Linux ones) , you just can't export a directory and one of his ancestor.
> 
> What you will get is almost weird behaviour depending of the
> clients.Sometimes it works , on day later it doesn't work :-(
> (especially Solaris clients)
> 
> What you can do , if you run 2.4.x kernel , is re-mount part of your
> filesystem through the new --bind of mount in another directory:
> 
> mount --bind /divers/win95 /divers2
> 
> and then put /divers2 in your /etc/export file.

Bon, donc ne voulant pas upgrader immédiatement sous 2.4, j'essaye de
réorganiser mon fichier: Ca n'a jamais marché:
-> Sous Kernel-NFS
Le fichier suivant n'a jamais permis à obiwan d'obtenir le repertoire
/husr/usr.test. La seule solution est alors d'exporter ce repertoire
sous la forme *(rw,no_root_squash). Mais dans ce cas, soudain, c'est la
machine bic qui ne peut obtenir le repertoire /usr/smbserveur (quel est
le rapport, pourquoi était-il accessible avant? J'ai même éteint et
rallumé l'ensemble des machines pour être sûr, visiblement, la
suppression d'un problème en crée un autre! Là je ne comprends plus rien
et retourne sous nfs-server (Etape 2)
# /etc/exports
# 1) Le FTP, maintenant sous /ftp et lien  /home/ftp -> /ftp
/home/ftp       stargate(rw)

# 2) Les usr (sous /husr ou /usr)
/husr/usr.export     *(rw)
/husr/usr.test        obiwan(rw,no_root_squash)
# Ca coince aussi sans le no_root_squash !!!!!
# par contre ça semble marcher avec *(rw,no_root_squash)
# j'aimerais comprendre !!!!!
# La petite 486 Samba
/usr/smbserveur bic(rw,no_root_squash)

# 3) Home
/home           solo(rw,no_root_squash) SOS(rw,no_root_squash) *(rw)

# 4) Boot NFS /tftboot/192.168.1.254 -> SOS.root
/SOS.root       *(rw,no_root_squash)
/tftpboot       *(rw,no_root_squash)

# 5) Reste: /var/spool/mail, /var/spool/texmf et /var/cache/apt/archives
/texmf.export   *(rw,no_root_squash)    # Sous /usr/texmf
/var/spool/mail *(rw,no_root_squash)
/divers/debian/archives         *(rw,no_root_squash)

#7) Les clients
/divers/clientv2.1      obiwan(rw,no_root_squash) SOS(rw,no_root_squash)
/divers/clientv2.2      obiwan(rw,no_root_squash) SOS(rw,no_root_squash)
/divers/clientv3.0      obiwan(rw,no_root_squash) SOS(rw,no_root_squash)
/divers/clientv3.1      obiwan(rw,no_root_squash) SOS(rw,no_root_squash)

-> Etape 2. Le retour à nfs-server potato se passe sans problème (dpkg
est un bel instrument réellement efficace et souple). Seul souci, la
dépendance avec netbase (supprimé par les paquets portmap, nfs-common de
woody) n'est pas indiquée.
nfs-server fini par marcher. Lui refuse les caractères * et n'a pas
l'option no_all_squash par défaut. Le fichier suivant lui convient:
# 1) Le FTP, maintenant sous /ftp et lien  /home/ftp -> /ftp
/home/ftp       stargate(rw,no_all_squash)

# 2) Les usr (sous /husr ou /usr)
# /husr/usr.test
/husr/usr.test           (rw,no_root_squash)
# /husr/usr.export
/husr/usr.export         (rw,no_all_squash)
# /husr/usr.exportv2
/husr/usr.exportv2       (rw,no_all_squash)
# La petite 486 Samba
/usr/smbserveur bic(rw,no_root_squash)

# 3) Home
/home            (rw,no_all_squash) obiwan(rw,no_root_squash)

# 4) Boot NFS /tftboot/192.168.1.254 -> SOS.root
/SOS.root        (rw,no_root_squash)
/tftpboot        (rw,no_root_squash)

# 5) Reste: /var/spool/mail, /var/spool/texmf et /var/cache/apt/archives
/husr/texmf.export       (rw,no_root_squash)    # Sous /husr/texmf
/var/spool/mail  (rw,no_root_squash)
/divers/debian/archives          (rw,no_root_squash)

# 6) Pour le backup
/       solo(ro,no_root_squash,no_all_squash)
/usr    solo(ro,no_root_squash)
SOS.old solo(ro,no_root_squash)
SOS.root        solo(ro,no_root_squash)
...(tout les repertoires sous /)

#7) Les clients
/divers/clientv2.1      obiwan(rw,no_root_squash) SOS(rw,no_root_squash)
/divers/clientv2.2      obiwan(rw,no_root_squash) SOS(rw,no_root_squash)
/divers/clientv3.0      obiwan(rw,no_root_squash) SOS(rw,no_root_squash)
/divers/clientv3.1      obiwan(rw,no_root_squash) SOS(rw,no_root_squash)


Voilà! Quelqu'un a-t-il un début d'explication sur cette série de pbms?

Bon courage à tous et merci d'avoir lu.

F. Boisson




Reply to: