Hallo,
die Hilfe zum nfsserver Yast Modul enbält folgenden Text:
<cite> In case of multiple exports to a NFSv4 client, you need to bind the exported paths with no fsid=0 to the one with fsid=0. To export the server paths /Eve and /Adam as / and /husband, respectively, use
/Eve 10.0.0.1(fsid=0,crossmnt,ro,...) /Eve/husband 10.0.0.1(bind=/Adam,ro,...) </cite>
Ich habe das gemacht und er hat folgendes /etc/exports erzeugt (4 lange Zeilen):
/NFSv4 192.168.91.0/24(fsid=0,crossmnt,rw,no_root_squash,no_all_squash,async,no_subtree_check) 192.168.0.0/24(fsid=0,crossmnt,ro,no_root_squash,no_all_squash,async,no_subtree_check) /NFSv4/home 192.168.91.0/24(bind=/home,rw,no_root_squash,no_all_squash,async,no_subtree_check) 192.168.0.0/24(bind=/home,ro,no_root_squash,no_all_squash,async,no_subtree_check) /NFSv4/BACKUP 192.168.91.0/24(bind=/SDB,rw,no_root_squash,no_all_squash,async,no_subtree_check) /NFSv4/packages-11.1 192.168.91.0/24(bind=/home/PACKAGES/11.1,rw,no_root_squash,no_all_squash,async,no_subtree_check)
Der NFS Server meckert dann jedoch:
nfsserver[4587]: Starting kernel based NFS server: nfsserver[4587]: NFS: The usage of 'bind=' in /etc/exports is deprecated. nfsserver[4587]: NFS: Is it no longer needed and may cease to work. nfsserver[4587]: NFS: Please remove these settings.
Er verschweigt aber, wie man es stattdessen machen soll. Ich könnte natürlich den bind-mount über die /etc/fstab machen. Ist das der Weg der Wahl?
Wie findet systemd dann raus, dass er zuerst /NFSv4/packages-11.1 unmounten muss, bevor er /home unmounten kann? Schafft der das? Früher hatte ich mit solchen Konfigurationen immer wieder Probleme, die dazu führten, dass einzelne Filesysteme nicht richtig ungemounted (klasse Wort) wurden.
Torsten