View previous topic :: View next topic |
Author |
Message |
Pegasus87 Guru
Joined: 09 Sep 2004 Posts: 373
|
Posted: Sat Feb 05, 2005 9:42 pm Post subject: Mounten über NFS? |
|
|
Hallo,
ich hab ein komisches Problem.
Ich habe auf einem Rechner einen NFS eingerichtet, der einfach / freigibt.
Nun mounte ich auf dem Rechner ganz normal eine Windowspartition unter /windows/c/
Der Witz ist nun, dass ich dieses Verzeichnis nich sehe, wenn ich den NFS auf dem anderen Rechner mounte. Ich sehe zwar das komplette / Verzeichnis, nur nicht /windows/c/
Kann mir einer einen Tip geben.
Danke! |
|
Back to top |
|
|
benjamin200 Veteran
Joined: 01 Feb 2004 Posts: 1426 Location: DE Munich
|
Posted: Sat Feb 05, 2005 10:28 pm Post subject: |
|
|
Quote: |
Der Witz ist nun, dass ich dieses Verzeichnis nich sehe, wenn ich den NFS auf dem anderen Rechner mounte. Ich sehe zwar das komplette / Verzeichnis, nur nicht /windows/c/
|
Du kannst alle Unterverzeichnisse von / erreichen, z.B. /usr /sbin etc.?
Post dochmal deine /etc/fstab vom Client sowie
die /etc/exports vom Server
Thx,
Benjamin _________________ Gentoo Linux Stage1 / Kernel 2.6.18
AMD Athlon64 3500+ on Asus A8N-E / 1024 MB DDR-RAM / ATI X700 PCIe
Take LINUX and forget Blue Screens |
|
Back to top |
|
|
Pegasus87 Guru
Joined: 09 Sep 2004 Posts: 373
|
Posted: Sat Feb 05, 2005 10:46 pm Post subject: |
|
|
Ja, das kann ich. Nur alle Geräte, die gemountet werden, also auch die Optischen und USB Laufwerke, kann ich nicht im NFS sehen.
Hier mal die Export:
Code: | / *(rw,root_squash,sync)
|
Und hier der Mountbefehl in der fstab des Client:
Code: | #Netzwerk
192.168.2.17:/ /mnt/suse nfs noauto,user,bg,rsize=8192,wsize=8192,intr,soft,timeo=20 1 1 |
Vielleicht hilft das weiter.
Vielleicht ist noch wichtig zu erwähnen, dass der Server SuSE 9.1 ist und der Client Gentoo. |
|
Back to top |
|
|
SinoTech Advocate
Joined: 20 Mar 2004 Posts: 2579 Location: Neunkirchen / Saarland / Germany
|
Posted: Sat Feb 05, 2005 11:51 pm Post subject: |
|
|
Jo, also ist bei mir auch so. Ist anscheinst standart Einstellung das du nur die Dateien und Verzeichnisse siehst die auf der selben Partition liegen wie das exportierte Verzeichniss. Hatte leider noch keine Zeit mich genauer damit zu beschäftigen. Evtl. gibt es eine Option um einen kompletten Verzeichnissbaum zu exportieren (Egal auf welcher Partition die Unterverzeichnisse liegen), ansonsten einfach die Unterverzeichnisse manuell exportieren.
Mfg
Sino |
|
Back to top |
|
|
STiGMaTa_ch Veteran
Joined: 28 Dec 2004 Posts: 1686 Location: Rüti ZH / Schweiz
|
Posted: Sun Feb 06, 2005 8:22 am Post subject: |
|
|
Es gibt dafür keine Möglichkeit (ausser du hackst dir selber was zusammen). Da gibt es keine Optionen und nichts.
Bei einer NFS Freigabe wird nur die aktuelle Partition freigegeben. Andere eingebundene Partitionen werden nicht berücksichtigt.
Wir haben in der Firma noch einige alte HP-RT/HP-UX Maschinen, bei denen es aber geht. Dort hat aber HP am Code rumgewurstelt.
Lieber Gruss
STiGGi |
|
Back to top |
|
|
Macrobiotus Apprentice
Joined: 06 Oct 2002 Posts: 230
|
Posted: Sun Feb 06, 2005 8:59 am Post subject: |
|
|
Also:
Jede Partition einzeln freigeben:
/etc/exports :
Code: |
/ *(rw,root_squash,sync)
/windows/c *(rw,root_squash,sync) |
und die /etc/fstab des mountenden Recheners anpassen:
Code: | 192.168.2.17:/windows/c /mnt/suse/windows/c nfs noauto,user 0 0 |
oder so, Experten werden dir bessere mount-Optionen nennen können.
Und an die richtige Reihenfolge beim mounten denken |
|
Back to top |
|
|
Pegasus87 Guru
Joined: 09 Sep 2004 Posts: 373
|
Posted: Sun Feb 06, 2005 11:07 am Post subject: |
|
|
Jo, vielen Dank, werde ich das so machen...
Ist immer noch besser, als wenn es gar nicht funktioniert
Danke noch mal! |
|
Back to top |
|
|
treibholz Tux's lil' helper
Joined: 12 Sep 2004 Posts: 90 Location: Germany
|
Posted: Sun Feb 06, 2005 11:17 am Post subject: |
|
|
Tote reden nicht! - Django _________________ Das Internet lügt! |
|
Back to top |
|
|
schachti Advocate
Joined: 28 Jul 2003 Posts: 3765 Location: Gifhorn, Germany
|
Posted: Sun Feb 06, 2005 1:16 pm Post subject: |
|
|
Es geht mit NFS nicht, gemountete Partitionen/Medien etc wiederzugeben.
Der Grund ist auch ganz einfach: Das ist die einzige Moeglichkeit, um zyklische Abhaengigkeiten zu vermeiden. |
|
Back to top |
|
|
Robelix l33t
Joined: 21 Jul 2002 Posts: 760 Location: in a World created by a Flying Spaghetti Monster
|
Posted: Sun Feb 06, 2005 2:49 pm Post subject: |
|
|
Unsinn!
man exports
Code: |
nohide This option is based on the option of the same name provided in IRIX NFS. ormally, if a server exports two filesystems one of which is mounted on the other, then the client will have to mount both filesystems explicitly to get access to them. If it just mounts the parent, it will see an empty directory at the place where the other filesystem is mounted. That filesystem is "hidden". Setting the nohide option on a filesystem causes it not to be hidden, and an appropriately authorised client will be able to move from the parent to that filesystem without noticing the change.
However, some NFS clients do not cope well with this situation as, for instance, it is then possible for two files in the one apparent filesystem to have the same inode number.
The nohide option is currently only effective on single host exports. It does not work reliably with netgroup, subnet, or wildcard exports.
This option can be very useful in some situations, but it should be used with due care, and only after confirming that the client system copes with the situation effectively.
The option can be explicitly disabled with hide.
|
_________________ mysql> SELECT question FROM life, universe, everything WHERE answer=42;
Empty set (2079460347 sec) |
|
Back to top |
|
|
|