Ich habe einen NFS-Server, und möchte davon ein Rootfs mounten. Exportiert habe ich /nfs, wobei /nfs noch ein Verzeichnis root enthält. Wenn ich den Inhalt des Rootfs nach /nfs/root/ kopiere, kann ich 1 a mit meinem Client mounten. Wenn ich das rootfs per "mount -o loop" nach /nfs/roo/ mounte, kann ich nicht mounten (log mit wireshark beim Fehler: http://rapidshare.com/files/113237552/wirelog.log.html ) Wenn ich das rootfs jedoch nach /nfs mounte, klappt alles. Woran liegt das? Der Server wird auch bei jedem Test neu gestartet.
Vorweg: du hast dein /nfs/root verzeichnis schon freigegeben, oder? Braucht einen eigenen Export-Punkt, weils ein anderes FS auf einem anderen Device ist. Wenn das passt: Folgende Optionen in /etc/exports wären wahrscheinlich interressant:
1 | nohide This option is based on the option of the same name provided in |
2 | IRIX NFS. Normally, if a server exports two filesystems one of |
3 | which is mounted on the other, then the client will have to |
4 | mount both filesystems explicitly to get access to them. If it |
5 | just mounts the parent, it will see an empty directory at the |
6 | place where the other filesystem is mounted. That filesystem is |
7 | "hidden". |
8 | |
9 | Setting the nohide option on a filesystem causes it not to be |
10 | hidden, and an appropriately authorised client will be able to |
11 | move from the parent to that filesystem without noticing the |
12 | change. |
13 | |
14 | However, some NFS clients do not cope well with this situation |
15 | as, for instance, it is then possible for two files in the one |
16 | apparent filesystem to have the same inode number. |
17 | |
18 | The nohide option is currently only effective on single host |
19 | exports. It does not work reliably with netgroup, subnet, or |
20 | wildcard exports. |
21 | |
22 | This option can be very useful in some situations, but it should |
23 | be used with due care, and only after confirming that the client |
24 | system copes with the situation effectively. |
25 | |
26 | The option can be explicitly disabled with hide. |
27 | |
28 | crossmnt |
29 | This option is similar to nohide but it makes it possible for |
30 | clients to move from the filesystem marked with crossmnt to |
31 | exported filesystems mounted on it. Thus when a child filesys- |
32 | tem "B" is mounted on a parent "A", setting crossmnt on "A" has |
33 | the same effect as setting "nohide" on B. |
ansonsten versuch mal in den export-options für dein loopback-gemountetes FS mit anzugeben: fsid=42
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.