NFS Mountprobleme

Gast #862463
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.
#862684
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

Antwort schreiben

Eine eigene Frage? Dieser Thread ist über 18 Jahre alt. Stell sie in einem eigenen Thread – dort lesen mehr Leute mit, und sie wird öfter und schneller beantwortet.

Neuen Thread starten

Eine Lösung, Ergänzung oder Rückmeldung zu diesem Thread? Dann antworte hier.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.